Import Debian changes 0.66.4-9
[hcoop/debian/courier-authlib.git] / libs / liblock / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for liblock 0.60.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script 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='liblock'
592 PACKAGE_TARNAME='liblock'
593 PACKAGE_VERSION='0.60'
594 PACKAGE_STRING='liblock 0.60'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="liblock.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_SGML_FALSE
640 HAVE_SGML_TRUE
641 USE_LOCKF_FALSE
642 USE_LOCKF_TRUE
643 USE_FLOCK_FALSE
644 USE_FLOCK_TRUE
645 USE_FCNTL_FALSE
646 USE_FCNTL_TRUE
647 CPP
648 LT_SYS_LIBRARY_PATH
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 LN_S
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_aix_soname
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_largefile
774 with_locking_method
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 LT_SYS_LIBRARY_PATH
785 CPP'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures liblock 0.60 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of liblock 0.60:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-silent-rules less verbose build output (undo: "make V=1")
1405 --disable-silent-rules verbose build output (undo: "make V=0")
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --disable-largefile omit support for large files
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1421 both]
1422 --with-aix-soname=aix|svr4|both
1423 shared library versioning (aka "SONAME") variant to
1424 provide on AIX, [default=aix].
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1427 compiler's sysroot if not specified).
1428
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 LT_SYS_LIBRARY_PATH
1439 User-defined run-time library search path.
1440 CPP C preprocessor
1441
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <courier-users@lists.sourceforge.net>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 liblock configure 0.60
1509 generated by GNU Autoconf 2.69
1510
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_try_link LINENO
1561 # -----------------------
1562 # Try to link conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_link ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext conftest$ac_exeext
1567 if { { ac_try="$ac_link"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest$ac_exeext && {
1586 test "$cross_compiling" = yes ||
1587 test -x conftest$ac_exeext
1588 }; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598 # interfere with the next link command; also delete a directory that is
1599 # left behind by Apple's compiler. We do this before executing the actions.
1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_link
1605
1606 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607 # -------------------------------------------------------
1608 # Tests whether HEADER exists and can be compiled using the include files in
1609 # INCLUDES, setting the cache variable VAR accordingly.
1610 ac_fn_c_check_header_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 else
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 eval "$3=yes"
1625 else
1626 eval "$3=no"
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 fi
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635 } # ac_fn_c_check_header_compile
1636
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_cpp ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_c_try_run LINENO
1675 # ----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677 # that executables *can* be run.
1678 ac_fn_c_try_run ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692 { { case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_try") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; }; }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=$ac_status
1709 fi
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_run
1715
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1732
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below.
1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736 <limits.h> exists even on freestanding compilers. */
1737
1738 #ifdef __STDC__
1739 # include <limits.h>
1740 #else
1741 # include <assert.h>
1742 #endif
1743
1744 #undef $2
1745
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 ();
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1759
1760 int
1761 main ()
1762 {
1763 return $2 ();
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext \
1774 conftest$ac_exeext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_func
1782
1783 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1786 # the include files in INCLUDES and setting the cache variable VAR
1787 # accordingly.
1788 ac_fn_c_check_header_mongrel ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if eval \${$3+:} false; then :
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 else
1801 # Is the header compilable?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1803 $as_echo_n "checking $2 usability... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_header_compiler=yes
1811 else
1812 ac_header_compiler=no
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1816 $as_echo "$ac_header_compiler" >&6; }
1817
1818 # Is the header present?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1820 $as_echo_n "checking $2 presence... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_cpp "$LINENO"; then :
1826 ac_header_preproc=yes
1827 else
1828 ac_header_preproc=no
1829 fi
1830 rm -f conftest.err conftest.i conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1832 $as_echo "$ac_header_preproc" >&6; }
1833
1834 # So? What about this header?
1835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 yes:no: )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1838 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ;;
1842 no:yes:* )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1844 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1846 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1848 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1850 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ( $as_echo "## -------------------------------------------------- ##
1854 ## Report this to courier-users@lists.sourceforge.net ##
1855 ## -------------------------------------------------- ##"
1856 ) | sed "s/^/$as_me: WARNING: /" >&2
1857 ;;
1858 esac
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=\$ac_header_compiler"
1865 fi
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_mongrel
1873
1874 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1875 # -------------------------------------------
1876 # Tests whether TYPE exists after having included INCLUDES, setting cache
1877 # variable VAR accordingly.
1878 ac_fn_c_check_type ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=no"
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main ()
1892 {
1893 if (sizeof ($2))
1894 return 0;
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 if (sizeof (($2)))
1907 return 0;
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913
1914 else
1915 eval "$3=yes"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_type
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by liblock $as_me 0.60, which was
1932 generated by GNU Autoconf 2.69. Invocation command line was
1933
1934 $ $0 $@
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1969 done
1970 IFS=$as_save_IFS
1971
1972 } >&5
1973
1974 cat >&5 <<_ACEOF
1975
1976
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1980
1981 _ACEOF
1982
1983
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1994 do
1995 for ac_arg
1996 do
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 case $ac_pass in
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007 2)
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2011 else
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2020 ;;
2021 -* ) ac_must_keep_next=true ;;
2022 esac
2023 fi
2024 as_fn_append ac_configure_args " '$ac_arg'"
2025 ;;
2026 esac
2027 done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2031
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2039 {
2040 echo
2041
2042 $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2047 (
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2070 *)
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072 ;;
2073 esac |
2074 sort
2075 )
2076 echo
2077
2078 $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2081 echo
2082 for ac_var in $ac_subst_vars
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091
2092 if test -n "$ac_subst_files"; then
2093 $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2096 echo
2097 for ac_var in $ac_subst_files
2098 do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2106 fi
2107
2108 if test -s confdefs.h; then
2109 $as_echo "## ----------- ##
2110 ## confdefs.h. ##
2111 ## ----------- ##"
2112 echo
2113 cat confdefs.h
2114 echo
2115 fi
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2123 ' 0
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2128
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2131
2132 $as_echo "/* confdefs.h */" > confdefs.h
2133
2134 # Predefined preprocessor variables.
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 # We do not want a PATH search for config.site.
2167 case $CONFIG_SITE in #((
2168 -*) ac_site_file1=./$CONFIG_SITE;;
2169 */*) ac_site_file1=$CONFIG_SITE;;
2170 *) ac_site_file1=./$CONFIG_SITE;;
2171 esac
2172 elif test "x$prefix" != xNONE; then
2173 ac_site_file1=$prefix/share/config.site
2174 ac_site_file2=$prefix/etc/config.site
2175 else
2176 ac_site_file1=$ac_default_prefix/share/config.site
2177 ac_site_file2=$ac_default_prefix/etc/config.site
2178 fi
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180 do
2181 test "x$ac_site_file" = xNONE && continue
2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185 sed 's/^/| /' "$ac_site_file" >&5
2186 . "$ac_site_file" \
2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2191 fi
2192 done
2193
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special files
2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200 case $cache_file in
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2203 esac
2204 fi
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 >$cache_file
2209 fi
2210
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2220 set,)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,set)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2228 ,);;
2229 *)
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2242 fi
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 fi;;
2248 esac
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2251 case $ac_new_val in
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2254 esac
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 esac
2259 fi
2260 done
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267 fi
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2271
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280 >confdefs.h # Kill PACKAGE_ macros
2281
2282
2283 ac_aux_dir=
2284 for ac_dir in ../.. "$srcdir"/../..; do
2285 if test -f "$ac_dir/install-sh"; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/install-sh -c"
2288 break
2289 elif test -f "$ac_dir/install.sh"; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install.sh -c"
2292 break
2293 elif test -f "$ac_dir/shtool"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/shtool install -c"
2296 break
2297 fi
2298 done
2299 if test -z "$ac_aux_dir"; then
2300 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2301 fi
2302
2303 # These three variables are undocumented and unsupported,
2304 # and are intended to be withdrawn in a future Autoconf release.
2305 # They can cause serious problems if a builder's source tree is in a directory
2306 # whose full name contains unusual characters.
2307 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2308 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2309 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2310
2311
2312 ac_config_headers="$ac_config_headers config.h"
2313
2314 am__api_version='1.15'
2315
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2322 # AIX /bin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346 /usr/ucb/* ) ;;
2347 *)
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2350 # by default.
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2357 :
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2361 :
2362 else
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2366 mkdir conftest.dir
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2371 then
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373 break 3
2374 fi
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380 esac
2381
2382 done
2383 IFS=$as_save_IFS
2384
2385 rm -rf conftest.one conftest.two conftest.dir
2386
2387 fi
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2390 else
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2396 fi
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2400
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2413 am_lf='
2414 '
2415 case `pwd` in
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418 esac
2419 case $srcdir in
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422 esac
2423
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2428 # directory).
2429 if (
2430 am_has_slept=no
2431 for am_try in 1 2; do
2432 echo "timestamp, slept: $am_has_slept" > conftest.file
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2435 # -L didn't work.
2436 set X `ls -t "$srcdir/configure" conftest.file`
2437 fi
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447 fi
2448 if test "$2" = conftest.file || test $am_try -eq 2; then
2449 break
2450 fi
2451 # Just in case.
2452 sleep 1
2453 am_has_slept=yes
2454 done
2455 test "$2" = conftest.file
2456 )
2457 then
2458 # Ok.
2459 :
2460 else
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2468 am_sleep_pid=
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470 ( sleep 1 ) &
2471 am_sleep_pid=$!
2472 fi
2473
2474 rm -f conftest.file
2475
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486 # Expand $ac_aux_dir to an absolute path.
2487 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2488
2489 if test x"${MISSING+set}" != xset; then
2490 case $am_aux_dir in
2491 *\ * | *\ *)
2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493 *)
2494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495 esac
2496 fi
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --is-lightweight"; then
2499 am_missing_run="$MISSING "
2500 else
2501 am_missing_run=
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504 fi
2505
2506 if test x"${install_sh+set}" != xset; then
2507 case $am_aux_dir in
2508 *\ * | *\ *)
2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510 *)
2511 install_sh="\${SHELL} $am_aux_dir/install-sh"
2512 esac
2513 fi
2514
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip". However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2552 else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$ac_cv_prog_STRIP"; then
2560 ac_ct_STRIP=$STRIP
2561 # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$ac_ct_STRIP"; then
2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_STRIP="strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597 if test "x$ac_ct_STRIP" = x; then
2598 STRIP=":"
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606 STRIP=$ac_ct_STRIP
2607 fi
2608 else
2609 STRIP="$ac_cv_prog_STRIP"
2610 fi
2611
2612 fi
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618 if ${ac_cv_path_mkdir+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_prog in mkdir gmkdir; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630 'mkdir (GNU coreutils) '* | \
2631 'mkdir (coreutils) '* | \
2632 'mkdir (fileutils) '4.1*)
2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634 break 3;;
2635 esac
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642
2643 test -d ./--version && rmdir ./--version
2644 if test "${ac_cv_path_mkdir+set}" = set; then
2645 MKDIR_P="$ac_cv_path_mkdir -p"
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for MKDIR_P within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 MKDIR_P="$ac_install_sh -d"
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2656
2657 for ac_prog in gawk mawk nawk awk
2658 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 AWK=$ac_cv_prog_AWK
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 test -n "$AWK" && break
2697 done
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701 set x ${MAKE-make}
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat >conftest.make <<\_ACEOF
2707 SHELL = /bin/sh
2708 all:
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2710 _ACEOF
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713 *@@@%%%=?*=@@@%%%*)
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2715 *)
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2717 esac
2718 rm -f conftest.make
2719 fi
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 SET_MAKE=
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2728 fi
2729
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2733 am__leading_dot=.
2734 else
2735 am__leading_dot=_
2736 fi
2737 rmdir .tst 2>/dev/null
2738
2739 # Check whether --enable-silent-rules was given.
2740 if test "${enable_silent_rules+set}" = set; then :
2741 enableval=$enable_silent_rules;
2742 fi
2743
2744 case $enable_silent_rules in # (((
2745 yes) AM_DEFAULT_VERBOSITY=0;;
2746 no) AM_DEFAULT_VERBOSITY=1;;
2747 *) AM_DEFAULT_VERBOSITY=1;;
2748 esac
2749 am_make=${MAKE-make}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752 if ${am_cv_make_support_nested_variables+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if $as_echo 'TRUE=$(BAR$(V))
2756 BAR0=false
2757 BAR1=true
2758 V=1
2759 am__doit:
2760 @$(TRUE)
2761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762 am_cv_make_support_nested_variables=yes
2763 else
2764 am_cv_make_support_nested_variables=no
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2769 if test $am_cv_make_support_nested_variables = yes; then
2770 AM_V='$(V)'
2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2772 else
2773 AM_V=$AM_DEFAULT_VERBOSITY
2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775 fi
2776 AM_BACKSLASH='\'
2777
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785 fi
2786 fi
2787
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2792 else
2793 CYGPATH_W=echo
2794 fi
2795 fi
2796
2797
2798 # Define the identity of the package.
2799 PACKAGE='liblock'
2800 VERSION='0.60'
2801
2802
2803 # Some tools Automake needs.
2804
2805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2806
2807
2808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2809
2810
2811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2812
2813
2814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2815
2816
2817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2818
2819 # For better backward compatibility. To be removed once Automake 1.9.x
2820 # dies out for good. For more background, see:
2821 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2822 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2823 mkdir_p='$(MKDIR_P)'
2824
2825 # We need awk for the "check" target (and possibly the TAP driver). The
2826 # system "awk" is bad on some platforms.
2827 # Always define AMTAR for backward compatibility. Yes, it's still used
2828 # in the wild :-( We should find a proper way to deprecate it ...
2829 AMTAR='$${TAR-tar}'
2830
2831
2832 # We'll loop over all known methods to create a tar archive until one works.
2833 _am_tools='gnutar pax cpio none'
2834
2835 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2836
2837
2838
2839
2840
2841
2842 # POSIX will say in a future version that running "rm -f" with no argument
2843 # is OK; and we want to be able to make that assumption in our Makefile
2844 # recipes. So use an aggressive probe to check that the usage we want is
2845 # actually supported "in the wild" to an acceptable degree.
2846 # See automake bug#10828.
2847 # To make any issue more visible, cause the running configure to be aborted
2848 # by default if the 'rm' program in use doesn't match our expectations; the
2849 # user can still override this though.
2850 if rm -f && rm -fr && rm -rf; then : OK; else
2851 cat >&2 <<'END'
2852 Oops!
2853
2854 Your 'rm' program seems unable to run without file operands specified
2855 on the command line, even when the '-f' option is present. This is contrary
2856 to the behaviour of most rm programs out there, and not conforming with
2857 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2858
2859 Please tell bug-automake@gnu.org about your system, including the value
2860 of your $PATH and any error possibly output before this message. This
2861 can help us improve future automake versions.
2862
2863 END
2864 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2865 echo 'Configuration will proceed anyway, since you have set the' >&2
2866 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2867 echo >&2
2868 else
2869 cat >&2 <<'END'
2870 Aborting the configuration process, to ensure you take notice of the issue.
2871
2872 You can download and install GNU coreutils to get an 'rm' implementation
2873 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2874
2875 If you want to complete the configuration process using your problematic
2876 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2877 to "yes", and re-run configure.
2878
2879 END
2880 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2881 fi
2882 fi
2883
2884
2885 CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
2886
2887 for ac_prog in gawk mawk nawk awk
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AWK+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 AWK=$ac_cv_prog_AWK
2917 if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919 $as_echo "$AWK" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 test -n "$AWK" && break
2927 done
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 fi
2973 if test -z "$ac_cv_prog_CC"; then
2974 ac_ct_CC=$CC
2975 # Extract the first word of "gcc", so it can be a program name with args.
2976 set dummy gcc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_CC="gcc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003 if test -n "$ac_ct_CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005 $as_echo "$ac_ct_CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011 if test "x$ac_ct_CC" = x; then
3012 CC=""
3013 else
3014 case $cross_compiling:$ac_tool_warned in
3015 yes:)
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018 ac_tool_warned=yes ;;
3019 esac
3020 CC=$ac_ct_CC
3021 fi
3022 else
3023 CC="$ac_cv_prog_CC"
3024 fi
3025
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}cc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="${ac_tool_prefix}cc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 fi
3067 if test -z "$CC"; then
3068 # Extract the first word of "cc", so it can be a program name with args.
3069 set dummy cc; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_CC+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 else
3078 ac_prog_rejected=no
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087 ac_prog_rejected=yes
3088 continue
3089 fi
3090 ac_cv_prog_CC="cc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 if test $ac_prog_rejected = yes; then
3099 # We found a bogon in the path, so make sure we never use it.
3100 set dummy $ac_cv_prog_CC
3101 shift
3102 if test $# != 0; then
3103 # We chose a different compiler from the bogus one.
3104 # However, it has the same basename, so the bogon will be chosen
3105 # first if we set CC to just the basename; use the full file name.
3106 shift
3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108 fi
3109 fi
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 fi
3123 if test -z "$CC"; then
3124 if test -n "$ac_tool_prefix"; then
3125 for ac_prog in cl.exe
3126 do
3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 test -n "$CC" && break
3165 done
3166 fi
3167 if test -z "$CC"; then
3168 ac_ct_CC=$CC
3169 for ac_prog in cl.exe
3170 do
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_CC"; then
3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_CC="$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201 $as_echo "$ac_ct_CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 test -n "$ac_ct_CC" && break
3209 done
3210
3211 if test "x$ac_ct_CC" = x; then
3212 CC=""
3213 else
3214 case $cross_compiling:$ac_tool_warned in
3215 yes:)
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218 ac_tool_warned=yes ;;
3219 esac
3220 CC=$ac_ct_CC
3221 fi
3222 fi
3223
3224 fi
3225
3226
3227 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error $? "no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details" "$LINENO" 5; }
3231
3232 # Provide some information about the compiler.
3233 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3234 set X $ac_compile
3235 ac_compiler=$2
3236 for ac_option in --version -v -V -qversion; do
3237 { { ac_try="$ac_compiler $ac_option >&5"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3245 ac_status=$?
3246 if test -s conftest.err; then
3247 sed '10a\
3248 ... rest of stderr output deleted ...
3249 10q' conftest.err >conftest.er1
3250 cat conftest.er1 >&5
3251 fi
3252 rm -f conftest.er1 conftest.err
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255 done
3256
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 ac_clean_files_save=$ac_clean_files
3269 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3270 # Try to create an executable without -o first, disregard a.out.
3271 # It will help us diagnose broken compilers, and finding out an intuition
3272 # of exeext.
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274 $as_echo_n "checking whether the C compiler works... " >&6; }
3275 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276
3277 # The possible output files:
3278 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279
3280 ac_rmfiles=
3281 for ac_file in $ac_files
3282 do
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286 esac
3287 done
3288 rm -f $ac_rmfiles
3289
3290 if { { ac_try="$ac_link_default"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link_default") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3304 # so that the user can short-circuit this test for compilers unknown to
3305 # Autoconf.
3306 for ac_file in $ac_files ''
3307 do
3308 test -f "$ac_file" || continue
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311 ;;
3312 [ab].out )
3313 # We found the default executable, but exeext='' is most
3314 # certainly right.
3315 break;;
3316 *.* )
3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318 then :; else
3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 fi
3321 # We set ac_cv_exeext here because the later test for it is not
3322 # safe: cross compilers may not add the suffix if given an `-o'
3323 # argument, so we may need to know it at that point already.
3324 # Even if this section looks crufty: it has the advantage of
3325 # actually working.
3326 break;;
3327 * )
3328 break;;
3329 esac
3330 done
3331 test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333 else
3334 ac_file=''
3335 fi
3336 if test -z "$ac_file"; then :
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error 77 "C compiler cannot create executables
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348 $as_echo "yes" >&6; }
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3351 $as_echo_n "checking for C compiler default output file name... " >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3353 $as_echo "$ac_file" >&6; }
3354 ac_exeext=$ac_cv_exeext
3355
3356 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3359 $as_echo_n "checking for suffix of executables... " >&6; }
3360 if { { ac_try="$ac_link"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
3371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3373 # work properly (i.e., refer to `conftest.exe'), while it won't with
3374 # `rm'.
3375 for ac_file in conftest.exe conftest conftest.*; do
3376 test -f "$ac_file" || continue
3377 case $ac_file in
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380 break;;
3381 * ) break;;
3382 esac
3383 done
3384 else
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3388 See \`config.log' for more details" "$LINENO" 5; }
3389 fi
3390 rm -f conftest conftest$ac_cv_exeext
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3392 $as_echo "$ac_cv_exeext" >&6; }
3393
3394 rm -f conftest.$ac_ext
3395 EXEEXT=$ac_cv_exeext
3396 ac_exeext=$EXEEXT
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399 #include <stdio.h>
3400 int
3401 main ()
3402 {
3403 FILE *f = fopen ("conftest.out", "w");
3404 return ferror (f) || fclose (f) != 0;
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 ac_clean_files="$ac_clean_files conftest.out"
3411 # Check that the compiler produces executables we can run. If not, either
3412 # the compiler is broken, or we cross compile.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414 $as_echo_n "checking whether we are cross compiling... " >&6; }
3415 if test "$cross_compiling" != yes; then
3416 { { ac_try="$ac_link"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }
3427 if { ac_try='./conftest$ac_cv_exeext'
3428 { { case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_try") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; }; then
3438 cross_compiling=no
3439 else
3440 if test "$cross_compiling" = maybe; then
3441 cross_compiling=yes
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot run C compiled programs.
3446 If you meant to cross compile, use \`--host'.
3447 See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449 fi
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3453
3454 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3455 ac_clean_files=$ac_clean_files_save
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3457 $as_echo_n "checking for suffix of object files... " >&6; }
3458 if ${ac_cv_objext+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.o conftest.obj
3473 if { { ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compile") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 for ac_file in conftest.o conftest.obj conftest.*; do
3485 test -f "$ac_file" || continue;
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489 break;;
3490 esac
3491 done
3492 else
3493 $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $? "cannot compute suffix of object files: cannot compile
3499 See \`config.log' for more details" "$LINENO" 5; }
3500 fi
3501 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3504 $as_echo "$ac_cv_objext" >&6; }
3505 OBJEXT=$ac_cv_objext
3506 ac_objext=$OBJEXT
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3508 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3509 if ${ac_cv_c_compiler_gnu+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518 #ifndef __GNUC__
3519 choke me
3520 #endif
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_compiler_gnu=yes
3528 else
3529 ac_compiler_gnu=no
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3536 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537 if test $ac_compiler_gnu = yes; then
3538 GCC=yes
3539 else
3540 GCC=
3541 fi
3542 ac_test_CFLAGS=${CFLAGS+set}
3543 ac_save_CFLAGS=$CFLAGS
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3545 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3546 if ${ac_cv_prog_cc_g+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 ac_save_c_werror_flag=$ac_c_werror_flag
3550 ac_c_werror_flag=yes
3551 ac_cv_prog_cc_g=no
3552 CFLAGS="-g"
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_g=yes
3566 else
3567 CFLAGS=""
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3570
3571 int
3572 main ()
3573 {
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580
3581 else
3582 ac_c_werror_flag=$ac_save_c_werror_flag
3583 CFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_g=yes
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3606 $as_echo "$ac_cv_prog_cc_g" >&6; }
3607 if test "$ac_test_CFLAGS" = set; then
3608 CFLAGS=$ac_save_CFLAGS
3609 elif test $ac_cv_prog_cc_g = yes; then
3610 if test "$GCC" = yes; then
3611 CFLAGS="-g -O2"
3612 else
3613 CFLAGS="-g"
3614 fi
3615 else
3616 if test "$GCC" = yes; then
3617 CFLAGS="-O2"
3618 else
3619 CFLAGS=
3620 fi
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3623 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3624 if ${ac_cv_prog_cc_c89+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 ac_cv_prog_cc_c89=no
3628 ac_save_CC=$CC
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631 #include <stdarg.h>
3632 #include <stdio.h>
3633 struct stat;
3634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3635 struct buf { int x; };
3636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3637 static char *e (p, i)
3638 char **p;
3639 int i;
3640 {
3641 return p[i];
3642 }
3643 static char *f (char * (*g) (char **, int), char **p, ...)
3644 {
3645 char *s;
3646 va_list v;
3647 va_start (v,p);
3648 s = g (p, va_arg (v,int));
3649 va_end (v);
3650 return s;
3651 }
3652
3653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3654 function prototypes and stuff, but not '\xHH' hex character constants.
3655 These don't provoke an error unfortunately, instead are silently treated
3656 as 'x'. The following induces an error, until -std is added to get
3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3658 array size at least. It's necessary to write '\x00'==0 to get something
3659 that's true only with -std. */
3660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3661
3662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3663 inside strings and character constants. */
3664 #define FOO(x) 'x'
3665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3666
3667 int test (int i, double x);
3668 struct s1 {int (*f) (int a);};
3669 struct s2 {int (*f) (double a);};
3670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3671 int argc;
3672 char **argv;
3673 int
3674 main ()
3675 {
3676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683 do
3684 CC="$ac_save_CC $ac_arg"
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_c89=$ac_arg
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext
3689 test "x$ac_cv_prog_cc_c89" != "xno" && break
3690 done
3691 rm -f conftest.$ac_ext
3692 CC=$ac_save_CC
3693
3694 fi
3695 # AC_CACHE_VAL
3696 case "x$ac_cv_prog_cc_c89" in
3697 x)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3699 $as_echo "none needed" >&6; } ;;
3700 xno)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3702 $as_echo "unsupported" >&6; } ;;
3703 *)
3704 CC="$CC $ac_cv_prog_cc_c89"
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3706 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3707 esac
3708 if test "x$ac_cv_prog_cc_c89" != xno; then :
3709
3710 fi
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3724 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3725 if ${am_cv_prog_cc_c_o+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730
3731 int
3732 main ()
3733 {
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 # Make sure it works both with $CC and with simple cc.
3740 # Following AC_PROG_CC_C_O, we do the test twice because some
3741 # compilers refuse to overwrite an existing .o file with -o,
3742 # though they will create one.
3743 am_cv_prog_cc_c_o=yes
3744 for am_i in 1 2; do
3745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } \
3750 && test -f conftest2.$ac_objext; then
3751 : OK
3752 else
3753 am_cv_prog_cc_c_o=no
3754 break
3755 fi
3756 done
3757 rm -f core conftest*
3758 unset am_i
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3761 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3762 if test "$am_cv_prog_cc_c_o" != yes; then
3763 # Losing compiler, so override with the script.
3764 # FIXME: It is wrong to rewrite CC.
3765 # But if we don't then we get into trouble of one sort or another.
3766 # A longer-term fix would be to have automake use am__CC in this case,
3767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3768 CC="$am_aux_dir/compile $CC"
3769 fi
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776 DEPDIR="${am__leading_dot}deps"
3777
3778 ac_config_commands="$ac_config_commands depfiles"
3779
3780
3781 am_make=${MAKE-make}
3782 cat > confinc << 'END'
3783 am__doit:
3784 @echo this is the am__doit target
3785 .PHONY: am__doit
3786 END
3787 # If we don't find an include directive, just comment out the code.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3789 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3790 am__include="#"
3791 am__quote=
3792 _am_result=none
3793 # First try GNU make style include.
3794 echo "include confinc" > confmf
3795 # Ignore all kinds of additional output from 'make'.
3796 case `$am_make -s -f confmf 2> /dev/null` in #(
3797 *the\ am__doit\ target*)
3798 am__include=include
3799 am__quote=
3800 _am_result=GNU
3801 ;;
3802 esac
3803 # Now try BSD make style include.
3804 if test "$am__include" = "#"; then
3805 echo '.include "confinc"' > confmf
3806 case `$am_make -s -f confmf 2> /dev/null` in #(
3807 *the\ am__doit\ target*)
3808 am__include=.include
3809 am__quote="\""
3810 _am_result=BSD
3811 ;;
3812 esac
3813 fi
3814
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3817 $as_echo "$_am_result" >&6; }
3818 rm -f confinc confmf
3819
3820 # Check whether --enable-dependency-tracking was given.
3821 if test "${enable_dependency_tracking+set}" = set; then :
3822 enableval=$enable_dependency_tracking;
3823 fi
3824
3825 if test "x$enable_dependency_tracking" != xno; then
3826 am_depcomp="$ac_aux_dir/depcomp"
3827 AMDEPBACKSLASH='\'
3828 am__nodep='_no'
3829 fi
3830 if test "x$enable_dependency_tracking" != xno; then
3831 AMDEP_TRUE=
3832 AMDEP_FALSE='#'
3833 else
3834 AMDEP_TRUE='#'
3835 AMDEP_FALSE=
3836 fi
3837
3838
3839
3840 depcc="$CC" am_compiler_list=
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named 'D' -- because '-MD' means "put the output
3852 # in D".
3853 rm -rf conftest.dir
3854 mkdir conftest.dir
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3858 cd conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3864 # directory.
3865 mkdir sub
3866
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870 fi
3871 am__universal=false
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874 esac
3875
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3880 #
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3884 : > sub/conftest.c
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3888 # Solaris 10 /bin/sh.
3889 echo '/* dummy */' > sub/conftst$i.h
3890 done
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle '-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs.
3897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
3899 case $depmode in
3900 gcc)
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3903 ;;
3904 nosideeffect)
3905 # After this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested.
3907 if test "x$enable_dependency_tracking" = xyes; then
3908 continue
3909 else
3910 break
3911 fi
3912 ;;
3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914 # This compiler won't grok '-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3918 am__minus_obj=
3919 ;;
3920 none) break ;;
3921 esac
3922 if depmode=$depmode \
3923 source=sub/conftest.c object=$am__obj \
3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926 >/dev/null 2>conftest.err &&
3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type=$depmode
3941 break
3942 fi
3943 fi
3944 done
3945
3946 cd ..
3947 rm -rf conftest.dir
3948 else
3949 am_cv_CC_dependencies_compiler_type=none
3950 fi
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957 if
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960 am__fastdepCC_TRUE=
3961 am__fastdepCC_FALSE='#'
3962 else
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3965 fi
3966
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3970 $as_echo_n "checking whether ln -s works... " >&6; }
3971 LN_S=$as_ln_s
3972 if test "$LN_S" = "ln -s"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 $as_echo "yes" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3977 $as_echo "no, using $LN_S" >&6; }
3978 fi
3979
3980 case `pwd` in
3981 *\ * | *\ *)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3983 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3984 esac
3985
3986
3987
3988 macro_version='2.4.6'
3989 macro_revision='2.4.6'
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 ltmain=$ac_aux_dir/ltmain.sh
4004
4005 # Make sure we can run config.sub.
4006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4007 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4010 $as_echo_n "checking build system type... " >&6; }
4011 if ${ac_cv_build+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 ac_build_alias=$build_alias
4015 test "x$ac_build_alias" = x &&
4016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4017 test "x$ac_build_alias" = x &&
4018 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4020 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4021
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4024 $as_echo "$ac_cv_build" >&6; }
4025 case $ac_cv_build in
4026 *-*-*) ;;
4027 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4028 esac
4029 build=$ac_cv_build
4030 ac_save_IFS=$IFS; IFS='-'
4031 set x $ac_cv_build
4032 shift
4033 build_cpu=$1
4034 build_vendor=$2
4035 shift; shift
4036 # Remember, the first character of IFS is used to create $*,
4037 # except with old shells:
4038 build_os=$*
4039 IFS=$ac_save_IFS
4040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4041
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4044 $as_echo_n "checking host system type... " >&6; }
4045 if ${ac_cv_host+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test "x$host_alias" = x; then
4049 ac_cv_host=$ac_cv_build
4050 else
4051 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4052 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4053 fi
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4057 $as_echo "$ac_cv_host" >&6; }
4058 case $ac_cv_host in
4059 *-*-*) ;;
4060 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4061 esac
4062 host=$ac_cv_host
4063 ac_save_IFS=$IFS; IFS='-'
4064 set x $ac_cv_host
4065 shift
4066 host_cpu=$1
4067 host_vendor=$2
4068 shift; shift
4069 # Remember, the first character of IFS is used to create $*,
4070 # except with old shells:
4071 host_os=$*
4072 IFS=$ac_save_IFS
4073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4074
4075
4076 # Backslashify metacharacters that are still active within
4077 # double-quoted strings.
4078 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4079
4080 # Same as above, but do not quote variable references.
4081 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4082
4083 # Sed substitution to delay expansion of an escaped shell variable in a
4084 # double_quote_subst'ed string.
4085 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4086
4087 # Sed substitution to delay expansion of an escaped single quote.
4088 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4089
4090 # Sed substitution to avoid accidental globbing in evaled expressions
4091 no_glob_subst='s/\*/\\\*/g'
4092
4093 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4094 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4095 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4096
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4098 $as_echo_n "checking how to print strings... " >&6; }
4099 # Test print first, because it will be a builtin if present.
4100 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4101 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4102 ECHO='print -r --'
4103 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4104 ECHO='printf %s\n'
4105 else
4106 # Use this function as a fallback that always works.
4107 func_fallback_echo ()
4108 {
4109 eval 'cat <<_LTECHO_EOF
4110 $1
4111 _LTECHO_EOF'
4112 }
4113 ECHO='func_fallback_echo'
4114 fi
4115
4116 # func_echo_all arg...
4117 # Invoke $ECHO with all args, space-separated.
4118 func_echo_all ()
4119 {
4120 $ECHO ""
4121 }
4122
4123 case $ECHO in
4124 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4125 $as_echo "printf" >&6; } ;;
4126 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4127 $as_echo "print -r" >&6; } ;;
4128 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4129 $as_echo "cat" >&6; } ;;
4130 esac
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4146 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4147 if ${ac_cv_path_SED+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4151 for ac_i in 1 2 3 4 5 6 7; do
4152 ac_script="$ac_script$as_nl$ac_script"
4153 done
4154 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4155 { ac_script=; unset ac_script;}
4156 if test -z "$SED"; then
4157 ac_path_SED_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in sed gsed; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4167 as_fn_executable_p "$ac_path_SED" || continue
4168 # Check for GNU ac_path_SED and select it if it is found.
4169 # Check for GNU $ac_path_SED
4170 case `"$ac_path_SED" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4173 *)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo '' >> "conftest.nl"
4182 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_SED_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_SED="$ac_path_SED"
4188 ac_path_SED_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196 $ac_path_SED_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_SED"; then
4202 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4203 fi
4204 else
4205 ac_cv_path_SED=$SED
4206 fi
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4210 $as_echo "$ac_cv_path_SED" >&6; }
4211 SED="$ac_cv_path_SED"
4212 rm -f conftest.sed
4213
4214 test -z "$SED" && SED=sed
4215 Xsed="$SED -e 1s/^X//"
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229 if ${ac_cv_path_GREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -z "$GREP"; then
4233 ac_path_GREP_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in grep ggrep; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243 as_fn_executable_p "$ac_path_GREP" || continue
4244 # Check for GNU ac_path_GREP and select it if it is found.
4245 # Check for GNU $ac_path_GREP
4246 case `"$ac_path_GREP" --version 2>&1` in
4247 *GNU*)
4248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249 *)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo 'GREP' >> "conftest.nl"
4258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_GREP="$ac_path_GREP"
4264 ac_path_GREP_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272 $ac_path_GREP_found && break 3
4273 done
4274 done
4275 done
4276 IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_GREP"; then
4278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279 fi
4280 else
4281 ac_cv_path_GREP=$GREP
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286 $as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291 $as_echo_n "checking for egrep... " >&6; }
4292 if ${ac_cv_path_EGREP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296 then ac_cv_path_EGREP="$GREP -E"
4297 else
4298 if test -z "$EGREP"; then
4299 ac_path_EGREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303 do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in egrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309 as_fn_executable_p "$ac_path_EGREP" || continue
4310 # Check for GNU ac_path_EGREP and select it if it is found.
4311 # Check for GNU $ac_path_EGREP
4312 case `"$ac_path_EGREP" --version 2>&1` in
4313 *GNU*)
4314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315 *)
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'EGREP' >> "conftest.nl"
4324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_EGREP="$ac_path_EGREP"
4330 ac_path_EGREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4337
4338 $ac_path_EGREP_found && break 3
4339 done
4340 done
4341 done
4342 IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_EGREP"; then
4344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 fi
4346 else
4347 ac_cv_path_EGREP=$EGREP
4348 fi
4349
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353 $as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4358 $as_echo_n "checking for fgrep... " >&6; }
4359 if ${ac_cv_path_FGREP+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4363 then ac_cv_path_FGREP="$GREP -F"
4364 else
4365 if test -z "$FGREP"; then
4366 ac_path_FGREP_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in fgrep; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4376 as_fn_executable_p "$ac_path_FGREP" || continue
4377 # Check for GNU ac_path_FGREP and select it if it is found.
4378 # Check for GNU $ac_path_FGREP
4379 case `"$ac_path_FGREP" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4382 *)
4383 ac_count=0
4384 $as_echo_n 0123456789 >"conftest.in"
4385 while :
4386 do
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 $as_echo 'FGREP' >> "conftest.nl"
4391 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 as_fn_arith $ac_count + 1 && ac_count=$as_val
4394 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_FGREP="$ac_path_FGREP"
4397 ac_path_FGREP_max=$ac_count
4398 fi
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4404
4405 $ac_path_FGREP_found && break 3
4406 done
4407 done
4408 done
4409 IFS=$as_save_IFS
4410 if test -z "$ac_cv_path_FGREP"; then
4411 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412 fi
4413 else
4414 ac_cv_path_FGREP=$FGREP
4415 fi
4416
4417 fi
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4420 $as_echo "$ac_cv_path_FGREP" >&6; }
4421 FGREP="$ac_cv_path_FGREP"
4422
4423
4424 test -z "$GREP" && GREP=grep
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444 # Check whether --with-gnu-ld was given.
4445 if test "${with_gnu_ld+set}" = set; then :
4446 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4447 else
4448 with_gnu_ld=no
4449 fi
4450
4451 ac_prog=ld
4452 if test yes = "$GCC"; then
4453 # Check if gcc -print-prog-name=ld gives a path.
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4455 $as_echo_n "checking for ld used by $CC... " >&6; }
4456 case $host in
4457 *-*-mingw*)
4458 # gcc leaves a trailing carriage return, which upsets mingw
4459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4460 *)
4461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4462 esac
4463 case $ac_prog in
4464 # Accept absolute paths.
4465 [\\/]* | ?:[\\/]*)
4466 re_direlt='/[^/][^/]*/\.\./'
4467 # Canonicalize the pathname of ld
4468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4471 done
4472 test -z "$LD" && LD=$ac_prog
4473 ;;
4474 "")
4475 # If it fails, then pretend we aren't using GCC.
4476 ac_prog=ld
4477 ;;
4478 *)
4479 # If it is relative, then search for the first ld in PATH.
4480 with_gnu_ld=unknown
4481 ;;
4482 esac
4483 elif test yes = "$with_gnu_ld"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4485 $as_echo_n "checking for GNU ld... " >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4488 $as_echo_n "checking for non-GNU ld... " >&6; }
4489 fi
4490 if ${lt_cv_path_LD+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -z "$LD"; then
4494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4495 for ac_dir in $PATH; do
4496 IFS=$lt_save_ifs
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4499 lt_cv_path_LD=$ac_dir/$ac_prog
4500 # Check to see if the program is GNU ld. I'd rather use --version,
4501 # but apparently some variants of GNU ld only accept -v.
4502 # Break only if it was the GNU/non-GNU ld that we prefer.
4503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4504 *GNU* | *'with BFD'*)
4505 test no != "$with_gnu_ld" && break
4506 ;;
4507 *)
4508 test yes != "$with_gnu_ld" && break
4509 ;;
4510 esac
4511 fi
4512 done
4513 IFS=$lt_save_ifs
4514 else
4515 lt_cv_path_LD=$LD # Let the user override the test with a path.
4516 fi
4517 fi
4518
4519 LD=$lt_cv_path_LD
4520 if test -n "$LD"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4522 $as_echo "$LD" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4529 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4530 if ${lt_cv_prog_gnu_ld+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4534 case `$LD -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 lt_cv_prog_gnu_ld=yes
4537 ;;
4538 *)
4539 lt_cv_prog_gnu_ld=no
4540 ;;
4541 esac
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4544 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4545 with_gnu_ld=$lt_cv_prog_gnu_ld
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4556 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4557 if ${lt_cv_path_NM+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$NM"; then
4561 # Let the user override the test.
4562 lt_cv_path_NM=$NM
4563 else
4564 lt_nm_to_check=${ac_tool_prefix}nm
4565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4566 lt_nm_to_check="$lt_nm_to_check nm"
4567 fi
4568 for lt_tmp_nm in $lt_nm_to_check; do
4569 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4570 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4571 IFS=$lt_save_ifs
4572 test -z "$ac_dir" && ac_dir=.
4573 tmp_nm=$ac_dir/$lt_tmp_nm
4574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4575 # Check to see if the nm accepts a BSD-compat flag.
4576 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4577 # nm: unknown option "B" ignored
4578 # Tru64's nm complains that /dev/null is an invalid object file
4579 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4580 case $build_os in
4581 mingw*) lt_bad_file=conftest.nm/nofile ;;
4582 *) lt_bad_file=/dev/null ;;
4583 esac
4584 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4585 *$lt_bad_file* | *'Invalid file or object type'*)
4586 lt_cv_path_NM="$tmp_nm -B"
4587 break 2
4588 ;;
4589 *)
4590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4591 */dev/null*)
4592 lt_cv_path_NM="$tmp_nm -p"
4593 break 2
4594 ;;
4595 *)
4596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4597 continue # so that we can try to find one that supports BSD flags
4598 ;;
4599 esac
4600 ;;
4601 esac
4602 fi
4603 done
4604 IFS=$lt_save_ifs
4605 done
4606 : ${lt_cv_path_NM=no}
4607 fi
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4610 $as_echo "$lt_cv_path_NM" >&6; }
4611 if test no != "$lt_cv_path_NM"; then
4612 NM=$lt_cv_path_NM
4613 else
4614 # Didn't find any BSD compatible name lister, look for dumpbin.
4615 if test -n "$DUMPBIN"; then :
4616 # Let the user override the test.
4617 else
4618 if test -n "$ac_tool_prefix"; then
4619 for ac_prog in dumpbin "link -dump"
4620 do
4621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_DUMPBIN+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$DUMPBIN"; then
4629 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 DUMPBIN=$ac_cv_prog_DUMPBIN
4649 if test -n "$DUMPBIN"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4651 $as_echo "$DUMPBIN" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658 test -n "$DUMPBIN" && break
4659 done
4660 fi
4661 if test -z "$DUMPBIN"; then
4662 ac_ct_DUMPBIN=$DUMPBIN
4663 for ac_prog in dumpbin "link -dump"
4664 do
4665 # Extract the first word of "$ac_prog", so it can be a program name with args.
4666 set dummy $ac_prog; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$ac_ct_DUMPBIN"; then
4673 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4693 if test -n "$ac_ct_DUMPBIN"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4695 $as_echo "$ac_ct_DUMPBIN" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701
4702 test -n "$ac_ct_DUMPBIN" && break
4703 done
4704
4705 if test "x$ac_ct_DUMPBIN" = x; then
4706 DUMPBIN=":"
4707 else
4708 case $cross_compiling:$ac_tool_warned in
4709 yes:)
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4712 ac_tool_warned=yes ;;
4713 esac
4714 DUMPBIN=$ac_ct_DUMPBIN
4715 fi
4716 fi
4717
4718 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4719 *COFF*)
4720 DUMPBIN="$DUMPBIN -symbols -headers"
4721 ;;
4722 *)
4723 DUMPBIN=:
4724 ;;
4725 esac
4726 fi
4727
4728 if test : != "$DUMPBIN"; then
4729 NM=$DUMPBIN
4730 fi
4731 fi
4732 test -z "$NM" && NM=nm
4733
4734
4735
4736
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4740 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4741 if ${lt_cv_nm_interface+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 lt_cv_nm_interface="BSD nm"
4745 echo "int some_variable = 0;" > conftest.$ac_ext
4746 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4747 (eval "$ac_compile" 2>conftest.err)
4748 cat conftest.err >&5
4749 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4750 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4751 cat conftest.err >&5
4752 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4753 cat conftest.out >&5
4754 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4755 lt_cv_nm_interface="MS dumpbin"
4756 fi
4757 rm -f conftest*
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4760 $as_echo "$lt_cv_nm_interface" >&6; }
4761
4762 # find the maximum length of command line arguments
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4764 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4765 if ${lt_cv_sys_max_cmd_len+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 i=0
4769 teststring=ABCD
4770
4771 case $build_os in
4772 msdosdjgpp*)
4773 # On DJGPP, this test can blow up pretty badly due to problems in libc
4774 # (any single argument exceeding 2000 bytes causes a buffer overrun
4775 # during glob expansion). Even if it were fixed, the result of this
4776 # check would be larger than it should be.
4777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4778 ;;
4779
4780 gnu*)
4781 # Under GNU Hurd, this test is not required because there is
4782 # no limit to the length of command line arguments.
4783 # Libtool will interpret -1 as no limit whatsoever
4784 lt_cv_sys_max_cmd_len=-1;
4785 ;;
4786
4787 cygwin* | mingw* | cegcc*)
4788 # On Win9x/ME, this test blows up -- it succeeds, but takes
4789 # about 5 minutes as the teststring grows exponentially.
4790 # Worse, since 9x/ME are not pre-emptively multitasking,
4791 # you end up with a "frozen" computer, even though with patience
4792 # the test eventually succeeds (with a max line length of 256k).
4793 # Instead, let's just punt: use the minimum linelength reported by
4794 # all of the supported platforms: 8192 (on NT/2K/XP).
4795 lt_cv_sys_max_cmd_len=8192;
4796 ;;
4797
4798 mint*)
4799 # On MiNT this can take a long time and run out of memory.
4800 lt_cv_sys_max_cmd_len=8192;
4801 ;;
4802
4803 amigaos*)
4804 # On AmigaOS with pdksh, this test takes hours, literally.
4805 # So we just punt and use a minimum line length of 8192.
4806 lt_cv_sys_max_cmd_len=8192;
4807 ;;
4808
4809 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4810 # This has been around since 386BSD, at least. Likely further.
4811 if test -x /sbin/sysctl; then
4812 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4813 elif test -x /usr/sbin/sysctl; then
4814 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4815 else
4816 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4817 fi
4818 # And add a safety zone
4819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4821 ;;
4822
4823 interix*)
4824 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4825 lt_cv_sys_max_cmd_len=196608
4826 ;;
4827
4828 os2*)
4829 # The test takes a long time on OS/2.
4830 lt_cv_sys_max_cmd_len=8192
4831 ;;
4832
4833 osf*)
4834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4836 # nice to cause kernel panics so lets avoid the loop below.
4837 # First set a reasonable default.
4838 lt_cv_sys_max_cmd_len=16384
4839 #
4840 if test -x /sbin/sysconfig; then
4841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4843 esac
4844 fi
4845 ;;
4846 sco3.2v5*)
4847 lt_cv_sys_max_cmd_len=102400
4848 ;;
4849 sysv5* | sco5v6* | sysv4.2uw2*)
4850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4851 if test -n "$kargmax"; then
4852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4853 else
4854 lt_cv_sys_max_cmd_len=32768
4855 fi
4856 ;;
4857 *)
4858 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4859 if test -n "$lt_cv_sys_max_cmd_len" && \
4860 test undefined != "$lt_cv_sys_max_cmd_len"; then
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4863 else
4864 # Make teststring a little bigger before we do anything with it.
4865 # a 1K string should be a reasonable start.
4866 for i in 1 2 3 4 5 6 7 8; do
4867 teststring=$teststring$teststring
4868 done
4869 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4870 # If test is not a shell built-in, we'll probably end up computing a
4871 # maximum length that is only half of the actual maximum length, but
4872 # we can't tell.
4873 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4874 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4875 test 17 != "$i" # 1/2 MB should be enough
4876 do
4877 i=`expr $i + 1`
4878 teststring=$teststring$teststring
4879 done
4880 # Only check the string length outside the loop.
4881 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4882 teststring=
4883 # Add a significant safety factor because C++ compilers can tack on
4884 # massive amounts of additional arguments before passing them to the
4885 # linker. It appears as though 1/2 is a usable value.
4886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4887 fi
4888 ;;
4889 esac
4890
4891 fi
4892
4893 if test -n "$lt_cv_sys_max_cmd_len"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4895 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4898 $as_echo "none" >&6; }
4899 fi
4900 max_cmd_len=$lt_cv_sys_max_cmd_len
4901
4902
4903
4904
4905
4906
4907 : ${CP="cp -f"}
4908 : ${MV="mv -f"}
4909 : ${RM="rm -f"}
4910
4911 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4912 lt_unset=unset
4913 else
4914 lt_unset=false
4915 fi
4916
4917
4918
4919
4920
4921 # test EBCDIC or ASCII
4922 case `echo X|tr X '\101'` in
4923 A) # ASCII based system
4924 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4925 lt_SP2NL='tr \040 \012'
4926 lt_NL2SP='tr \015\012 \040\040'
4927 ;;
4928 *) # EBCDIC based system
4929 lt_SP2NL='tr \100 \n'
4930 lt_NL2SP='tr \r\n \100\100'
4931 ;;
4932 esac
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4943 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4944 if ${lt_cv_to_host_file_cmd+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 case $host in
4948 *-*-mingw* )
4949 case $build in
4950 *-*-mingw* ) # actually msys
4951 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4952 ;;
4953 *-*-cygwin* )
4954 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4955 ;;
4956 * ) # otherwise, assume *nix
4957 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4958 ;;
4959 esac
4960 ;;
4961 *-*-cygwin* )
4962 case $build in
4963 *-*-mingw* ) # actually msys
4964 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4965 ;;
4966 *-*-cygwin* )
4967 lt_cv_to_host_file_cmd=func_convert_file_noop
4968 ;;
4969 * ) # otherwise, assume *nix
4970 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4971 ;;
4972 esac
4973 ;;
4974 * ) # unhandled hosts (and "normal" native builds)
4975 lt_cv_to_host_file_cmd=func_convert_file_noop
4976 ;;
4977 esac
4978
4979 fi
4980
4981 to_host_file_cmd=$lt_cv_to_host_file_cmd
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4983 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4990 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4991 if ${lt_cv_to_tool_file_cmd+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 #assume ordinary cross tools, or native build.
4995 lt_cv_to_tool_file_cmd=func_convert_file_noop
4996 case $host in
4997 *-*-mingw* )
4998 case $build in
4999 *-*-mingw* ) # actually msys
5000 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5001 ;;
5002 esac
5003 ;;
5004 esac
5005
5006 fi
5007
5008 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5010 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5011
5012
5013
5014
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5017 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5018 if ${lt_cv_ld_reload_flag+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 lt_cv_ld_reload_flag='-r'
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5024 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5025 reload_flag=$lt_cv_ld_reload_flag
5026 case $reload_flag in
5027 "" | " "*) ;;
5028 *) reload_flag=" $reload_flag" ;;
5029 esac
5030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5031 case $host_os in
5032 cygwin* | mingw* | pw32* | cegcc*)
5033 if test yes != "$GCC"; then
5034 reload_cmds=false
5035 fi
5036 ;;
5037 darwin*)
5038 if test yes = "$GCC"; then
5039 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5040 else
5041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 fi
5043 ;;
5044 esac
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_OBJDUMP+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$OBJDUMP"; then
5063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 OBJDUMP=$ac_cv_prog_OBJDUMP
5083 if test -n "$OBJDUMP"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5085 $as_echo "$OBJDUMP" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091
5092 fi
5093 if test -z "$ac_cv_prog_OBJDUMP"; then
5094 ac_ct_OBJDUMP=$OBJDUMP
5095 # Extract the first word of "objdump", so it can be a program name with args.
5096 set dummy objdump; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$ac_ct_OBJDUMP"; then
5103 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5123 if test -n "$ac_ct_OBJDUMP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5125 $as_echo "$ac_ct_OBJDUMP" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131 if test "x$ac_ct_OBJDUMP" = x; then
5132 OBJDUMP="false"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140 OBJDUMP=$ac_ct_OBJDUMP
5141 fi
5142 else
5143 OBJDUMP="$ac_cv_prog_OBJDUMP"
5144 fi
5145
5146 test -z "$OBJDUMP" && OBJDUMP=objdump
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5157 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5158 if ${lt_cv_deplibs_check_method+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 lt_cv_file_magic_cmd='$MAGIC_CMD'
5162 lt_cv_file_magic_test_file=
5163 lt_cv_deplibs_check_method='unknown'
5164 # Need to set the preceding variable on all platforms that support
5165 # interlibrary dependencies.
5166 # 'none' -- dependencies not supported.
5167 # 'unknown' -- same as none, but documents that we really don't know.
5168 # 'pass_all' -- all dependencies passed with no checks.
5169 # 'test_compile' -- check by making test program.
5170 # 'file_magic [[regex]]' -- check by looking for files in library path
5171 # that responds to the $file_magic_cmd with a given extended regex.
5172 # If you have 'file' or equivalent on your system and you're not sure
5173 # whether 'pass_all' will *always* work, you probably want this one.
5174
5175 case $host_os in
5176 aix[4-9]*)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179
5180 beos*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184 bsdi[45]*)
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5186 lt_cv_file_magic_cmd='/usr/bin/file -L'
5187 lt_cv_file_magic_test_file=/shlib/libc.so
5188 ;;
5189
5190 cygwin*)
5191 # func_win32_libid is a shell function defined in ltmain.sh
5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193 lt_cv_file_magic_cmd='func_win32_libid'
5194 ;;
5195
5196 mingw* | pw32*)
5197 # Base MSYS/MinGW do not provide the 'file' command needed by
5198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5199 # unless we find 'file', for example because we are cross-compiling.
5200 if ( file / ) >/dev/null 2>&1; then
5201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5202 lt_cv_file_magic_cmd='func_win32_libid'
5203 else
5204 # Keep this pattern in sync with the one in func_win32_libid.
5205 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5206 lt_cv_file_magic_cmd='$OBJDUMP -f'
5207 fi
5208 ;;
5209
5210 cegcc*)
5211 # use the weaker test based on 'objdump'. See mingw*.
5212 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5213 lt_cv_file_magic_cmd='$OBJDUMP -f'
5214 ;;
5215
5216 darwin* | rhapsody*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 freebsd* | dragonfly*)
5221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5222 case $host_cpu in
5223 i*86 )
5224 # Not sure whether the presence of OpenBSD here was a mistake.
5225 # Let's accept both of them until this is cleared up.
5226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5229 ;;
5230 esac
5231 else
5232 lt_cv_deplibs_check_method=pass_all
5233 fi
5234 ;;
5235
5236 haiku*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240 hpux10.20* | hpux11*)
5241 lt_cv_file_magic_cmd=/usr/bin/file
5242 case $host_cpu in
5243 ia64*)
5244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5246 ;;
5247 hppa*64*)
5248 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]'
5249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5250 ;;
5251 *)
5252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5253 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5254 ;;
5255 esac
5256 ;;
5257
5258 interix[3-9]*)
5259 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5261 ;;
5262
5263 irix5* | irix6* | nonstopux*)
5264 case $LD in
5265 *-32|*"-32 ") libmagic=32-bit;;
5266 *-n32|*"-n32 ") libmagic=N32;;
5267 *-64|*"-64 ") libmagic=64-bit;;
5268 *) libmagic=never-match;;
5269 esac
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 # This must be glibc/ELF.
5274 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278 netbsd*)
5279 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281 else
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5283 fi
5284 ;;
5285
5286 newos6*)
5287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5288 lt_cv_file_magic_cmd=/usr/bin/file
5289 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5290 ;;
5291
5292 *nto* | *qnx*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 openbsd* | bitrig*)
5297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5299 else
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301 fi
5302 ;;
5303
5304 osf3* | osf4* | osf5*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308 rdos*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
5312 solaris*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 sysv4 | sysv4.3*)
5321 case $host_vendor in
5322 motorola)
5323 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]'
5324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5325 ;;
5326 ncr)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329 sequent)
5330 lt_cv_file_magic_cmd='/bin/file'
5331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5332 ;;
5333 sni)
5334 lt_cv_file_magic_cmd='/bin/file'
5335 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5336 lt_cv_file_magic_test_file=/lib/libc.so
5337 ;;
5338 siemens)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341 pc)
5342 lt_cv_deplibs_check_method=pass_all
5343 ;;
5344 esac
5345 ;;
5346
5347 tpf*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350 os2*)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353 esac
5354
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5357 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5358
5359 file_magic_glob=
5360 want_nocaseglob=no
5361 if test "$build" = "$host"; then
5362 case $host_os in
5363 mingw* | pw32*)
5364 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5365 want_nocaseglob=yes
5366 else
5367 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5368 fi
5369 ;;
5370 esac
5371 fi
5372
5373 file_magic_cmd=$lt_cv_file_magic_cmd
5374 deplibs_check_method=$lt_cv_deplibs_check_method
5375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if ${ac_cv_prog_DLLTOOL+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$DLLTOOL"; then
5407 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi
5425 fi
5426 DLLTOOL=$ac_cv_prog_DLLTOOL
5427 if test -n "$DLLTOOL"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5429 $as_echo "$DLLTOOL" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435
5436 fi
5437 if test -z "$ac_cv_prog_DLLTOOL"; then
5438 ac_ct_DLLTOOL=$DLLTOOL
5439 # Extract the first word of "dlltool", so it can be a program name with args.
5440 set dummy dlltool; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if test -n "$ac_ct_DLLTOOL"; then
5447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460 done
5461 done
5462 IFS=$as_save_IFS
5463
5464 fi
5465 fi
5466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5467 if test -n "$ac_ct_DLLTOOL"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5469 $as_echo "$ac_ct_DLLTOOL" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475 if test "x$ac_ct_DLLTOOL" = x; then
5476 DLLTOOL="false"
5477 else
5478 case $cross_compiling:$ac_tool_warned in
5479 yes:)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482 ac_tool_warned=yes ;;
5483 esac
5484 DLLTOOL=$ac_ct_DLLTOOL
5485 fi
5486 else
5487 DLLTOOL="$ac_cv_prog_DLLTOOL"
5488 fi
5489
5490 test -z "$DLLTOOL" && DLLTOOL=dlltool
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5502 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5503 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 lt_cv_sharedlib_from_linklib_cmd='unknown'
5507
5508 case $host_os in
5509 cygwin* | mingw* | pw32* | cegcc*)
5510 # two different shell functions defined in ltmain.sh;
5511 # decide which one to use based on capabilities of $DLLTOOL
5512 case `$DLLTOOL --help 2>&1` in
5513 *--identify-strict*)
5514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5515 ;;
5516 *)
5517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5518 ;;
5519 esac
5520 ;;
5521 *)
5522 # fallback: assume linklib IS sharedlib
5523 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5524 ;;
5525 esac
5526
5527 fi
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5529 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5530 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5531 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5532
5533
5534
5535
5536
5537
5538
5539
5540 if test -n "$ac_tool_prefix"; then
5541 for ac_prog in ar
5542 do
5543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_AR+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$AR"; then
5551 ac_cv_prog_AR="$AR" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 AR=$ac_cv_prog_AR
5571 if test -n "$AR"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5573 $as_echo "$AR" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579
5580 test -n "$AR" && break
5581 done
5582 fi
5583 if test -z "$AR"; then
5584 ac_ct_AR=$AR
5585 for ac_prog in ar
5586 do
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if test -n "$ac_ct_AR"; then
5595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_prog_ac_ct_AR="$ac_prog"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5615 if test -n "$ac_ct_AR"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5617 $as_echo "$ac_ct_AR" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623
5624 test -n "$ac_ct_AR" && break
5625 done
5626
5627 if test "x$ac_ct_AR" = x; then
5628 AR="false"
5629 else
5630 case $cross_compiling:$ac_tool_warned in
5631 yes:)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634 ac_tool_warned=yes ;;
5635 esac
5636 AR=$ac_ct_AR
5637 fi
5638 fi
5639
5640 : ${AR=ar}
5641 : ${AR_FLAGS=cru}
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5654 $as_echo_n "checking for archiver @FILE support... " >&6; }
5655 if ${lt_cv_ar_at_file+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 lt_cv_ar_at_file=no
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661
5662 int
5663 main ()
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 echo conftest.$ac_objext > conftest.lst
5672 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5674 (eval $lt_ar_try) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; }
5678 if test 0 -eq "$ac_status"; then
5679 # Ensure the archiver fails upon bogus file names.
5680 rm -f conftest.$ac_objext libconftest.a
5681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5682 (eval $lt_ar_try) 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; }
5686 if test 0 -ne "$ac_status"; then
5687 lt_cv_ar_at_file=@
5688 fi
5689 fi
5690 rm -f conftest.* libconftest.a
5691
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5697 $as_echo "$lt_cv_ar_at_file" >&6; }
5698
5699 if test no = "$lt_cv_ar_at_file"; then
5700 archiver_list_spec=
5701 else
5702 archiver_list_spec=$lt_cv_ar_at_file
5703 fi
5704
5705
5706
5707
5708
5709
5710
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_STRIP+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 fi
5747
5748
5749 fi
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5798 fi
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5801 fi
5802
5803 test -z "$STRIP" && STRIP=:
5804
5805
5806
5807
5808
5809
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_RANLIB+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5897 fi
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5900 fi
5901
5902 test -z "$RANLIB" && RANLIB=:
5903
5904
5905
5906
5907
5908
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5913
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 bitrig* | openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5918 ;;
5919 *)
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5921 ;;
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5924 fi
5925
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5929 *)
5930 lock_old_archive_extraction=no ;;
5931 esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5973
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5976
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5979
5980
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5990
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5993
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6001 ;;
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6004 ;;
6005 hpux*)
6006 if test ia64 = "$host_cpu"; then
6007 symcode='[ABCDEGRST]'
6008 fi
6009 ;;
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6012 ;;
6013 osf*)
6014 symcode='[BCDEGQRST]'
6015 ;;
6016 solaris*)
6017 symcode='[BDRT]'
6018 ;;
6019 sco3.2v5*)
6020 symcode='[DT]'
6021 ;;
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6024 ;;
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6027 ;;
6028 sysv4)
6029 symcode='[DFNSTU]'
6030 ;;
6031 esac
6032
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6038
6039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040 # Gets list of data symbols to import.
6041 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6042 # Adjust the below global symbol transforms to fixup imported variables.
6043 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6044 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6045 lt_c_name_lib_hook="\
6046 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6047 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6048 else
6049 # Disable hooks by default.
6050 lt_cv_sys_global_symbol_to_import=
6051 lt_cdecl_hook=
6052 lt_c_name_hook=
6053 lt_c_name_lib_hook=
6054 fi
6055
6056 # Transform an extracted symbol line into a proper C declaration.
6057 # Some systems (esp. on ia64) link data and code symbols differently,
6058 # so use this general approach.
6059 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6060 $lt_cdecl_hook\
6061 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6062 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6063
6064 # Transform an extracted symbol line into symbol name and symbol address
6065 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6066 $lt_c_name_hook\
6067 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6068 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6069
6070 # Transform an extracted symbol line into symbol name with lib prefix and
6071 # symbol address.
6072 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6073 $lt_c_name_lib_hook\
6074 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6075 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6076 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6077
6078 # Handle CRLF in mingw tool chain
6079 opt_cr=
6080 case $build_os in
6081 mingw*)
6082 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6083 ;;
6084 esac
6085
6086 # Try without a prefix underscore, then with it.
6087 for ac_symprfx in "" "_"; do
6088
6089 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6090 symxfrm="\\1 $ac_symprfx\\2 \\2"
6091
6092 # Write the raw and C identifiers.
6093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6094 # Fake it for dumpbin and say T for any non-static function,
6095 # D for any global variable and I for any imported variable.
6096 # Also find C++ and __fastcall symbols from MSVC++,
6097 # which start with @ or ?.
6098 lt_cv_sys_global_symbol_pipe="$AWK '"\
6099 " {last_section=section; section=\$ 3};"\
6100 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6101 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6102 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6103 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6104 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6105 " \$ 0!~/External *\|/{next};"\
6106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6107 " {if(hide[section]) next};"\
6108 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6109 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6110 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6111 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6112 " ' prfx=^$ac_symprfx"
6113 else
6114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6115 fi
6116 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6117
6118 # Check to see that the pipe works correctly.
6119 pipe_works=no
6120
6121 rm -f conftest*
6122 cat > conftest.$ac_ext <<_LT_EOF
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6126 char nm_test_var;
6127 void nm_test_func(void);
6128 void nm_test_func(void){}
6129 #ifdef __cplusplus
6130 }
6131 #endif
6132 int main(){nm_test_var='a';nm_test_func();return(0);}
6133 _LT_EOF
6134
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6136 (eval $ac_compile) 2>&5
6137 ac_status=$?
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; then
6140 # Now try to grab the symbols.
6141 nlist=conftest.nm
6142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6143 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6144 ac_status=$?
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; } && test -s "$nlist"; then
6147 # Try sorting and uniquifying the output.
6148 if sort "$nlist" | uniq > "$nlist"T; then
6149 mv -f "$nlist"T "$nlist"
6150 else
6151 rm -f "$nlist"T
6152 fi
6153
6154 # Make sure that we snagged all the symbols we need.
6155 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6156 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6157 cat <<_LT_EOF > conftest.$ac_ext
6158 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6159 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6160 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6161 relocations are performed -- see ld's documentation on pseudo-relocs. */
6162 # define LT_DLSYM_CONST
6163 #elif defined __osf__
6164 /* This system does not cope well with relocations in const data. */
6165 # define LT_DLSYM_CONST
6166 #else
6167 # define LT_DLSYM_CONST const
6168 #endif
6169
6170 #ifdef __cplusplus
6171 extern "C" {
6172 #endif
6173
6174 _LT_EOF
6175 # Now generate the symbol file.
6176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6177
6178 cat <<_LT_EOF >> conftest.$ac_ext
6179
6180 /* The mapping between symbol names and symbols. */
6181 LT_DLSYM_CONST struct {
6182 const char *name;
6183 void *address;
6184 }
6185 lt__PROGRAM__LTX_preloaded_symbols[] =
6186 {
6187 { "@PROGRAM@", (void *) 0 },
6188 _LT_EOF
6189 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6190 cat <<\_LT_EOF >> conftest.$ac_ext
6191 {0, (void *) 0}
6192 };
6193
6194 /* This works around a problem in FreeBSD linker */
6195 #ifdef FREEBSD_WORKAROUND
6196 static const void *lt_preloaded_setup() {
6197 return lt__PROGRAM__LTX_preloaded_symbols;
6198 }
6199 #endif
6200
6201 #ifdef __cplusplus
6202 }
6203 #endif
6204 _LT_EOF
6205 # Now try linking the two files.
6206 mv conftest.$ac_objext conftstm.$ac_objext
6207 lt_globsym_save_LIBS=$LIBS
6208 lt_globsym_save_CFLAGS=$CFLAGS
6209 LIBS=conftstm.$ac_objext
6210 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6212 (eval $ac_link) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6216 pipe_works=yes
6217 fi
6218 LIBS=$lt_globsym_save_LIBS
6219 CFLAGS=$lt_globsym_save_CFLAGS
6220 else
6221 echo "cannot find nm_test_func in $nlist" >&5
6222 fi
6223 else
6224 echo "cannot find nm_test_var in $nlist" >&5
6225 fi
6226 else
6227 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6228 fi
6229 else
6230 echo "$progname: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 fi
6233 rm -rf conftest* conftst*
6234
6235 # Do not use the global_symbol_pipe unless it works.
6236 if test yes = "$pipe_works"; then
6237 break
6238 else
6239 lt_cv_sys_global_symbol_pipe=
6240 fi
6241 done
6242
6243 fi
6244
6245 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6246 lt_cv_sys_global_symbol_to_cdecl=
6247 fi
6248 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6250 $as_echo "failed" >&6; }
6251 else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6253 $as_echo "ok" >&6; }
6254 fi
6255
6256 # Response file support.
6257 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6258 nm_file_list_spec='@'
6259 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6260 nm_file_list_spec='@'
6261 fi
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6300 $as_echo_n "checking for sysroot... " >&6; }
6301
6302 # Check whether --with-sysroot was given.
6303 if test "${with_sysroot+set}" = set; then :
6304 withval=$with_sysroot;
6305 else
6306 with_sysroot=no
6307 fi
6308
6309
6310 lt_sysroot=
6311 case $with_sysroot in #(
6312 yes)
6313 if test yes = "$GCC"; then
6314 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6315 fi
6316 ;; #(
6317 /*)
6318 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6319 ;; #(
6320 no|'')
6321 ;; #(
6322 *)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6324 $as_echo "$with_sysroot" >&6; }
6325 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6326 ;;
6327 esac
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6330 $as_echo "${lt_sysroot:-no}" >&6; }
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6337 $as_echo_n "checking for a working dd... " >&6; }
6338 if ${ac_cv_path_lt_DD+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 printf 0123456789abcdef0123456789abcdef >conftest.i
6342 cat conftest.i conftest.i >conftest2.i
6343 : ${lt_DD:=$DD}
6344 if test -z "$lt_DD"; then
6345 ac_path_lt_DD_found=false
6346 # Loop through the user's path and test for each of PROGNAME-LIST
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_prog in dd; do
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6355 as_fn_executable_p "$ac_path_lt_DD" || continue
6356 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6357 cmp -s conftest.i conftest.out \
6358 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6359 fi
6360 $ac_path_lt_DD_found && break 3
6361 done
6362 done
6363 done
6364 IFS=$as_save_IFS
6365 if test -z "$ac_cv_path_lt_DD"; then
6366 :
6367 fi
6368 else
6369 ac_cv_path_lt_DD=$lt_DD
6370 fi
6371
6372 rm -f conftest.i conftest2.i conftest.out
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6375 $as_echo "$ac_cv_path_lt_DD" >&6; }
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6379 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6380 if ${lt_cv_truncate_bin+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 printf 0123456789abcdef0123456789abcdef >conftest.i
6384 cat conftest.i conftest.i >conftest2.i
6385 lt_cv_truncate_bin=
6386 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6387 cmp -s conftest.i conftest.out \
6388 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6389 fi
6390 rm -f conftest.i conftest2.i conftest.out
6391 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6394 $as_echo "$lt_cv_truncate_bin" >&6; }
6395
6396
6397
6398
6399
6400
6401
6402 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6403 func_cc_basename ()
6404 {
6405 for cc_temp in $*""; do
6406 case $cc_temp in
6407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6409 \-*) ;;
6410 *) break;;
6411 esac
6412 done
6413 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6414 }
6415
6416 # Check whether --enable-libtool-lock was given.
6417 if test "${enable_libtool_lock+set}" = set; then :
6418 enableval=$enable_libtool_lock;
6419 fi
6420
6421 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6422
6423 # Some flags need to be propagated to the compiler or linker for good
6424 # libtool support.
6425 case $host in
6426 ia64-*-hpux*)
6427 # Find out what ABI is being produced by ac_compile, and set mode
6428 # options accordingly.
6429 echo 'int i;' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 case `/usr/bin/file conftest.$ac_objext` in
6436 *ELF-32*)
6437 HPUX_IA64_MODE=32
6438 ;;
6439 *ELF-64*)
6440 HPUX_IA64_MODE=64
6441 ;;
6442 esac
6443 fi
6444 rm -rf conftest*
6445 ;;
6446 *-*-irix6*)
6447 # Find out what ABI is being produced by ac_compile, and set linker
6448 # options accordingly.
6449 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 if test yes = "$lt_cv_prog_gnu_ld"; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *32-bit*)
6458 LD="${LD-ld} -melf32bsmip"
6459 ;;
6460 *N32*)
6461 LD="${LD-ld} -melf32bmipn32"
6462 ;;
6463 *64-bit*)
6464 LD="${LD-ld} -melf64bmip"
6465 ;;
6466 esac
6467 else
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -32"
6471 ;;
6472 *N32*)
6473 LD="${LD-ld} -n32"
6474 ;;
6475 *64-bit*)
6476 LD="${LD-ld} -64"
6477 ;;
6478 esac
6479 fi
6480 fi
6481 rm -rf conftest*
6482 ;;
6483
6484 mips64*-*linux*)
6485 # Find out what ABI is being produced by ac_compile, and set linker
6486 # options accordingly.
6487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6489 (eval $ac_compile) 2>&5
6490 ac_status=$?
6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492 test $ac_status = 0; }; then
6493 emul=elf
6494 case `/usr/bin/file conftest.$ac_objext` in
6495 *32-bit*)
6496 emul="${emul}32"
6497 ;;
6498 *64-bit*)
6499 emul="${emul}64"
6500 ;;
6501 esac
6502 case `/usr/bin/file conftest.$ac_objext` in
6503 *MSB*)
6504 emul="${emul}btsmip"
6505 ;;
6506 *LSB*)
6507 emul="${emul}ltsmip"
6508 ;;
6509 esac
6510 case `/usr/bin/file conftest.$ac_objext` in
6511 *N32*)
6512 emul="${emul}n32"
6513 ;;
6514 esac
6515 LD="${LD-ld} -m $emul"
6516 fi
6517 rm -rf conftest*
6518 ;;
6519
6520 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6521 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6522 # Find out what ABI is being produced by ac_compile, and set linker
6523 # options accordingly. Note that the listed cases only cover the
6524 # situations where additional linker options are needed (such as when
6525 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6526 # vice versa); the common cases where no linker options are needed do
6527 # not appear in the list.
6528 echo 'int i;' > conftest.$ac_ext
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 case `/usr/bin/file conftest.o` in
6535 *32-bit*)
6536 case $host in
6537 x86_64-*kfreebsd*-gnu)
6538 LD="${LD-ld} -m elf_i386_fbsd"
6539 ;;
6540 x86_64-*linux*)
6541 case `/usr/bin/file conftest.o` in
6542 *x86-64*)
6543 LD="${LD-ld} -m elf32_x86_64"
6544 ;;
6545 *)
6546 LD="${LD-ld} -m elf_i386"
6547 ;;
6548 esac
6549 ;;
6550 powerpc64le-*linux*)
6551 LD="${LD-ld} -m elf32lppclinux"
6552 ;;
6553 powerpc64-*linux*)
6554 LD="${LD-ld} -m elf32ppclinux"
6555 ;;
6556 s390x-*linux*)
6557 LD="${LD-ld} -m elf_s390"
6558 ;;
6559 sparc64-*linux*)
6560 LD="${LD-ld} -m elf32_sparc"
6561 ;;
6562 esac
6563 ;;
6564 *64-bit*)
6565 case $host in
6566 x86_64-*kfreebsd*-gnu)
6567 LD="${LD-ld} -m elf_x86_64_fbsd"
6568 ;;
6569 x86_64-*linux*)
6570 LD="${LD-ld} -m elf_x86_64"
6571 ;;
6572 powerpcle-*linux*)
6573 LD="${LD-ld} -m elf64lppc"
6574 ;;
6575 powerpc-*linux*)
6576 LD="${LD-ld} -m elf64ppc"
6577 ;;
6578 s390*-*linux*|s390*-*tpf*)
6579 LD="${LD-ld} -m elf64_s390"
6580 ;;
6581 sparc*-*linux*)
6582 LD="${LD-ld} -m elf64_sparc"
6583 ;;
6584 esac
6585 ;;
6586 esac
6587 fi
6588 rm -rf conftest*
6589 ;;
6590
6591 *-*-sco3.2v5*)
6592 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6593 SAVE_CFLAGS=$CFLAGS
6594 CFLAGS="$CFLAGS -belf"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6596 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6597 if ${lt_cv_cc_needs_belf+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main ()
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 lt_cv_cc_needs_belf=yes
6619 else
6620 lt_cv_cc_needs_belf=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 ac_ext=c
6625 ac_cpp='$CPP $CPPFLAGS'
6626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6632 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6633 if test yes != "$lt_cv_cc_needs_belf"; then
6634 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6635 CFLAGS=$SAVE_CFLAGS
6636 fi
6637 ;;
6638 *-*solaris*)
6639 # Find out what ABI is being produced by ac_compile, and set linker
6640 # options accordingly.
6641 echo 'int i;' > conftest.$ac_ext
6642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643 (eval $ac_compile) 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646 test $ac_status = 0; }; then
6647 case `/usr/bin/file conftest.o` in
6648 *64-bit*)
6649 case $lt_cv_prog_gnu_ld in
6650 yes*)
6651 case $host in
6652 i?86-*-solaris*|x86_64-*-solaris*)
6653 LD="${LD-ld} -m elf_x86_64"
6654 ;;
6655 sparc*-*-solaris*)
6656 LD="${LD-ld} -m elf64_sparc"
6657 ;;
6658 esac
6659 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6660 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6661 LD=${LD-ld}_sol2
6662 fi
6663 ;;
6664 *)
6665 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6666 LD="${LD-ld} -64"
6667 fi
6668 ;;
6669 esac
6670 ;;
6671 esac
6672 fi
6673 rm -rf conftest*
6674 ;;
6675 esac
6676
6677 need_locks=$enable_libtool_lock
6678
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}mt; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$MANIFEST_TOOL"; then
6688 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6708 if test -n "$MANIFEST_TOOL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6710 $as_echo "$MANIFEST_TOOL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6719 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6720 # Extract the first word of "mt", so it can be a program name with args.
6721 set dummy mt; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$ac_ct_MANIFEST_TOOL"; then
6728 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6748 if test -n "$ac_ct_MANIFEST_TOOL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6750 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6757 MANIFEST_TOOL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6766 fi
6767 else
6768 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6769 fi
6770
6771 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6773 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6774 if ${lt_cv_path_mainfest_tool+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 lt_cv_path_mainfest_tool=no
6778 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6779 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6780 cat conftest.err >&5
6781 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6782 lt_cv_path_mainfest_tool=yes
6783 fi
6784 rm -f conftest*
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6787 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6788 if test yes != "$lt_cv_path_mainfest_tool"; then
6789 MANIFEST_TOOL=:
6790 fi
6791
6792
6793
6794
6795
6796
6797 case $host_os in
6798 rhapsody* | darwin*)
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$DSYMUTIL"; then
6808 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6828 if test -n "$DSYMUTIL"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6830 $as_echo "$DSYMUTIL" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_DSYMUTIL"; then
6839 ac_ct_DSYMUTIL=$DSYMUTIL
6840 # Extract the first word of "dsymutil", so it can be a program name with args.
6841 set dummy dsymutil; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_DSYMUTIL"; then
6848 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6868 if test -n "$ac_ct_DSYMUTIL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6870 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_DSYMUTIL" = x; then
6877 DSYMUTIL=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 DSYMUTIL=$ac_ct_DSYMUTIL
6886 fi
6887 else
6888 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_NMEDIT+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$NMEDIT"; then
6900 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 NMEDIT=$ac_cv_prog_NMEDIT
6920 if test -n "$NMEDIT"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6922 $as_echo "$NMEDIT" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_NMEDIT"; then
6931 ac_ct_NMEDIT=$NMEDIT
6932 # Extract the first word of "nmedit", so it can be a program name with args.
6933 set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_NMEDIT"; then
6940 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6960 if test -n "$ac_ct_NMEDIT"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6962 $as_echo "$ac_ct_NMEDIT" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_NMEDIT" = x; then
6969 NMEDIT=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 NMEDIT=$ac_ct_NMEDIT
6978 fi
6979 else
6980 NMEDIT="$ac_cv_prog_NMEDIT"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_LIPO+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$LIPO"; then
6992 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 LIPO=$ac_cv_prog_LIPO
7012 if test -n "$LIPO"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7014 $as_echo "$LIPO" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_LIPO"; then
7023 ac_ct_LIPO=$LIPO
7024 # Extract the first word of "lipo", so it can be a program name with args.
7025 set dummy lipo; 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_ac_ct_LIPO+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_LIPO"; then
7032 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7052 if test -n "$ac_ct_LIPO"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7054 $as_echo "$ac_ct_LIPO" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_LIPO" = x; then
7061 LIPO=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 LIPO=$ac_ct_LIPO
7070 fi
7071 else
7072 LIPO="$ac_cv_prog_LIPO"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}otool; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_OTOOL+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$OTOOL"; then
7084 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 OTOOL=$ac_cv_prog_OTOOL
7104 if test -n "$OTOOL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7106 $as_echo "$OTOOL" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_OTOOL"; then
7115 ac_ct_OTOOL=$OTOOL
7116 # Extract the first word of "otool", so it can be a program name with args.
7117 set dummy otool; 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_ac_ct_OTOOL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_OTOOL"; then
7124 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7144 if test -n "$ac_ct_OTOOL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7146 $as_echo "$ac_ct_OTOOL" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_OTOOL" = x; then
7153 OTOOL=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 OTOOL=$ac_ct_OTOOL
7162 fi
7163 else
7164 OTOOL="$ac_cv_prog_OTOOL"
7165 fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_OTOOL64+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$OTOOL64"; then
7176 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 OTOOL64=$ac_cv_prog_OTOOL64
7196 if test -n "$OTOOL64"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7198 $as_echo "$OTOOL64" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_OTOOL64"; then
7207 ac_ct_OTOOL64=$OTOOL64
7208 # Extract the first word of "otool64", so it can be a program name with args.
7209 set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_OTOOL64"; then
7216 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7236 if test -n "$ac_ct_OTOOL64"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7238 $as_echo "$ac_ct_OTOOL64" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244 if test "x$ac_ct_OTOOL64" = x; then
7245 OTOOL64=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 OTOOL64=$ac_ct_OTOOL64
7254 fi
7255 else
7256 OTOOL64="$ac_cv_prog_OTOOL64"
7257 fi
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7286 $as_echo_n "checking for -single_module linker flag... " >&6; }
7287 if ${lt_cv_apple_cc_single_mod+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 lt_cv_apple_cc_single_mod=no
7291 if test -z "$LT_MULTI_MODULE"; then
7292 # By default we will add the -single_module flag. You can override
7293 # by either setting the environment variable LT_MULTI_MODULE
7294 # non-empty at configure time, or by adding -multi_module to the
7295 # link flags.
7296 rm -rf libconftest.dylib*
7297 echo "int foo(void){return 1;}" > conftest.c
7298 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7299 -dynamiclib -Wl,-single_module conftest.c" >&5
7300 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7301 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7302 _lt_result=$?
7303 # If there is a non-empty error log, and "single_module"
7304 # appears in it, assume the flag caused a linker warning
7305 if test -s conftest.err && $GREP single_module conftest.err; then
7306 cat conftest.err >&5
7307 # Otherwise, if the output was created with a 0 exit code from
7308 # the compiler, it worked.
7309 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7310 lt_cv_apple_cc_single_mod=yes
7311 else
7312 cat conftest.err >&5
7313 fi
7314 rm -rf libconftest.dylib*
7315 rm -f conftest.*
7316 fi
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7319 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7322 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7323 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 lt_cv_ld_exported_symbols_list=no
7327 save_LDFLAGS=$LDFLAGS
7328 echo "_main" > conftest.sym
7329 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332
7333 int
7334 main ()
7335 {
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 if ac_fn_c_try_link "$LINENO"; then :
7342 lt_cv_ld_exported_symbols_list=yes
7343 else
7344 lt_cv_ld_exported_symbols_list=no
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext \
7347 conftest$ac_exeext conftest.$ac_ext
7348 LDFLAGS=$save_LDFLAGS
7349
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7352 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7355 $as_echo_n "checking for -force_load linker flag... " >&6; }
7356 if ${lt_cv_ld_force_load+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 lt_cv_ld_force_load=no
7360 cat > conftest.c << _LT_EOF
7361 int forced_loaded() { return 2;}
7362 _LT_EOF
7363 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7364 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7365 echo "$AR cru libconftest.a conftest.o" >&5
7366 $AR cru libconftest.a conftest.o 2>&5
7367 echo "$RANLIB libconftest.a" >&5
7368 $RANLIB libconftest.a 2>&5
7369 cat > conftest.c << _LT_EOF
7370 int main() { return 0;}
7371 _LT_EOF
7372 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7373 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7374 _lt_result=$?
7375 if test -s conftest.err && $GREP force_load conftest.err; then
7376 cat conftest.err >&5
7377 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7378 lt_cv_ld_force_load=yes
7379 else
7380 cat conftest.err >&5
7381 fi
7382 rm -f conftest.err libconftest.a conftest conftest.c
7383 rm -rf conftest.dSYM
7384
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7387 $as_echo "$lt_cv_ld_force_load" >&6; }
7388 case $host_os in
7389 rhapsody* | darwin1.[012])
7390 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7391 darwin1.*)
7392 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7393 darwin*) # darwin 5.x on
7394 # if running on 10.5 or later, the deployment target defaults
7395 # to the OS version, if on x86, and 10.4, the deployment
7396 # target defaults to 10.4. Don't you love it?
7397 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7398 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7399 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7400 10.[012][,.]*)
7401 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7402 10.*)
7403 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7404 esac
7405 ;;
7406 esac
7407 if test yes = "$lt_cv_apple_cc_single_mod"; then
7408 _lt_dar_single_mod='$single_module'
7409 fi
7410 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7411 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7412 else
7413 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7414 fi
7415 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7416 _lt_dsymutil='~$DSYMUTIL $lib || :'
7417 else
7418 _lt_dsymutil=
7419 fi
7420 ;;
7421 esac
7422
7423 # func_munge_path_list VARIABLE PATH
7424 # -----------------------------------
7425 # VARIABLE is name of variable containing _space_ separated list of
7426 # directories to be munged by the contents of PATH, which is string
7427 # having a format:
7428 # "DIR[:DIR]:"
7429 # string "DIR[ DIR]" will be prepended to VARIABLE
7430 # ":DIR[:DIR]"
7431 # string "DIR[ DIR]" will be appended to VARIABLE
7432 # "DIRP[:DIRP]::[DIRA:]DIRA"
7433 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7434 # "DIRA[ DIRA]" will be appended to VARIABLE
7435 # "DIR[:DIR]"
7436 # VARIABLE will be replaced by "DIR[ DIR]"
7437 func_munge_path_list ()
7438 {
7439 case x$2 in
7440 x)
7441 ;;
7442 *:)
7443 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7444 ;;
7445 x:*)
7446 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7447 ;;
7448 *::*)
7449 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7450 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7451 ;;
7452 *)
7453 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7454 ;;
7455 esac
7456 }
7457
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7465 # On Suns, sometimes $CPP names a directory.
7466 if test -n "$CPP" && test -d "$CPP"; then
7467 CPP=
7468 fi
7469 if test -z "$CPP"; then
7470 if ${ac_cv_prog_CPP+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 # Double quotes because CPP needs to be expanded
7474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7475 do
7476 ac_preproc_ok=false
7477 for ac_c_preproc_warn_flag in '' yes
7478 do
7479 # Use a header file that comes with gcc, so configuring glibc
7480 # with a fresh cross-compiler works.
7481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482 # <limits.h> exists even on freestanding compilers.
7483 # On the NeXT, cc -E runs the code through the compiler's parser,
7484 # not just through cpp. "Syntax error" is here to catch this case.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #ifdef __STDC__
7488 # include <limits.h>
7489 #else
7490 # include <assert.h>
7491 #endif
7492 Syntax error
7493 _ACEOF
7494 if ac_fn_c_try_cpp "$LINENO"; then :
7495
7496 else
7497 # Broken: fails on valid input.
7498 continue
7499 fi
7500 rm -f conftest.err conftest.i conftest.$ac_ext
7501
7502 # OK, works on sane cases. Now check whether nonexistent headers
7503 # can be detected and how.
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <ac_nonexistent.h>
7507 _ACEOF
7508 if ac_fn_c_try_cpp "$LINENO"; then :
7509 # Broken: success on invalid input.
7510 continue
7511 else
7512 # Passes both tests.
7513 ac_preproc_ok=:
7514 break
7515 fi
7516 rm -f conftest.err conftest.i conftest.$ac_ext
7517
7518 done
7519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7520 rm -f conftest.i conftest.err conftest.$ac_ext
7521 if $ac_preproc_ok; then :
7522 break
7523 fi
7524
7525 done
7526 ac_cv_prog_CPP=$CPP
7527
7528 fi
7529 CPP=$ac_cv_prog_CPP
7530 else
7531 ac_cv_prog_CPP=$CPP
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7534 $as_echo "$CPP" >&6; }
7535 ac_preproc_ok=false
7536 for ac_c_preproc_warn_flag in '' yes
7537 do
7538 # Use a header file that comes with gcc, so configuring glibc
7539 # with a fresh cross-compiler works.
7540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7541 # <limits.h> exists even on freestanding compilers.
7542 # On the NeXT, cc -E runs the code through the compiler's parser,
7543 # not just through cpp. "Syntax error" is here to catch this case.
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #ifdef __STDC__
7547 # include <limits.h>
7548 #else
7549 # include <assert.h>
7550 #endif
7551 Syntax error
7552 _ACEOF
7553 if ac_fn_c_try_cpp "$LINENO"; then :
7554
7555 else
7556 # Broken: fails on valid input.
7557 continue
7558 fi
7559 rm -f conftest.err conftest.i conftest.$ac_ext
7560
7561 # OK, works on sane cases. Now check whether nonexistent headers
7562 # can be detected and how.
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 #include <ac_nonexistent.h>
7566 _ACEOF
7567 if ac_fn_c_try_cpp "$LINENO"; then :
7568 # Broken: success on invalid input.
7569 continue
7570 else
7571 # Passes both tests.
7572 ac_preproc_ok=:
7573 break
7574 fi
7575 rm -f conftest.err conftest.i conftest.$ac_ext
7576
7577 done
7578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7579 rm -f conftest.i conftest.err conftest.$ac_ext
7580 if $ac_preproc_ok; then :
7581
7582 else
7583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7585 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7586 See \`config.log' for more details" "$LINENO" 5; }
7587 fi
7588
7589 ac_ext=c
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594
7595
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7597 $as_echo_n "checking for ANSI C header files... " >&6; }
7598 if ${ac_cv_header_stdc+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #include <stdlib.h>
7604 #include <stdarg.h>
7605 #include <string.h>
7606 #include <float.h>
7607
7608 int
7609 main ()
7610 {
7611
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 ac_cv_header_stdc=yes
7618 else
7619 ac_cv_header_stdc=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622
7623 if test $ac_cv_header_stdc = yes; then
7624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 #include <string.h>
7628
7629 _ACEOF
7630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7631 $EGREP "memchr" >/dev/null 2>&1; then :
7632
7633 else
7634 ac_cv_header_stdc=no
7635 fi
7636 rm -f conftest*
7637
7638 fi
7639
7640 if test $ac_cv_header_stdc = yes; then
7641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <stdlib.h>
7645
7646 _ACEOF
7647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7648 $EGREP "free" >/dev/null 2>&1; then :
7649
7650 else
7651 ac_cv_header_stdc=no
7652 fi
7653 rm -f conftest*
7654
7655 fi
7656
7657 if test $ac_cv_header_stdc = yes; then
7658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7659 if test "$cross_compiling" = yes; then :
7660 :
7661 else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #include <ctype.h>
7665 #include <stdlib.h>
7666 #if ((' ' & 0x0FF) == 0x020)
7667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7669 #else
7670 # define ISLOWER(c) \
7671 (('a' <= (c) && (c) <= 'i') \
7672 || ('j' <= (c) && (c) <= 'r') \
7673 || ('s' <= (c) && (c) <= 'z'))
7674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7675 #endif
7676
7677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7678 int
7679 main ()
7680 {
7681 int i;
7682 for (i = 0; i < 256; i++)
7683 if (XOR (islower (i), ISLOWER (i))
7684 || toupper (i) != TOUPPER (i))
7685 return 2;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_run "$LINENO"; then :
7690
7691 else
7692 ac_cv_header_stdc=no
7693 fi
7694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7695 conftest.$ac_objext conftest.beam conftest.$ac_ext
7696 fi
7697
7698 fi
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7701 $as_echo "$ac_cv_header_stdc" >&6; }
7702 if test $ac_cv_header_stdc = yes; then
7703
7704 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7705
7706 fi
7707
7708 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7710 inttypes.h stdint.h unistd.h
7711 do :
7712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7713 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7714 "
7715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7716 cat >>confdefs.h <<_ACEOF
7717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7718 _ACEOF
7719
7720 fi
7721
7722 done
7723
7724
7725 for ac_header in dlfcn.h
7726 do :
7727 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7728 "
7729 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_DLFCN_H 1
7732 _ACEOF
7733
7734 fi
7735
7736 done
7737
7738
7739
7740
7741
7742 # Set options
7743
7744
7745
7746 enable_dlopen=no
7747
7748
7749 enable_win32_dll=no
7750
7751
7752 # Check whether --enable-shared was given.
7753 if test "${enable_shared+set}" = set; then :
7754 enableval=$enable_shared; p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_shared=yes ;;
7757 no) enable_shared=no ;;
7758 *)
7759 enable_shared=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7762 for pkg in $enableval; do
7763 IFS=$lt_save_ifs
7764 if test "X$pkg" = "X$p"; then
7765 enable_shared=yes
7766 fi
7767 done
7768 IFS=$lt_save_ifs
7769 ;;
7770 esac
7771 else
7772 enable_shared=yes
7773 fi
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783 # Check whether --enable-static was given.
7784 if test "${enable_static+set}" = set; then :
7785 enableval=$enable_static; p=${PACKAGE-default}
7786 case $enableval in
7787 yes) enable_static=yes ;;
7788 no) enable_static=no ;;
7789 *)
7790 enable_static=no
7791 # Look at the argument we got. We use all the common list separators.
7792 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7793 for pkg in $enableval; do
7794 IFS=$lt_save_ifs
7795 if test "X$pkg" = "X$p"; then
7796 enable_static=yes
7797 fi
7798 done
7799 IFS=$lt_save_ifs
7800 ;;
7801 esac
7802 else
7803 enable_static=yes
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 # Check whether --with-pic was given.
7816 if test "${with_pic+set}" = set; then :
7817 withval=$with_pic; lt_p=${PACKAGE-default}
7818 case $withval in
7819 yes|no) pic_mode=$withval ;;
7820 *)
7821 pic_mode=default
7822 # Look at the argument we got. We use all the common list separators.
7823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7824 for lt_pkg in $withval; do
7825 IFS=$lt_save_ifs
7826 if test "X$lt_pkg" = "X$lt_p"; then
7827 pic_mode=yes
7828 fi
7829 done
7830 IFS=$lt_save_ifs
7831 ;;
7832 esac
7833 else
7834 pic_mode=default
7835 fi
7836
7837
7838
7839
7840
7841
7842
7843
7844 # Check whether --enable-fast-install was given.
7845 if test "${enable_fast_install+set}" = set; then :
7846 enableval=$enable_fast_install; p=${PACKAGE-default}
7847 case $enableval in
7848 yes) enable_fast_install=yes ;;
7849 no) enable_fast_install=no ;;
7850 *)
7851 enable_fast_install=no
7852 # Look at the argument we got. We use all the common list separators.
7853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7854 for pkg in $enableval; do
7855 IFS=$lt_save_ifs
7856 if test "X$pkg" = "X$p"; then
7857 enable_fast_install=yes
7858 fi
7859 done
7860 IFS=$lt_save_ifs
7861 ;;
7862 esac
7863 else
7864 enable_fast_install=yes
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874 shared_archive_member_spec=
7875 case $host,$enable_shared in
7876 power*-*-aix[5-9]*,yes)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7878 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7879
7880 # Check whether --with-aix-soname was given.
7881 if test "${with_aix_soname+set}" = set; then :
7882 withval=$with_aix_soname; case $withval in
7883 aix|svr4|both)
7884 ;;
7885 *)
7886 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7887 ;;
7888 esac
7889 lt_cv_with_aix_soname=$with_aix_soname
7890 else
7891 if ${lt_cv_with_aix_soname+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_with_aix_soname=aix
7895 fi
7896
7897 with_aix_soname=$lt_cv_with_aix_soname
7898 fi
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7901 $as_echo "$with_aix_soname" >&6; }
7902 if test aix != "$with_aix_soname"; then
7903 # For the AIX way of multilib, we name the shared archive member
7904 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7905 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7906 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7907 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7908 if test 64 = "${OBJECT_MODE-32}"; then
7909 shared_archive_member_spec=shr_64
7910 else
7911 shared_archive_member_spec=shr
7912 fi
7913 fi
7914 ;;
7915 *)
7916 with_aix_soname=aix
7917 ;;
7918 esac
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929 # This can be used to rebuild libtool when needed
7930 LIBTOOL_DEPS=$ltmain
7931
7932 # Always use our own libtool.
7933 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 test -z "$LN_S" && LN_S="ln -s"
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 if test -n "${ZSH_VERSION+set}"; then
7980 setopt NO_GLOB_SUBST
7981 fi
7982
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7984 $as_echo_n "checking for objdir... " >&6; }
7985 if ${lt_cv_objdir+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 rm -f .libs 2>/dev/null
7989 mkdir .libs 2>/dev/null
7990 if test -d .libs; then
7991 lt_cv_objdir=.libs
7992 else
7993 # MS-DOS does not allow filenames that begin with a dot.
7994 lt_cv_objdir=_libs
7995 fi
7996 rmdir .libs 2>/dev/null
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7999 $as_echo "$lt_cv_objdir" >&6; }
8000 objdir=$lt_cv_objdir
8001
8002
8003
8004
8005
8006 cat >>confdefs.h <<_ACEOF
8007 #define LT_OBJDIR "$lt_cv_objdir/"
8008 _ACEOF
8009
8010
8011
8012
8013 case $host_os in
8014 aix3*)
8015 # AIX sometimes has problems with the GCC collect2 program. For some
8016 # reason, if we set the COLLECT_NAMES environment variable, the problems
8017 # vanish in a puff of smoke.
8018 if test set != "${COLLECT_NAMES+set}"; then
8019 COLLECT_NAMES=
8020 export COLLECT_NAMES
8021 fi
8022 ;;
8023 esac
8024
8025 # Global variables:
8026 ofile=libtool
8027 can_build_shared=yes
8028
8029 # All known linkers require a '.a' archive for static linking (except MSVC,
8030 # which needs '.lib').
8031 libext=a
8032
8033 with_gnu_ld=$lt_cv_prog_gnu_ld
8034
8035 old_CC=$CC
8036 old_CFLAGS=$CFLAGS
8037
8038 # Set sane defaults for various variables
8039 test -z "$CC" && CC=cc
8040 test -z "$LTCC" && LTCC=$CC
8041 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8042 test -z "$LD" && LD=ld
8043 test -z "$ac_objext" && ac_objext=o
8044
8045 func_cc_basename $compiler
8046 cc_basename=$func_cc_basename_result
8047
8048
8049 # Only perform the check for file, if the check method requires it
8050 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8051 case $deplibs_check_method in
8052 file_magic*)
8053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8055 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8056 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 case $MAGIC_CMD in
8060 [\\/*] | ?:[\\/]*)
8061 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8062 ;;
8063 *)
8064 lt_save_MAGIC_CMD=$MAGIC_CMD
8065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067 for ac_dir in $ac_dummy; do
8068 IFS=$lt_save_ifs
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8071 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8072 if test -n "$file_magic_test_file"; then
8073 case $deplibs_check_method in
8074 "file_magic "*)
8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078 $EGREP "$file_magic_regex" > /dev/null; then
8079 :
8080 else
8081 cat <<_LT_EOF 1>&2
8082
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such. This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem. Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** bug-libtool@gnu.org
8091
8092 _LT_EOF
8093 fi ;;
8094 esac
8095 fi
8096 break
8097 fi
8098 done
8099 IFS=$lt_save_ifs
8100 MAGIC_CMD=$lt_save_MAGIC_CMD
8101 ;;
8102 esac
8103 fi
8104
8105 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8106 if test -n "$MAGIC_CMD"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8108 $as_echo "$MAGIC_CMD" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8112 fi
8113
8114
8115
8116
8117
8118 if test -z "$lt_cv_path_MAGIC_CMD"; then
8119 if test -n "$ac_tool_prefix"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8121 $as_echo_n "checking for file... " >&6; }
8122 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 case $MAGIC_CMD in
8126 [\\/*] | ?:[\\/]*)
8127 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8128 ;;
8129 *)
8130 lt_save_MAGIC_CMD=$MAGIC_CMD
8131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133 for ac_dir in $ac_dummy; do
8134 IFS=$lt_save_ifs
8135 test -z "$ac_dir" && ac_dir=.
8136 if test -f "$ac_dir/file"; then
8137 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8138 if test -n "$file_magic_test_file"; then
8139 case $deplibs_check_method in
8140 "file_magic "*)
8141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144 $EGREP "$file_magic_regex" > /dev/null; then
8145 :
8146 else
8147 cat <<_LT_EOF 1>&2
8148
8149 *** Warning: the command libtool uses to detect shared libraries,
8150 *** $file_magic_cmd, produces output that libtool cannot recognize.
8151 *** The result is that libtool may fail to recognize shared libraries
8152 *** as such. This will affect the creation of libtool libraries that
8153 *** depend on shared libraries, but programs linked with such libtool
8154 *** libraries will work regardless of this problem. Nevertheless, you
8155 *** may want to report the problem to your system manager and/or to
8156 *** bug-libtool@gnu.org
8157
8158 _LT_EOF
8159 fi ;;
8160 esac
8161 fi
8162 break
8163 fi
8164 done
8165 IFS=$lt_save_ifs
8166 MAGIC_CMD=$lt_save_MAGIC_CMD
8167 ;;
8168 esac
8169 fi
8170
8171 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8172 if test -n "$MAGIC_CMD"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8174 $as_echo "$MAGIC_CMD" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179
8180
8181 else
8182 MAGIC_CMD=:
8183 fi
8184 fi
8185
8186 fi
8187 ;;
8188 esac
8189
8190 # Use C for the default configuration in the libtool script
8191
8192 lt_save_CC=$CC
8193 ac_ext=c
8194 ac_cpp='$CPP $CPPFLAGS'
8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
8199
8200 # Source file extension for C test sources.
8201 ac_ext=c
8202
8203 # Object file extension for compiled C test sources.
8204 objext=o
8205 objext=$objext
8206
8207 # Code to be used in simple compile tests
8208 lt_simple_compile_test_code="int some_variable = 0;"
8209
8210 # Code to be used in simple link tests
8211 lt_simple_link_test_code='int main(){return(0);}'
8212
8213
8214
8215
8216
8217
8218
8219 # If no C compiler was specified, use CC.
8220 LTCC=${LTCC-"$CC"}
8221
8222 # If no C compiler flags were specified, use CFLAGS.
8223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8224
8225 # Allow CC to be a program name with arguments.
8226 compiler=$CC
8227
8228 # Save the default compiler, since it gets overwritten when the other
8229 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8230 compiler_DEFAULT=$CC
8231
8232 # save warnings/boilerplate of simple test code
8233 ac_outfile=conftest.$ac_objext
8234 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8236 _lt_compiler_boilerplate=`cat conftest.err`
8237 $RM conftest*
8238
8239 ac_outfile=conftest.$ac_objext
8240 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8242 _lt_linker_boilerplate=`cat conftest.err`
8243 $RM -r conftest*
8244
8245
8246 if test -n "$compiler"; then
8247
8248 lt_prog_compiler_no_builtin_flag=
8249
8250 if test yes = "$GCC"; then
8251 case $cc_basename in
8252 nvcc*)
8253 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8254 *)
8255 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8256 esac
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8259 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8260 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 lt_cv_prog_compiler_rtti_exceptions=no
8264 ac_outfile=conftest.$ac_objext
8265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8266 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8267 # Insert the option either (1) after the last *FLAGS variable, or
8268 # (2) before a word containing "conftest.", or (3) at the end.
8269 # Note that $ac_compile itself does not contain backslashes and begins
8270 # with a dollar sign (not a hyphen), so the echo should work correctly.
8271 # The option is referenced via a variable to avoid confusing sed.
8272 lt_compile=`echo "$ac_compile" | $SED \
8273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275 -e 's:$: $lt_compiler_flag:'`
8276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8277 (eval "$lt_compile" 2>conftest.err)
8278 ac_status=$?
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 if (exit $ac_status) && test -s "$ac_outfile"; then
8282 # The compiler can only warn and ignore the option if not recognized
8283 # So say no if there are warnings other than the usual output.
8284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_rtti_exceptions=yes
8288 fi
8289 fi
8290 $RM conftest*
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8294 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8295
8296 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8297 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8298 else
8299 :
8300 fi
8301
8302 fi
8303
8304
8305
8306
8307
8308
8309 lt_prog_compiler_wl=
8310 lt_prog_compiler_pic=
8311 lt_prog_compiler_static=
8312
8313
8314 if test yes = "$GCC"; then
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_static='-static'
8317
8318 case $host_os in
8319 aix*)
8320 # All AIX code is PIC.
8321 if test ia64 = "$host_cpu"; then
8322 # AIX 5 now supports IA64 processor
8323 lt_prog_compiler_static='-Bstatic'
8324 fi
8325 lt_prog_compiler_pic='-fPIC'
8326 ;;
8327
8328 amigaos*)
8329 case $host_cpu in
8330 powerpc)
8331 # see comment about AmigaOS4 .so support
8332 lt_prog_compiler_pic='-fPIC'
8333 ;;
8334 m68k)
8335 # FIXME: we need at least 68020 code to build shared libraries, but
8336 # adding the '-m68020' flag to GCC prevents building anything better,
8337 # like '-m68040'.
8338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8339 ;;
8340 esac
8341 ;;
8342
8343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8344 # PIC is the default for these OSes.
8345 ;;
8346
8347 mingw* | cygwin* | pw32* | os2* | cegcc*)
8348 # This hack is so that the source file can tell whether it is being
8349 # built for inclusion in a dll (and should export symbols for example).
8350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8351 # (--disable-auto-import) libraries
8352 lt_prog_compiler_pic='-DDLL_EXPORT'
8353 case $host_os in
8354 os2*)
8355 lt_prog_compiler_static='$wl-static'
8356 ;;
8357 esac
8358 ;;
8359
8360 darwin* | rhapsody*)
8361 # PIC is the default on this platform
8362 # Common symbols not allowed in MH_DYLIB files
8363 lt_prog_compiler_pic='-fno-common'
8364 ;;
8365
8366 haiku*)
8367 # PIC is the default for Haiku.
8368 # The "-static" flag exists, but is broken.
8369 lt_prog_compiler_static=
8370 ;;
8371
8372 hpux*)
8373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8375 # sets the default TLS model and affects inlining.
8376 case $host_cpu in
8377 hppa*64*)
8378 # +Z the default
8379 ;;
8380 *)
8381 lt_prog_compiler_pic='-fPIC'
8382 ;;
8383 esac
8384 ;;
8385
8386 interix[3-9]*)
8387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8388 # Instead, we relocate shared libraries at runtime.
8389 ;;
8390
8391 msdosdjgpp*)
8392 # Just because we use GCC doesn't mean we suddenly get shared libraries
8393 # on systems that don't support them.
8394 lt_prog_compiler_can_build_shared=no
8395 enable_shared=no
8396 ;;
8397
8398 *nto* | *qnx*)
8399 # QNX uses GNU C++, but need to define -shared option too, otherwise
8400 # it will coredump.
8401 lt_prog_compiler_pic='-fPIC -shared'
8402 ;;
8403
8404 sysv4*MP*)
8405 if test -d /usr/nec; then
8406 lt_prog_compiler_pic=-Kconform_pic
8407 fi
8408 ;;
8409
8410 *)
8411 lt_prog_compiler_pic='-fPIC'
8412 ;;
8413 esac
8414
8415 case $cc_basename in
8416 nvcc*) # Cuda Compiler Driver 2.2
8417 lt_prog_compiler_wl='-Xlinker '
8418 if test -n "$lt_prog_compiler_pic"; then
8419 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8420 fi
8421 ;;
8422 esac
8423 else
8424 # PORTME Check for flag to pass linker flags through the system compiler.
8425 case $host_os in
8426 aix*)
8427 lt_prog_compiler_wl='-Wl,'
8428 if test ia64 = "$host_cpu"; then
8429 # AIX 5 now supports IA64 processor
8430 lt_prog_compiler_static='-Bstatic'
8431 else
8432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8433 fi
8434 ;;
8435
8436 darwin* | rhapsody*)
8437 # PIC is the default on this platform
8438 # Common symbols not allowed in MH_DYLIB files
8439 lt_prog_compiler_pic='-fno-common'
8440 case $cc_basename in
8441 nagfor*)
8442 # NAG Fortran compiler
8443 lt_prog_compiler_wl='-Wl,-Wl,,'
8444 lt_prog_compiler_pic='-PIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 ;;
8447 esac
8448 ;;
8449
8450 mingw* | cygwin* | pw32* | os2* | cegcc*)
8451 # This hack is so that the source file can tell whether it is being
8452 # built for inclusion in a dll (and should export symbols for example).
8453 lt_prog_compiler_pic='-DDLL_EXPORT'
8454 case $host_os in
8455 os2*)
8456 lt_prog_compiler_static='$wl-static'
8457 ;;
8458 esac
8459 ;;
8460
8461 hpux9* | hpux10* | hpux11*)
8462 lt_prog_compiler_wl='-Wl,'
8463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8464 # not for PA HP-UX.
8465 case $host_cpu in
8466 hppa*64*|ia64*)
8467 # +Z the default
8468 ;;
8469 *)
8470 lt_prog_compiler_pic='+Z'
8471 ;;
8472 esac
8473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8474 lt_prog_compiler_static='$wl-a ${wl}archive'
8475 ;;
8476
8477 irix5* | irix6* | nonstopux*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # PIC (with -KPIC) is the default.
8480 lt_prog_compiler_static='-non_shared'
8481 ;;
8482
8483 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8484 case $cc_basename in
8485 # old Intel for x86_64, which still supported -KPIC.
8486 ecc*)
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-KPIC'
8489 lt_prog_compiler_static='-static'
8490 ;;
8491 # icc used to be incompatible with GCC.
8492 # ICC 10 doesn't accept -KPIC any more.
8493 icc* | ifort*)
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-fPIC'
8496 lt_prog_compiler_static='-static'
8497 ;;
8498 # Lahey Fortran 8.1.
8499 lf95*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='--shared'
8502 lt_prog_compiler_static='--static'
8503 ;;
8504 nagfor*)
8505 # NAG Fortran compiler
8506 lt_prog_compiler_wl='-Wl,-Wl,,'
8507 lt_prog_compiler_pic='-PIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510 tcc*)
8511 # Fabrice Bellard et al's Tiny C Compiler
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fPIC'
8514 lt_prog_compiler_static='-static'
8515 ;;
8516 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8517 # Portland Group compilers (*not* the Pentium gcc compiler,
8518 # which looks to be a dead project)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-fpic'
8521 lt_prog_compiler_static='-Bstatic'
8522 ;;
8523 ccc*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # All Alpha code is PIC.
8526 lt_prog_compiler_static='-non_shared'
8527 ;;
8528 xl* | bgxl* | bgf* | mpixl*)
8529 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-qpic'
8532 lt_prog_compiler_static='-qstaticlink'
8533 ;;
8534 *)
8535 case `$CC -V 2>&1 | sed 5q` in
8536 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_wl=''
8541 ;;
8542 *Sun\ F* | *Sun*Fortran*)
8543 lt_prog_compiler_pic='-KPIC'
8544 lt_prog_compiler_static='-Bstatic'
8545 lt_prog_compiler_wl='-Qoption ld '
8546 ;;
8547 *Sun\ C*)
8548 # Sun C 5.9
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 lt_prog_compiler_wl='-Wl,'
8552 ;;
8553 *Intel*\ [CF]*Compiler*)
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_pic='-fPIC'
8556 lt_prog_compiler_static='-static'
8557 ;;
8558 *Portland\ Group*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-fpic'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563 esac
8564 ;;
8565 esac
8566 ;;
8567
8568 newsos6)
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 ;;
8572
8573 *nto* | *qnx*)
8574 # QNX uses GNU C++, but need to define -shared option too, otherwise
8575 # it will coredump.
8576 lt_prog_compiler_pic='-fPIC -shared'
8577 ;;
8578
8579 osf3* | osf4* | osf5*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # All OSF/1 code is PIC.
8582 lt_prog_compiler_static='-non_shared'
8583 ;;
8584
8585 rdos*)
8586 lt_prog_compiler_static='-non_shared'
8587 ;;
8588
8589 solaris*)
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 case $cc_basename in
8593 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8594 lt_prog_compiler_wl='-Qoption ld ';;
8595 *)
8596 lt_prog_compiler_wl='-Wl,';;
8597 esac
8598 ;;
8599
8600 sunos4*)
8601 lt_prog_compiler_wl='-Qoption ld '
8602 lt_prog_compiler_pic='-PIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 ;;
8605
8606 sysv4 | sysv4.2uw2* | sysv4.3*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 sysv4*MP*)
8613 if test -d /usr/nec; then
8614 lt_prog_compiler_pic='-Kconform_pic'
8615 lt_prog_compiler_static='-Bstatic'
8616 fi
8617 ;;
8618
8619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624
8625 unicos*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_can_build_shared=no
8628 ;;
8629
8630 uts4*)
8631 lt_prog_compiler_pic='-pic'
8632 lt_prog_compiler_static='-Bstatic'
8633 ;;
8634
8635 *)
8636 lt_prog_compiler_can_build_shared=no
8637 ;;
8638 esac
8639 fi
8640
8641 case $host_os in
8642 # For platforms that do not support PIC, -DPIC is meaningless:
8643 *djgpp*)
8644 lt_prog_compiler_pic=
8645 ;;
8646 *)
8647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8648 ;;
8649 esac
8650
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8652 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8653 if ${lt_cv_prog_compiler_pic+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8659 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8660 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8661
8662 #
8663 # Check to make sure the PIC flag actually works.
8664 #
8665 if test -n "$lt_prog_compiler_pic"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8667 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8668 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 lt_cv_prog_compiler_pic_works=no
8672 ac_outfile=conftest.$ac_objext
8673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8674 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8675 # Insert the option either (1) after the last *FLAGS variable, or
8676 # (2) before a word containing "conftest.", or (3) at the end.
8677 # Note that $ac_compile itself does not contain backslashes and begins
8678 # with a dollar sign (not a hyphen), so the echo should work correctly.
8679 # The option is referenced via a variable to avoid confusing sed.
8680 lt_compile=`echo "$ac_compile" | $SED \
8681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683 -e 's:$: $lt_compiler_flag:'`
8684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8685 (eval "$lt_compile" 2>conftest.err)
8686 ac_status=$?
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 if (exit $ac_status) && test -s "$ac_outfile"; then
8690 # The compiler can only warn and ignore the option if not recognized
8691 # So say no if there are warnings other than the usual output.
8692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8695 lt_cv_prog_compiler_pic_works=yes
8696 fi
8697 fi
8698 $RM conftest*
8699
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8702 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8703
8704 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8705 case $lt_prog_compiler_pic in
8706 "" | " "*) ;;
8707 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8708 esac
8709 else
8710 lt_prog_compiler_pic=
8711 lt_prog_compiler_can_build_shared=no
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726 #
8727 # Check to make sure the static flag actually works.
8728 #
8729 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8731 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8732 if ${lt_cv_prog_compiler_static_works+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 lt_cv_prog_compiler_static_works=no
8736 save_LDFLAGS=$LDFLAGS
8737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8740 # The linker can only warn and ignore the option if not recognized
8741 # So say no if there are warnings
8742 if test -s conftest.err; then
8743 # Append any errors to the config.log.
8744 cat conftest.err 1>&5
8745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8747 if diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_static_works=yes
8749 fi
8750 else
8751 lt_cv_prog_compiler_static_works=yes
8752 fi
8753 fi
8754 $RM -r conftest*
8755 LDFLAGS=$save_LDFLAGS
8756
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8759 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8760
8761 if test yes = "$lt_cv_prog_compiler_static_works"; then
8762 :
8763 else
8764 lt_prog_compiler_static=
8765 fi
8766
8767
8768
8769
8770
8771
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8774 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8775 if ${lt_cv_prog_compiler_c_o+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 lt_cv_prog_compiler_c_o=no
8779 $RM -r conftest 2>/dev/null
8780 mkdir conftest
8781 cd conftest
8782 mkdir out
8783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784
8785 lt_compiler_flag="-o out/conftest2.$ac_objext"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 lt_compile=`echo "$ac_compile" | $SED \
8791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793 -e 's:$: $lt_compiler_flag:'`
8794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8795 (eval "$lt_compile" 2>out/conftest.err)
8796 ac_status=$?
8797 cat out/conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8800 then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_c_o=yes
8807 fi
8808 fi
8809 chmod u+w . 2>&5
8810 $RM conftest*
8811 # SGI C++ compiler will create directory out/ii_files/ for
8812 # template instantiation
8813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8814 $RM out/* && rmdir out
8815 cd ..
8816 $RM -r conftest
8817 $RM conftest*
8818
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8821 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8822
8823
8824
8825
8826
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8830 if ${lt_cv_prog_compiler_c_o+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 lt_cv_prog_compiler_c_o=no
8834 $RM -r conftest 2>/dev/null
8835 mkdir conftest
8836 cd conftest
8837 mkdir out
8838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8839
8840 lt_compiler_flag="-o out/conftest2.$ac_objext"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 lt_compile=`echo "$ac_compile" | $SED \
8846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848 -e 's:$: $lt_compiler_flag:'`
8849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8850 (eval "$lt_compile" 2>out/conftest.err)
8851 ac_status=$?
8852 cat out/conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8855 then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings
8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler_c_o=yes
8862 fi
8863 fi
8864 chmod u+w . 2>&5
8865 $RM conftest*
8866 # SGI C++ compiler will create directory out/ii_files/ for
8867 # template instantiation
8868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8869 $RM out/* && rmdir out
8870 cd ..
8871 $RM -r conftest
8872 $RM conftest*
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8876 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8877
8878
8879
8880
8881 hard_links=nottested
8882 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8883 # do not overwrite the value of need_locks provided by the user
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8885 $as_echo_n "checking if we can lock with hard links... " >&6; }
8886 hard_links=yes
8887 $RM conftest*
8888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8889 touch conftest.a
8890 ln conftest.a conftest.b 2>&5 || hard_links=no
8891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8893 $as_echo "$hard_links" >&6; }
8894 if test no = "$hard_links"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8896 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8897 need_locks=warn
8898 fi
8899 else
8900 need_locks=no
8901 fi
8902
8903
8904
8905
8906
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8910
8911 runpath_var=
8912 allow_undefined_flag=
8913 always_export_symbols=no
8914 archive_cmds=
8915 archive_expsym_cmds=
8916 compiler_needs_object=no
8917 enable_shared_with_static_runtimes=no
8918 export_dynamic_flag_spec=
8919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8920 hardcode_automatic=no
8921 hardcode_direct=no
8922 hardcode_direct_absolute=no
8923 hardcode_libdir_flag_spec=
8924 hardcode_libdir_separator=
8925 hardcode_minus_L=no
8926 hardcode_shlibpath_var=unsupported
8927 inherit_rpath=no
8928 link_all_deplibs=unknown
8929 module_cmds=
8930 module_expsym_cmds=
8931 old_archive_from_new_cmds=
8932 old_archive_from_expsyms_cmds=
8933 thread_safe_flag_spec=
8934 whole_archive_flag_spec=
8935 # include_expsyms should be a list of space-separated symbols to be *always*
8936 # included in the symbol list
8937 include_expsyms=
8938 # exclude_expsyms can be an extended regexp of symbols to exclude
8939 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8940 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8941 # as well as any symbol that contains 'd'.
8942 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944 # platforms (ab)use it in PIC code, but their linkers get confused if
8945 # the symbol is explicitly referenced. Since portable code cannot
8946 # rely on this symbol name, it's probably fine to never include it in
8947 # preloaded symbol tables.
8948 # Exclude shared library initialization/finalization symbols.
8949 extract_expsyms_cmds=
8950
8951 case $host_os in
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8954 # When not using gcc, we currently assume that we are using
8955 # Microsoft Visual C++.
8956 if test yes != "$GCC"; then
8957 with_gnu_ld=no
8958 fi
8959 ;;
8960 interix*)
8961 # we just hope/assume this is gcc and not c89 (= MSVC++)
8962 with_gnu_ld=yes
8963 ;;
8964 openbsd* | bitrig*)
8965 with_gnu_ld=no
8966 ;;
8967 esac
8968
8969 ld_shlibs=yes
8970
8971 # On some targets, GNU ld is compatible enough with the native linker
8972 # that we're better off using the native interface for both.
8973 lt_use_gnu_ld_interface=no
8974 if test yes = "$with_gnu_ld"; then
8975 case $host_os in
8976 aix*)
8977 # The AIX port of GNU ld has always aspired to compatibility
8978 # with the native linker. However, as the warning in the GNU ld
8979 # block says, versions before 2.19.5* couldn't really create working
8980 # shared libraries, regardless of the interface used.
8981 case `$LD -v 2>&1` in
8982 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8983 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8984 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8985 *)
8986 lt_use_gnu_ld_interface=yes
8987 ;;
8988 esac
8989 ;;
8990 *)
8991 lt_use_gnu_ld_interface=yes
8992 ;;
8993 esac
8994 fi
8995
8996 if test yes = "$lt_use_gnu_ld_interface"; then
8997 # If archive_cmds runs LD, not CC, wlarc should be empty
8998 wlarc='$wl'
8999
9000 # Set some defaults for GNU ld with shared library support. These
9001 # are reset later if shared libraries are not supported. Putting them
9002 # here allows them to be overridden if necessary.
9003 runpath_var=LD_RUN_PATH
9004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9005 export_dynamic_flag_spec='$wl--export-dynamic'
9006 # ancient GNU ld didn't support --whole-archive et. al.
9007 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9008 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9009 else
9010 whole_archive_flag_spec=
9011 fi
9012 supports_anon_versioning=no
9013 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9014 *GNU\ gold*) supports_anon_versioning=yes ;;
9015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9018 *\ 2.11.*) ;; # other 2.11 versions
9019 *) supports_anon_versioning=yes ;;
9020 esac
9021
9022 # See if GNU ld supports shared libraries.
9023 case $host_os in
9024 aix[3-9]*)
9025 # On AIX/PPC, the GNU linker is very broken
9026 if test ia64 != "$host_cpu"; then
9027 ld_shlibs=no
9028 cat <<_LT_EOF 1>&2
9029
9030 *** Warning: the GNU linker, at least up to release 2.19, is reported
9031 *** to be unable to reliably create shared libraries on AIX.
9032 *** Therefore, libtool is disabling shared libraries support. If you
9033 *** really care for shared libraries, you may want to install binutils
9034 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9035 *** You will then need to restart the configuration process.
9036
9037 _LT_EOF
9038 fi
9039 ;;
9040
9041 amigaos*)
9042 case $host_cpu in
9043 powerpc)
9044 # see comment about AmigaOS4 .so support
9045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9046 archive_expsym_cmds=''
9047 ;;
9048 m68k)
9049 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)'
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 hardcode_minus_L=yes
9052 ;;
9053 esac
9054 ;;
9055
9056 beos*)
9057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058 allow_undefined_flag=unsupported
9059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9060 # support --undefined. This deserves some investigation. FIXME
9061 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
9066
9067 cygwin* | mingw* | pw32* | cegcc*)
9068 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9069 # as there is no search path for DLLs.
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 export_dynamic_flag_spec='$wl--export-all-symbols'
9072 allow_undefined_flag=unsupported
9073 always_export_symbols=no
9074 enable_shared_with_static_runtimes=yes
9075 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'
9076 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9077
9078 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9080 # If the export-symbols file already is a .def file, use it as
9081 # is; otherwise, prepend EXPORTS...
9082 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9083 cp $export_symbols $output_objdir/$soname.def;
9084 else
9085 echo EXPORTS > $output_objdir/$soname.def;
9086 cat $export_symbols >> $output_objdir/$soname.def;
9087 fi~
9088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9089 else
9090 ld_shlibs=no
9091 fi
9092 ;;
9093
9094 haiku*)
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9096 link_all_deplibs=yes
9097 ;;
9098
9099 os2*)
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_minus_L=yes
9102 allow_undefined_flag=unsupported
9103 shrext_cmds=.dll
9104 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9107 $ECHO EXPORTS >> $output_objdir/$libname.def~
9108 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9109 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9110 emximp -o $lib $output_objdir/$libname.def'
9111 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9114 $ECHO EXPORTS >> $output_objdir/$libname.def~
9115 prefix_cmds="$SED"~
9116 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9117 prefix_cmds="$prefix_cmds -e 1d";
9118 fi~
9119 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9120 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9122 emximp -o $lib $output_objdir/$libname.def'
9123 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9124 enable_shared_with_static_runtimes=yes
9125 ;;
9126
9127 interix[3-9]*)
9128 hardcode_direct=no
9129 hardcode_shlibpath_var=no
9130 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9131 export_dynamic_flag_spec='$wl-E'
9132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9133 # Instead, shared libraries are loaded at an image base (0x10000000 by
9134 # default) and relocated if they conflict, which is a slow very memory
9135 # consuming and fragmenting process. To avoid this, we pick a random,
9136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9139 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'
9140 ;;
9141
9142 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9143 tmp_diet=no
9144 if test linux-dietlibc = "$host_os"; then
9145 case $cc_basename in
9146 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9147 esac
9148 fi
9149 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9150 && test no = "$tmp_diet"
9151 then
9152 tmp_addflag=' $pic_flag'
9153 tmp_sharedflag='-shared'
9154 case $cc_basename,$host_cpu in
9155 pgcc*) # Portland Group C compiler
9156 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'
9157 tmp_addflag=' $pic_flag'
9158 ;;
9159 pgf77* | pgf90* | pgf95* | pgfortran*)
9160 # Portland Group f77 and f90 compilers
9161 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'
9162 tmp_addflag=' $pic_flag -Mnomain' ;;
9163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9164 tmp_addflag=' -i_dynamic' ;;
9165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9166 tmp_addflag=' -i_dynamic -nofor_main' ;;
9167 ifc* | ifort*) # Intel Fortran compiler
9168 tmp_addflag=' -nofor_main' ;;
9169 lf95*) # Lahey Fortran 8.1
9170 whole_archive_flag_spec=
9171 tmp_sharedflag='--shared' ;;
9172 nagfor*) # NAGFOR 5.3
9173 tmp_sharedflag='-Wl,-shared' ;;
9174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9175 tmp_sharedflag='-qmkshrobj'
9176 tmp_addflag= ;;
9177 nvcc*) # Cuda Compiler Driver 2.2
9178 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'
9179 compiler_needs_object=yes
9180 ;;
9181 esac
9182 case `$CC -V 2>&1 | sed 5q` in
9183 *Sun\ C*) # Sun C 5.9
9184 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'
9185 compiler_needs_object=yes
9186 tmp_sharedflag='-G' ;;
9187 *Sun\ F*) # Sun Fortran 8.3
9188 tmp_sharedflag='-G' ;;
9189 esac
9190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9191
9192 if test yes = "$supports_anon_versioning"; then
9193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9195 echo "local: *; };" >> $output_objdir/$libname.ver~
9196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9197 fi
9198
9199 case $cc_basename in
9200 tcc*)
9201 export_dynamic_flag_spec='-rdynamic'
9202 ;;
9203 xlf* | bgf* | bgxlf* | mpixlf*)
9204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9207 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9208 if test yes = "$supports_anon_versioning"; then
9209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9213 fi
9214 ;;
9215 esac
9216 else
9217 ld_shlibs=no
9218 fi
9219 ;;
9220
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9224 wlarc=
9225 else
9226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9228 fi
9229 ;;
9230
9231 solaris*)
9232 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9233 ld_shlibs=no
9234 cat <<_LT_EOF 1>&2
9235
9236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9237 *** create shared libraries on Solaris systems. Therefore, libtool
9238 *** is disabling shared libraries support. We urge you to upgrade GNU
9239 *** binutils to release 2.9.1 or newer. Another option is to modify
9240 *** your PATH or compiler configuration so that the native linker is
9241 *** used, and then restart.
9242
9243 _LT_EOF
9244 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9253 case `$LD -v 2>&1` in
9254 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9257
9258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9259 *** reliably create shared libraries on SCO systems. Therefore, libtool
9260 *** is disabling shared libraries support. We urge you to upgrade GNU
9261 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9262 *** your PATH or compiler configuration so that the native linker is
9263 *** used, and then restart.
9264
9265 _LT_EOF
9266 ;;
9267 *)
9268 # For security reasons, it is highly recommended that you always
9269 # use absolute paths for naming shared libraries, and exclude the
9270 # DT_RUNPATH tag from executables and libraries. But doing so
9271 # requires that you compile everything twice, which is a pain.
9272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280 esac
9281 ;;
9282
9283 sunos4*)
9284 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 wlarc=
9286 hardcode_direct=yes
9287 hardcode_shlibpath_var=no
9288 ;;
9289
9290 *)
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298 esac
9299
9300 if test no = "$ld_shlibs"; then
9301 runpath_var=
9302 hardcode_libdir_flag_spec=
9303 export_dynamic_flag_spec=
9304 whole_archive_flag_spec=
9305 fi
9306 else
9307 # PORTME fill in a description of your system's linker (not GNU ld)
9308 case $host_os in
9309 aix3*)
9310 allow_undefined_flag=unsupported
9311 always_export_symbols=yes
9312 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'
9313 # Note: this linker hardcodes the directories in LIBPATH if there
9314 # are no directories specified by -L.
9315 hardcode_minus_L=yes
9316 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9317 # Neither direct hardcoding nor static linking is supported with a
9318 # broken collect2.
9319 hardcode_direct=unsupported
9320 fi
9321 ;;
9322
9323 aix[4-9]*)
9324 if test ia64 = "$host_cpu"; then
9325 # On IA64, the linker does run time linking by default, so we don't
9326 # have to do anything special.
9327 aix_use_runtimelinking=no
9328 exp_sym_flag='-Bexport'
9329 no_entry_flag=
9330 else
9331 # If we're using GNU nm, then we don't want the "-C" option.
9332 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9333 # Without the "-l" option, or with the "-B" option, AIX nm treats
9334 # weak defined symbols like other global defined symbols, whereas
9335 # GNU nm marks them as "W".
9336 # While the 'weak' keyword is ignored in the Export File, we need
9337 # it in the Import File for the 'aix-soname' feature, so we have
9338 # to replace the "-B" option with "-P" for AIX nm.
9339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9340 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'
9341 else
9342 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'
9343 fi
9344 aix_use_runtimelinking=no
9345
9346 # Test if we are trying to use run time linking or normal
9347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9348 # have runtime linking enabled, and use it for executables.
9349 # For shared libraries, we enable/disable runtime linking
9350 # depending on the kind of the shared library created -
9351 # when "with_aix_soname,aix_use_runtimelinking" is:
9352 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9353 # "aix,yes" lib.so shared, rtl:yes, for executables
9354 # lib.a static archive
9355 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9356 # lib.a(lib.so.V) shared, rtl:no, for executables
9357 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9358 # lib.a(lib.so.V) shared, rtl:no
9359 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9360 # lib.a static archive
9361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9362 for ld_flag in $LDFLAGS; do
9363 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9364 aix_use_runtimelinking=yes
9365 break
9366 fi
9367 done
9368 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9369 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9370 # so we don't have lib.a shared libs to link our executables.
9371 # We have to force runtime linking in this case.
9372 aix_use_runtimelinking=yes
9373 LDFLAGS="$LDFLAGS -Wl,-brtl"
9374 fi
9375 ;;
9376 esac
9377
9378 exp_sym_flag='-bexport'
9379 no_entry_flag='-bnoentry'
9380 fi
9381
9382 # When large executables or shared objects are built, AIX ld can
9383 # have problems creating the table of contents. If linking a library
9384 # or program results in "error TOC overflow" add -mminimal-toc to
9385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9387
9388 archive_cmds=''
9389 hardcode_direct=yes
9390 hardcode_direct_absolute=yes
9391 hardcode_libdir_separator=':'
9392 link_all_deplibs=yes
9393 file_list_spec='$wl-f,'
9394 case $with_aix_soname,$aix_use_runtimelinking in
9395 aix,*) ;; # traditional, no import file
9396 svr4,* | *,yes) # use import file
9397 # The Import File defines what to hardcode.
9398 hardcode_direct=no
9399 hardcode_direct_absolute=no
9400 ;;
9401 esac
9402
9403 if test yes = "$GCC"; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`$CC -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9412 :
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9422 fi
9423 ;;
9424 esac
9425 shared_flag='-shared'
9426 if test yes = "$aix_use_runtimelinking"; then
9427 shared_flag="$shared_flag "'$wl-G'
9428 fi
9429 # Need to ensure runtime linking is disabled for the traditional
9430 # shared library, or the linker may eventually find shared libraries
9431 # /with/ Import File - we do not want to mix them.
9432 shared_flag_aix='-shared'
9433 shared_flag_svr4='-shared $wl-G'
9434 else
9435 # not using gcc
9436 if test ia64 = "$host_cpu"; then
9437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9438 # chokes on -Wl,-G. The following line is correct:
9439 shared_flag='-G'
9440 else
9441 if test yes = "$aix_use_runtimelinking"; then
9442 shared_flag='$wl-G'
9443 else
9444 shared_flag='$wl-bM:SRE'
9445 fi
9446 shared_flag_aix='$wl-bM:SRE'
9447 shared_flag_svr4='$wl-G'
9448 fi
9449 fi
9450
9451 export_dynamic_flag_spec='$wl-bexpall'
9452 # It seems that -bexpall does not export symbols beginning with
9453 # underscore (_), so it is better to generate a list of symbols to export.
9454 always_export_symbols=yes
9455 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9456 # Warning - without using the other runtime loading flags (-brtl),
9457 # -berok will link without error, but may produce a broken library.
9458 allow_undefined_flag='-berok'
9459 # Determine the default libpath from the value encoded in an
9460 # empty executable.
9461 if test set = "${lt_cv_aix_libpath+set}"; then
9462 aix_libpath=$lt_cv_aix_libpath
9463 else
9464 if ${lt_cv_aix_libpath_+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 int
9471 main ()
9472 {
9473
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479
9480 lt_aix_libpath_sed='
9481 /Import File Strings/,/^$/ {
9482 /^0/ {
9483 s/^0 *\([^ ]*\) *$/\1/
9484 p
9485 }
9486 }'
9487 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488 # Check for a 64-bit object if we didn't find anything.
9489 if test -z "$lt_cv_aix_libpath_"; then
9490 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491 fi
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 if test -z "$lt_cv_aix_libpath_"; then
9496 lt_cv_aix_libpath_=/usr/lib:/lib
9497 fi
9498
9499 fi
9500
9501 aix_libpath=$lt_cv_aix_libpath_
9502 fi
9503
9504 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9505 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
9506 else
9507 if test ia64 = "$host_cpu"; then
9508 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9509 allow_undefined_flag="-z nodefs"
9510 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"
9511 else
9512 # Determine the default libpath from the value encoded in an
9513 # empty executable.
9514 if test set = "${lt_cv_aix_libpath+set}"; then
9515 aix_libpath=$lt_cv_aix_libpath
9516 else
9517 if ${lt_cv_aix_libpath_+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522
9523 int
9524 main ()
9525 {
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532
9533 lt_aix_libpath_sed='
9534 /Import File Strings/,/^$/ {
9535 /^0/ {
9536 s/^0 *\([^ ]*\) *$/\1/
9537 p
9538 }
9539 }'
9540 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541 # Check for a 64-bit object if we didn't find anything.
9542 if test -z "$lt_cv_aix_libpath_"; then
9543 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544 fi
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 if test -z "$lt_cv_aix_libpath_"; then
9549 lt_cv_aix_libpath_=/usr/lib:/lib
9550 fi
9551
9552 fi
9553
9554 aix_libpath=$lt_cv_aix_libpath_
9555 fi
9556
9557 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9558 # Warning - without using the other run time loading flags,
9559 # -berok will link without error, but may produce a broken library.
9560 no_undefined_flag=' $wl-bernotok'
9561 allow_undefined_flag=' $wl-berok'
9562 if test yes = "$with_gnu_ld"; then
9563 # We only use this code for GNU lds that support --whole-archive.
9564 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9565 else
9566 # Exported symbols can be pulled into shared objects from archives
9567 whole_archive_flag_spec='$convenience'
9568 fi
9569 archive_cmds_need_lc=yes
9570 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9571 # -brtl affects multiple linker settings, -berok does not and is overridden later
9572 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9573 if test svr4 != "$with_aix_soname"; then
9574 # This is similar to how AIX traditionally builds its shared libraries.
9575 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'
9576 fi
9577 if test aix != "$with_aix_soname"; then
9578 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'
9579 else
9580 # used by -dlpreopen to get the symbols
9581 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9582 fi
9583 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9584 fi
9585 fi
9586 ;;
9587
9588 amigaos*)
9589 case $host_cpu in
9590 powerpc)
9591 # see comment about AmigaOS4 .so support
9592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9593 archive_expsym_cmds=''
9594 ;;
9595 m68k)
9596 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)'
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_minus_L=yes
9599 ;;
9600 esac
9601 ;;
9602
9603 bsdi[45]*)
9604 export_dynamic_flag_spec=-rdynamic
9605 ;;
9606
9607 cygwin* | mingw* | pw32* | cegcc*)
9608 # When not using gcc, we currently assume that we are using
9609 # Microsoft Visual C++.
9610 # hardcode_libdir_flag_spec is actually meaningless, as there is
9611 # no search path for DLLs.
9612 case $cc_basename in
9613 cl*)
9614 # Native MSVC
9615 hardcode_libdir_flag_spec=' '
9616 allow_undefined_flag=unsupported
9617 always_export_symbols=yes
9618 file_list_spec='@'
9619 # Tell ltmain to make .lib files, not .a files.
9620 libext=lib
9621 # Tell ltmain to make .dll files, not .so files.
9622 shrext_cmds=.dll
9623 # FIXME: Setting linknames here is a bad hack.
9624 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9625 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9626 cp "$export_symbols" "$output_objdir/$soname.def";
9627 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9628 else
9629 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9630 fi~
9631 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9632 linknames='
9633 # The linker will not automatically build a static lib if we build a DLL.
9634 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9635 enable_shared_with_static_runtimes=yes
9636 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9638 # Don't use ranlib
9639 old_postinstall_cmds='chmod 644 $oldlib'
9640 postlink_cmds='lt_outputfile="@OUTPUT@"~
9641 lt_tool_outputfile="@TOOL_OUTPUT@"~
9642 case $lt_outputfile in
9643 *.exe|*.EXE) ;;
9644 *)
9645 lt_outputfile=$lt_outputfile.exe
9646 lt_tool_outputfile=$lt_tool_outputfile.exe
9647 ;;
9648 esac~
9649 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9650 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9651 $RM "$lt_outputfile.manifest";
9652 fi'
9653 ;;
9654 *)
9655 # Assume MSVC wrapper
9656 hardcode_libdir_flag_spec=' '
9657 allow_undefined_flag=unsupported
9658 # Tell ltmain to make .lib files, not .a files.
9659 libext=lib
9660 # Tell ltmain to make .dll files, not .so files.
9661 shrext_cmds=.dll
9662 # FIXME: Setting linknames here is a bad hack.
9663 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9664 # The linker will automatically build a .lib file if we build a DLL.
9665 old_archive_from_new_cmds='true'
9666 # FIXME: Should let the user specify the lib program.
9667 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9668 enable_shared_with_static_runtimes=yes
9669 ;;
9670 esac
9671 ;;
9672
9673 darwin* | rhapsody*)
9674
9675
9676 archive_cmds_need_lc=no
9677 hardcode_direct=no
9678 hardcode_automatic=yes
9679 hardcode_shlibpath_var=unsupported
9680 if test yes = "$lt_cv_ld_force_load"; then
9681 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\"`'
9682
9683 else
9684 whole_archive_flag_spec=''
9685 fi
9686 link_all_deplibs=yes
9687 allow_undefined_flag=$_lt_dar_allow_undefined
9688 case $cc_basename in
9689 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9690 *) _lt_dar_can_shared=$GCC ;;
9691 esac
9692 if test yes = "$_lt_dar_can_shared"; then
9693 output_verbose_link_cmd=func_echo_all
9694 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9695 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9696 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"
9697 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"
9698
9699 else
9700 ld_shlibs=no
9701 fi
9702
9703 ;;
9704
9705 dgux*)
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec='-L$libdir'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712 # support. Future versions do this automatically, but an explicit c++rt0.o
9713 # does not break anything, and helps significantly (at the cost of a little
9714 # extra space).
9715 freebsd2.2*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9723 freebsd2.*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=yes
9726 hardcode_minus_L=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731 freebsd* | dragonfly*)
9732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 hpux9*)
9739 if test yes = "$GCC"; then
9740 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'
9741 else
9742 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'
9743 fi
9744 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_direct=yes
9747
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 export_dynamic_flag_spec='$wl-E'
9752 ;;
9753
9754 hpux10*)
9755 if test yes,no = "$GCC,$with_gnu_ld"; then
9756 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9759 fi
9760 if test no = "$with_gnu_ld"; then
9761 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9762 hardcode_libdir_separator=:
9763 hardcode_direct=yes
9764 hardcode_direct_absolute=yes
9765 export_dynamic_flag_spec='$wl-E'
9766 # hardcode_minus_L: Not really in the search PATH,
9767 # but as the default location of the library.
9768 hardcode_minus_L=yes
9769 fi
9770 ;;
9771
9772 hpux11*)
9773 if test yes,no = "$GCC,$with_gnu_ld"; then
9774 case $host_cpu in
9775 hppa*64*)
9776 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 ia64*)
9779 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 ;;
9781 *)
9782 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9783 ;;
9784 esac
9785 else
9786 case $host_cpu in
9787 hppa*64*)
9788 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 ia64*)
9791 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 *)
9794
9795 # Older versions of the 11.00 compiler do not understand -b yet
9796 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9798 $as_echo_n "checking if $CC understands -b... " >&6; }
9799 if ${lt_cv_prog_compiler__b+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 lt_cv_prog_compiler__b=no
9803 save_LDFLAGS=$LDFLAGS
9804 LDFLAGS="$LDFLAGS -b"
9805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9807 # The linker can only warn and ignore the option if not recognized
9808 # So say no if there are warnings
9809 if test -s conftest.err; then
9810 # Append any errors to the config.log.
9811 cat conftest.err 1>&5
9812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9814 if diff conftest.exp conftest.er2 >/dev/null; then
9815 lt_cv_prog_compiler__b=yes
9816 fi
9817 else
9818 lt_cv_prog_compiler__b=yes
9819 fi
9820 fi
9821 $RM -r conftest*
9822 LDFLAGS=$save_LDFLAGS
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9826 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9827
9828 if test yes = "$lt_cv_prog_compiler__b"; then
9829 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832 fi
9833
9834 ;;
9835 esac
9836 fi
9837 if test no = "$with_gnu_ld"; then
9838 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9839 hardcode_libdir_separator=:
9840
9841 case $host_cpu in
9842 hppa*64*|ia64*)
9843 hardcode_direct=no
9844 hardcode_shlibpath_var=no
9845 ;;
9846 *)
9847 hardcode_direct=yes
9848 hardcode_direct_absolute=yes
9849 export_dynamic_flag_spec='$wl-E'
9850
9851 # hardcode_minus_L: Not really in the search PATH,
9852 # but as the default location of the library.
9853 hardcode_minus_L=yes
9854 ;;
9855 esac
9856 fi
9857 ;;
9858
9859 irix5* | irix6* | nonstopux*)
9860 if test yes = "$GCC"; then
9861 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'
9862 # Try to use the -exported_symbol ld option, if it does not
9863 # work, assume that -exports_file does not work either and
9864 # implicitly export all symbols.
9865 # This should be the same for all languages, so no per-tag cache variable.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9867 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9868 if ${lt_cv_irix_exported_symbol+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 save_LDFLAGS=$LDFLAGS
9872 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 int foo (void) { return 0; }
9876 _ACEOF
9877 if ac_fn_c_try_link "$LINENO"; then :
9878 lt_cv_irix_exported_symbol=yes
9879 else
9880 lt_cv_irix_exported_symbol=no
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 LDFLAGS=$save_LDFLAGS
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9887 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9888 if test yes = "$lt_cv_irix_exported_symbol"; then
9889 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'
9890 fi
9891 else
9892 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'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9897 hardcode_libdir_separator=:
9898 inherit_rpath=yes
9899 link_all_deplibs=yes
9900 ;;
9901
9902 linux*)
9903 case $cc_basename in
9904 tcc*)
9905 # Fabrice Bellard et al's Tiny C Compiler
9906 ld_shlibs=yes
9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9908 ;;
9909 esac
9910 ;;
9911
9912 netbsd*)
9913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9915 else
9916 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9917 fi
9918 hardcode_libdir_flag_spec='-R$libdir'
9919 hardcode_direct=yes
9920 hardcode_shlibpath_var=no
9921 ;;
9922
9923 newsos6)
9924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_direct=yes
9926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9927 hardcode_libdir_separator=:
9928 hardcode_shlibpath_var=no
9929 ;;
9930
9931 *nto* | *qnx*)
9932 ;;
9933
9934 openbsd* | bitrig*)
9935 if test -f /usr/libexec/ld.so; then
9936 hardcode_direct=yes
9937 hardcode_shlibpath_var=no
9938 hardcode_direct_absolute=yes
9939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9942 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943 export_dynamic_flag_spec='$wl-E'
9944 else
9945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9946 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9947 fi
9948 else
9949 ld_shlibs=no
9950 fi
9951 ;;
9952
9953 os2*)
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_minus_L=yes
9956 allow_undefined_flag=unsupported
9957 shrext_cmds=.dll
9958 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9959 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9960 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9961 $ECHO EXPORTS >> $output_objdir/$libname.def~
9962 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9964 emximp -o $lib $output_objdir/$libname.def'
9965 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9968 $ECHO EXPORTS >> $output_objdir/$libname.def~
9969 prefix_cmds="$SED"~
9970 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9971 prefix_cmds="$prefix_cmds -e 1d";
9972 fi~
9973 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9974 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9976 emximp -o $lib $output_objdir/$libname.def'
9977 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9978 enable_shared_with_static_runtimes=yes
9979 ;;
9980
9981 osf3*)
9982 if test yes = "$GCC"; then
9983 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9984 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'
9985 else
9986 allow_undefined_flag=' -expect_unresolved \*'
9987 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'
9988 fi
9989 archive_cmds_need_lc='no'
9990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991 hardcode_libdir_separator=:
9992 ;;
9993
9994 osf4* | osf5*) # as osf3* with the addition of -msym flag
9995 if test yes = "$GCC"; then
9996 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9997 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'
9998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9999 else
10000 allow_undefined_flag=' -expect_unresolved \*'
10001 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'
10002 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~
10003 $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'
10004
10005 # Both c and cxx compiler support -rpath directly
10006 hardcode_libdir_flag_spec='-rpath $libdir'
10007 fi
10008 archive_cmds_need_lc='no'
10009 hardcode_libdir_separator=:
10010 ;;
10011
10012 solaris*)
10013 no_undefined_flag=' -z defs'
10014 if test yes = "$GCC"; then
10015 wlarc='$wl'
10016 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018 $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'
10019 else
10020 case `$CC -V 2>&1` in
10021 *"Compilers 5.0"*)
10022 wlarc=''
10023 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10025 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10026 ;;
10027 *)
10028 wlarc='$wl'
10029 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10032 ;;
10033 esac
10034 fi
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 hardcode_shlibpath_var=no
10037 case $host_os in
10038 solaris2.[0-5] | solaris2.[0-5].*) ;;
10039 *)
10040 # The compiler driver will combine and reorder linker options,
10041 # but understands '-z linker_flag'. GCC discards it without '$wl',
10042 # but is careful enough not to reorder.
10043 # Supported since Solaris 2.6 (maybe 2.5.1?)
10044 if test yes = "$GCC"; then
10045 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10046 else
10047 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10048 fi
10049 ;;
10050 esac
10051 link_all_deplibs=yes
10052 ;;
10053
10054 sunos4*)
10055 if test sequent = "$host_vendor"; then
10056 # Use $CC to link under sequent, because it throws in some extra .o
10057 # files that make .init and .fini sections work.
10058 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10061 fi
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_direct=yes
10064 hardcode_minus_L=yes
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 sysv4)
10069 case $host_vendor in
10070 sni)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct=yes # is this really true???
10073 ;;
10074 siemens)
10075 ## LD is ld it makes a PLAMLIB
10076 ## CC just makes a GrossModule.
10077 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10078 reload_cmds='$CC -r -o $output$reload_objs'
10079 hardcode_direct=no
10080 ;;
10081 motorola)
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10084 ;;
10085 esac
10086 runpath_var='LD_RUN_PATH'
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 sysv4.3*)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_shlibpath_var=no
10093 export_dynamic_flag_spec='-Bexport'
10094 ;;
10095
10096 sysv4*MP*)
10097 if test -d /usr/nec; then
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_shlibpath_var=no
10100 runpath_var=LD_RUN_PATH
10101 hardcode_runpath_var=yes
10102 ld_shlibs=yes
10103 fi
10104 ;;
10105
10106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10107 no_undefined_flag='$wl-z,text'
10108 archive_cmds_need_lc=no
10109 hardcode_shlibpath_var=no
10110 runpath_var='LD_RUN_PATH'
10111
10112 if test yes = "$GCC"; then
10113 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 fi
10119 ;;
10120
10121 sysv5* | sco3.2v5* | sco5v6*)
10122 # Note: We CANNOT use -z defs as we might desire, because we do not
10123 # link with -lc, and that would cause any symbols used from libc to
10124 # always be unresolved, which means just about no library would
10125 # ever link correctly. If we're not using GNU ld we use -z text
10126 # though, which does catch some bad symbols but isn't as heavy-handed
10127 # as -z defs.
10128 no_undefined_flag='$wl-z,text'
10129 allow_undefined_flag='$wl-z,nodefs'
10130 archive_cmds_need_lc=no
10131 hardcode_shlibpath_var=no
10132 hardcode_libdir_flag_spec='$wl-R,$libdir'
10133 hardcode_libdir_separator=':'
10134 link_all_deplibs=yes
10135 export_dynamic_flag_spec='$wl-Bexport'
10136 runpath_var='LD_RUN_PATH'
10137
10138 if test yes = "$GCC"; then
10139 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 else
10142 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 fi
10145 ;;
10146
10147 uts4*)
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_libdir_flag_spec='-L$libdir'
10150 hardcode_shlibpath_var=no
10151 ;;
10152
10153 *)
10154 ld_shlibs=no
10155 ;;
10156 esac
10157
10158 if test sni = "$host_vendor"; then
10159 case $host in
10160 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10161 export_dynamic_flag_spec='$wl-Blargedynsym'
10162 ;;
10163 esac
10164 fi
10165 fi
10166
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10168 $as_echo "$ld_shlibs" >&6; }
10169 test no = "$ld_shlibs" && can_build_shared=no
10170
10171 with_gnu_ld=$with_gnu_ld
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 #
10188 # Do we need to explicitly link libc?
10189 #
10190 case "x$archive_cmds_need_lc" in
10191 x|xyes)
10192 # Assume -lc should be added
10193 archive_cmds_need_lc=yes
10194
10195 if test yes,yes = "$GCC,$enable_shared"; then
10196 case $archive_cmds in
10197 *'~'*)
10198 # FIXME: we may have to deal with multi-command sequences.
10199 ;;
10200 '$CC '*)
10201 # Test whether the compiler implicitly links with -lc since on some
10202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10203 # to ld, don't add -lc before -lgcc.
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10205 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10206 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 $RM conftest*
10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10213 (eval $ac_compile) 2>&5
10214 ac_status=$?
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; } 2>conftest.err; then
10217 soname=conftest
10218 lib=conftest
10219 libobjs=conftest.$ac_objext
10220 deplibs=
10221 wl=$lt_prog_compiler_wl
10222 pic_flag=$lt_prog_compiler_pic
10223 compiler_flags=-v
10224 linker_flags=-v
10225 verstring=
10226 output_objdir=.
10227 libname=conftest
10228 lt_save_allow_undefined_flag=$allow_undefined_flag
10229 allow_undefined_flag=
10230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10231 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10232 ac_status=$?
10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }
10235 then
10236 lt_cv_archive_cmds_need_lc=no
10237 else
10238 lt_cv_archive_cmds_need_lc=yes
10239 fi
10240 allow_undefined_flag=$lt_save_allow_undefined_flag
10241 else
10242 cat conftest.err 1>&5
10243 fi
10244 $RM conftest*
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10248 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10249 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10250 ;;
10251 esac
10252 fi
10253 ;;
10254 esac
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10408 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10409
10410 if test yes = "$GCC"; then
10411 case $host_os in
10412 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10413 *) lt_awk_arg='/^libraries:/' ;;
10414 esac
10415 case $host_os in
10416 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10417 *) lt_sed_strip_eq='s|=/|/|g' ;;
10418 esac
10419 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10420 case $lt_search_path_spec in
10421 *\;*)
10422 # if the path contains ";" then we assume it to be the separator
10423 # otherwise default to the standard path separator (i.e. ":") - it is
10424 # assumed that no part of a normal pathname contains ";" but that should
10425 # okay in the real world where ";" in dirpaths is itself problematic.
10426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10427 ;;
10428 *)
10429 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10430 ;;
10431 esac
10432 # Ok, now we have the path, separated by spaces, we can step through it
10433 # and add multilib dir if necessary...
10434 lt_tmp_lt_search_path_spec=
10435 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10436 # ...but if some path component already ends with the multilib dir we assume
10437 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10438 case "$lt_multi_os_dir; $lt_search_path_spec " in
10439 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10440 lt_multi_os_dir=
10441 ;;
10442 esac
10443 for lt_sys_path in $lt_search_path_spec; do
10444 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10446 elif test -n "$lt_multi_os_dir"; then
10447 test -d "$lt_sys_path" && \
10448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10449 fi
10450 done
10451 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10452 BEGIN {RS = " "; FS = "/|\n";} {
10453 lt_foo = "";
10454 lt_count = 0;
10455 for (lt_i = NF; lt_i > 0; lt_i--) {
10456 if ($lt_i != "" && $lt_i != ".") {
10457 if ($lt_i == "..") {
10458 lt_count++;
10459 } else {
10460 if (lt_count == 0) {
10461 lt_foo = "/" $lt_i lt_foo;
10462 } else {
10463 lt_count--;
10464 }
10465 }
10466 }
10467 }
10468 if (lt_foo != "") { lt_freq[lt_foo]++; }
10469 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10470 }'`
10471 # AWK program above erroneously prepends '/' to C:/dos/paths
10472 # for these hosts.
10473 case $host_os in
10474 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10475 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10476 esac
10477 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10478 else
10479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10480 fi
10481 library_names_spec=
10482 libname_spec='lib$name'
10483 soname_spec=
10484 shrext_cmds=.so
10485 postinstall_cmds=
10486 postuninstall_cmds=
10487 finish_cmds=
10488 finish_eval=
10489 shlibpath_var=
10490 shlibpath_overrides_runpath=unknown
10491 version_type=none
10492 dynamic_linker="$host_os ld.so"
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10494 need_lib_prefix=unknown
10495 hardcode_into_libs=no
10496
10497 # when you set need_version to no, make sure it does not cause -set_version
10498 # flags to be left without arguments
10499 need_version=unknown
10500
10501
10502
10503 case $host_os in
10504 aix3*)
10505 version_type=linux # correct to gnu/linux during the next big refactor
10506 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10507 shlibpath_var=LIBPATH
10508
10509 # AIX 3 has no versioning support, so we append a major version to the name.
10510 soname_spec='$libname$release$shared_ext$major'
10511 ;;
10512
10513 aix[4-9]*)
10514 version_type=linux # correct to gnu/linux during the next big refactor
10515 need_lib_prefix=no
10516 need_version=no
10517 hardcode_into_libs=yes
10518 if test ia64 = "$host_cpu"; then
10519 # AIX 5 supports IA64
10520 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 else
10523 # With GCC up to 2.95.x, collect2 would create an import file
10524 # for dependence libraries. The import file would start with
10525 # the line '#! .'. This would cause the generated library to
10526 # depend on '.', always an invalid library. This was fixed in
10527 # development snapshots of GCC prior to 3.0.
10528 case $host_os in
10529 aix4 | aix4.[01] | aix4.[01].*)
10530 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10531 echo ' yes '
10532 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10533 :
10534 else
10535 can_build_shared=no
10536 fi
10537 ;;
10538 esac
10539 # Using Import Files as archive members, it is possible to support
10540 # filename-based versioning of shared library archives on AIX. While
10541 # this would work for both with and without runtime linking, it will
10542 # prevent static linking of such archives. So we do filename-based
10543 # shared library versioning with .so extension only, which is used
10544 # when both runtime linking and shared linking is enabled.
10545 # Unfortunately, runtime linking may impact performance, so we do
10546 # not want this to be the default eventually. Also, we use the
10547 # versioned .so libs for executables only if there is the -brtl
10548 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10549 # To allow for filename-based versioning support, we need to create
10550 # libNAME.so.V as an archive file, containing:
10551 # *) an Import File, referring to the versioned filename of the
10552 # archive as well as the shared archive member, telling the
10553 # bitwidth (32 or 64) of that shared object, and providing the
10554 # list of exported symbols of that shared object, eventually
10555 # decorated with the 'weak' keyword
10556 # *) the shared object with the F_LOADONLY flag set, to really avoid
10557 # it being seen by the linker.
10558 # At run time we better use the real file rather than another symlink,
10559 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10560
10561 case $with_aix_soname,$aix_use_runtimelinking in
10562 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10563 # soname into executable. Probably we can add versioning support to
10564 # collect2, so additional links can be useful in future.
10565 aix,yes) # traditional libtool
10566 dynamic_linker='AIX unversionable lib.so'
10567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10568 # instead of lib<name>.a to let people know that these are not
10569 # typical AIX shared libraries.
10570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10571 ;;
10572 aix,no) # traditional AIX only
10573 dynamic_linker='AIX lib.a(lib.so.V)'
10574 # We preserve .a as extension for shared libraries through AIX4.2
10575 # and later when we are not doing run time linking.
10576 library_names_spec='$libname$release.a $libname.a'
10577 soname_spec='$libname$release$shared_ext$major'
10578 ;;
10579 svr4,*) # full svr4 only
10580 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10581 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10582 # We do not specify a path in Import Files, so LIBPATH fires.
10583 shlibpath_overrides_runpath=yes
10584 ;;
10585 *,yes) # both, prefer svr4
10586 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10587 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10588 # unpreferred sharedlib libNAME.a needs extra handling
10589 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"'
10590 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"'
10591 # We do not specify a path in Import Files, so LIBPATH fires.
10592 shlibpath_overrides_runpath=yes
10593 ;;
10594 *,no) # both, prefer aix
10595 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10596 library_names_spec='$libname$release.a $libname.a'
10597 soname_spec='$libname$release$shared_ext$major'
10598 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10599 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)'
10600 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"'
10601 ;;
10602 esac
10603 shlibpath_var=LIBPATH
10604 fi
10605 ;;
10606
10607 amigaos*)
10608 case $host_cpu in
10609 powerpc)
10610 # Since July 2007 AmigaOS4 officially supports .so libraries.
10611 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10613 ;;
10614 m68k)
10615 library_names_spec='$libname.ixlibrary $libname.a'
10616 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10617 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'
10618 ;;
10619 esac
10620 ;;
10621
10622 beos*)
10623 library_names_spec='$libname$shared_ext'
10624 dynamic_linker="$host_os ld.so"
10625 shlibpath_var=LIBRARY_PATH
10626 ;;
10627
10628 bsdi[45]*)
10629 version_type=linux # correct to gnu/linux during the next big refactor
10630 need_version=no
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 soname_spec='$libname$release$shared_ext$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10637 # the default ld.so.conf also contains /usr/contrib/lib and
10638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10639 # libtool to hard-code these into programs
10640 ;;
10641
10642 cygwin* | mingw* | pw32* | cegcc*)
10643 version_type=windows
10644 shrext_cmds=.dll
10645 need_version=no
10646 need_lib_prefix=no
10647
10648 case $GCC,$cc_basename in
10649 yes,*)
10650 # gcc
10651 library_names_spec='$libname.dll.a'
10652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10653 postinstall_cmds='base_file=`basename \$file`~
10654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10655 dldir=$destdir/`dirname \$dlpath`~
10656 test -d \$dldir || mkdir -p \$dldir~
10657 $install_prog $dir/$dlname \$dldir/$dlname~
10658 chmod a+x \$dldir/$dlname~
10659 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10660 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10661 fi'
10662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10663 dlpath=$dir/\$dldll~
10664 $RM \$dlpath'
10665 shlibpath_overrides_runpath=yes
10666
10667 case $host_os in
10668 cygwin*)
10669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10670 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10671
10672 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10673 ;;
10674 mingw* | cegcc*)
10675 # MinGW DLLs use traditional 'lib' prefix
10676 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10677 ;;
10678 pw32*)
10679 # pw32 DLLs use 'pw' prefix rather than 'lib'
10680 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10681 ;;
10682 esac
10683 dynamic_linker='Win32 ld.exe'
10684 ;;
10685
10686 *,cl*)
10687 # Native MSVC
10688 libname_spec='$name'
10689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10690 library_names_spec='$libname.dll.lib'
10691
10692 case $build_os in
10693 mingw*)
10694 sys_lib_search_path_spec=
10695 lt_save_ifs=$IFS
10696 IFS=';'
10697 for lt_path in $LIB
10698 do
10699 IFS=$lt_save_ifs
10700 # Let DOS variable expansion print the short 8.3 style file name.
10701 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10703 done
10704 IFS=$lt_save_ifs
10705 # Convert to MSYS style.
10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10707 ;;
10708 cygwin*)
10709 # Convert to unix form, then to dos form, then back to unix form
10710 # but this time dos style (no spaces!) so that the unix form looks
10711 # like /cygdrive/c/PROGRA~1:/cygdr...
10712 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10713 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10714 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 ;;
10716 *)
10717 sys_lib_search_path_spec=$LIB
10718 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10719 # It is most probably a Windows format PATH.
10720 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10721 else
10722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10723 fi
10724 # FIXME: find the short name or the path components, as spaces are
10725 # common. (e.g. "Program Files" -> "PROGRA~1")
10726 ;;
10727 esac
10728
10729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10730 postinstall_cmds='base_file=`basename \$file`~
10731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10732 dldir=$destdir/`dirname \$dlpath`~
10733 test -d \$dldir || mkdir -p \$dldir~
10734 $install_prog $dir/$dlname \$dldir/$dlname'
10735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10736 dlpath=$dir/\$dldll~
10737 $RM \$dlpath'
10738 shlibpath_overrides_runpath=yes
10739 dynamic_linker='Win32 link.exe'
10740 ;;
10741
10742 *)
10743 # Assume MSVC wrapper
10744 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10745 dynamic_linker='Win32 ld.exe'
10746 ;;
10747 esac
10748 # FIXME: first we should search . and the directory the executable is in
10749 shlibpath_var=PATH
10750 ;;
10751
10752 darwin* | rhapsody*)
10753 dynamic_linker="$host_os dyld"
10754 version_type=darwin
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10758 soname_spec='$libname$release$major$shared_ext'
10759 shlibpath_overrides_runpath=yes
10760 shlibpath_var=DYLD_LIBRARY_PATH
10761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10762
10763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10765 ;;
10766
10767 dgux*)
10768 version_type=linux # correct to gnu/linux during the next big refactor
10769 need_lib_prefix=no
10770 need_version=no
10771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10772 soname_spec='$libname$release$shared_ext$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 ;;
10775
10776 freebsd* | dragonfly*)
10777 # DragonFly does not have aout. When/if they implement a new
10778 # versioning mechanism, adjust this.
10779 if test -x /usr/bin/objformat; then
10780 objformat=`/usr/bin/objformat`
10781 else
10782 case $host_os in
10783 freebsd[23].*) objformat=aout ;;
10784 *) objformat=elf ;;
10785 esac
10786 fi
10787 version_type=freebsd-$objformat
10788 case $version_type in
10789 freebsd-elf*)
10790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10791 soname_spec='$libname$release$shared_ext$major'
10792 need_version=no
10793 need_lib_prefix=no
10794 ;;
10795 freebsd-*)
10796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10797 need_version=yes
10798 ;;
10799 esac
10800 shlibpath_var=LD_LIBRARY_PATH
10801 case $host_os in
10802 freebsd2.*)
10803 shlibpath_overrides_runpath=yes
10804 ;;
10805 freebsd3.[01]* | freebsdelf3.[01]*)
10806 shlibpath_overrides_runpath=yes
10807 hardcode_into_libs=yes
10808 ;;
10809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10813 ;;
10814 *) # from 4.6 on, and DragonFly
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 ;;
10818 esac
10819 ;;
10820
10821 haiku*)
10822 version_type=linux # correct to gnu/linux during the next big refactor
10823 need_lib_prefix=no
10824 need_version=no
10825 dynamic_linker="$host_os runtime_loader"
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827 soname_spec='$libname$release$shared_ext$major'
10828 shlibpath_var=LIBRARY_PATH
10829 shlibpath_overrides_runpath=no
10830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10831 hardcode_into_libs=yes
10832 ;;
10833
10834 hpux9* | hpux10* | hpux11*)
10835 # Give a soname corresponding to the major version so that dld.sl refuses to
10836 # link against other versions.
10837 version_type=sunos
10838 need_lib_prefix=no
10839 need_version=no
10840 case $host_cpu in
10841 ia64*)
10842 shrext_cmds='.so'
10843 hardcode_into_libs=yes
10844 dynamic_linker="$host_os dld.so"
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848 soname_spec='$libname$release$shared_ext$major'
10849 if test 32 = "$HPUX_IA64_MODE"; then
10850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10851 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10852 else
10853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10854 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10855 fi
10856 ;;
10857 hppa*64*)
10858 shrext_cmds='.sl'
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.sl"
10861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
10865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867 ;;
10868 *)
10869 shrext_cmds='.sl'
10870 dynamic_linker="$host_os dld.sl"
10871 shlibpath_var=SHLIB_PATH
10872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10874 soname_spec='$libname$release$shared_ext$major'
10875 ;;
10876 esac
10877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10878 postinstall_cmds='chmod 555 $lib'
10879 # or fails outright, so override atomically:
10880 install_override_mode=555
10881 ;;
10882
10883 interix[3-9]*)
10884 version_type=linux # correct to gnu/linux during the next big refactor
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888 soname_spec='$libname$release$shared_ext$major'
10889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10893 ;;
10894
10895 irix5* | irix6* | nonstopux*)
10896 case $host_os in
10897 nonstopux*) version_type=nonstopux ;;
10898 *)
10899 if test yes = "$lt_cv_prog_gnu_ld"; then
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 else
10902 version_type=irix
10903 fi ;;
10904 esac
10905 need_lib_prefix=no
10906 need_version=no
10907 soname_spec='$libname$release$shared_ext$major'
10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10909 case $host_os in
10910 irix5* | nonstopux*)
10911 libsuff= shlibsuff=
10912 ;;
10913 *)
10914 case $LD in # libtool.m4 will add one of these switches to LD
10915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10916 libsuff= shlibsuff= libmagic=32-bit;;
10917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10918 libsuff=32 shlibsuff=N32 libmagic=N32;;
10919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10921 *) libsuff= shlibsuff= libmagic=never-match;;
10922 esac
10923 ;;
10924 esac
10925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10926 shlibpath_overrides_runpath=no
10927 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10928 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10929 hardcode_into_libs=yes
10930 ;;
10931
10932 # No shared lib support for Linux oldld, aout, or coff.
10933 linux*oldld* | linux*aout* | linux*coff*)
10934 dynamic_linker=no
10935 ;;
10936
10937 linux*android*)
10938 version_type=none # Android doesn't support versioned libraries.
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='$libname$release$shared_ext'
10942 soname_spec='$libname$release$shared_ext'
10943 finish_cmds=
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946
10947 # This implies no fast_install, which is unacceptable.
10948 # Some rework will be needed to allow for fast_install
10949 # before this can be enabled.
10950 hardcode_into_libs=yes
10951
10952 dynamic_linker='Android linker'
10953 # Don't embed -rpath directories since the linker doesn't support them.
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 ;;
10956
10957 # This must be glibc/ELF.
10958 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10959 version_type=linux # correct to gnu/linux during the next big refactor
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963 soname_spec='$libname$release$shared_ext$major'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967
10968 # Some binutils ld are patched to set DT_RUNPATH
10969 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 lt_cv_shlibpath_overrides_runpath=no
10973 save_LDFLAGS=$LDFLAGS
10974 save_libdir=$libdir
10975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979
10980 int
10981 main ()
10982 {
10983
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10990 lt_cv_shlibpath_overrides_runpath=yes
10991 fi
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LDFLAGS=$save_LDFLAGS
10996 libdir=$save_libdir
10997
10998 fi
10999
11000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11001
11002 # This implies no fast_install, which is unacceptable.
11003 # Some rework will be needed to allow for fast_install
11004 # before this can be enabled.
11005 hardcode_into_libs=yes
11006
11007 # Add ABI-specific directories to the system library path.
11008 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11009
11010 # Ideally, we could use ldconfig to report *all* directores which are
11011 # searched for libraries, however this is still not possible. Aside from not
11012 # being certain /sbin/ldconfig is available, command
11013 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11014 # even though it is searched at run-time. Try to do the best guess by
11015 # appending ld.so.conf contents (and includes) to the search path.
11016 if test -f /etc/ld.so.conf; then
11017 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' ' '`
11018 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11019 fi
11020
11021 # We used to test for /lib/ld.so.1 and disable shared libraries on
11022 # powerpc, because MkLinux only supported shared libraries with the
11023 # GNU dynamic linker. Since this was broken with cross compilers,
11024 # most powerpc-linux boxes support dynamic linking these days and
11025 # people can always --disable-shared, the test was removed, and we
11026 # assume the GNU/Linux dynamic linker is in use.
11027 dynamic_linker='GNU/Linux ld.so'
11028 ;;
11029
11030 netbsd*)
11031 version_type=sunos
11032 need_lib_prefix=no
11033 need_version=no
11034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11037 dynamic_linker='NetBSD (a.out) ld.so'
11038 else
11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11040 soname_spec='$libname$release$shared_ext$major'
11041 dynamic_linker='NetBSD ld.elf_so'
11042 fi
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 ;;
11047
11048 newsos6)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=yes
11053 ;;
11054
11055 *nto* | *qnx*)
11056 version_type=qnx
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060 soname_spec='$libname$release$shared_ext$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11064 dynamic_linker='ldqnx.so'
11065 ;;
11066
11067 openbsd* | bitrig*)
11068 version_type=sunos
11069 sys_lib_dlsearch_path_spec=/usr/lib
11070 need_lib_prefix=no
11071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11072 need_version=no
11073 else
11074 need_version=yes
11075 fi
11076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 ;;
11081
11082 os2*)
11083 libname_spec='$name'
11084 version_type=windows
11085 shrext_cmds=.dll
11086 need_version=no
11087 need_lib_prefix=no
11088 # OS/2 can only load a DLL with a base name of 8 characters or less.
11089 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11090 v=$($ECHO $release$versuffix | tr -d .-);
11091 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11092 $ECHO $n$v`$shared_ext'
11093 library_names_spec='${libname}_dll.$libext'
11094 dynamic_linker='OS/2 ld.exe'
11095 shlibpath_var=BEGINLIBPATH
11096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11098 postinstall_cmds='base_file=`basename \$file`~
11099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11100 dldir=$destdir/`dirname \$dlpath`~
11101 test -d \$dldir || mkdir -p \$dldir~
11102 $install_prog $dir/$dlname \$dldir/$dlname~
11103 chmod a+x \$dldir/$dlname~
11104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11106 fi'
11107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11108 dlpath=$dir/\$dldll~
11109 $RM \$dlpath'
11110 ;;
11111
11112 osf3* | osf4* | osf5*)
11113 version_type=osf
11114 need_lib_prefix=no
11115 need_version=no
11116 soname_spec='$libname$release$shared_ext$major'
11117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11121 ;;
11122
11123 rdos*)
11124 dynamic_linker=no
11125 ;;
11126
11127 solaris*)
11128 version_type=linux # correct to gnu/linux during the next big refactor
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 soname_spec='$libname$release$shared_ext$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11136 # ldd complains unless libraries are executable
11137 postinstall_cmds='chmod +x $lib'
11138 ;;
11139
11140 sunos4*)
11141 version_type=sunos
11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 if test yes = "$with_gnu_ld"; then
11147 need_lib_prefix=no
11148 fi
11149 need_version=yes
11150 ;;
11151
11152 sysv4 | sysv4.3*)
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 case $host_vendor in
11158 sni)
11159 shlibpath_overrides_runpath=no
11160 need_lib_prefix=no
11161 runpath_var=LD_RUN_PATH
11162 ;;
11163 siemens)
11164 need_lib_prefix=no
11165 ;;
11166 motorola)
11167 need_lib_prefix=no
11168 need_version=no
11169 shlibpath_overrides_runpath=no
11170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11171 ;;
11172 esac
11173 ;;
11174
11175 sysv4*MP*)
11176 if test -d /usr/nec; then
11177 version_type=linux # correct to gnu/linux during the next big refactor
11178 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11179 soname_spec='$libname$shared_ext.$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 fi
11182 ;;
11183
11184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11185 version_type=sco
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11189 soname_spec='$libname$release$shared_ext$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 hardcode_into_libs=yes
11193 if test yes = "$with_gnu_ld"; then
11194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11195 else
11196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11197 case $host_os in
11198 sco3.2v5*)
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11200 ;;
11201 esac
11202 fi
11203 sys_lib_dlsearch_path_spec='/usr/lib'
11204 ;;
11205
11206 tpf*)
11207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 ;;
11216
11217 uts4*)
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 ;;
11223
11224 *)
11225 dynamic_linker=no
11226 ;;
11227 esac
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11229 $as_echo "$dynamic_linker" >&6; }
11230 test no = "$dynamic_linker" && can_build_shared=no
11231
11232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11233 if test yes = "$GCC"; then
11234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11235 fi
11236
11237 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11238 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11239 fi
11240
11241 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11242 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11243 fi
11244
11245 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11246 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11247
11248 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11249 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11250
11251 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11252 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11352 hardcode_action=
11353 if test -n "$hardcode_libdir_flag_spec" ||
11354 test -n "$runpath_var" ||
11355 test yes = "$hardcode_automatic"; then
11356
11357 # We can hardcode non-existent directories.
11358 if test no != "$hardcode_direct" &&
11359 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11360 # have to relink, otherwise we might link with an installed library
11361 # when we should be linking with a yet-to-be-installed one
11362 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11363 test no != "$hardcode_minus_L"; then
11364 # Linking always hardcodes the temporary library directory.
11365 hardcode_action=relink
11366 else
11367 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11368 hardcode_action=immediate
11369 fi
11370 else
11371 # We cannot hardcode anything, or else we can only hardcode existing
11372 # directories.
11373 hardcode_action=unsupported
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11376 $as_echo "$hardcode_action" >&6; }
11377
11378 if test relink = "$hardcode_action" ||
11379 test yes = "$inherit_rpath"; then
11380 # Fast installation is not supported
11381 enable_fast_install=no
11382 elif test yes = "$shlibpath_overrides_runpath" ||
11383 test no = "$enable_shared"; then
11384 # Fast installation is not necessary
11385 enable_fast_install=needless
11386 fi
11387
11388
11389
11390
11391
11392
11393 if test yes != "$enable_dlopen"; then
11394 enable_dlopen=unknown
11395 enable_dlopen_self=unknown
11396 enable_dlopen_self_static=unknown
11397 else
11398 lt_cv_dlopen=no
11399 lt_cv_dlopen_libs=
11400
11401 case $host_os in
11402 beos*)
11403 lt_cv_dlopen=load_add_on
11404 lt_cv_dlopen_libs=
11405 lt_cv_dlopen_self=yes
11406 ;;
11407
11408 mingw* | pw32* | cegcc*)
11409 lt_cv_dlopen=LoadLibrary
11410 lt_cv_dlopen_libs=
11411 ;;
11412
11413 cygwin*)
11414 lt_cv_dlopen=dlopen
11415 lt_cv_dlopen_libs=
11416 ;;
11417
11418 darwin*)
11419 # if libdl is installed we need to link against it
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11422 if ${ac_cv_lib_dl_dlopen+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldl $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dlopen ();
11437 int
11438 main ()
11439 {
11440 return dlopen ();
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dl_dlopen=yes
11447 else
11448 ac_cv_lib_dl_dlopen=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11455 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11456 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11457 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11458 else
11459
11460 lt_cv_dlopen=dyld
11461 lt_cv_dlopen_libs=
11462 lt_cv_dlopen_self=yes
11463
11464 fi
11465
11466 ;;
11467
11468 tpf*)
11469 # Don't try to run any link tests for TPF. We know it's impossible
11470 # because TPF is a cross-compiler, and we know how we open DSOs.
11471 lt_cv_dlopen=dlopen
11472 lt_cv_dlopen_libs=
11473 lt_cv_dlopen_self=no
11474 ;;
11475
11476 *)
11477 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11478 if test "x$ac_cv_func_shl_load" = xyes; then :
11479 lt_cv_dlopen=shl_load
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11482 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11483 if ${ac_cv_lib_dld_shl_load+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-ldld $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11490
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char shl_load ();
11498 int
11499 main ()
11500 {
11501 return shl_load ();
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dld_shl_load=yes
11508 else
11509 ac_cv_lib_dld_shl_load=no
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11516 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11517 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11518 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11519 else
11520 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11521 if test "x$ac_cv_func_dlopen" = xyes; then :
11522 lt_cv_dlopen=dlopen
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11526 if ${ac_cv_lib_dl_dlopen+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldl $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char dlopen ();
11541 int
11542 main ()
11543 {
11544 return dlopen ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_dl_dlopen=yes
11551 else
11552 ac_cv_lib_dl_dlopen=no
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11560 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11561 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11564 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11565 if ${ac_cv_lib_svld_dlopen+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-lsvld $LIBS"
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char dlopen ();
11580 int
11581 main ()
11582 {
11583 return dlopen ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_svld_dlopen=yes
11590 else
11591 ac_cv_lib_svld_dlopen=no
11592 fi
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11598 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11599 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11600 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11603 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11604 if ${ac_cv_lib_dld_dld_link+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-ldld $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char dld_link ();
11619 int
11620 main ()
11621 {
11622 return dld_link ();
11623 ;
11624 return 0;
11625 }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_dld_dld_link=yes
11629 else
11630 ac_cv_lib_dld_dld_link=no
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11637 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11638 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11639 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11640 fi
11641
11642
11643 fi
11644
11645
11646 fi
11647
11648
11649 fi
11650
11651
11652 fi
11653
11654
11655 fi
11656
11657 ;;
11658 esac
11659
11660 if test no = "$lt_cv_dlopen"; then
11661 enable_dlopen=no
11662 else
11663 enable_dlopen=yes
11664 fi
11665
11666 case $lt_cv_dlopen in
11667 dlopen)
11668 save_CPPFLAGS=$CPPFLAGS
11669 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11670
11671 save_LDFLAGS=$LDFLAGS
11672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11673
11674 save_LIBS=$LIBS
11675 LIBS="$lt_cv_dlopen_libs $LIBS"
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11678 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11679 if ${lt_cv_dlopen_self+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test yes = "$cross_compiling"; then :
11683 lt_cv_dlopen_self=cross
11684 else
11685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11686 lt_status=$lt_dlunknown
11687 cat > conftest.$ac_ext <<_LT_EOF
11688 #line $LINENO "configure"
11689 #include "confdefs.h"
11690
11691 #if HAVE_DLFCN_H
11692 #include <dlfcn.h>
11693 #endif
11694
11695 #include <stdio.h>
11696
11697 #ifdef RTLD_GLOBAL
11698 # define LT_DLGLOBAL RTLD_GLOBAL
11699 #else
11700 # ifdef DL_GLOBAL
11701 # define LT_DLGLOBAL DL_GLOBAL
11702 # else
11703 # define LT_DLGLOBAL 0
11704 # endif
11705 #endif
11706
11707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11708 find out it does not work in some platform. */
11709 #ifndef LT_DLLAZY_OR_NOW
11710 # ifdef RTLD_LAZY
11711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11712 # else
11713 # ifdef DL_LAZY
11714 # define LT_DLLAZY_OR_NOW DL_LAZY
11715 # else
11716 # ifdef RTLD_NOW
11717 # define LT_DLLAZY_OR_NOW RTLD_NOW
11718 # else
11719 # ifdef DL_NOW
11720 # define LT_DLLAZY_OR_NOW DL_NOW
11721 # else
11722 # define LT_DLLAZY_OR_NOW 0
11723 # endif
11724 # endif
11725 # endif
11726 # endif
11727 #endif
11728
11729 /* When -fvisibility=hidden is used, assume the code has been annotated
11730 correspondingly for the symbols needed. */
11731 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11732 int fnord () __attribute__((visibility("default")));
11733 #endif
11734
11735 int fnord () { return 42; }
11736 int main ()
11737 {
11738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11739 int status = $lt_dlunknown;
11740
11741 if (self)
11742 {
11743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11744 else
11745 {
11746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11747 else puts (dlerror ());
11748 }
11749 /* dlclose (self); */
11750 }
11751 else
11752 puts (dlerror ());
11753
11754 return status;
11755 }
11756 _LT_EOF
11757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11758 (eval $ac_link) 2>&5
11759 ac_status=$?
11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11762 (./conftest; exit; ) >&5 2>/dev/null
11763 lt_status=$?
11764 case x$lt_status in
11765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11768 esac
11769 else :
11770 # compilation failed
11771 lt_cv_dlopen_self=no
11772 fi
11773 fi
11774 rm -fr conftest*
11775
11776
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11779 $as_echo "$lt_cv_dlopen_self" >&6; }
11780
11781 if test yes = "$lt_cv_dlopen_self"; then
11782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11784 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11785 if ${lt_cv_dlopen_self_static+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787 else
11788 if test yes = "$cross_compiling"; then :
11789 lt_cv_dlopen_self_static=cross
11790 else
11791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11792 lt_status=$lt_dlunknown
11793 cat > conftest.$ac_ext <<_LT_EOF
11794 #line $LINENO "configure"
11795 #include "confdefs.h"
11796
11797 #if HAVE_DLFCN_H
11798 #include <dlfcn.h>
11799 #endif
11800
11801 #include <stdio.h>
11802
11803 #ifdef RTLD_GLOBAL
11804 # define LT_DLGLOBAL RTLD_GLOBAL
11805 #else
11806 # ifdef DL_GLOBAL
11807 # define LT_DLGLOBAL DL_GLOBAL
11808 # else
11809 # define LT_DLGLOBAL 0
11810 # endif
11811 #endif
11812
11813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11814 find out it does not work in some platform. */
11815 #ifndef LT_DLLAZY_OR_NOW
11816 # ifdef RTLD_LAZY
11817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11818 # else
11819 # ifdef DL_LAZY
11820 # define LT_DLLAZY_OR_NOW DL_LAZY
11821 # else
11822 # ifdef RTLD_NOW
11823 # define LT_DLLAZY_OR_NOW RTLD_NOW
11824 # else
11825 # ifdef DL_NOW
11826 # define LT_DLLAZY_OR_NOW DL_NOW
11827 # else
11828 # define LT_DLLAZY_OR_NOW 0
11829 # endif
11830 # endif
11831 # endif
11832 # endif
11833 #endif
11834
11835 /* When -fvisibility=hidden is used, assume the code has been annotated
11836 correspondingly for the symbols needed. */
11837 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11838 int fnord () __attribute__((visibility("default")));
11839 #endif
11840
11841 int fnord () { return 42; }
11842 int main ()
11843 {
11844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11845 int status = $lt_dlunknown;
11846
11847 if (self)
11848 {
11849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11850 else
11851 {
11852 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853 else puts (dlerror ());
11854 }
11855 /* dlclose (self); */
11856 }
11857 else
11858 puts (dlerror ());
11859
11860 return status;
11861 }
11862 _LT_EOF
11863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11864 (eval $ac_link) 2>&5
11865 ac_status=$?
11866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11867 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11868 (./conftest; exit; ) >&5 2>/dev/null
11869 lt_status=$?
11870 case x$lt_status in
11871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11873 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11874 esac
11875 else :
11876 # compilation failed
11877 lt_cv_dlopen_self_static=no
11878 fi
11879 fi
11880 rm -fr conftest*
11881
11882
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11885 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11886 fi
11887
11888 CPPFLAGS=$save_CPPFLAGS
11889 LDFLAGS=$save_LDFLAGS
11890 LIBS=$save_LIBS
11891 ;;
11892 esac
11893
11894 case $lt_cv_dlopen_self in
11895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11896 *) enable_dlopen_self=unknown ;;
11897 esac
11898
11899 case $lt_cv_dlopen_self_static in
11900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11901 *) enable_dlopen_self_static=unknown ;;
11902 esac
11903 fi
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 striplib=
11922 old_striplib=
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11924 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11925 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11929 $as_echo "yes" >&6; }
11930 else
11931 # FIXME - insert some real tests, host_os isn't really good enough
11932 case $host_os in
11933 darwin*)
11934 if test -n "$STRIP"; then
11935 striplib="$STRIP -x"
11936 old_striplib="$STRIP -S"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11942 fi
11943 ;;
11944 *)
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 ;;
11948 esac
11949 fi
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962 # Report what library types will actually be built
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11964 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11966 $as_echo "$can_build_shared" >&6; }
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11969 $as_echo_n "checking whether to build shared libraries... " >&6; }
11970 test no = "$can_build_shared" && enable_shared=no
11971
11972 # On AIX, shared libraries and static libraries use the same namespace, and
11973 # are all built from PIC.
11974 case $host_os in
11975 aix3*)
11976 test yes = "$enable_shared" && enable_static=no
11977 if test -n "$RANLIB"; then
11978 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11979 postinstall_cmds='$RANLIB $lib'
11980 fi
11981 ;;
11982
11983 aix[4-9]*)
11984 if test ia64 != "$host_cpu"; then
11985 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11986 yes,aix,yes) ;; # shared object as lib.so file only
11987 yes,svr4,*) ;; # shared object as lib.so archive member only
11988 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11989 esac
11990 fi
11991 ;;
11992 esac
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11994 $as_echo "$enable_shared" >&6; }
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11997 $as_echo_n "checking whether to build static libraries... " >&6; }
11998 # Make sure either enable_shared or enable_static is yes.
11999 test yes = "$enable_shared" || enable_static=yes
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12001 $as_echo "$enable_static" >&6; }
12002
12003
12004
12005
12006 fi
12007 ac_ext=c
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12012
12013 CC=$lt_save_CC
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029 ac_config_commands="$ac_config_commands libtool"
12030
12031
12032
12033
12034 # Only expand once:
12035
12036
12037
12038
12039 for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
12040 do :
12041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12044 cat >>confdefs.h <<_ACEOF
12045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12046 _ACEOF
12047
12048 fi
12049
12050 done
12051
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12053 $as_echo_n "checking for ANSI C header files... " >&6; }
12054 if ${ac_cv_header_stdc+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <stdlib.h>
12060 #include <stdarg.h>
12061 #include <string.h>
12062 #include <float.h>
12063
12064 int
12065 main ()
12066 {
12067
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 ac_cv_header_stdc=yes
12074 else
12075 ac_cv_header_stdc=no
12076 fi
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078
12079 if test $ac_cv_header_stdc = yes; then
12080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083 #include <string.h>
12084
12085 _ACEOF
12086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12087 $EGREP "memchr" >/dev/null 2>&1; then :
12088
12089 else
12090 ac_cv_header_stdc=no
12091 fi
12092 rm -f conftest*
12093
12094 fi
12095
12096 if test $ac_cv_header_stdc = yes; then
12097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 #include <stdlib.h>
12101
12102 _ACEOF
12103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12104 $EGREP "free" >/dev/null 2>&1; then :
12105
12106 else
12107 ac_cv_header_stdc=no
12108 fi
12109 rm -f conftest*
12110
12111 fi
12112
12113 if test $ac_cv_header_stdc = yes; then
12114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12115 if test "$cross_compiling" = yes; then :
12116 :
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 #include <ctype.h>
12121 #include <stdlib.h>
12122 #if ((' ' & 0x0FF) == 0x020)
12123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12125 #else
12126 # define ISLOWER(c) \
12127 (('a' <= (c) && (c) <= 'i') \
12128 || ('j' <= (c) && (c) <= 'r') \
12129 || ('s' <= (c) && (c) <= 'z'))
12130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12131 #endif
12132
12133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12134 int
12135 main ()
12136 {
12137 int i;
12138 for (i = 0; i < 256; i++)
12139 if (XOR (islower (i), ISLOWER (i))
12140 || toupper (i) != TOUPPER (i))
12141 return 2;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_run "$LINENO"; then :
12146
12147 else
12148 ac_cv_header_stdc=no
12149 fi
12150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12151 conftest.$ac_objext conftest.beam conftest.$ac_ext
12152 fi
12153
12154 fi
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12157 $as_echo "$ac_cv_header_stdc" >&6; }
12158 if test $ac_cv_header_stdc = yes; then
12159
12160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12161
12162 fi
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12165 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12166 if ${ac_cv_header_sys_wait_h+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171 #include <sys/types.h>
12172 #include <sys/wait.h>
12173 #ifndef WEXITSTATUS
12174 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12175 #endif
12176 #ifndef WIFEXITED
12177 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12178 #endif
12179
12180 int
12181 main ()
12182 {
12183 int s;
12184 wait (&s);
12185 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_compile "$LINENO"; then :
12191 ac_cv_header_sys_wait_h=yes
12192 else
12193 ac_cv_header_sys_wait_h=no
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12198 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12199 if test $ac_cv_header_sys_wait_h = yes; then
12200
12201 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12202
12203 fi
12204
12205
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12208 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12209 if ${ac_cv_c_const+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214
12215 int
12216 main ()
12217 {
12218
12219 #ifndef __cplusplus
12220 /* Ultrix mips cc rejects this sort of thing. */
12221 typedef int charset[2];
12222 const charset cs = { 0, 0 };
12223 /* SunOS 4.1.1 cc rejects this. */
12224 char const *const *pcpcc;
12225 char **ppc;
12226 /* NEC SVR4.0.2 mips cc rejects this. */
12227 struct point {int x, y;};
12228 static struct point const zero = {0,0};
12229 /* AIX XL C 1.02.0.0 rejects this.
12230 It does not let you subtract one const X* pointer from another in
12231 an arm of an if-expression whose if-part is not a constant
12232 expression */
12233 const char *g = "string";
12234 pcpcc = &g + (g ? g-g : 0);
12235 /* HPUX 7.0 cc rejects these. */
12236 ++pcpcc;
12237 ppc = (char**) pcpcc;
12238 pcpcc = (char const *const *) ppc;
12239 { /* SCO 3.2v4 cc rejects this sort of thing. */
12240 char tx;
12241 char *t = &tx;
12242 char const *s = 0 ? (char *) 0 : (char const *) 0;
12243
12244 *t++ = 0;
12245 if (s) return 0;
12246 }
12247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12248 int x[] = {25, 17};
12249 const int *foo = &x[0];
12250 ++foo;
12251 }
12252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12253 typedef const int *iptr;
12254 iptr p = 0;
12255 ++p;
12256 }
12257 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12259 struct s { int j; const int *ap[3]; } bx;
12260 struct s *b = &bx; b->j = 5;
12261 }
12262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12263 const int foo = 10;
12264 if (!foo) return 0;
12265 }
12266 return !cs[0] && !zero.x;
12267 #endif
12268
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274 ac_cv_c_const=yes
12275 else
12276 ac_cv_c_const=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12281 $as_echo "$ac_cv_c_const" >&6; }
12282 if test $ac_cv_c_const = no; then
12283
12284 $as_echo "#define const /**/" >>confdefs.h
12285
12286 fi
12287
12288 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12289 if test "x$ac_cv_type_off_t" = xyes; then :
12290
12291 else
12292
12293 cat >>confdefs.h <<_ACEOF
12294 #define off_t long int
12295 _ACEOF
12296
12297 fi
12298
12299 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12300 if test "x$ac_cv_type_pid_t" = xyes; then :
12301
12302 else
12303
12304 cat >>confdefs.h <<_ACEOF
12305 #define pid_t int
12306 _ACEOF
12307
12308 fi
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12311 $as_echo_n "checking return type of signal handlers... " >&6; }
12312 if ${ac_cv_type_signal+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 #include <signal.h>
12319
12320 int
12321 main ()
12322 {
12323 return *(signal (0, 0)) (0) == 1;
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 ac_cv_type_signal=int
12330 else
12331 ac_cv_type_signal=void
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12336 $as_echo "$ac_cv_type_signal" >&6; }
12337
12338 cat >>confdefs.h <<_ACEOF
12339 #define RETSIGTYPE $ac_cv_type_signal
12340 _ACEOF
12341
12342
12343 # Check whether --enable-largefile was given.
12344 if test "${enable_largefile+set}" = set; then :
12345 enableval=$enable_largefile;
12346 fi
12347
12348 if test "$enable_largefile" != no; then
12349
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12352 if ${ac_cv_sys_largefile_CC+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 ac_cv_sys_largefile_CC=no
12356 if test "$GCC" != yes; then
12357 ac_save_CC=$CC
12358 while :; do
12359 # IRIX 6.2 and later do not support large files by default,
12360 # so use the C compiler's -n32 option if that helps.
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #include <sys/types.h>
12364 /* Check that off_t can represent 2**63 - 1 correctly.
12365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12366 since some C++ compilers masquerading as C compilers
12367 incorrectly reject 9223372036854775807. */
12368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12370 && LARGE_OFF_T % 2147483647 == 1)
12371 ? 1 : -1];
12372 int
12373 main ()
12374 {
12375
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 break
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext
12384 CC="$CC -n32"
12385 if ac_fn_c_try_compile "$LINENO"; then :
12386 ac_cv_sys_largefile_CC=' -n32'; break
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext
12389 break
12390 done
12391 CC=$ac_save_CC
12392 rm -f conftest.$ac_ext
12393 fi
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12397 if test "$ac_cv_sys_largefile_CC" != no; then
12398 CC=$CC$ac_cv_sys_largefile_CC
12399 fi
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12403 if ${ac_cv_sys_file_offset_bits+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 while :; do
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <sys/types.h>
12410 /* Check that off_t can represent 2**63 - 1 correctly.
12411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12412 since some C++ compilers masquerading as C compilers
12413 incorrectly reject 9223372036854775807. */
12414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12416 && LARGE_OFF_T % 2147483647 == 1)
12417 ? 1 : -1];
12418 int
12419 main ()
12420 {
12421
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 if ac_fn_c_try_compile "$LINENO"; then :
12427 ac_cv_sys_file_offset_bits=no; break
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #define _FILE_OFFSET_BITS 64
12433 #include <sys/types.h>
12434 /* Check that off_t can represent 2**63 - 1 correctly.
12435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12436 since some C++ compilers masquerading as C compilers
12437 incorrectly reject 9223372036854775807. */
12438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12440 && LARGE_OFF_T % 2147483647 == 1)
12441 ? 1 : -1];
12442 int
12443 main ()
12444 {
12445
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 ac_cv_sys_file_offset_bits=64; break
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 ac_cv_sys_file_offset_bits=unknown
12455 break
12456 done
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12459 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12460 case $ac_cv_sys_file_offset_bits in #(
12461 no | unknown) ;;
12462 *)
12463 cat >>confdefs.h <<_ACEOF
12464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12465 _ACEOF
12466 ;;
12467 esac
12468 rm -rf conftest*
12469 if test $ac_cv_sys_file_offset_bits = unknown; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12471 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12472 if ${ac_cv_sys_large_files+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 while :; do
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #include <sys/types.h>
12479 /* Check that off_t can represent 2**63 - 1 correctly.
12480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12481 since some C++ compilers masquerading as C compilers
12482 incorrectly reject 9223372036854775807. */
12483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12485 && LARGE_OFF_T % 2147483647 == 1)
12486 ? 1 : -1];
12487 int
12488 main ()
12489 {
12490
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496 ac_cv_sys_large_files=no; break
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #define _LARGE_FILES 1
12502 #include <sys/types.h>
12503 /* Check that off_t can represent 2**63 - 1 correctly.
12504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12505 since some C++ compilers masquerading as C compilers
12506 incorrectly reject 9223372036854775807. */
12507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12509 && LARGE_OFF_T % 2147483647 == 1)
12510 ? 1 : -1];
12511 int
12512 main ()
12513 {
12514
12515 ;
12516 return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520 ac_cv_sys_large_files=1; break
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 ac_cv_sys_large_files=unknown
12524 break
12525 done
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12528 $as_echo "$ac_cv_sys_large_files" >&6; }
12529 case $ac_cv_sys_large_files in #(
12530 no | unknown) ;;
12531 *)
12532 cat >>confdefs.h <<_ACEOF
12533 #define _LARGE_FILES $ac_cv_sys_large_files
12534 _ACEOF
12535 ;;
12536 esac
12537 rm -rf conftest*
12538 fi
12539
12540
12541 fi
12542
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
12545 $as_echo_n "checking for off64_t... " >&6; }
12546 if ${liblock_cv_hasoff64t+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 liblock_cv_hasoff64t="no"
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552
12553 #include <sys/types.h>
12554
12555 int
12556 main ()
12557 {
12558
12559 off64_t n;
12560
12561 n=0;
12562
12563 ;
12564 return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_compile "$LINENO"; then :
12568 liblock_cv_hasoff64t="yes"
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571
12572
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5
12575 $as_echo "$liblock_cv_hasoff64t" >&6; }
12576
12577 if test "$liblock_cv_hasoff64t" = "yes"
12578 then
12579 LL_OFFSET_TYPE=off64_t
12580 else
12581 LL_OFFSET_TYPE=off_t
12582 fi
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12586 _ACEOF
12587
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5
12590 $as_echo_n "checking for flock_t... " >&6; }
12591 if ${liblock_cv_hasflock_t+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 liblock_cv_hasflock_t="no"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 #if HAVE_CONFIG_H
12599 #include "config.h"
12600 #endif
12601 #include <sys/types.h>
12602 #if HAVE_FCNTL_H
12603 #include <fcntl.h>
12604 #endif
12605 #if HAVE_SYS_FCNTL_H
12606 #include <sys/fcntl.h>
12607 #endif
12608
12609 int
12610 main ()
12611 {
12612
12613 flock_t t;
12614
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620 liblock_cv_hasflock_t="yes"
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5
12625 $as_echo "$liblock_cv_hasflock_t" >&6; }
12626
12627 if test "$liblock_cv_hasflock_t" = "yes"
12628 then
12629
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAS_FLOCK_T 1
12632 _ACEOF
12633
12634 fi
12635
12636
12637 for ac_func in getdtablesize setpgrp sysconf
12638 do :
12639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12642 cat >>confdefs.h <<_ACEOF
12643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644 _ACEOF
12645
12646 fi
12647 done
12648
12649 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12650 if test "x$ac_cv_func_setpgrp" = xyes; then :
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12653 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12654 if ${ac_cv_func_setpgrp_void+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 if test "$cross_compiling" = yes; then :
12658 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 int
12664 main ()
12665 {
12666 /* If this system has a BSD-style setpgrp which takes arguments,
12667 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12668 exit successfully. */
12669 return setpgrp (1,1) != -1;
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_run "$LINENO"; then :
12675 ac_cv_func_setpgrp_void=no
12676 else
12677 ac_cv_func_setpgrp_void=yes
12678 fi
12679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12680 conftest.$ac_objext conftest.beam conftest.$ac_ext
12681 fi
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12685 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12686 if test $ac_cv_func_setpgrp_void = yes; then
12687
12688 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12689
12690 fi
12691
12692
12693
12694 fi
12695
12696
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5
12698 $as_echo_n "checking for fcntl... " >&6; }
12699 if ${liblock_cv_hasfcntl+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 liblock_cv_hasfcntl="no"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705
12706 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12707 #include "${srcdir}/lockfcntl.c"
12708
12709 int
12710 main ()
12711 {
12712
12713 int n;
12714
12715 ;
12716 return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 liblock_cv_hasfcntl="yes"
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5
12726 $as_echo "$liblock_cv_hasfcntl" >&6; }
12727 if test "$liblock_cv_hasfcntl" = "yes"
12728 then
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAS_FCNTL 1
12732 _ACEOF
12733
12734 fi
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
12737 $as_echo_n "checking for flock... " >&6; }
12738 if ${liblock_cv_hasflock+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 liblock_cv_hasflock="no"
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744
12745 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12746 #include "${srcdir}/lockflock.c"
12747
12748 int
12749 main ()
12750 {
12751
12752 int n;
12753
12754 ;
12755 return 0;
12756 }
12757 _ACEOF
12758 if ac_fn_c_try_link "$LINENO"; then :
12759 liblock_cv_hasflock="yes"
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5
12765 $as_echo "$liblock_cv_hasflock" >&6; }
12766 if test "$liblock_cv_hasflock" = "yes"
12767 then
12768
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAS_FLOCK 1
12771 _ACEOF
12772
12773 fi
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
12776 $as_echo_n "checking for lockf... " >&6; }
12777 if ${liblock_cv_haslockf+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 liblock_cv_haslockf="no"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783
12784 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12785 #include "${srcdir}/locklockf.c"
12786
12787 int
12788 main ()
12789 {
12790
12791 int n;
12792
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_link "$LINENO"; then :
12798 liblock_cv_haslockf="yes"
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5
12804 $as_echo "$liblock_cv_haslockf" >&6; }
12805 if test "$liblock_cv_haslockf" = "yes"
12806 then
12807
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAS_LOCKF 1
12810 _ACEOF
12811
12812 fi
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5
12815 $as_echo_n "checking for locking method... " >&6; }
12816
12817 # Check whether --with-locking-method was given.
12818 if test "${with_locking_method+set}" = set; then :
12819 withval=$with_locking_method; lockmethod="$withval"
12820 else
12821 lockmethod=""
12822 fi
12823
12824
12825 case x$lockmethod in
12826 xfcntl)
12827 if test "$cross_compiling" = yes; then :
12828 :
12829
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833
12834 #define USE_FCNTL 1
12835 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12836 #include "${srcdir}/locktest.c"
12837
12838 _ACEOF
12839 if ac_fn_c_try_run "$LINENO"; then :
12840
12841 else
12842 as_fn_error $? "fcntl test failed." "$LINENO" 5
12843 fi
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12845 conftest.$ac_objext conftest.beam conftest.$ac_ext
12846 fi
12847
12848 ;;
12849 x)
12850 if test "$cross_compiling" = yes; then :
12851 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12852 else
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855
12856 #define USE_FCNTL 1
12857 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12858 #include "${srcdir}/locktest.c"
12859
12860 _ACEOF
12861 if ac_fn_c_try_run "$LINENO"; then :
12862 lockmethod=fcntl
12863 fi
12864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865 conftest.$ac_objext conftest.beam conftest.$ac_ext
12866 fi
12867
12868 ;;
12869 esac
12870
12871 case x$lockmethod in
12872 xlockf)
12873 if test "$cross_compiling" = yes; then :
12874 :
12875
12876 else
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879
12880 #define USE_LOCKF 1
12881 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12882 #include "${srcdir}/locktest.c"
12883
12884 _ACEOF
12885 if ac_fn_c_try_run "$LINENO"; then :
12886
12887 else
12888 as_fn_error $? "lockf test failed." "$LINENO" 5
12889 fi
12890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12891 conftest.$ac_objext conftest.beam conftest.$ac_ext
12892 fi
12893
12894 ;;
12895 x)
12896 if test "$cross_compiling" = yes; then :
12897 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12898 else
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901
12902 #define USE_LOCKF 1
12903 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12904 #include "${srcdir}/locktest.c"
12905
12906 _ACEOF
12907 if ac_fn_c_try_run "$LINENO"; then :
12908 lockmethod=lockf
12909 fi
12910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12911 conftest.$ac_objext conftest.beam conftest.$ac_ext
12912 fi
12913
12914 ;;
12915 esac
12916
12917
12918 case x$lockmethod in
12919 xflock)
12920 if test "$cross_compiling" = yes; then :
12921 :
12922
12923 else
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 #define USE_FLOCK 1
12928 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12929 #include "${srcdir}/locktest.c"
12930
12931 _ACEOF
12932 if ac_fn_c_try_run "$LINENO"; then :
12933
12934 else
12935 as_fn_error $? "flock test failed." "$LINENO" 5
12936 fi
12937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12938 conftest.$ac_objext conftest.beam conftest.$ac_ext
12939 fi
12940
12941 ;;
12942 x)
12943 if test "$cross_compiling" = yes; then :
12944 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12945 else
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948
12949 #define USE_FLOCK 1
12950 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12951 #include "${srcdir}/locktest.c"
12952
12953 _ACEOF
12954 if ac_fn_c_try_run "$LINENO"; then :
12955 lockmethod=flock
12956 fi
12957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12958 conftest.$ac_objext conftest.beam conftest.$ac_ext
12959 fi
12960
12961 ;;
12962 esac
12963
12964 case x$lockmethod in
12965 xlockf)
12966 ;;
12967 xflock)
12968 ;;
12969 xfcntl)
12970 ;;
12971 *)
12972 as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5
12973 ;;
12974 esac
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5
12977 $as_echo "$lockmethod" >&6; }
12978
12979 if test "$lockmethod" = "fcntl"; then
12980 USE_FCNTL_TRUE=
12981 USE_FCNTL_FALSE='#'
12982 else
12983 USE_FCNTL_TRUE='#'
12984 USE_FCNTL_FALSE=
12985 fi
12986
12987 if test "$lockmethod" = "flock"; then
12988 USE_FLOCK_TRUE=
12989 USE_FLOCK_FALSE='#'
12990 else
12991 USE_FLOCK_TRUE='#'
12992 USE_FLOCK_FALSE=
12993 fi
12994
12995 if test "$lockmethod" = "lockf"; then
12996 USE_LOCKF_TRUE=
12997 USE_LOCKF_FALSE='#'
12998 else
12999 USE_LOCKF_TRUE='#'
13000 USE_LOCKF_FALSE=
13001 fi
13002
13003
13004 if test -d ${srcdir}/../docbook; then
13005 HAVE_SGML_TRUE=
13006 HAVE_SGML_FALSE='#'
13007 else
13008 HAVE_SGML_TRUE='#'
13009 HAVE_SGML_FALSE=
13010 fi
13011
13012
13013
13014 cat >>confdefs.h <<_ACEOF
13015 #define liblock_config_h 1
13016 _ACEOF
13017
13018
13019 ac_config_files="$ac_config_files Makefile"
13020
13021 cat >confcache <<\_ACEOF
13022 # This file is a shell script that caches the results of configure
13023 # tests run on this system so they can be shared between configure
13024 # scripts and configure runs, see configure's option --config-cache.
13025 # It is not useful on other systems. If it contains results you don't
13026 # want to keep, you may remove or edit it.
13027 #
13028 # config.status only pays attention to the cache file if you give it
13029 # the --recheck option to rerun configure.
13030 #
13031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13033 # following values.
13034
13035 _ACEOF
13036
13037 # The following way of writing the cache mishandles newlines in values,
13038 # but we know of no workaround that is simple, portable, and efficient.
13039 # So, we kill variables containing newlines.
13040 # Ultrix sh set writes to stderr and can't be redirected directly,
13041 # and sets the high bit in the cache file unless we assign to the vars.
13042 (
13043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13044 eval ac_val=\$$ac_var
13045 case $ac_val in #(
13046 *${as_nl}*)
13047 case $ac_var in #(
13048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13050 esac
13051 case $ac_var in #(
13052 _ | IFS | as_nl) ;; #(
13053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13054 *) { eval $ac_var=; unset $ac_var;} ;;
13055 esac ;;
13056 esac
13057 done
13058
13059 (set) 2>&1 |
13060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13061 *${as_nl}ac_space=\ *)
13062 # `set' does not quote correctly, so add quotes: double-quote
13063 # substitution turns \\\\ into \\, and sed turns \\ into \.
13064 sed -n \
13065 "s/'/'\\\\''/g;
13066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13067 ;; #(
13068 *)
13069 # `set' quotes correctly as required by POSIX, so do not add quotes.
13070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13071 ;;
13072 esac |
13073 sort
13074 ) |
13075 sed '
13076 /^ac_cv_env_/b end
13077 t clear
13078 :clear
13079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13080 t end
13081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13082 :end' >>confcache
13083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13084 if test -w "$cache_file"; then
13085 if test "x$cache_file" != "x/dev/null"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13087 $as_echo "$as_me: updating cache $cache_file" >&6;}
13088 if test ! -f "$cache_file" || test -h "$cache_file"; then
13089 cat confcache >"$cache_file"
13090 else
13091 case $cache_file in #(
13092 */* | ?:*)
13093 mv -f confcache "$cache_file"$$ &&
13094 mv -f "$cache_file"$$ "$cache_file" ;; #(
13095 *)
13096 mv -f confcache "$cache_file" ;;
13097 esac
13098 fi
13099 fi
13100 else
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13102 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13103 fi
13104 fi
13105 rm -f confcache
13106
13107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13108 # Let make expand exec_prefix.
13109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13110
13111 DEFS=-DHAVE_CONFIG_H
13112
13113 ac_libobjs=
13114 ac_ltlibobjs=
13115 U=
13116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13117 # 1. Remove the extension, and $U if already installed.
13118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13119 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13121 # will be set to the directory where LIBOBJS objects are built.
13122 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13123 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13124 done
13125 LIBOBJS=$ac_libobjs
13126
13127 LTLIBOBJS=$ac_ltlibobjs
13128
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13131 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13132 if test -n "$am_sleep_pid"; then
13133 # Hide warnings about reused PIDs.
13134 wait $am_sleep_pid 2>/dev/null
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13137 $as_echo "done" >&6; }
13138 if test -n "$EXEEXT"; then
13139 am__EXEEXT_TRUE=
13140 am__EXEEXT_FALSE='#'
13141 else
13142 am__EXEEXT_TRUE='#'
13143 am__EXEEXT_FALSE=
13144 fi
13145
13146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13147 as_fn_error $? "conditional \"AMDEP\" was never defined.
13148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13149 fi
13150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13153 fi
13154 if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
13155 as_fn_error $? "conditional \"USE_FCNTL\" was never defined.
13156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13157 fi
13158 if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
13159 as_fn_error $? "conditional \"USE_FLOCK\" was never defined.
13160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13161 fi
13162 if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
13163 as_fn_error $? "conditional \"USE_LOCKF\" was never defined.
13164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13165 fi
13166 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13167 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
13168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13169 fi
13170
13171 : "${CONFIG_STATUS=./config.status}"
13172 ac_write_fail=0
13173 ac_clean_files_save=$ac_clean_files
13174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13176 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13177 as_write_fail=0
13178 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13179 #! $SHELL
13180 # Generated by $as_me.
13181 # Run this file to recreate the current configuration.
13182 # Compiler output produced by configure, useful for debugging
13183 # configure, is in config.log if it exists.
13184
13185 debug=false
13186 ac_cs_recheck=false
13187 ac_cs_silent=false
13188
13189 SHELL=\${CONFIG_SHELL-$SHELL}
13190 export SHELL
13191 _ASEOF
13192 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13193 ## -------------------- ##
13194 ## M4sh Initialization. ##
13195 ## -------------------- ##
13196
13197 # Be more Bourne compatible
13198 DUALCASE=1; export DUALCASE # for MKS sh
13199 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13200 emulate sh
13201 NULLCMD=:
13202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13203 # is contrary to our usage. Disable this feature.
13204 alias -g '${1+"$@"}'='"$@"'
13205 setopt NO_GLOB_SUBST
13206 else
13207 case `(set -o) 2>/dev/null` in #(
13208 *posix*) :
13209 set -o posix ;; #(
13210 *) :
13211 ;;
13212 esac
13213 fi
13214
13215
13216 as_nl='
13217 '
13218 export as_nl
13219 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13220 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13223 # Prefer a ksh shell builtin over an external printf program on Solaris,
13224 # but without wasting forks for bash or zsh.
13225 if test -z "$BASH_VERSION$ZSH_VERSION" \
13226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13227 as_echo='print -r --'
13228 as_echo_n='print -rn --'
13229 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13230 as_echo='printf %s\n'
13231 as_echo_n='printf %s'
13232 else
13233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13235 as_echo_n='/usr/ucb/echo -n'
13236 else
13237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13238 as_echo_n_body='eval
13239 arg=$1;
13240 case $arg in #(
13241 *"$as_nl"*)
13242 expr "X$arg" : "X\\(.*\\)$as_nl";
13243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13244 esac;
13245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13246 '
13247 export as_echo_n_body
13248 as_echo_n='sh -c $as_echo_n_body as_echo'
13249 fi
13250 export as_echo_body
13251 as_echo='sh -c $as_echo_body as_echo'
13252 fi
13253
13254 # The user is always right.
13255 if test "${PATH_SEPARATOR+set}" != set; then
13256 PATH_SEPARATOR=:
13257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13259 PATH_SEPARATOR=';'
13260 }
13261 fi
13262
13263
13264 # IFS
13265 # We need space, tab and new line, in precisely that order. Quoting is
13266 # there to prevent editors from complaining about space-tab.
13267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13268 # splitting by setting IFS to empty value.)
13269 IFS=" "" $as_nl"
13270
13271 # Find who we are. Look in the path if we contain no directory separator.
13272 as_myself=
13273 case $0 in #((
13274 *[\\/]* ) as_myself=$0 ;;
13275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13281 done
13282 IFS=$as_save_IFS
13283
13284 ;;
13285 esac
13286 # We did not find ourselves, most probably we were run as `sh COMMAND'
13287 # in which case we are not to be found in the path.
13288 if test "x$as_myself" = x; then
13289 as_myself=$0
13290 fi
13291 if test ! -f "$as_myself"; then
13292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13293 exit 1
13294 fi
13295
13296 # Unset variables that we do not need and which cause bugs (e.g. in
13297 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13298 # suppresses any "Segmentation fault" message there. '((' could
13299 # trigger a bug in pdksh 5.2.14.
13300 for as_var in BASH_ENV ENV MAIL MAILPATH
13301 do eval test x\${$as_var+set} = xset \
13302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13303 done
13304 PS1='$ '
13305 PS2='> '
13306 PS4='+ '
13307
13308 # NLS nuisances.
13309 LC_ALL=C
13310 export LC_ALL
13311 LANGUAGE=C
13312 export LANGUAGE
13313
13314 # CDPATH.
13315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13316
13317
13318 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13319 # ----------------------------------------
13320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13322 # script with STATUS, using 1 if that was 0.
13323 as_fn_error ()
13324 {
13325 as_status=$1; test $as_status -eq 0 && as_status=1
13326 if test "$4"; then
13327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13329 fi
13330 $as_echo "$as_me: error: $2" >&2
13331 as_fn_exit $as_status
13332 } # as_fn_error
13333
13334
13335 # as_fn_set_status STATUS
13336 # -----------------------
13337 # Set $? to STATUS, without forking.
13338 as_fn_set_status ()
13339 {
13340 return $1
13341 } # as_fn_set_status
13342
13343 # as_fn_exit STATUS
13344 # -----------------
13345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13346 as_fn_exit ()
13347 {
13348 set +e
13349 as_fn_set_status $1
13350 exit $1
13351 } # as_fn_exit
13352
13353 # as_fn_unset VAR
13354 # ---------------
13355 # Portably unset VAR.
13356 as_fn_unset ()
13357 {
13358 { eval $1=; unset $1;}
13359 }
13360 as_unset=as_fn_unset
13361 # as_fn_append VAR VALUE
13362 # ----------------------
13363 # Append the text in VALUE to the end of the definition contained in VAR. Take
13364 # advantage of any shell optimizations that allow amortized linear growth over
13365 # repeated appends, instead of the typical quadratic growth present in naive
13366 # implementations.
13367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13368 eval 'as_fn_append ()
13369 {
13370 eval $1+=\$2
13371 }'
13372 else
13373 as_fn_append ()
13374 {
13375 eval $1=\$$1\$2
13376 }
13377 fi # as_fn_append
13378
13379 # as_fn_arith ARG...
13380 # ------------------
13381 # Perform arithmetic evaluation on the ARGs, and store the result in the
13382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13383 # must be portable across $(()) and expr.
13384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13385 eval 'as_fn_arith ()
13386 {
13387 as_val=$(( $* ))
13388 }'
13389 else
13390 as_fn_arith ()
13391 {
13392 as_val=`expr "$@" || test $? -eq 1`
13393 }
13394 fi # as_fn_arith
13395
13396
13397 if expr a : '\(a\)' >/dev/null 2>&1 &&
13398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13399 as_expr=expr
13400 else
13401 as_expr=false
13402 fi
13403
13404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13405 as_basename=basename
13406 else
13407 as_basename=false
13408 fi
13409
13410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13411 as_dirname=dirname
13412 else
13413 as_dirname=false
13414 fi
13415
13416 as_me=`$as_basename -- "$0" ||
13417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13418 X"$0" : 'X\(//\)$' \| \
13419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13420 $as_echo X/"$0" |
13421 sed '/^.*\/\([^/][^/]*\)\/*$/{
13422 s//\1/
13423 q
13424 }
13425 /^X\/\(\/\/\)$/{
13426 s//\1/
13427 q
13428 }
13429 /^X\/\(\/\).*/{
13430 s//\1/
13431 q
13432 }
13433 s/.*/./; q'`
13434
13435 # Avoid depending upon Character Ranges.
13436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13439 as_cr_digits='0123456789'
13440 as_cr_alnum=$as_cr_Letters$as_cr_digits
13441
13442 ECHO_C= ECHO_N= ECHO_T=
13443 case `echo -n x` in #(((((
13444 -n*)
13445 case `echo 'xy\c'` in
13446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13447 xy) ECHO_C='\c';;
13448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13449 ECHO_T=' ';;
13450 esac;;
13451 *)
13452 ECHO_N='-n';;
13453 esac
13454
13455 rm -f conf$$ conf$$.exe conf$$.file
13456 if test -d conf$$.dir; then
13457 rm -f conf$$.dir/conf$$.file
13458 else
13459 rm -f conf$$.dir
13460 mkdir conf$$.dir 2>/dev/null
13461 fi
13462 if (echo >conf$$.file) 2>/dev/null; then
13463 if ln -s conf$$.file conf$$ 2>/dev/null; then
13464 as_ln_s='ln -s'
13465 # ... but there are two gotchas:
13466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13468 # In both cases, we have to default to `cp -pR'.
13469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13470 as_ln_s='cp -pR'
13471 elif ln conf$$.file conf$$ 2>/dev/null; then
13472 as_ln_s=ln
13473 else
13474 as_ln_s='cp -pR'
13475 fi
13476 else
13477 as_ln_s='cp -pR'
13478 fi
13479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13480 rmdir conf$$.dir 2>/dev/null
13481
13482
13483 # as_fn_mkdir_p
13484 # -------------
13485 # Create "$as_dir" as a directory, including parents if necessary.
13486 as_fn_mkdir_p ()
13487 {
13488
13489 case $as_dir in #(
13490 -*) as_dir=./$as_dir;;
13491 esac
13492 test -d "$as_dir" || eval $as_mkdir_p || {
13493 as_dirs=
13494 while :; do
13495 case $as_dir in #(
13496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13497 *) as_qdir=$as_dir;;
13498 esac
13499 as_dirs="'$as_qdir' $as_dirs"
13500 as_dir=`$as_dirname -- "$as_dir" ||
13501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13502 X"$as_dir" : 'X\(//\)[^/]' \| \
13503 X"$as_dir" : 'X\(//\)$' \| \
13504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13505 $as_echo X"$as_dir" |
13506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13507 s//\1/
13508 q
13509 }
13510 /^X\(\/\/\)[^/].*/{
13511 s//\1/
13512 q
13513 }
13514 /^X\(\/\/\)$/{
13515 s//\1/
13516 q
13517 }
13518 /^X\(\/\).*/{
13519 s//\1/
13520 q
13521 }
13522 s/.*/./; q'`
13523 test -d "$as_dir" && break
13524 done
13525 test -z "$as_dirs" || eval "mkdir $as_dirs"
13526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13527
13528
13529 } # as_fn_mkdir_p
13530 if mkdir -p . 2>/dev/null; then
13531 as_mkdir_p='mkdir -p "$as_dir"'
13532 else
13533 test -d ./-p && rmdir ./-p
13534 as_mkdir_p=false
13535 fi
13536
13537
13538 # as_fn_executable_p FILE
13539 # -----------------------
13540 # Test if FILE is an executable regular file.
13541 as_fn_executable_p ()
13542 {
13543 test -f "$1" && test -x "$1"
13544 } # as_fn_executable_p
13545 as_test_x='test -x'
13546 as_executable_p=as_fn_executable_p
13547
13548 # Sed expression to map a string onto a valid CPP name.
13549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13550
13551 # Sed expression to map a string onto a valid variable name.
13552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13553
13554
13555 exec 6>&1
13556 ## ----------------------------------- ##
13557 ## Main body of $CONFIG_STATUS script. ##
13558 ## ----------------------------------- ##
13559 _ASEOF
13560 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13561
13562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13563 # Save the log message, to keep $0 and so on meaningful, and to
13564 # report actual input values of CONFIG_FILES etc. instead of their
13565 # values after options handling.
13566 ac_log="
13567 This file was extended by liblock $as_me 0.60, which was
13568 generated by GNU Autoconf 2.69. Invocation command line was
13569
13570 CONFIG_FILES = $CONFIG_FILES
13571 CONFIG_HEADERS = $CONFIG_HEADERS
13572 CONFIG_LINKS = $CONFIG_LINKS
13573 CONFIG_COMMANDS = $CONFIG_COMMANDS
13574 $ $0 $@
13575
13576 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13577 "
13578
13579 _ACEOF
13580
13581 case $ac_config_files in *"
13582 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13583 esac
13584
13585 case $ac_config_headers in *"
13586 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13587 esac
13588
13589
13590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13591 # Files that config.status was made for.
13592 config_files="$ac_config_files"
13593 config_headers="$ac_config_headers"
13594 config_commands="$ac_config_commands"
13595
13596 _ACEOF
13597
13598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13599 ac_cs_usage="\
13600 \`$as_me' instantiates files and other configuration actions
13601 from templates according to the current configuration. Unless the files
13602 and actions are specified as TAGs, all are instantiated by default.
13603
13604 Usage: $0 [OPTION]... [TAG]...
13605
13606 -h, --help print this help, then exit
13607 -V, --version print version number and configuration settings, then exit
13608 --config print configuration, then exit
13609 -q, --quiet, --silent
13610 do not print progress messages
13611 -d, --debug don't remove temporary files
13612 --recheck update $as_me by reconfiguring in the same conditions
13613 --file=FILE[:TEMPLATE]
13614 instantiate the configuration file FILE
13615 --header=FILE[:TEMPLATE]
13616 instantiate the configuration header FILE
13617
13618 Configuration files:
13619 $config_files
13620
13621 Configuration headers:
13622 $config_headers
13623
13624 Configuration commands:
13625 $config_commands
13626
13627 Report bugs to <courier-users@lists.sourceforge.net>."
13628
13629 _ACEOF
13630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13632 ac_cs_version="\\
13633 liblock config.status 0.60
13634 configured by $0, generated by GNU Autoconf 2.69,
13635 with options \\"\$ac_cs_config\\"
13636
13637 Copyright (C) 2012 Free Software Foundation, Inc.
13638 This config.status script is free software; the Free Software Foundation
13639 gives unlimited permission to copy, distribute and modify it."
13640
13641 ac_pwd='$ac_pwd'
13642 srcdir='$srcdir'
13643 INSTALL='$INSTALL'
13644 MKDIR_P='$MKDIR_P'
13645 AWK='$AWK'
13646 test -n "\$AWK" || AWK=awk
13647 _ACEOF
13648
13649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13650 # The default lists apply if the user does not specify any file.
13651 ac_need_defaults=:
13652 while test $# != 0
13653 do
13654 case $1 in
13655 --*=?*)
13656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13658 ac_shift=:
13659 ;;
13660 --*=)
13661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13662 ac_optarg=
13663 ac_shift=:
13664 ;;
13665 *)
13666 ac_option=$1
13667 ac_optarg=$2
13668 ac_shift=shift
13669 ;;
13670 esac
13671
13672 case $ac_option in
13673 # Handling of the options.
13674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13675 ac_cs_recheck=: ;;
13676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13677 $as_echo "$ac_cs_version"; exit ;;
13678 --config | --confi | --conf | --con | --co | --c )
13679 $as_echo "$ac_cs_config"; exit ;;
13680 --debug | --debu | --deb | --de | --d | -d )
13681 debug=: ;;
13682 --file | --fil | --fi | --f )
13683 $ac_shift
13684 case $ac_optarg in
13685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13686 '') as_fn_error $? "missing file argument" ;;
13687 esac
13688 as_fn_append CONFIG_FILES " '$ac_optarg'"
13689 ac_need_defaults=false;;
13690 --header | --heade | --head | --hea )
13691 $ac_shift
13692 case $ac_optarg in
13693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13694 esac
13695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13696 ac_need_defaults=false;;
13697 --he | --h)
13698 # Conflict between --help and --header
13699 as_fn_error $? "ambiguous option: \`$1'
13700 Try \`$0 --help' for more information.";;
13701 --help | --hel | -h )
13702 $as_echo "$ac_cs_usage"; exit ;;
13703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13705 ac_cs_silent=: ;;
13706
13707 # This is an error.
13708 -*) as_fn_error $? "unrecognized option: \`$1'
13709 Try \`$0 --help' for more information." ;;
13710
13711 *) as_fn_append ac_config_targets " $1"
13712 ac_need_defaults=false ;;
13713
13714 esac
13715 shift
13716 done
13717
13718 ac_configure_extra_args=
13719
13720 if $ac_cs_silent; then
13721 exec 6>/dev/null
13722 ac_configure_extra_args="$ac_configure_extra_args --silent"
13723 fi
13724
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 if \$ac_cs_recheck; then
13728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13729 shift
13730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13731 CONFIG_SHELL='$SHELL'
13732 export CONFIG_SHELL
13733 exec "\$@"
13734 fi
13735
13736 _ACEOF
13737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 exec 5>>config.log
13739 {
13740 echo
13741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13742 ## Running $as_me. ##
13743 _ASBOX
13744 $as_echo "$ac_log"
13745 } >&5
13746
13747 _ACEOF
13748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749 #
13750 # INIT-COMMANDS
13751 #
13752 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13753
13754
13755 # The HP-UX ksh and POSIX shell print the target directory to stdout
13756 # if CDPATH is set.
13757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13758
13759 sed_quote_subst='$sed_quote_subst'
13760 double_quote_subst='$double_quote_subst'
13761 delay_variable_subst='$delay_variable_subst'
13762 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13763 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13766 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13767 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13768 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13796 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13797 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13798 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13799 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13800 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13801 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13802 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13803 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13804 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13805 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13806 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13807 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13808 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13809 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13810 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13811 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13812 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13813 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13814 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13815 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13816 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13817 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13818 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13820 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"`'
13821 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13822 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13823 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13824 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13825 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13826 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13827 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13828 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13829 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13830 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13831 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13832 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13833 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13834 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13835 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13836 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13837 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13838 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13839 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13840 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13841 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13842 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13843 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13844 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13845 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13846 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13847 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13848 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13849 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13850 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13851 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13852 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13853 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13854 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13855 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13856 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13857 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13858 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13859 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13860 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13861 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13862 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13863 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13864 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13865 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13866 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13867 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13868 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13869 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13870 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13871 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13872 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13873 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13874 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13875 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13876 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13877 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13878 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13879 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13880 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13881 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13882 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13883 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13884 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13885 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13886 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13887 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13888 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13889 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13890 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13897
13898 LTCC='$LTCC'
13899 LTCFLAGS='$LTCFLAGS'
13900 compiler='$compiler_DEFAULT'
13901
13902 # A function that is used when there is no print builtin or printf.
13903 func_fallback_echo ()
13904 {
13905 eval 'cat <<_LTECHO_EOF
13906 \$1
13907 _LTECHO_EOF'
13908 }
13909
13910 # Quote evaled strings.
13911 for var in SHELL \
13912 ECHO \
13913 PATH_SEPARATOR \
13914 SED \
13915 GREP \
13916 EGREP \
13917 FGREP \
13918 LD \
13919 NM \
13920 LN_S \
13921 lt_SP2NL \
13922 lt_NL2SP \
13923 reload_flag \
13924 OBJDUMP \
13925 deplibs_check_method \
13926 file_magic_cmd \
13927 file_magic_glob \
13928 want_nocaseglob \
13929 DLLTOOL \
13930 sharedlib_from_linklib_cmd \
13931 AR \
13932 AR_FLAGS \
13933 archiver_list_spec \
13934 STRIP \
13935 RANLIB \
13936 CC \
13937 CFLAGS \
13938 compiler \
13939 lt_cv_sys_global_symbol_pipe \
13940 lt_cv_sys_global_symbol_to_cdecl \
13941 lt_cv_sys_global_symbol_to_import \
13942 lt_cv_sys_global_symbol_to_c_name_address \
13943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13944 lt_cv_nm_interface \
13945 nm_file_list_spec \
13946 lt_cv_truncate_bin \
13947 lt_prog_compiler_no_builtin_flag \
13948 lt_prog_compiler_pic \
13949 lt_prog_compiler_wl \
13950 lt_prog_compiler_static \
13951 lt_cv_prog_compiler_c_o \
13952 need_locks \
13953 MANIFEST_TOOL \
13954 DSYMUTIL \
13955 NMEDIT \
13956 LIPO \
13957 OTOOL \
13958 OTOOL64 \
13959 shrext_cmds \
13960 export_dynamic_flag_spec \
13961 whole_archive_flag_spec \
13962 compiler_needs_object \
13963 with_gnu_ld \
13964 allow_undefined_flag \
13965 no_undefined_flag \
13966 hardcode_libdir_flag_spec \
13967 hardcode_libdir_separator \
13968 exclude_expsyms \
13969 include_expsyms \
13970 file_list_spec \
13971 variables_saved_for_relink \
13972 libname_spec \
13973 library_names_spec \
13974 soname_spec \
13975 install_override_mode \
13976 finish_eval \
13977 old_striplib \
13978 striplib; do
13979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13980 *[\\\\\\\`\\"\\\$]*)
13981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13982 ;;
13983 *)
13984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13985 ;;
13986 esac
13987 done
13988
13989 # Double-quote double-evaled strings.
13990 for var in reload_cmds \
13991 old_postinstall_cmds \
13992 old_postuninstall_cmds \
13993 old_archive_cmds \
13994 extract_expsyms_cmds \
13995 old_archive_from_new_cmds \
13996 old_archive_from_expsyms_cmds \
13997 archive_cmds \
13998 archive_expsym_cmds \
13999 module_cmds \
14000 module_expsym_cmds \
14001 export_symbols_cmds \
14002 prelink_cmds \
14003 postlink_cmds \
14004 postinstall_cmds \
14005 postuninstall_cmds \
14006 finish_cmds \
14007 sys_lib_search_path_spec \
14008 configure_time_dlsearch_path \
14009 configure_time_lt_sys_library_path; do
14010 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14011 *[\\\\\\\`\\"\\\$]*)
14012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14013 ;;
14014 *)
14015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14016 ;;
14017 esac
14018 done
14019
14020 ac_aux_dir='$ac_aux_dir'
14021
14022 # See if we are running on zsh, and set the options that allow our
14023 # commands through without removal of \ escapes INIT.
14024 if test -n "\${ZSH_VERSION+set}"; then
14025 setopt NO_GLOB_SUBST
14026 fi
14027
14028
14029 PACKAGE='$PACKAGE'
14030 VERSION='$VERSION'
14031 RM='$RM'
14032 ofile='$ofile'
14033
14034
14035
14036
14037 _ACEOF
14038
14039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14040
14041 # Handling of arguments.
14042 for ac_config_target in $ac_config_targets
14043 do
14044 case $ac_config_target in
14045 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14046 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14047 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14049
14050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14051 esac
14052 done
14053
14054
14055 # If the user did not use the arguments to specify the items to instantiate,
14056 # then the envvar interface is used. Set only those that are not.
14057 # We use the long form for the default assignment because of an extremely
14058 # bizarre bug on SunOS 4.1.3.
14059 if $ac_need_defaults; then
14060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14063 fi
14064
14065 # Have a temporary directory for convenience. Make it in the build tree
14066 # simply because there is no reason against having it here, and in addition,
14067 # creating and moving files from /tmp can sometimes cause problems.
14068 # Hook for its removal unless debugging.
14069 # Note that there is a small window in which the directory will not be cleaned:
14070 # after its creation but before its name has been assigned to `$tmp'.
14071 $debug ||
14072 {
14073 tmp= ac_tmp=
14074 trap 'exit_status=$?
14075 : "${ac_tmp:=$tmp}"
14076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14077 ' 0
14078 trap 'as_fn_exit 1' 1 2 13 15
14079 }
14080 # Create a (secure) tmp directory for tmp files.
14081
14082 {
14083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14084 test -d "$tmp"
14085 } ||
14086 {
14087 tmp=./conf$$-$RANDOM
14088 (umask 077 && mkdir "$tmp")
14089 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14090 ac_tmp=$tmp
14091
14092 # Set up the scripts for CONFIG_FILES section.
14093 # No need to generate them if there are no CONFIG_FILES.
14094 # This happens for instance with `./config.status config.h'.
14095 if test -n "$CONFIG_FILES"; then
14096
14097
14098 ac_cr=`echo X | tr X '\015'`
14099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14100 # But we know of no other shell where ac_cr would be empty at this
14101 # point, so we can use a bashism as a fallback.
14102 if test "x$ac_cr" = x; then
14103 eval ac_cr=\$\'\\r\'
14104 fi
14105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14107 ac_cs_awk_cr='\\r'
14108 else
14109 ac_cs_awk_cr=$ac_cr
14110 fi
14111
14112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14113 _ACEOF
14114
14115
14116 {
14117 echo "cat >conf$$subs.awk <<_ACEOF" &&
14118 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14119 echo "_ACEOF"
14120 } >conf$$subs.sh ||
14121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14123 ac_delim='%!_!# '
14124 for ac_last_try in false false false false false :; do
14125 . ./conf$$subs.sh ||
14126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14127
14128 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14129 if test $ac_delim_n = $ac_delim_num; then
14130 break
14131 elif $ac_last_try; then
14132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14133 else
14134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14135 fi
14136 done
14137 rm -f conf$$subs.sh
14138
14139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14141 _ACEOF
14142 sed -n '
14143 h
14144 s/^/S["/; s/!.*/"]=/
14145 p
14146 g
14147 s/^[^!]*!//
14148 :repl
14149 t repl
14150 s/'"$ac_delim"'$//
14151 t delim
14152 :nl
14153 h
14154 s/\(.\{148\}\)..*/\1/
14155 t more1
14156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14157 p
14158 n
14159 b repl
14160 :more1
14161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14162 p
14163 g
14164 s/.\{148\}//
14165 t nl
14166 :delim
14167 h
14168 s/\(.\{148\}\)..*/\1/
14169 t more2
14170 s/["\\]/\\&/g; s/^/"/; s/$/"/
14171 p
14172 b
14173 :more2
14174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14175 p
14176 g
14177 s/.\{148\}//
14178 t delim
14179 ' <conf$$subs.awk | sed '
14180 /^[^""]/{
14181 N
14182 s/\n//
14183 }
14184 ' >>$CONFIG_STATUS || ac_write_fail=1
14185 rm -f conf$$subs.awk
14186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14187 _ACAWK
14188 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14189 for (key in S) S_is_set[key] = 1
14190 FS = "\a"
14191
14192 }
14193 {
14194 line = $ 0
14195 nfields = split(line, field, "@")
14196 substed = 0
14197 len = length(field[1])
14198 for (i = 2; i < nfields; i++) {
14199 key = field[i]
14200 keylen = length(key)
14201 if (S_is_set[key]) {
14202 value = S[key]
14203 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14204 len += length(value) + length(field[++i])
14205 substed = 1
14206 } else
14207 len += 1 + keylen
14208 }
14209
14210 print line
14211 }
14212
14213 _ACAWK
14214 _ACEOF
14215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14218 else
14219 cat
14220 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14221 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14222 _ACEOF
14223
14224 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14225 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14226 # trailing colons and then remove the whole line if VPATH becomes empty
14227 # (actually we leave an empty line to preserve line numbers).
14228 if test "x$srcdir" = x.; then
14229 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14230 h
14231 s///
14232 s/^/:/
14233 s/[ ]*$/:/
14234 s/:\$(srcdir):/:/g
14235 s/:\${srcdir}:/:/g
14236 s/:@srcdir@:/:/g
14237 s/^:*//
14238 s/:*$//
14239 x
14240 s/\(=[ ]*\).*/\1/
14241 G
14242 s/\n//
14243 s/^[^=]*=[ ]*$//
14244 }'
14245 fi
14246
14247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14248 fi # test -n "$CONFIG_FILES"
14249
14250 # Set up the scripts for CONFIG_HEADERS section.
14251 # No need to generate them if there are no CONFIG_HEADERS.
14252 # This happens for instance with `./config.status Makefile'.
14253 if test -n "$CONFIG_HEADERS"; then
14254 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14255 BEGIN {
14256 _ACEOF
14257
14258 # Transform confdefs.h into an awk script `defines.awk', embedded as
14259 # here-document in config.status, that substitutes the proper values into
14260 # config.h.in to produce config.h.
14261
14262 # Create a delimiter string that does not exist in confdefs.h, to ease
14263 # handling of long lines.
14264 ac_delim='%!_!# '
14265 for ac_last_try in false false :; do
14266 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14267 if test -z "$ac_tt"; then
14268 break
14269 elif $ac_last_try; then
14270 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14271 else
14272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14273 fi
14274 done
14275
14276 # For the awk script, D is an array of macro values keyed by name,
14277 # likewise P contains macro parameters if any. Preserve backslash
14278 # newline sequences.
14279
14280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14281 sed -n '
14282 s/.\{148\}/&'"$ac_delim"'/g
14283 t rset
14284 :rset
14285 s/^[ ]*#[ ]*define[ ][ ]*/ /
14286 t def
14287 d
14288 :def
14289 s/\\$//
14290 t bsnl
14291 s/["\\]/\\&/g
14292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14293 D["\1"]=" \3"/p
14294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14295 d
14296 :bsnl
14297 s/["\\]/\\&/g
14298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14299 D["\1"]=" \3\\\\\\n"\\/p
14300 t cont
14301 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14302 t cont
14303 d
14304 :cont
14305 n
14306 s/.\{148\}/&'"$ac_delim"'/g
14307 t clear
14308 :clear
14309 s/\\$//
14310 t bsnlc
14311 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14312 d
14313 :bsnlc
14314 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14315 b cont
14316 ' <confdefs.h | sed '
14317 s/'"$ac_delim"'/"\\\
14318 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14319
14320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14321 for (key in D) D_is_set[key] = 1
14322 FS = "\a"
14323 }
14324 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14325 line = \$ 0
14326 split(line, arg, " ")
14327 if (arg[1] == "#") {
14328 defundef = arg[2]
14329 mac1 = arg[3]
14330 } else {
14331 defundef = substr(arg[1], 2)
14332 mac1 = arg[2]
14333 }
14334 split(mac1, mac2, "(") #)
14335 macro = mac2[1]
14336 prefix = substr(line, 1, index(line, defundef) - 1)
14337 if (D_is_set[macro]) {
14338 # Preserve the white space surrounding the "#".
14339 print prefix "define", macro P[macro] D[macro]
14340 next
14341 } else {
14342 # Replace #undef with comments. This is necessary, for example,
14343 # in the case of _POSIX_SOURCE, which is predefined and required
14344 # on some systems where configure will not decide to define it.
14345 if (defundef == "undef") {
14346 print "/*", prefix defundef, macro, "*/"
14347 next
14348 }
14349 }
14350 }
14351 { print }
14352 _ACAWK
14353 _ACEOF
14354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14355 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14356 fi # test -n "$CONFIG_HEADERS"
14357
14358
14359 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14360 shift
14361 for ac_tag
14362 do
14363 case $ac_tag in
14364 :[FHLC]) ac_mode=$ac_tag; continue;;
14365 esac
14366 case $ac_mode$ac_tag in
14367 :[FHL]*:*);;
14368 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14369 :[FH]-) ac_tag=-:-;;
14370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14371 esac
14372 ac_save_IFS=$IFS
14373 IFS=:
14374 set x $ac_tag
14375 IFS=$ac_save_IFS
14376 shift
14377 ac_file=$1
14378 shift
14379
14380 case $ac_mode in
14381 :L) ac_source=$1;;
14382 :[FH])
14383 ac_file_inputs=
14384 for ac_f
14385 do
14386 case $ac_f in
14387 -) ac_f="$ac_tmp/stdin";;
14388 *) # Look for the file first in the build tree, then in the source tree
14389 # (if the path is not absolute). The absolute path cannot be DOS-style,
14390 # because $ac_f cannot contain `:'.
14391 test -f "$ac_f" ||
14392 case $ac_f in
14393 [\\/$]*) false;;
14394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14395 esac ||
14396 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14397 esac
14398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14399 as_fn_append ac_file_inputs " '$ac_f'"
14400 done
14401
14402 # Let's still pretend it is `configure' which instantiates (i.e., don't
14403 # use $as_me), people would be surprised to read:
14404 # /* config.h. Generated by config.status. */
14405 configure_input='Generated from '`
14406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14407 `' by configure.'
14408 if test x"$ac_file" != x-; then
14409 configure_input="$ac_file. $configure_input"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14411 $as_echo "$as_me: creating $ac_file" >&6;}
14412 fi
14413 # Neutralize special characters interpreted by sed in replacement strings.
14414 case $configure_input in #(
14415 *\&* | *\|* | *\\* )
14416 ac_sed_conf_input=`$as_echo "$configure_input" |
14417 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14418 *) ac_sed_conf_input=$configure_input;;
14419 esac
14420
14421 case $ac_tag in
14422 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14424 esac
14425 ;;
14426 esac
14427
14428 ac_dir=`$as_dirname -- "$ac_file" ||
14429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14430 X"$ac_file" : 'X\(//\)[^/]' \| \
14431 X"$ac_file" : 'X\(//\)$' \| \
14432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14433 $as_echo X"$ac_file" |
14434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14435 s//\1/
14436 q
14437 }
14438 /^X\(\/\/\)[^/].*/{
14439 s//\1/
14440 q
14441 }
14442 /^X\(\/\/\)$/{
14443 s//\1/
14444 q
14445 }
14446 /^X\(\/\).*/{
14447 s//\1/
14448 q
14449 }
14450 s/.*/./; q'`
14451 as_dir="$ac_dir"; as_fn_mkdir_p
14452 ac_builddir=.
14453
14454 case "$ac_dir" in
14455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14456 *)
14457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14458 # A ".." for each directory in $ac_dir_suffix.
14459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14460 case $ac_top_builddir_sub in
14461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14463 esac ;;
14464 esac
14465 ac_abs_top_builddir=$ac_pwd
14466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14467 # for backward compatibility:
14468 ac_top_builddir=$ac_top_build_prefix
14469
14470 case $srcdir in
14471 .) # We are building in place.
14472 ac_srcdir=.
14473 ac_top_srcdir=$ac_top_builddir_sub
14474 ac_abs_top_srcdir=$ac_pwd ;;
14475 [\\/]* | ?:[\\/]* ) # Absolute name.
14476 ac_srcdir=$srcdir$ac_dir_suffix;
14477 ac_top_srcdir=$srcdir
14478 ac_abs_top_srcdir=$srcdir ;;
14479 *) # Relative name.
14480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14481 ac_top_srcdir=$ac_top_build_prefix$srcdir
14482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14483 esac
14484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14485
14486
14487 case $ac_mode in
14488 :F)
14489 #
14490 # CONFIG_FILE
14491 #
14492
14493 case $INSTALL in
14494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14496 esac
14497 ac_MKDIR_P=$MKDIR_P
14498 case $MKDIR_P in
14499 [\\/$]* | ?:[\\/]* ) ;;
14500 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14501 esac
14502 _ACEOF
14503
14504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14505 # If the template does not know about datarootdir, expand it.
14506 # FIXME: This hack should be removed a few years after 2.60.
14507 ac_datarootdir_hack=; ac_datarootdir_seen=
14508 ac_sed_dataroot='
14509 /datarootdir/ {
14510 p
14511 q
14512 }
14513 /@datadir@/p
14514 /@docdir@/p
14515 /@infodir@/p
14516 /@localedir@/p
14517 /@mandir@/p'
14518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14519 *datarootdir*) ac_datarootdir_seen=yes;;
14520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14522 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14523 _ACEOF
14524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525 ac_datarootdir_hack='
14526 s&@datadir@&$datadir&g
14527 s&@docdir@&$docdir&g
14528 s&@infodir@&$infodir&g
14529 s&@localedir@&$localedir&g
14530 s&@mandir@&$mandir&g
14531 s&\\\${datarootdir}&$datarootdir&g' ;;
14532 esac
14533 _ACEOF
14534
14535 # Neutralize VPATH when `$srcdir' = `.'.
14536 # Shell code in configure.ac might set extrasub.
14537 # FIXME: do we really want to maintain this feature?
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 ac_sed_extra="$ac_vpsub
14540 $extrasub
14541 _ACEOF
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14543 :t
14544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14545 s|@configure_input@|$ac_sed_conf_input|;t t
14546 s&@top_builddir@&$ac_top_builddir_sub&;t t
14547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14548 s&@srcdir@&$ac_srcdir&;t t
14549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14550 s&@top_srcdir@&$ac_top_srcdir&;t t
14551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14552 s&@builddir@&$ac_builddir&;t t
14553 s&@abs_builddir@&$ac_abs_builddir&;t t
14554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14555 s&@INSTALL@&$ac_INSTALL&;t t
14556 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14557 $ac_datarootdir_hack
14558 "
14559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14560 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14561
14562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14563 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14565 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14567 which seems to be undefined. Please make sure it is defined" >&5
14568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14569 which seems to be undefined. Please make sure it is defined" >&2;}
14570
14571 rm -f "$ac_tmp/stdin"
14572 case $ac_file in
14573 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14574 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14575 esac \
14576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14577 ;;
14578 :H)
14579 #
14580 # CONFIG_HEADER
14581 #
14582 if test x"$ac_file" != x-; then
14583 {
14584 $as_echo "/* $configure_input */" \
14585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14586 } >"$ac_tmp/config.h" \
14587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14588 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14591 else
14592 rm -f "$ac_file"
14593 mv "$ac_tmp/config.h" "$ac_file" \
14594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14595 fi
14596 else
14597 $as_echo "/* $configure_input */" \
14598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14599 || as_fn_error $? "could not create -" "$LINENO" 5
14600 fi
14601 # Compute "$ac_file"'s index in $config_headers.
14602 _am_arg="$ac_file"
14603 _am_stamp_count=1
14604 for _am_header in $config_headers :; do
14605 case $_am_header in
14606 $_am_arg | $_am_arg:* )
14607 break ;;
14608 * )
14609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14610 esac
14611 done
14612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14614 X"$_am_arg" : 'X\(//\)[^/]' \| \
14615 X"$_am_arg" : 'X\(//\)$' \| \
14616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14617 $as_echo X"$_am_arg" |
14618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14619 s//\1/
14620 q
14621 }
14622 /^X\(\/\/\)[^/].*/{
14623 s//\1/
14624 q
14625 }
14626 /^X\(\/\/\)$/{
14627 s//\1/
14628 q
14629 }
14630 /^X\(\/\).*/{
14631 s//\1/
14632 q
14633 }
14634 s/.*/./; q'`/stamp-h$_am_stamp_count
14635 ;;
14636
14637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14638 $as_echo "$as_me: executing $ac_file commands" >&6;}
14639 ;;
14640 esac
14641
14642
14643 case $ac_file$ac_mode in
14644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14645 # Older Autoconf quotes --file arguments for eval, but not when files
14646 # are listed without --file. Let's play safe and only enable the eval
14647 # if we detect the quoting.
14648 case $CONFIG_FILES in
14649 *\'*) eval set x "$CONFIG_FILES" ;;
14650 *) set x $CONFIG_FILES ;;
14651 esac
14652 shift
14653 for mf
14654 do
14655 # Strip MF so we end up with the name of the file.
14656 mf=`echo "$mf" | sed -e 's/:.*$//'`
14657 # Check whether this is an Automake generated Makefile or not.
14658 # We used to match only the files named 'Makefile.in', but
14659 # some people rename them; so instead we look at the file content.
14660 # Grep'ing the first line is not enough: some people post-process
14661 # each Makefile.in and add a new line on top of each file to say so.
14662 # Grep'ing the whole file is not good either: AIX grep has a line
14663 # limit of 2048, but all sed's we know have understand at least 4000.
14664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14665 dirpart=`$as_dirname -- "$mf" ||
14666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14667 X"$mf" : 'X\(//\)[^/]' \| \
14668 X"$mf" : 'X\(//\)$' \| \
14669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14670 $as_echo X"$mf" |
14671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14672 s//\1/
14673 q
14674 }
14675 /^X\(\/\/\)[^/].*/{
14676 s//\1/
14677 q
14678 }
14679 /^X\(\/\/\)$/{
14680 s//\1/
14681 q
14682 }
14683 /^X\(\/\).*/{
14684 s//\1/
14685 q
14686 }
14687 s/.*/./; q'`
14688 else
14689 continue
14690 fi
14691 # Extract the definition of DEPDIR, am__include, and am__quote
14692 # from the Makefile without running 'make'.
14693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14694 test -z "$DEPDIR" && continue
14695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14696 test -z "$am__include" && continue
14697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14698 # Find all dependency output files, they are included files with
14699 # $(DEPDIR) in their names. We invoke sed twice because it is the
14700 # simplest approach to changing $(DEPDIR) to its actual value in the
14701 # expansion.
14702 for file in `sed -n "
14703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14705 # Make sure the directory exists.
14706 test -f "$dirpart/$file" && continue
14707 fdir=`$as_dirname -- "$file" ||
14708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$file" : 'X\(//\)[^/]' \| \
14710 X"$file" : 'X\(//\)$' \| \
14711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14712 $as_echo X"$file" |
14713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14714 s//\1/
14715 q
14716 }
14717 /^X\(\/\/\)[^/].*/{
14718 s//\1/
14719 q
14720 }
14721 /^X\(\/\/\)$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\(\/\).*/{
14726 s//\1/
14727 q
14728 }
14729 s/.*/./; q'`
14730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14731 # echo "creating $dirpart/$file"
14732 echo '# dummy' > "$dirpart/$file"
14733 done
14734 done
14735 }
14736 ;;
14737 "libtool":C)
14738
14739 # See if we are running on zsh, and set the options that allow our
14740 # commands through without removal of \ escapes.
14741 if test -n "${ZSH_VERSION+set}"; then
14742 setopt NO_GLOB_SUBST
14743 fi
14744
14745 cfgfile=${ofile}T
14746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14747 $RM "$cfgfile"
14748
14749 cat <<_LT_EOF >> "$cfgfile"
14750 #! $SHELL
14751 # Generated automatically by $as_me ($PACKAGE) $VERSION
14752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14753 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14754
14755 # Provide generalized library-building support services.
14756 # Written by Gordon Matzigkeit, 1996
14757
14758 # Copyright (C) 2014 Free Software Foundation, Inc.
14759 # This is free software; see the source for copying conditions. There is NO
14760 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14761
14762 # GNU Libtool is free software; you can redistribute it and/or modify
14763 # it under the terms of the GNU General Public License as published by
14764 # the Free Software Foundation; either version 2 of of the License, or
14765 # (at your option) any later version.
14766 #
14767 # As a special exception to the GNU General Public License, if you
14768 # distribute this file as part of a program or library that is built
14769 # using GNU Libtool, you may include this file under the same
14770 # distribution terms that you use for the rest of that program.
14771 #
14772 # GNU Libtool is distributed in the hope that it will be useful, but
14773 # WITHOUT ANY WARRANTY; without even the implied warranty of
14774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14775 # GNU General Public License for more details.
14776 #
14777 # You should have received a copy of the GNU General Public License
14778 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14779
14780
14781 # The names of the tagged configurations supported by this script.
14782 available_tags=''
14783
14784 # Configured defaults for sys_lib_dlsearch_path munging.
14785 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14786
14787 # ### BEGIN LIBTOOL CONFIG
14788
14789 # Which release of libtool.m4 was used?
14790 macro_version=$macro_version
14791 macro_revision=$macro_revision
14792
14793 # Whether or not to build shared libraries.
14794 build_libtool_libs=$enable_shared
14795
14796 # Whether or not to build static libraries.
14797 build_old_libs=$enable_static
14798
14799 # What type of objects to build.
14800 pic_mode=$pic_mode
14801
14802 # Whether or not to optimize for fast installation.
14803 fast_install=$enable_fast_install
14804
14805 # Shared archive member basename,for filename based shared library versioning on AIX.
14806 shared_archive_member_spec=$shared_archive_member_spec
14807
14808 # Shell to use when invoking shell scripts.
14809 SHELL=$lt_SHELL
14810
14811 # An echo program that protects backslashes.
14812 ECHO=$lt_ECHO
14813
14814 # The PATH separator for the build system.
14815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14816
14817 # The host system.
14818 host_alias=$host_alias
14819 host=$host
14820 host_os=$host_os
14821
14822 # The build system.
14823 build_alias=$build_alias
14824 build=$build
14825 build_os=$build_os
14826
14827 # A sed program that does not truncate output.
14828 SED=$lt_SED
14829
14830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14831 Xsed="\$SED -e 1s/^X//"
14832
14833 # A grep program that handles long lines.
14834 GREP=$lt_GREP
14835
14836 # An ERE matcher.
14837 EGREP=$lt_EGREP
14838
14839 # A literal string matcher.
14840 FGREP=$lt_FGREP
14841
14842 # A BSD- or MS-compatible name lister.
14843 NM=$lt_NM
14844
14845 # Whether we need soft or hard links.
14846 LN_S=$lt_LN_S
14847
14848 # What is the maximum length of a command?
14849 max_cmd_len=$max_cmd_len
14850
14851 # Object file suffix (normally "o").
14852 objext=$ac_objext
14853
14854 # Executable file suffix (normally "").
14855 exeext=$exeext
14856
14857 # whether the shell understands "unset".
14858 lt_unset=$lt_unset
14859
14860 # turn spaces into newlines.
14861 SP2NL=$lt_lt_SP2NL
14862
14863 # turn newlines into spaces.
14864 NL2SP=$lt_lt_NL2SP
14865
14866 # convert \$build file names to \$host format.
14867 to_host_file_cmd=$lt_cv_to_host_file_cmd
14868
14869 # convert \$build files to toolchain format.
14870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14871
14872 # An object symbol dumper.
14873 OBJDUMP=$lt_OBJDUMP
14874
14875 # Method to check whether dependent libraries are shared objects.
14876 deplibs_check_method=$lt_deplibs_check_method
14877
14878 # Command to use when deplibs_check_method = "file_magic".
14879 file_magic_cmd=$lt_file_magic_cmd
14880
14881 # How to find potential files when deplibs_check_method = "file_magic".
14882 file_magic_glob=$lt_file_magic_glob
14883
14884 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14885 want_nocaseglob=$lt_want_nocaseglob
14886
14887 # DLL creation program.
14888 DLLTOOL=$lt_DLLTOOL
14889
14890 # Command to associate shared and link libraries.
14891 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14892
14893 # The archiver.
14894 AR=$lt_AR
14895
14896 # Flags to create an archive.
14897 AR_FLAGS=$lt_AR_FLAGS
14898
14899 # How to feed a file listing to the archiver.
14900 archiver_list_spec=$lt_archiver_list_spec
14901
14902 # A symbol stripping program.
14903 STRIP=$lt_STRIP
14904
14905 # Commands used to install an old-style archive.
14906 RANLIB=$lt_RANLIB
14907 old_postinstall_cmds=$lt_old_postinstall_cmds
14908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14909
14910 # Whether to use a lock for old archive extraction.
14911 lock_old_archive_extraction=$lock_old_archive_extraction
14912
14913 # A C compiler.
14914 LTCC=$lt_CC
14915
14916 # LTCC compiler flags.
14917 LTCFLAGS=$lt_CFLAGS
14918
14919 # Take the output of nm and produce a listing of raw symbols and C names.
14920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14921
14922 # Transform the output of nm in a proper C declaration.
14923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14924
14925 # Transform the output of nm into a list of symbols to manually relocate.
14926 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14927
14928 # Transform the output of nm in a C name address pair.
14929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14930
14931 # Transform the output of nm in a C name address pair when lib prefix is needed.
14932 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14933
14934 # The name lister interface.
14935 nm_interface=$lt_lt_cv_nm_interface
14936
14937 # Specify filename containing input files for \$NM.
14938 nm_file_list_spec=$lt_nm_file_list_spec
14939
14940 # The root where to search for dependent libraries,and where our libraries should be installed.
14941 lt_sysroot=$lt_sysroot
14942
14943 # Command to truncate a binary pipe.
14944 lt_truncate_bin=$lt_lt_cv_truncate_bin
14945
14946 # The name of the directory that contains temporary libtool files.
14947 objdir=$objdir
14948
14949 # Used to examine libraries when file_magic_cmd begins with "file".
14950 MAGIC_CMD=$MAGIC_CMD
14951
14952 # Must we lock files when doing compilation?
14953 need_locks=$lt_need_locks
14954
14955 # Manifest tool.
14956 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14957
14958 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14959 DSYMUTIL=$lt_DSYMUTIL
14960
14961 # Tool to change global to local symbols on Mac OS X.
14962 NMEDIT=$lt_NMEDIT
14963
14964 # Tool to manipulate fat objects and archives on Mac OS X.
14965 LIPO=$lt_LIPO
14966
14967 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14968 OTOOL=$lt_OTOOL
14969
14970 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14971 OTOOL64=$lt_OTOOL64
14972
14973 # Old archive suffix (normally "a").
14974 libext=$libext
14975
14976 # Shared library suffix (normally ".so").
14977 shrext_cmds=$lt_shrext_cmds
14978
14979 # The commands to extract the exported symbol list from a shared archive.
14980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14981
14982 # Variables whose values should be saved in libtool wrapper scripts and
14983 # restored at link time.
14984 variables_saved_for_relink=$lt_variables_saved_for_relink
14985
14986 # Do we need the "lib" prefix for modules?
14987 need_lib_prefix=$need_lib_prefix
14988
14989 # Do we need a version for libraries?
14990 need_version=$need_version
14991
14992 # Library versioning type.
14993 version_type=$version_type
14994
14995 # Shared library runtime path variable.
14996 runpath_var=$runpath_var
14997
14998 # Shared library path variable.
14999 shlibpath_var=$shlibpath_var
15000
15001 # Is shlibpath searched before the hard-coded library search path?
15002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15003
15004 # Format of library name prefix.
15005 libname_spec=$lt_libname_spec
15006
15007 # List of archive names. First name is the real one, the rest are links.
15008 # The last name is the one that the linker finds with -lNAME
15009 library_names_spec=$lt_library_names_spec
15010
15011 # The coded name of the library, if different from the real name.
15012 soname_spec=$lt_soname_spec
15013
15014 # Permission mode override for installation of shared libraries.
15015 install_override_mode=$lt_install_override_mode
15016
15017 # Command to use after installation of a shared archive.
15018 postinstall_cmds=$lt_postinstall_cmds
15019
15020 # Command to use after uninstallation of a shared archive.
15021 postuninstall_cmds=$lt_postuninstall_cmds
15022
15023 # Commands used to finish a libtool library installation in a directory.
15024 finish_cmds=$lt_finish_cmds
15025
15026 # As "finish_cmds", except a single script fragment to be evaled but
15027 # not shown.
15028 finish_eval=$lt_finish_eval
15029
15030 # Whether we should hardcode library paths into libraries.
15031 hardcode_into_libs=$hardcode_into_libs
15032
15033 # Compile-time system search path for libraries.
15034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15035
15036 # Detected run-time system search path for libraries.
15037 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15038
15039 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15040 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15041
15042 # Whether dlopen is supported.
15043 dlopen_support=$enable_dlopen
15044
15045 # Whether dlopen of programs is supported.
15046 dlopen_self=$enable_dlopen_self
15047
15048 # Whether dlopen of statically linked programs is supported.
15049 dlopen_self_static=$enable_dlopen_self_static
15050
15051 # Commands to strip libraries.
15052 old_striplib=$lt_old_striplib
15053 striplib=$lt_striplib
15054
15055
15056 # The linker used to build libraries.
15057 LD=$lt_LD
15058
15059 # How to create reloadable object files.
15060 reload_flag=$lt_reload_flag
15061 reload_cmds=$lt_reload_cmds
15062
15063 # Commands used to build an old-style archive.
15064 old_archive_cmds=$lt_old_archive_cmds
15065
15066 # A language specific compiler.
15067 CC=$lt_compiler
15068
15069 # Is the compiler the GNU compiler?
15070 with_gcc=$GCC
15071
15072 # Compiler flag to turn off builtin functions.
15073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15074
15075 # Additional compiler flags for building library objects.
15076 pic_flag=$lt_lt_prog_compiler_pic
15077
15078 # How to pass a linker flag through the compiler.
15079 wl=$lt_lt_prog_compiler_wl
15080
15081 # Compiler flag to prevent dynamic linking.
15082 link_static_flag=$lt_lt_prog_compiler_static
15083
15084 # Does compiler simultaneously support -c and -o options?
15085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15086
15087 # Whether or not to add -lc for building shared libraries.
15088 build_libtool_need_lc=$archive_cmds_need_lc
15089
15090 # Whether or not to disallow shared libs when runtime libs are static.
15091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15092
15093 # Compiler flag to allow reflexive dlopens.
15094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15095
15096 # Compiler flag to generate shared objects directly from archives.
15097 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15098
15099 # Whether the compiler copes with passing no objects directly.
15100 compiler_needs_object=$lt_compiler_needs_object
15101
15102 # Create an old-style archive from a shared archive.
15103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15104
15105 # Create a temporary old-style archive to link instead of a shared archive.
15106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15107
15108 # Commands used to build a shared archive.
15109 archive_cmds=$lt_archive_cmds
15110 archive_expsym_cmds=$lt_archive_expsym_cmds
15111
15112 # Commands used to build a loadable module if different from building
15113 # a shared archive.
15114 module_cmds=$lt_module_cmds
15115 module_expsym_cmds=$lt_module_expsym_cmds
15116
15117 # Whether we are building with GNU ld or not.
15118 with_gnu_ld=$lt_with_gnu_ld
15119
15120 # Flag that allows shared libraries with undefined symbols to be built.
15121 allow_undefined_flag=$lt_allow_undefined_flag
15122
15123 # Flag that enforces no undefined symbols.
15124 no_undefined_flag=$lt_no_undefined_flag
15125
15126 # Flag to hardcode \$libdir into a binary during linking.
15127 # This must work even if \$libdir does not exist
15128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15129
15130 # Whether we need a single "-rpath" flag with a separated argument.
15131 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15132
15133 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15134 # DIR into the resulting binary.
15135 hardcode_direct=$hardcode_direct
15136
15137 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15138 # DIR into the resulting binary and the resulting library dependency is
15139 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15140 # library is relocated.
15141 hardcode_direct_absolute=$hardcode_direct_absolute
15142
15143 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15144 # into the resulting binary.
15145 hardcode_minus_L=$hardcode_minus_L
15146
15147 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15148 # into the resulting binary.
15149 hardcode_shlibpath_var=$hardcode_shlibpath_var
15150
15151 # Set to "yes" if building a shared library automatically hardcodes DIR
15152 # into the library and all subsequent libraries and executables linked
15153 # against it.
15154 hardcode_automatic=$hardcode_automatic
15155
15156 # Set to yes if linker adds runtime paths of dependent libraries
15157 # to runtime path list.
15158 inherit_rpath=$inherit_rpath
15159
15160 # Whether libtool must link a program against all its dependency libraries.
15161 link_all_deplibs=$link_all_deplibs
15162
15163 # Set to "yes" if exported symbols are required.
15164 always_export_symbols=$always_export_symbols
15165
15166 # The commands to list exported symbols.
15167 export_symbols_cmds=$lt_export_symbols_cmds
15168
15169 # Symbols that should not be listed in the preloaded symbols.
15170 exclude_expsyms=$lt_exclude_expsyms
15171
15172 # Symbols that must always be exported.
15173 include_expsyms=$lt_include_expsyms
15174
15175 # Commands necessary for linking programs (against libraries) with templates.
15176 prelink_cmds=$lt_prelink_cmds
15177
15178 # Commands necessary for finishing linking programs.
15179 postlink_cmds=$lt_postlink_cmds
15180
15181 # Specify filename containing input files.
15182 file_list_spec=$lt_file_list_spec
15183
15184 # How to hardcode a shared library path into an executable.
15185 hardcode_action=$hardcode_action
15186
15187 # ### END LIBTOOL CONFIG
15188
15189 _LT_EOF
15190
15191 cat <<'_LT_EOF' >> "$cfgfile"
15192
15193 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15194
15195 # func_munge_path_list VARIABLE PATH
15196 # -----------------------------------
15197 # VARIABLE is name of variable containing _space_ separated list of
15198 # directories to be munged by the contents of PATH, which is string
15199 # having a format:
15200 # "DIR[:DIR]:"
15201 # string "DIR[ DIR]" will be prepended to VARIABLE
15202 # ":DIR[:DIR]"
15203 # string "DIR[ DIR]" will be appended to VARIABLE
15204 # "DIRP[:DIRP]::[DIRA:]DIRA"
15205 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15206 # "DIRA[ DIRA]" will be appended to VARIABLE
15207 # "DIR[:DIR]"
15208 # VARIABLE will be replaced by "DIR[ DIR]"
15209 func_munge_path_list ()
15210 {
15211 case x$2 in
15212 x)
15213 ;;
15214 *:)
15215 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15216 ;;
15217 x:*)
15218 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15219 ;;
15220 *::*)
15221 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15222 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15223 ;;
15224 *)
15225 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15226 ;;
15227 esac
15228 }
15229
15230
15231 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15232 func_cc_basename ()
15233 {
15234 for cc_temp in $*""; do
15235 case $cc_temp in
15236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15238 \-*) ;;
15239 *) break;;
15240 esac
15241 done
15242 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15243 }
15244
15245
15246 # ### END FUNCTIONS SHARED WITH CONFIGURE
15247
15248 _LT_EOF
15249
15250 case $host_os in
15251 aix3*)
15252 cat <<\_LT_EOF >> "$cfgfile"
15253 # AIX sometimes has problems with the GCC collect2 program. For some
15254 # reason, if we set the COLLECT_NAMES environment variable, the problems
15255 # vanish in a puff of smoke.
15256 if test set != "${COLLECT_NAMES+set}"; then
15257 COLLECT_NAMES=
15258 export COLLECT_NAMES
15259 fi
15260 _LT_EOF
15261 ;;
15262 esac
15263
15264
15265 ltmain=$ac_aux_dir/ltmain.sh
15266
15267
15268 # We use sed instead of cat because bash on DJGPP gets confused if
15269 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15270 # text mode, it properly converts lines to CR/LF. This bash problem
15271 # is reportedly fixed, but why not run on old versions too?
15272 sed '$q' "$ltmain" >> "$cfgfile" \
15273 || (rm -f "$cfgfile"; exit 1)
15274
15275 mv -f "$cfgfile" "$ofile" ||
15276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15277 chmod +x "$ofile"
15278
15279 ;;
15280
15281 esac
15282 done # for ac_tag
15283
15284
15285 as_fn_exit 0
15286 _ACEOF
15287 ac_clean_files=$ac_clean_files_save
15288
15289 test $ac_write_fail = 0 ||
15290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15291
15292
15293 # configure is writing to config.log, and then calls config.status.
15294 # config.status does its own redirection, appending to config.log.
15295 # Unfortunately, on DOS this fails, as config.log is still kept open
15296 # by configure, so config.status won't be able to write to it; its
15297 # output is simply discarded. So we exec the FD to /dev/null,
15298 # effectively closing config.log, so it can be properly (re)opened and
15299 # appended to by config.status. When coming back to configure, we
15300 # need to make the FD available again.
15301 if test "$no_create" != yes; then
15302 ac_cs_success=:
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15306 exec 5>/dev/null
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308 exec 5>>config.log
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
15311 $ac_cs_success || as_fn_exit 1
15312 fi
15313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15316 fi
15317