Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / liblog / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for courierlogger 0.10.
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='courierlogger'
592 PACKAGE_TARNAME='courierlogger'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='courierlogger 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="logger.c"
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 CPP
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 MANIFEST_TOOL
648 RANLIB
649 ac_ct_AR
650 AR
651 DLLTOOL
652 OBJDUMP
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 LN_S
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_largefile
766 with_syslog
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1127
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 ;;
1183
1184 esac
1185 done
1186
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1190 fi
1191
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198 fi
1199
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205 do
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures courierlogger 0.10 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of courierlogger 0.10:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --disable-largefile omit support for large files
1407
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1412 both]
1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
1416 --with-syslog=XXX syslog facility [[MAIL]]
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to <courier-users@lists.sourceforge.net>.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 courierlogger configure 0.10
1495 generated by GNU Autoconf 2.69
1496
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_try_link LINENO
1547 # -----------------------
1548 # Try to link conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_link ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext conftest$ac_exeext
1553 if { { ac_try="$ac_link"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_link") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest$ac_exeext && {
1572 test "$cross_compiling" = yes ||
1573 test -x conftest$ac_exeext
1574 }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581 fi
1582 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1583 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1584 # interfere with the next link command; also delete a directory that is
1585 # left behind by Apple's compiler. We do this before executing the actions.
1586 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_link
1591
1592 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists and can be compiled using the include files in
1595 # INCLUDES, setting the cache variable VAR accordingly.
1596 ac_fn_c_check_header_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 $as_echo_n "checking for $2... " >&6; }
1601 if eval \${$3+:} false; then :
1602 $as_echo_n "(cached) " >&6
1603 else
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 eval "$3=yes"
1611 else
1612 eval "$3=no"
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 fi
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621 } # ac_fn_c_check_header_compile
1622
1623 # ac_fn_c_try_cpp LINENO
1624 # ----------------------
1625 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_cpp ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if { { ac_try="$ac_cpp conftest.$ac_ext"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } > conftest.i && {
1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_cpp
1659
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1664 ac_fn_c_try_run ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678 { { case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_try") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; }; }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: program exited with status $ac_status" >&5
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=$ac_status
1695 fi
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_run
1701
1702 # ac_fn_c_check_func LINENO FUNC VAR
1703 # ----------------------------------
1704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1705 ac_fn_c_check_func ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1717 #define $2 innocuous_$2
1718
1719 /* System header to define __stub macros and hopefully few prototypes,
1720 which can conflict with char $2 (); below.
1721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1722 <limits.h> exists even on freestanding compilers. */
1723
1724 #ifdef __STDC__
1725 # include <limits.h>
1726 #else
1727 # include <assert.h>
1728 #endif
1729
1730 #undef $2
1731
1732 /* Override any GCC internal prototype to avoid an error.
1733 Use char because int might match the return type of a GCC
1734 builtin and then its argument prototype would still apply. */
1735 #ifdef __cplusplus
1736 extern "C"
1737 #endif
1738 char $2 ();
1739 /* The GNU C library defines this for functions which it implements
1740 to always fail with ENOSYS. Some functions are actually named
1741 something starting with __ and the normal name is an alias. */
1742 #if defined __stub_$2 || defined __stub___$2
1743 choke me
1744 #endif
1745
1746 int
1747 main ()
1748 {
1749 return $2 ();
1750 ;
1751 return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_link "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext \
1760 conftest$ac_exeext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_func
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if eval \${$3+:} false; then :
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787 # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797 else
1798 ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813 else
1814 ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So? What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ( $as_echo "## -------------------------------------------------- ##
1840 ## Report this to courier-users@lists.sourceforge.net ##
1841 ## -------------------------------------------------- ##"
1842 ) | sed "s/^/$as_me: WARNING: /" >&2
1843 ;;
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_mongrel
1859 cat >config.log <<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1862
1863 It was created by courierlogger $as_me 0.10, which was
1864 generated by GNU Autoconf 2.69. Invocation command line was
1865
1866 $ $0 $@
1867
1868 _ACEOF
1869 exec 5>>config.log
1870 {
1871 cat <<_ASUNAME
1872 ## --------- ##
1873 ## Platform. ##
1874 ## --------- ##
1875
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892
1893 _ASUNAME
1894
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 $as_echo "PATH: $as_dir"
1901 done
1902 IFS=$as_save_IFS
1903
1904 } >&5
1905
1906 cat >&5 <<_ACEOF
1907
1908
1909 ## ----------- ##
1910 ## Core tests. ##
1911 ## ----------- ##
1912
1913 _ACEOF
1914
1915
1916 # Keep a trace of the command line.
1917 # Strip out --no-create and --no-recursion so they do not pile up.
1918 # Strip out --silent because we don't want to record it for future runs.
1919 # Also quote any args containing shell meta-characters.
1920 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_configure_args=
1922 ac_configure_args0=
1923 ac_configure_args1=
1924 ac_must_keep_next=false
1925 for ac_pass in 1 2
1926 do
1927 for ac_arg
1928 do
1929 case $ac_arg in
1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1932 | -silent | --silent | --silen | --sile | --sil)
1933 continue ;;
1934 *\'*)
1935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 esac
1937 case $ac_pass in
1938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 2)
1940 as_fn_append ac_configure_args1 " '$ac_arg'"
1941 if test $ac_must_keep_next = true; then
1942 ac_must_keep_next=false # Got value, back to normal.
1943 else
1944 case $ac_arg in
1945 *=* | --config-cache | -C | -disable-* | --disable-* \
1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1948 | -with-* | --with-* | -without-* | --without-* | --x)
1949 case "$ac_configure_args0 " in
1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951 esac
1952 ;;
1953 -* ) ac_must_keep_next=true ;;
1954 esac
1955 fi
1956 as_fn_append ac_configure_args " '$ac_arg'"
1957 ;;
1958 esac
1959 done
1960 done
1961 { ac_configure_args0=; unset ac_configure_args0;}
1962 { ac_configure_args1=; unset ac_configure_args1;}
1963
1964 # When interrupted or exit'd, cleanup temporary files, and complete
1965 # config.log. We remove comments because anyway the quotes in there
1966 # would cause problems or look ugly.
1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1969 trap 'exit_status=$?
1970 # Save into config.log some information that might help in debugging.
1971 {
1972 echo
1973
1974 $as_echo "## ---------------- ##
1975 ## Cache variables. ##
1976 ## ---------------- ##"
1977 echo
1978 # The following way of writing the cache mishandles newlines in values,
1979 (
1980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in #(
1983 *${as_nl}*)
1984 case $ac_var in #(
1985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987 esac
1988 case $ac_var in #(
1989 _ | IFS | as_nl) ;; #(
1990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991 *) { eval $ac_var=; unset $ac_var;} ;;
1992 esac ;;
1993 esac
1994 done
1995 (set) 2>&1 |
1996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997 *${as_nl}ac_space=\ *)
1998 sed -n \
1999 "s/'\''/'\''\\\\'\'''\''/g;
2000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001 ;; #(
2002 *)
2003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 ;;
2005 esac |
2006 sort
2007 )
2008 echo
2009
2010 $as_echo "## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##"
2013 echo
2014 for ac_var in $ac_subst_vars
2015 do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2023
2024 if test -n "$ac_subst_files"; then
2025 $as_echo "## ------------------- ##
2026 ## File substitutions. ##
2027 ## ------------------- ##"
2028 echo
2029 for ac_var in $ac_subst_files
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 $as_echo "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038 fi
2039
2040 if test -s confdefs.h; then
2041 $as_echo "## ----------- ##
2042 ## confdefs.h. ##
2043 ## ----------- ##"
2044 echo
2045 cat confdefs.h
2046 echo
2047 fi
2048 test "$ac_signal" != 0 &&
2049 $as_echo "$as_me: caught signal $ac_signal"
2050 $as_echo "$as_me: exit $exit_status"
2051 } >&5
2052 rm -f core *.core core.conftest.* &&
2053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 exit $exit_status
2055 ' 0
2056 for ac_signal in 1 2 13 15; do
2057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058 done
2059 ac_signal=0
2060
2061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2062 rm -f -r conftest* confdefs.h
2063
2064 $as_echo "/* confdefs.h */" > confdefs.h
2065
2066 # Predefined preprocessor variables.
2067
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_NAME "$PACKAGE_NAME"
2070 _ACEOF
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_URL "$PACKAGE_URL"
2090 _ACEOF
2091
2092
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 ac_site_file1=NONE
2096 ac_site_file2=NONE
2097 if test -n "$CONFIG_SITE"; then
2098 # We do not want a PATH search for config.site.
2099 case $CONFIG_SITE in #((
2100 -*) ac_site_file1=./$CONFIG_SITE;;
2101 */*) ac_site_file1=$CONFIG_SITE;;
2102 *) ac_site_file1=./$CONFIG_SITE;;
2103 esac
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107 else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2110 fi
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 do
2113 test "x$ac_site_file" = xNONE && continue
2114 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file" \
2119 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "failed to load site script $ac_site_file
2122 See \`config.log' for more details" "$LINENO" 5; }
2123 fi
2124 done
2125
2126 if test -r "$cache_file"; then
2127 # Some versions of bash will fail to source /dev/null (special files
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 case $cache_file in
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134 *) . "./$cache_file";;
2135 esac
2136 fi
2137 else
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139 $as_echo "$as_me: creating cache $cache_file" >&6;}
2140 >$cache_file
2141 fi
2142
2143 # Check that the precious variables saved in the cache have kept the same
2144 # value.
2145 ac_cache_corrupted=false
2146 for ac_var in $ac_precious_vars; do
2147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2148 eval ac_new_set=\$ac_env_${ac_var}_set
2149 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2150 eval ac_new_val=\$ac_env_${ac_var}_value
2151 case $ac_old_set,$ac_new_set in
2152 set,)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,set)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2158 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,);;
2161 *)
2162 if test "x$ac_old_val" != "x$ac_new_val"; then
2163 # differences in whitespace do not lead to failure.
2164 ac_old_val_w=`echo x $ac_old_val`
2165 ac_new_val_w=`echo x $ac_new_val`
2166 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2169 ac_cache_corrupted=:
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2173 eval $ac_var=\$ac_old_val
2174 fi
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2176 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2178 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2179 fi;;
2180 esac
2181 # Pass precious variables to config.status.
2182 if test "$ac_new_set" = set; then
2183 case $ac_new_val in
2184 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 *) ac_arg=$ac_var=$ac_new_val ;;
2186 esac
2187 case " $ac_configure_args " in
2188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2189 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2190 esac
2191 fi
2192 done
2193 if $ac_cache_corrupted; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2198 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2199 fi
2200 ## -------------------- ##
2201 ## Main body of script. ##
2202 ## -------------------- ##
2203
2204 ac_ext=c
2205 ac_cpp='$CPP $CPPFLAGS'
2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211
2212 >confdefs.h # Kill PACKAGE_ macros.
2213 LPATH="$PATH:/usr/local/bin"
2214
2215 ac_aux_dir=
2216 for ac_dir in .. "$srcdir"/..; do
2217 if test -f "$ac_dir/install-sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2220 break
2221 elif test -f "$ac_dir/install.sh"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2224 break
2225 elif test -f "$ac_dir/shtool"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2228 break
2229 fi
2230 done
2231 if test -z "$ac_aux_dir"; then
2232 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2233 fi
2234
2235 # These three variables are undocumented and unsupported,
2236 # and are intended to be withdrawn in a future Autoconf release.
2237 # They can cause serious problems if a builder's source tree is in a directory
2238 # whose full name contains unusual characters.
2239 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2240 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2241 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242
2243
2244 am__api_version='1.13'
2245
2246 # Find a good install program. We prefer a C program (faster),
2247 # so one script is as good as another. But avoid the broken or
2248 # incompatible versions:
2249 # SysV /etc/install, /usr/sbin/install
2250 # SunOS /usr/etc/install
2251 # IRIX /sbin/install
2252 # AIX /bin/install
2253 # AmigaOS /C/install, which installs bootblocks on floppy discs
2254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2257 # OS/2's system install, which has a completely different semantic
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 # Reject install programs that cannot install multiple files.
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2262 if test -z "$INSTALL"; then
2263 if ${ac_cv_path_install+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in #((
2273 ./ | .// | /[cC]/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2276 /usr/ucb/* ) ;;
2277 *)
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2280 # by default.
2281 for ac_prog in ginstall scoinst install; do
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2284 if test $ac_prog = install &&
2285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286 # AIX install. It has an incompatible calling convention.
2287 :
2288 elif test $ac_prog = install &&
2289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290 # program-specific install script used by HP pwplus--don't use.
2291 :
2292 else
2293 rm -rf conftest.one conftest.two conftest.dir
2294 echo one > conftest.one
2295 echo two > conftest.two
2296 mkdir conftest.dir
2297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2298 test -s conftest.one && test -s conftest.two &&
2299 test -s conftest.dir/conftest.one &&
2300 test -s conftest.dir/conftest.two
2301 then
2302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303 break 3
2304 fi
2305 fi
2306 fi
2307 done
2308 done
2309 ;;
2310 esac
2311
2312 done
2313 IFS=$as_save_IFS
2314
2315 rm -rf conftest.one conftest.two conftest.dir
2316
2317 fi
2318 if test "${ac_cv_path_install+set}" = set; then
2319 INSTALL=$ac_cv_path_install
2320 else
2321 # As a last resort, use the slow shell script. Don't cache a
2322 # value for INSTALL within a source directory, because that will
2323 # break other packages using the cache if that directory is
2324 # removed, or if the value is a relative name.
2325 INSTALL=$ac_install_sh
2326 fi
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2329 $as_echo "$INSTALL" >&6; }
2330
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2340 $as_echo_n "checking whether build environment is sane... " >&6; }
2341 # Reject unsafe characters in $srcdir or the absolute working directory
2342 # name. Accept space and tab only in the latter.
2343 am_lf='
2344 '
2345 case `pwd` in
2346 *[\\\"\#\$\&\'\`$am_lf]*)
2347 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2348 esac
2349 case $srcdir in
2350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2351 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2352 esac
2353
2354 # Do 'set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2358 # directory).
2359 if (
2360 am_has_slept=no
2361 for am_try in 1 2; do
2362 echo "timestamp, slept: $am_has_slept" > conftest.file
2363 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2365 # -L didn't work.
2366 set X `ls -t "$srcdir/configure" conftest.file`
2367 fi
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2377 fi
2378 if test "$2" = conftest.file || test $am_try -eq 2; then
2379 break
2380 fi
2381 # Just in case.
2382 sleep 1
2383 am_has_slept=yes
2384 done
2385 test "$2" = conftest.file
2386 )
2387 then
2388 # Ok.
2389 :
2390 else
2391 as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 # If we didn't sleep, we still need to ensure time stamps of config.status and
2397 # generated files are strictly newer.
2398 am_sleep_pid=
2399 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2400 ( sleep 1 ) &
2401 am_sleep_pid=$!
2402 fi
2403
2404 rm -f conftest.file
2405
2406 test "$program_prefix" != NONE &&
2407 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2408 # Use a double $ so make ignores it.
2409 test "$program_suffix" != NONE &&
2410 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2411 # Double any \ or $.
2412 # By default was `s,x,x', remove it if useless.
2413 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2414 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2415
2416 # expand $ac_aux_dir to an absolute path
2417 am_aux_dir=`cd $ac_aux_dir && pwd`
2418
2419 if test x"${MISSING+set}" != xset; then
2420 case $am_aux_dir in
2421 *\ * | *\ *)
2422 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2423 *)
2424 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2425 esac
2426 fi
2427 # Use eval to expand $SHELL
2428 if eval "$MISSING --is-lightweight"; then
2429 am_missing_run="$MISSING "
2430 else
2431 am_missing_run=
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2433 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2434 fi
2435
2436 if test x"${install_sh}" != xset; then
2437 case $am_aux_dir in
2438 *\ * | *\ *)
2439 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2440 *)
2441 install_sh="\${SHELL} $am_aux_dir/install-sh"
2442 esac
2443 fi
2444
2445 # Installed binaries are usually stripped using 'strip' when the user
2446 # run "make install-strip". However 'strip' might not be the right
2447 # tool to use in cross-compilation environments, therefore Automake
2448 # will honor the 'STRIP' environment variable to overrule this program.
2449 if test "$cross_compiling" != no; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}strip; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_STRIP+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$STRIP"; then
2459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 STRIP=$ac_cv_prog_STRIP
2479 if test -n "$STRIP"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2481 $as_echo "$STRIP" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 fi
2489 if test -z "$ac_cv_prog_STRIP"; then
2490 ac_ct_STRIP=$STRIP
2491 # Extract the first word of "strip", so it can be a program name with args.
2492 set dummy strip; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test -n "$ac_ct_STRIP"; then
2499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_STRIP="strip"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2519 if test -n "$ac_ct_STRIP"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2521 $as_echo "$ac_ct_STRIP" >&6; }
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2525 fi
2526
2527 if test "x$ac_ct_STRIP" = x; then
2528 STRIP=":"
2529 else
2530 case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2535 esac
2536 STRIP=$ac_ct_STRIP
2537 fi
2538 else
2539 STRIP="$ac_cv_prog_STRIP"
2540 fi
2541
2542 fi
2543 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2544
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2546 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2547 if test -z "$MKDIR_P"; then
2548 if ${ac_cv_path_mkdir+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_prog in mkdir gmkdir; do
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2559 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2560 'mkdir (GNU coreutils) '* | \
2561 'mkdir (coreutils) '* | \
2562 'mkdir (fileutils) '4.1*)
2563 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2564 break 3;;
2565 esac
2566 done
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572
2573 test -d ./--version && rmdir ./--version
2574 if test "${ac_cv_path_mkdir+set}" = set; then
2575 MKDIR_P="$ac_cv_path_mkdir -p"
2576 else
2577 # As a last resort, use the slow shell script. Don't cache a
2578 # value for MKDIR_P within a source directory, because that will
2579 # break other packages using the cache if that directory is
2580 # removed, or if the value is a relative name.
2581 MKDIR_P="$ac_install_sh -d"
2582 fi
2583 fi
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2585 $as_echo "$MKDIR_P" >&6; }
2586
2587 for ac_prog in gawk mawk nawk awk
2588 do
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_AWK+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_AWK="$ac_prog"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 AWK=$ac_cv_prog_AWK
2617 if test -n "$AWK"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626 test -n "$AWK" && break
2627 done
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2631 set x ${MAKE-make}
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 cat >conftest.make <<\_ACEOF
2637 SHELL = /bin/sh
2638 all:
2639 @echo '@@@%%%=$(MAKE)=@@@%%%'
2640 _ACEOF
2641 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2643 *@@@%%%=?*=@@@%%%*)
2644 eval ac_cv_prog_make_${ac_make}_set=yes;;
2645 *)
2646 eval ac_cv_prog_make_${ac_make}_set=no;;
2647 esac
2648 rm -f conftest.make
2649 fi
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 SET_MAKE=
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 SET_MAKE="MAKE=${MAKE-make}"
2658 fi
2659
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2663 am__leading_dot=.
2664 else
2665 am__leading_dot=_
2666 fi
2667 rmdir .tst 2>/dev/null
2668
2669 # Check whether --enable-silent-rules was given.
2670 if test "${enable_silent_rules+set}" = set; then :
2671 enableval=$enable_silent_rules;
2672 fi
2673
2674 case $enable_silent_rules in # (((
2675 yes) AM_DEFAULT_VERBOSITY=0;;
2676 no) AM_DEFAULT_VERBOSITY=1;;
2677 *) AM_DEFAULT_VERBOSITY=1;;
2678 esac
2679 am_make=${MAKE-make}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2681 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2682 if ${am_cv_make_support_nested_variables+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if $as_echo 'TRUE=$(BAR$(V))
2686 BAR0=false
2687 BAR1=true
2688 V=1
2689 am__doit:
2690 @$(TRUE)
2691 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2692 am_cv_make_support_nested_variables=yes
2693 else
2694 am_cv_make_support_nested_variables=no
2695 fi
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2698 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2699 if test $am_cv_make_support_nested_variables = yes; then
2700 AM_V='$(V)'
2701 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2702 else
2703 AM_V=$AM_DEFAULT_VERBOSITY
2704 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2705 fi
2706 AM_BACKSLASH='\'
2707
2708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2710 # is not polluted with repeated "-I."
2711 am__isrc=' -I$(srcdir)'
2712 # test to see if srcdir already configured
2713 if test -f $srcdir/config.status; then
2714 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2715 fi
2716 fi
2717
2718 # test whether we have cygpath
2719 if test -z "$CYGPATH_W"; then
2720 if (cygpath --version) >/dev/null 2>/dev/null; then
2721 CYGPATH_W='cygpath -w'
2722 else
2723 CYGPATH_W=echo
2724 fi
2725 fi
2726
2727
2728 # Define the identity of the package.
2729 PACKAGE='courierlogger'
2730 VERSION='0.10'
2731
2732
2733 # Some tools Automake needs.
2734
2735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736
2737
2738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739
2740
2741 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742
2743
2744 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745
2746
2747 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2748
2749 # For better backward compatibility. To be removed once Automake 1.9.x
2750 # dies out for good. For more background, see:
2751 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2752 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2753 mkdir_p='$(MKDIR_P)'
2754
2755 # We need awk for the "check" target. The system "awk" is bad on
2756 # some platforms.
2757 # Always define AMTAR for backward compatibility. Yes, it's still used
2758 # in the wild :-( We should find a proper way to deprecate it ...
2759 AMTAR='$${TAR-tar}'
2760
2761
2762 # We'll loop over all known methods to create a tar archive until one works.
2763 _am_tools='gnutar pax cpio none'
2764
2765 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2766
2767
2768
2769
2770
2771
2772 ac_config_headers="$ac_config_headers config.h"
2773
2774
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_CC+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 fi
2819 if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822 set dummy gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2867 fi
2868 else
2869 CC="$ac_cv_prog_CC"
2870 fi
2871
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 fi
2913 if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915 set dummy cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 ac_prog_rejected=no
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2934 continue
2935 fi
2936 ac_cv_prog_CC="cc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2947 shift
2948 if test $# != 0; then
2949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2952 shift
2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2954 fi
2955 fi
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 for ac_prog in cl.exe
2972 do
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 test -n "$CC" && break
3011 done
3012 fi
3013 if test -z "$CC"; then
3014 ac_ct_CC=$CC
3015 for ac_prog in cl.exe
3016 do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="$ac_prog"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 $as_echo "$ac_ct_CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 test -n "$ac_ct_CC" && break
3055 done
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3067 fi
3068 fi
3069
3070 fi
3071
3072
3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details" "$LINENO" 5; }
3077
3078 # Provide some information about the compiler.
3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080 set X $ac_compile
3081 ac_compiler=$2
3082 for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3091 ac_status=$?
3092 if test -s conftest.err; then
3093 sed '10a\
3094 ... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
3097 fi
3098 rm -f conftest.er1 conftest.err
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3101 done
3102
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3118 # of exeext.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120 $as_echo_n "checking whether the C compiler works... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3128 do
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133 done
3134 rm -f $ac_rmfiles
3135
3136 if { { ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3151 # Autoconf.
3152 for ac_file in $ac_files ''
3153 do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
3172 break;;
3173 * )
3174 break;;
3175 esac
3176 done
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
3179 else
3180 ac_file=''
3181 fi
3182 if test -z "$ac_file"; then :
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error 77 "C compiler cannot create executables
3191 See \`config.log' for more details" "$LINENO" 5; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3199 $as_echo "$ac_file" >&6; }
3200 ac_exeext=$ac_cv_exeext
3201
3202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3205 $as_echo_n "checking for suffix of executables... " >&6; }
3206 if { { ac_try="$ac_link"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_link") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3219 # work properly (i.e., refer to `conftest.exe'), while it won't with
3220 # `rm'.
3221 for ac_file in conftest.exe conftest conftest.*; do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 break;;
3227 * ) break;;
3228 esac
3229 done
3230 else
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details" "$LINENO" 5; }
3235 fi
3236 rm -f conftest conftest$ac_cv_exeext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3238 $as_echo "$ac_cv_exeext" >&6; }
3239
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3242 ac_exeext=$EXEEXT
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245 #include <stdio.h>
3246 int
3247 main ()
3248 {
3249 FILE *f = fopen ("conftest.out", "w");
3250 return ferror (f) || fclose (f) != 0;
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 ac_clean_files="$ac_clean_files conftest.out"
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3260 $as_echo_n "checking whether we are cross compiling... " >&6; }
3261 if test "$cross_compiling" != yes; then
3262 { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 if { ac_try='./conftest$ac_cv_exeext'
3274 { { case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; }; then
3284 cross_compiling=no
3285 else
3286 if test "$cross_compiling" = maybe; then
3287 cross_compiling=yes
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 fi
3295 fi
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3298 $as_echo "$cross_compiling" >&6; }
3299
3300 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3303 $as_echo_n "checking for suffix of object files... " >&6; }
3304 if ${ac_cv_objext+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 rm -f conftest.o conftest.obj
3319 if { { ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compile") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 for ac_file in conftest.o conftest.obj conftest.*; do
3331 test -f "$ac_file" || continue;
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3335 break;;
3336 esac
3337 done
3338 else
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 $? "cannot compute suffix of object files: cannot compile
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 fi
3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3350 $as_echo "$ac_cv_objext" >&6; }
3351 OBJEXT=$ac_cv_objext
3352 ac_objext=$OBJEXT
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3355 if ${ac_cv_c_compiler_gnu+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364 #ifndef __GNUC__
3365 choke me
3366 #endif
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_compiler_gnu=yes
3374 else
3375 ac_compiler_gnu=no
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3382 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3383 if test $ac_compiler_gnu = yes; then
3384 GCC=yes
3385 else
3386 GCC=
3387 fi
3388 ac_test_CFLAGS=${CFLAGS+set}
3389 ac_save_CFLAGS=$CFLAGS
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3391 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3392 if ${ac_cv_prog_cc_g+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_save_c_werror_flag=$ac_c_werror_flag
3396 ac_c_werror_flag=yes
3397 ac_cv_prog_cc_g=no
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3412 else
3413 CFLAGS=""
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426
3427 else
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429 CFLAGS="-g"
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_g=yes
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 fi
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3452 $as_echo "$ac_cv_prog_cc_g" >&6; }
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3460 fi
3461 else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3466 fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3469 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3470 if ${ac_cv_prog_cc_c89+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_cv_prog_cc_c89=no
3474 ac_save_CC=$CC
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #include <stdarg.h>
3478 #include <stdio.h>
3479 struct stat;
3480 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3481 struct buf { int x; };
3482 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3483 static char *e (p, i)
3484 char **p;
3485 int i;
3486 {
3487 return p[i];
3488 }
3489 static char *f (char * (*g) (char **, int), char **p, ...)
3490 {
3491 char *s;
3492 va_list v;
3493 va_start (v,p);
3494 s = g (p, va_arg (v,int));
3495 va_end (v);
3496 return s;
3497 }
3498
3499 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3500 function prototypes and stuff, but not '\xHH' hex character constants.
3501 These don't provoke an error unfortunately, instead are silently treated
3502 as 'x'. The following induces an error, until -std is added to get
3503 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3504 array size at least. It's necessary to write '\x00'==0 to get something
3505 that's true only with -std. */
3506 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3507
3508 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3509 inside strings and character constants. */
3510 #define FOO(x) 'x'
3511 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3512
3513 int test (int i, double x);
3514 struct s1 {int (*f) (int a);};
3515 struct s2 {int (*f) (double a);};
3516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3517 int argc;
3518 char **argv;
3519 int
3520 main ()
3521 {
3522 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3528 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 do
3530 CC="$ac_save_CC $ac_arg"
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_prog_cc_c89=$ac_arg
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext
3535 test "x$ac_cv_prog_cc_c89" != "xno" && break
3536 done
3537 rm -f conftest.$ac_ext
3538 CC=$ac_save_CC
3539
3540 fi
3541 # AC_CACHE_VAL
3542 case "x$ac_cv_prog_cc_c89" in
3543 x)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3545 $as_echo "none needed" >&6; } ;;
3546 xno)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3548 $as_echo "unsupported" >&6; } ;;
3549 *)
3550 CC="$CC $ac_cv_prog_cc_c89"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3552 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3553 esac
3554 if test "x$ac_cv_prog_cc_c89" != xno; then :
3555
3556 fi
3557
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 DEPDIR="${am__leading_dot}deps"
3564
3565 ac_config_commands="$ac_config_commands depfiles"
3566
3567
3568 am_make=${MAKE-make}
3569 cat > confinc << 'END'
3570 am__doit:
3571 @echo this is the am__doit target
3572 .PHONY: am__doit
3573 END
3574 # If we don't find an include directive, just comment out the code.
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3576 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3577 am__include="#"
3578 am__quote=
3579 _am_result=none
3580 # First try GNU make style include.
3581 echo "include confinc" > confmf
3582 # Ignore all kinds of additional output from 'make'.
3583 case `$am_make -s -f confmf 2> /dev/null` in #(
3584 *the\ am__doit\ target*)
3585 am__include=include
3586 am__quote=
3587 _am_result=GNU
3588 ;;
3589 esac
3590 # Now try BSD make style include.
3591 if test "$am__include" = "#"; then
3592 echo '.include "confinc"' > confmf
3593 case `$am_make -s -f confmf 2> /dev/null` in #(
3594 *the\ am__doit\ target*)
3595 am__include=.include
3596 am__quote="\""
3597 _am_result=BSD
3598 ;;
3599 esac
3600 fi
3601
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3604 $as_echo "$_am_result" >&6; }
3605 rm -f confinc confmf
3606
3607 # Check whether --enable-dependency-tracking was given.
3608 if test "${enable_dependency_tracking+set}" = set; then :
3609 enableval=$enable_dependency_tracking;
3610 fi
3611
3612 if test "x$enable_dependency_tracking" != xno; then
3613 am_depcomp="$ac_aux_dir/depcomp"
3614 AMDEPBACKSLASH='\'
3615 am__nodep='_no'
3616 fi
3617 if test "x$enable_dependency_tracking" != xno; then
3618 AMDEP_TRUE=
3619 AMDEP_FALSE='#'
3620 else
3621 AMDEP_TRUE='#'
3622 AMDEP_FALSE=
3623 fi
3624
3625
3626
3627 depcc="$CC" am_compiler_list=
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3630 $as_echo_n "checking dependency style of $depcc... " >&6; }
3631 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3635 # We make a subdir and do the tests there. Otherwise we can end up
3636 # making bogus files that we don't know about and never remove. For
3637 # instance it was reported that on HP-UX the gcc test will end up
3638 # making a dummy file named 'D' -- because '-MD' means "put the output
3639 # in D".
3640 rm -rf conftest.dir
3641 mkdir conftest.dir
3642 # Copy depcomp to subdir because otherwise we won't find it if we're
3643 # using a relative directory.
3644 cp "$am_depcomp" conftest.dir
3645 cd conftest.dir
3646 # We will build objects and dependencies in a subdirectory because
3647 # it helps to detect inapplicable dependency modes. For instance
3648 # both Tru64's cc and ICC support -MD to output dependencies as a
3649 # side effect of compilation, but ICC will put the dependencies in
3650 # the current directory while Tru64 will put them in the object
3651 # directory.
3652 mkdir sub
3653
3654 am_cv_CC_dependencies_compiler_type=none
3655 if test "$am_compiler_list" = ""; then
3656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3657 fi
3658 am__universal=false
3659 case " $depcc " in #(
3660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3661 esac
3662
3663 for depmode in $am_compiler_list; do
3664 # Setup a source with many dependencies, because some compilers
3665 # like to wrap large dependency lists on column 80 (with \), and
3666 # we should not choose a depcomp mode which is confused by this.
3667 #
3668 # We need to recreate these files for each test, as the compiler may
3669 # overwrite some of them when testing with obscure command lines.
3670 # This happens at least with the AIX C compiler.
3671 : > sub/conftest.c
3672 for i in 1 2 3 4 5 6; do
3673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3675 # Solaris 10 /bin/sh.
3676 echo '/* dummy */' > sub/conftst$i.h
3677 done
3678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3679
3680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3681 # mode. It turns out that the SunPro C++ compiler does not properly
3682 # handle '-M -o', and we need to detect this. Also, some Intel
3683 # versions had trouble with output in subdirs.
3684 am__obj=sub/conftest.${OBJEXT-o}
3685 am__minus_obj="-o $am__obj"
3686 case $depmode in
3687 gcc)
3688 # This depmode causes a compiler race in universal mode.
3689 test "$am__universal" = false || continue
3690 ;;
3691 nosideeffect)
3692 # After this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested.
3694 if test "x$enable_dependency_tracking" = xyes; then
3695 continue
3696 else
3697 break
3698 fi
3699 ;;
3700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3701 # This compiler won't grok '-c -o', but also, the minuso test has
3702 # not run yet. These depmodes are late enough in the game, and
3703 # so weak that their functioning should not be impacted.
3704 am__obj=conftest.${OBJEXT-o}
3705 am__minus_obj=
3706 ;;
3707 none) break ;;
3708 esac
3709 if depmode=$depmode \
3710 source=sub/conftest.c object=$am__obj \
3711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3713 >/dev/null 2>conftest.err &&
3714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718 # icc doesn't choke on unknown options, it will just issue warnings
3719 # or remarks (even with -Werror). So we grep stderr for any message
3720 # that says an option was ignored or not supported.
3721 # When given -MP, icc 7.0 and 7.1 complain thusly:
3722 # icc: Command line warning: ignoring option '-M'; no argument required
3723 # The diagnosis changed in icc 8.0:
3724 # icc: Command line remark: option '-MP' not supported
3725 if (grep 'ignoring option' conftest.err ||
3726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727 am_cv_CC_dependencies_compiler_type=$depmode
3728 break
3729 fi
3730 fi
3731 done
3732
3733 cd ..
3734 rm -rf conftest.dir
3735 else
3736 am_cv_CC_dependencies_compiler_type=none
3737 fi
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743
3744 if
3745 test "x$enable_dependency_tracking" != xno \
3746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3747 am__fastdepCC_TRUE=
3748 am__fastdepCC_FALSE='#'
3749 else
3750 am__fastdepCC_TRUE='#'
3751 am__fastdepCC_FALSE=
3752 fi
3753
3754
3755
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3757 $as_echo_n "checking whether ln -s works... " >&6; }
3758 LN_S=$as_ln_s
3759 if test "$LN_S" = "ln -s"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 $as_echo "yes" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3764 $as_echo "no, using $LN_S" >&6; }
3765 fi
3766
3767 case `pwd` in
3768 *\ * | *\ *)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3771 esac
3772
3773
3774
3775 macro_version='2.4.2'
3776 macro_revision='1.3337'
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790 ltmain="$ac_aux_dir/ltmain.sh"
3791
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3797 $as_echo_n "checking build system type... " >&6; }
3798 if ${ac_cv_build+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 ac_build_alias=$build_alias
3802 test "x$ac_build_alias" = x &&
3803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3804 test "x$ac_build_alias" = x &&
3805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3808
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3811 $as_echo "$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3813 *-*-*) ;;
3814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3815 esac
3816 build=$ac_cv_build
3817 ac_save_IFS=$IFS; IFS='-'
3818 set x $ac_cv_build
3819 shift
3820 build_cpu=$1
3821 build_vendor=$2
3822 shift; shift
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3825 build_os=$*
3826 IFS=$ac_save_IFS
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3831 $as_echo_n "checking host system type... " >&6; }
3832 if ${ac_cv_host+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3837 else
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3840 fi
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3844 $as_echo "$ac_cv_host" >&6; }
3845 case $ac_cv_host in
3846 *-*-*) ;;
3847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3848 esac
3849 host=$ac_cv_host
3850 ac_save_IFS=$IFS; IFS='-'
3851 set x $ac_cv_host
3852 shift
3853 host_cpu=$1
3854 host_vendor=$2
3855 shift; shift
3856 # Remember, the first character of IFS is used to create $*,
3857 # except with old shells:
3858 host_os=$*
3859 IFS=$ac_save_IFS
3860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3861
3862
3863 # Backslashify metacharacters that are still active within
3864 # double-quoted strings.
3865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3866
3867 # Same as above, but do not quote variable references.
3868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3869
3870 # Sed substitution to delay expansion of an escaped shell variable in a
3871 # double_quote_subst'ed string.
3872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3873
3874 # Sed substitution to delay expansion of an escaped single quote.
3875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3876
3877 # Sed substitution to avoid accidental globbing in evaled expressions
3878 no_glob_subst='s/\*/\\\*/g'
3879
3880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3885 $as_echo_n "checking how to print strings... " >&6; }
3886 # Test print first, because it will be a builtin if present.
3887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3888 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3889 ECHO='print -r --'
3890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3891 ECHO='printf %s\n'
3892 else
3893 # Use this function as a fallback that always works.
3894 func_fallback_echo ()
3895 {
3896 eval 'cat <<_LTECHO_EOF
3897 $1
3898 _LTECHO_EOF'
3899 }
3900 ECHO='func_fallback_echo'
3901 fi
3902
3903 # func_echo_all arg...
3904 # Invoke $ECHO with all args, space-separated.
3905 func_echo_all ()
3906 {
3907 $ECHO ""
3908 }
3909
3910 case "$ECHO" in
3911 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3912 $as_echo "printf" >&6; } ;;
3913 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3914 $as_echo "print -r" >&6; } ;;
3915 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3916 $as_echo "cat" >&6; } ;;
3917 esac
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3933 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934 if ${ac_cv_path_SED+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938 for ac_i in 1 2 3 4 5 6 7; do
3939 ac_script="$ac_script$as_nl$ac_script"
3940 done
3941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942 { ac_script=; unset ac_script;}
3943 if test -z "$SED"; then
3944 ac_path_SED_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in sed gsed; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954 as_fn_executable_p "$ac_path_SED" || continue
3955 # Check for GNU ac_path_SED and select it if it is found.
3956 # Check for GNU $ac_path_SED
3957 case `"$ac_path_SED" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3960 *)
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo '' >> "conftest.nl"
3969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 as_fn_arith $ac_count + 1 && ac_count=$as_val
3972 if test $ac_count -gt ${ac_path_SED_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_SED="$ac_path_SED"
3975 ac_path_SED_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3982
3983 $ac_path_SED_found && break 3
3984 done
3985 done
3986 done
3987 IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_SED"; then
3989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3990 fi
3991 else
3992 ac_cv_path_SED=$SED
3993 fi
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3997 $as_echo "$ac_cv_path_SED" >&6; }
3998 SED="$ac_cv_path_SED"
3999 rm -f conftest.sed
4000
4001 test -z "$SED" && SED=sed
4002 Xsed="$SED -e 1s/^X//"
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016 if ${ac_cv_path_GREP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -z "$GREP"; then
4020 ac_path_GREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024 do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in grep ggrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030 as_fn_executable_p "$ac_path_GREP" || continue
4031 # Check for GNU ac_path_GREP and select it if it is found.
4032 # Check for GNU $ac_path_GREP
4033 case `"$ac_path_GREP" --version 2>&1` in
4034 *GNU*)
4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036 *)
4037 ac_count=0
4038 $as_echo_n 0123456789 >"conftest.in"
4039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 $as_echo 'GREP' >> "conftest.nl"
4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 as_fn_arith $ac_count + 1 && ac_count=$as_val
4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_GREP="$ac_path_GREP"
4051 ac_path_GREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057 esac
4058
4059 $ac_path_GREP_found && break 3
4060 done
4061 done
4062 done
4063 IFS=$as_save_IFS
4064 if test -z "$ac_cv_path_GREP"; then
4065 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066 fi
4067 else
4068 ac_cv_path_GREP=$GREP
4069 fi
4070
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4073 $as_echo "$ac_cv_path_GREP" >&6; }
4074 GREP="$ac_cv_path_GREP"
4075
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4078 $as_echo_n "checking for egrep... " >&6; }
4079 if ${ac_cv_path_EGREP+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083 then ac_cv_path_EGREP="$GREP -E"
4084 else
4085 if test -z "$EGREP"; then
4086 ac_path_EGREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in egrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096 as_fn_executable_p "$ac_path_EGREP" || continue
4097 # Check for GNU ac_path_EGREP and select it if it is found.
4098 # Check for GNU $ac_path_EGREP
4099 case `"$ac_path_EGREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'EGREP' >> "conftest.nl"
4111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_EGREP="$ac_path_EGREP"
4117 ac_path_EGREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_EGREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_EGREP"; then
4131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 fi
4133 else
4134 ac_cv_path_EGREP=$EGREP
4135 fi
4136
4137 fi
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4140 $as_echo "$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4142
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4145 $as_echo_n "checking for fgrep... " >&6; }
4146 if ${ac_cv_path_FGREP+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4150 then ac_cv_path_FGREP="$GREP -F"
4151 else
4152 if test -z "$FGREP"; then
4153 ac_path_FGREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in fgrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4163 as_fn_executable_p "$ac_path_FGREP" || continue
4164 # Check for GNU ac_path_FGREP and select it if it is found.
4165 # Check for GNU $ac_path_FGREP
4166 case `"$ac_path_FGREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'FGREP' >> "conftest.nl"
4178 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_FGREP="$ac_path_FGREP"
4184 ac_path_FGREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_FGREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_FGREP"; then
4198 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_FGREP=$FGREP
4202 fi
4203
4204 fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4207 $as_echo "$ac_cv_path_FGREP" >&6; }
4208 FGREP="$ac_cv_path_FGREP"
4209
4210
4211 test -z "$GREP" && GREP=grep
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231 # Check whether --with-gnu-ld was given.
4232 if test "${with_gnu_ld+set}" = set; then :
4233 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4234 else
4235 with_gnu_ld=no
4236 fi
4237
4238 ac_prog=ld
4239 if test "$GCC" = yes; then
4240 # Check if gcc -print-prog-name=ld gives a path.
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4242 $as_echo_n "checking for ld used by $CC... " >&6; }
4243 case $host in
4244 *-*-mingw*)
4245 # gcc leaves a trailing carriage return which upsets mingw
4246 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4247 *)
4248 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4249 esac
4250 case $ac_prog in
4251 # Accept absolute paths.
4252 [\\/]* | ?:[\\/]*)
4253 re_direlt='/[^/][^/]*/\.\./'
4254 # Canonicalize the pathname of ld
4255 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4256 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4257 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4258 done
4259 test -z "$LD" && LD="$ac_prog"
4260 ;;
4261 "")
4262 # If it fails, then pretend we aren't using GCC.
4263 ac_prog=ld
4264 ;;
4265 *)
4266 # If it is relative, then search for the first ld in PATH.
4267 with_gnu_ld=unknown
4268 ;;
4269 esac
4270 elif test "$with_gnu_ld" = yes; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4272 $as_echo_n "checking for GNU ld... " >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4275 $as_echo_n "checking for non-GNU ld... " >&6; }
4276 fi
4277 if ${lt_cv_path_LD+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -z "$LD"; then
4281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4282 for ac_dir in $PATH; do
4283 IFS="$lt_save_ifs"
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4286 lt_cv_path_LD="$ac_dir/$ac_prog"
4287 # Check to see if the program is GNU ld. I'd rather use --version,
4288 # but apparently some variants of GNU ld only accept -v.
4289 # Break only if it was the GNU/non-GNU ld that we prefer.
4290 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4291 *GNU* | *'with BFD'*)
4292 test "$with_gnu_ld" != no && break
4293 ;;
4294 *)
4295 test "$with_gnu_ld" != yes && break
4296 ;;
4297 esac
4298 fi
4299 done
4300 IFS="$lt_save_ifs"
4301 else
4302 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4303 fi
4304 fi
4305
4306 LD="$lt_cv_path_LD"
4307 if test -n "$LD"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4309 $as_echo "$LD" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4316 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4317 if ${lt_cv_prog_gnu_ld+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4321 case `$LD -v 2>&1 </dev/null` in
4322 *GNU* | *'with BFD'*)
4323 lt_cv_prog_gnu_ld=yes
4324 ;;
4325 *)
4326 lt_cv_prog_gnu_ld=no
4327 ;;
4328 esac
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4331 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4332 with_gnu_ld=$lt_cv_prog_gnu_ld
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4343 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4344 if ${lt_cv_path_NM+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$NM"; then
4348 # Let the user override the test.
4349 lt_cv_path_NM="$NM"
4350 else
4351 lt_nm_to_check="${ac_tool_prefix}nm"
4352 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4353 lt_nm_to_check="$lt_nm_to_check nm"
4354 fi
4355 for lt_tmp_nm in $lt_nm_to_check; do
4356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4358 IFS="$lt_save_ifs"
4359 test -z "$ac_dir" && ac_dir=.
4360 tmp_nm="$ac_dir/$lt_tmp_nm"
4361 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4362 # Check to see if the nm accepts a BSD-compat flag.
4363 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4364 # nm: unknown option "B" ignored
4365 # Tru64's nm complains that /dev/null is an invalid object file
4366 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4367 */dev/null* | *'Invalid file or object type'*)
4368 lt_cv_path_NM="$tmp_nm -B"
4369 break
4370 ;;
4371 *)
4372 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4373 */dev/null*)
4374 lt_cv_path_NM="$tmp_nm -p"
4375 break
4376 ;;
4377 *)
4378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4379 continue # so that we can try to find one that supports BSD flags
4380 ;;
4381 esac
4382 ;;
4383 esac
4384 fi
4385 done
4386 IFS="$lt_save_ifs"
4387 done
4388 : ${lt_cv_path_NM=no}
4389 fi
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4392 $as_echo "$lt_cv_path_NM" >&6; }
4393 if test "$lt_cv_path_NM" != "no"; then
4394 NM="$lt_cv_path_NM"
4395 else
4396 # Didn't find any BSD compatible name lister, look for dumpbin.
4397 if test -n "$DUMPBIN"; then :
4398 # Let the user override the test.
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in dumpbin "link -dump"
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_DUMPBIN+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$DUMPBIN"; then
4411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 DUMPBIN=$ac_cv_prog_DUMPBIN
4431 if test -n "$DUMPBIN"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4433 $as_echo "$DUMPBIN" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$DUMPBIN" && break
4441 done
4442 fi
4443 if test -z "$DUMPBIN"; then
4444 ac_ct_DUMPBIN=$DUMPBIN
4445 for ac_prog in dumpbin "link -dump"
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_DUMPBIN"; then
4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475 if test -n "$ac_ct_DUMPBIN"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4477 $as_echo "$ac_ct_DUMPBIN" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_DUMPBIN" && break
4485 done
4486
4487 if test "x$ac_ct_DUMPBIN" = x; then
4488 DUMPBIN=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 DUMPBIN=$ac_ct_DUMPBIN
4497 fi
4498 fi
4499
4500 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4501 *COFF*)
4502 DUMPBIN="$DUMPBIN -symbols"
4503 ;;
4504 *)
4505 DUMPBIN=:
4506 ;;
4507 esac
4508 fi
4509
4510 if test "$DUMPBIN" != ":"; then
4511 NM="$DUMPBIN"
4512 fi
4513 fi
4514 test -z "$NM" && NM=nm
4515
4516
4517
4518
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4522 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4523 if ${lt_cv_nm_interface+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 lt_cv_nm_interface="BSD nm"
4527 echo "int some_variable = 0;" > conftest.$ac_ext
4528 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4529 (eval "$ac_compile" 2>conftest.err)
4530 cat conftest.err >&5
4531 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4532 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4533 cat conftest.err >&5
4534 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4535 cat conftest.out >&5
4536 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4537 lt_cv_nm_interface="MS dumpbin"
4538 fi
4539 rm -f conftest*
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4542 $as_echo "$lt_cv_nm_interface" >&6; }
4543
4544 # find the maximum length of command line arguments
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4546 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4547 if ${lt_cv_sys_max_cmd_len+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 i=0
4551 teststring="ABCD"
4552
4553 case $build_os in
4554 msdosdjgpp*)
4555 # On DJGPP, this test can blow up pretty badly due to problems in libc
4556 # (any single argument exceeding 2000 bytes causes a buffer overrun
4557 # during glob expansion). Even if it were fixed, the result of this
4558 # check would be larger than it should be.
4559 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4560 ;;
4561
4562 gnu*)
4563 # Under GNU Hurd, this test is not required because there is
4564 # no limit to the length of command line arguments.
4565 # Libtool will interpret -1 as no limit whatsoever
4566 lt_cv_sys_max_cmd_len=-1;
4567 ;;
4568
4569 cygwin* | mingw* | cegcc*)
4570 # On Win9x/ME, this test blows up -- it succeeds, but takes
4571 # about 5 minutes as the teststring grows exponentially.
4572 # Worse, since 9x/ME are not pre-emptively multitasking,
4573 # you end up with a "frozen" computer, even though with patience
4574 # the test eventually succeeds (with a max line length of 256k).
4575 # Instead, let's just punt: use the minimum linelength reported by
4576 # all of the supported platforms: 8192 (on NT/2K/XP).
4577 lt_cv_sys_max_cmd_len=8192;
4578 ;;
4579
4580 mint*)
4581 # On MiNT this can take a long time and run out of memory.
4582 lt_cv_sys_max_cmd_len=8192;
4583 ;;
4584
4585 amigaos*)
4586 # On AmigaOS with pdksh, this test takes hours, literally.
4587 # So we just punt and use a minimum line length of 8192.
4588 lt_cv_sys_max_cmd_len=8192;
4589 ;;
4590
4591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4592 # This has been around since 386BSD, at least. Likely further.
4593 if test -x /sbin/sysctl; then
4594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4595 elif test -x /usr/sbin/sysctl; then
4596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4597 else
4598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4599 fi
4600 # And add a safety zone
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4603 ;;
4604
4605 interix*)
4606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4607 lt_cv_sys_max_cmd_len=196608
4608 ;;
4609
4610 os2*)
4611 # The test takes a long time on OS/2.
4612 lt_cv_sys_max_cmd_len=8192
4613 ;;
4614
4615 osf*)
4616 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4617 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4618 # nice to cause kernel panics so lets avoid the loop below.
4619 # First set a reasonable default.
4620 lt_cv_sys_max_cmd_len=16384
4621 #
4622 if test -x /sbin/sysconfig; then
4623 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4624 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4625 esac
4626 fi
4627 ;;
4628 sco3.2v5*)
4629 lt_cv_sys_max_cmd_len=102400
4630 ;;
4631 sysv5* | sco5v6* | sysv4.2uw2*)
4632 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4633 if test -n "$kargmax"; then
4634 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4635 else
4636 lt_cv_sys_max_cmd_len=32768
4637 fi
4638 ;;
4639 *)
4640 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4641 if test -n "$lt_cv_sys_max_cmd_len"; then
4642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4644 else
4645 # Make teststring a little bigger before we do anything with it.
4646 # a 1K string should be a reasonable start.
4647 for i in 1 2 3 4 5 6 7 8 ; do
4648 teststring=$teststring$teststring
4649 done
4650 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4651 # If test is not a shell built-in, we'll probably end up computing a
4652 # maximum length that is only half of the actual maximum length, but
4653 # we can't tell.
4654 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4655 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4656 test $i != 17 # 1/2 MB should be enough
4657 do
4658 i=`expr $i + 1`
4659 teststring=$teststring$teststring
4660 done
4661 # Only check the string length outside the loop.
4662 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4663 teststring=
4664 # Add a significant safety factor because C++ compilers can tack on
4665 # massive amounts of additional arguments before passing them to the
4666 # linker. It appears as though 1/2 is a usable value.
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4668 fi
4669 ;;
4670 esac
4671
4672 fi
4673
4674 if test -n $lt_cv_sys_max_cmd_len ; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4676 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4679 $as_echo "none" >&6; }
4680 fi
4681 max_cmd_len=$lt_cv_sys_max_cmd_len
4682
4683
4684
4685
4686
4687
4688 : ${CP="cp -f"}
4689 : ${MV="mv -f"}
4690 : ${RM="rm -f"}
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4693 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4694 # Try some XSI features
4695 xsi_shell=no
4696 ( _lt_dummy="a/b/c"
4697 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4698 = c,a/b,b/c, \
4699 && eval 'test $(( 1 + 1 )) -eq 2 \
4700 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4701 && xsi_shell=yes
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4703 $as_echo "$xsi_shell" >&6; }
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4707 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4708 lt_shell_append=no
4709 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4710 >/dev/null 2>&1 \
4711 && lt_shell_append=yes
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4713 $as_echo "$lt_shell_append" >&6; }
4714
4715
4716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4717 lt_unset=unset
4718 else
4719 lt_unset=false
4720 fi
4721
4722
4723
4724
4725
4726 # test EBCDIC or ASCII
4727 case `echo X|tr X '\101'` in
4728 A) # ASCII based system
4729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4730 lt_SP2NL='tr \040 \012'
4731 lt_NL2SP='tr \015\012 \040\040'
4732 ;;
4733 *) # EBCDIC based system
4734 lt_SP2NL='tr \100 \n'
4735 lt_NL2SP='tr \r\n \100\100'
4736 ;;
4737 esac
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4748 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4749 if ${lt_cv_to_host_file_cmd+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 case $host in
4753 *-*-mingw* )
4754 case $build in
4755 *-*-mingw* ) # actually msys
4756 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4757 ;;
4758 *-*-cygwin* )
4759 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4760 ;;
4761 * ) # otherwise, assume *nix
4762 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4763 ;;
4764 esac
4765 ;;
4766 *-*-cygwin* )
4767 case $build in
4768 *-*-mingw* ) # actually msys
4769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4770 ;;
4771 *-*-cygwin* )
4772 lt_cv_to_host_file_cmd=func_convert_file_noop
4773 ;;
4774 * ) # otherwise, assume *nix
4775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4776 ;;
4777 esac
4778 ;;
4779 * ) # unhandled hosts (and "normal" native builds)
4780 lt_cv_to_host_file_cmd=func_convert_file_noop
4781 ;;
4782 esac
4783
4784 fi
4785
4786 to_host_file_cmd=$lt_cv_to_host_file_cmd
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4788 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4795 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4796 if ${lt_cv_to_tool_file_cmd+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 #assume ordinary cross tools, or native build.
4800 lt_cv_to_tool_file_cmd=func_convert_file_noop
4801 case $host in
4802 *-*-mingw* )
4803 case $build in
4804 *-*-mingw* ) # actually msys
4805 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4806 ;;
4807 esac
4808 ;;
4809 esac
4810
4811 fi
4812
4813 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4815 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4816
4817
4818
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4822 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4823 if ${lt_cv_ld_reload_flag+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 lt_cv_ld_reload_flag='-r'
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4829 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4830 reload_flag=$lt_cv_ld_reload_flag
4831 case $reload_flag in
4832 "" | " "*) ;;
4833 *) reload_flag=" $reload_flag" ;;
4834 esac
4835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4836 case $host_os in
4837 cygwin* | mingw* | pw32* | cegcc*)
4838 if test "$GCC" != yes; then
4839 reload_cmds=false
4840 fi
4841 ;;
4842 darwin*)
4843 if test "$GCC" = yes; then
4844 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4845 else
4846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847 fi
4848 ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_OBJDUMP+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$OBJDUMP"; then
4868 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 OBJDUMP=$ac_cv_prog_OBJDUMP
4888 if test -n "$OBJDUMP"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4890 $as_echo "$OBJDUMP" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897 fi
4898 if test -z "$ac_cv_prog_OBJDUMP"; then
4899 ac_ct_OBJDUMP=$OBJDUMP
4900 # Extract the first word of "objdump", so it can be a program name with args.
4901 set dummy objdump; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$ac_ct_OBJDUMP"; then
4908 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4928 if test -n "$ac_ct_OBJDUMP"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4930 $as_echo "$ac_ct_OBJDUMP" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936 if test "x$ac_ct_OBJDUMP" = x; then
4937 OBJDUMP="false"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 OBJDUMP=$ac_ct_OBJDUMP
4946 fi
4947 else
4948 OBJDUMP="$ac_cv_prog_OBJDUMP"
4949 fi
4950
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4962 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4963 if ${lt_cv_deplibs_check_method+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 lt_cv_file_magic_cmd='$MAGIC_CMD'
4967 lt_cv_file_magic_test_file=
4968 lt_cv_deplibs_check_method='unknown'
4969 # Need to set the preceding variable on all platforms that support
4970 # interlibrary dependencies.
4971 # 'none' -- dependencies not supported.
4972 # `unknown' -- same as none, but documents that we really don't know.
4973 # 'pass_all' -- all dependencies passed with no checks.
4974 # 'test_compile' -- check by making test program.
4975 # 'file_magic [[regex]]' -- check by looking for files in library path
4976 # which responds to the $file_magic_cmd with a given extended regex.
4977 # If you have `file' or equivalent on your system and you're not sure
4978 # whether `pass_all' will *always* work, you probably want this one.
4979
4980 case $host_os in
4981 aix[4-9]*)
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984
4985 beos*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 bsdi[45]*)
4990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4991 lt_cv_file_magic_cmd='/usr/bin/file -L'
4992 lt_cv_file_magic_test_file=/shlib/libc.so
4993 ;;
4994
4995 cygwin*)
4996 # func_win32_libid is a shell function defined in ltmain.sh
4997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4998 lt_cv_file_magic_cmd='func_win32_libid'
4999 ;;
5000
5001 mingw* | pw32*)
5002 # Base MSYS/MinGW do not provide the 'file' command needed by
5003 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5004 # unless we find 'file', for example because we are cross-compiling.
5005 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5006 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008 lt_cv_file_magic_cmd='func_win32_libid'
5009 else
5010 # Keep this pattern in sync with the one in func_win32_libid.
5011 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5012 lt_cv_file_magic_cmd='$OBJDUMP -f'
5013 fi
5014 ;;
5015
5016 cegcc*)
5017 # use the weaker test based on 'objdump'. See mingw*.
5018 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5019 lt_cv_file_magic_cmd='$OBJDUMP -f'
5020 ;;
5021
5022 darwin* | rhapsody*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
5026 freebsd* | dragonfly*)
5027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5028 case $host_cpu in
5029 i*86 )
5030 # Not sure whether the presence of OpenBSD here was a mistake.
5031 # Let's accept both of them until this is cleared up.
5032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5033 lt_cv_file_magic_cmd=/usr/bin/file
5034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5035 ;;
5036 esac
5037 else
5038 lt_cv_deplibs_check_method=pass_all
5039 fi
5040 ;;
5041
5042 gnu*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046 haiku*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 hpux10.20* | hpux11*)
5051 lt_cv_file_magic_cmd=/usr/bin/file
5052 case $host_cpu in
5053 ia64*)
5054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5055 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5056 ;;
5057 hppa*64*)
5058 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]'
5059 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5060 ;;
5061 *)
5062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5063 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5064 ;;
5065 esac
5066 ;;
5067
5068 interix[3-9]*)
5069 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5071 ;;
5072
5073 irix5* | irix6* | nonstopux*)
5074 case $LD in
5075 *-32|*"-32 ") libmagic=32-bit;;
5076 *-n32|*"-n32 ") libmagic=N32;;
5077 *-64|*"-64 ") libmagic=64-bit;;
5078 *) libmagic=never-match;;
5079 esac
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083 # This must be glibc/ELF.
5084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 netbsd*)
5089 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5091 else
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5093 fi
5094 ;;
5095
5096 newos6*)
5097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5098 lt_cv_file_magic_cmd=/usr/bin/file
5099 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5100 ;;
5101
5102 *nto* | *qnx*)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105
5106 openbsd*)
5107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5109 else
5110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5111 fi
5112 ;;
5113
5114 osf3* | osf4* | osf5*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
5118 rdos*)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
5122 solaris*)
5123 lt_cv_deplibs_check_method=pass_all
5124 ;;
5125
5126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129
5130 sysv4 | sysv4.3*)
5131 case $host_vendor in
5132 motorola)
5133 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]'
5134 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5135 ;;
5136 ncr)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139 sequent)
5140 lt_cv_file_magic_cmd='/bin/file'
5141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5142 ;;
5143 sni)
5144 lt_cv_file_magic_cmd='/bin/file'
5145 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5146 lt_cv_file_magic_test_file=/lib/libc.so
5147 ;;
5148 siemens)
5149 lt_cv_deplibs_check_method=pass_all
5150 ;;
5151 pc)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154 esac
5155 ;;
5156
5157 tpf*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160 esac
5161
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5164 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5165
5166 file_magic_glob=
5167 want_nocaseglob=no
5168 if test "$build" = "$host"; then
5169 case $host_os in
5170 mingw* | pw32*)
5171 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5172 want_nocaseglob=yes
5173 else
5174 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5175 fi
5176 ;;
5177 esac
5178 fi
5179
5180 file_magic_cmd=$lt_cv_file_magic_cmd
5181 deplibs_check_method=$lt_cv_deplibs_check_method
5182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_DLLTOOL+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$DLLTOOL"; then
5214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 DLLTOOL=$ac_cv_prog_DLLTOOL
5234 if test -n "$DLLTOOL"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5236 $as_echo "$DLLTOOL" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_DLLTOOL"; then
5245 ac_ct_DLLTOOL=$DLLTOOL
5246 # Extract the first word of "dlltool", so it can be a program name with args.
5247 set dummy dlltool; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_DLLTOOL"; then
5254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5274 if test -n "$ac_ct_DLLTOOL"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5276 $as_echo "$ac_ct_DLLTOOL" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282 if test "x$ac_ct_DLLTOOL" = x; then
5283 DLLTOOL="false"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 DLLTOOL=$ac_ct_DLLTOOL
5292 fi
5293 else
5294 DLLTOOL="$ac_cv_prog_DLLTOOL"
5295 fi
5296
5297 test -z "$DLLTOOL" && DLLTOOL=dlltool
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5309 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5310 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 lt_cv_sharedlib_from_linklib_cmd='unknown'
5314
5315 case $host_os in
5316 cygwin* | mingw* | pw32* | cegcc*)
5317 # two different shell functions defined in ltmain.sh
5318 # decide which to use based on capabilities of $DLLTOOL
5319 case `$DLLTOOL --help 2>&1` in
5320 *--identify-strict*)
5321 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5322 ;;
5323 *)
5324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5325 ;;
5326 esac
5327 ;;
5328 *)
5329 # fallback: assume linklib IS sharedlib
5330 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5331 ;;
5332 esac
5333
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5336 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5337 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5338 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5339
5340
5341
5342
5343
5344
5345
5346
5347 if test -n "$ac_tool_prefix"; then
5348 for ac_prog in ar
5349 do
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_AR+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$AR"; then
5358 ac_cv_prog_AR="$AR" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 AR=$ac_cv_prog_AR
5378 if test -n "$AR"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5380 $as_echo "$AR" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387 test -n "$AR" && break
5388 done
5389 fi
5390 if test -z "$AR"; then
5391 ac_ct_AR=$AR
5392 for ac_prog in ar
5393 do
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_AR"; then
5402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_AR="$ac_prog"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5422 if test -n "$ac_ct_AR"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5424 $as_echo "$ac_ct_AR" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 test -n "$ac_ct_AR" && break
5432 done
5433
5434 if test "x$ac_ct_AR" = x; then
5435 AR="false"
5436 else
5437 case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443 AR=$ac_ct_AR
5444 fi
5445 fi
5446
5447 : ${AR=ar}
5448 : ${AR_FLAGS=cru}
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5461 $as_echo_n "checking for archiver @FILE support... " >&6; }
5462 if ${lt_cv_ar_at_file+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 lt_cv_ar_at_file=no
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468
5469 int
5470 main ()
5471 {
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 echo conftest.$ac_objext > conftest.lst
5479 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5481 (eval $lt_ar_try) 2>&5
5482 ac_status=$?
5483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484 test $ac_status = 0; }
5485 if test "$ac_status" -eq 0; then
5486 # Ensure the archiver fails upon bogus file names.
5487 rm -f conftest.$ac_objext libconftest.a
5488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5489 (eval $lt_ar_try) 2>&5
5490 ac_status=$?
5491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5492 test $ac_status = 0; }
5493 if test "$ac_status" -ne 0; then
5494 lt_cv_ar_at_file=@
5495 fi
5496 fi
5497 rm -f conftest.* libconftest.a
5498
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5504 $as_echo "$lt_cv_ar_at_file" >&6; }
5505
5506 if test "x$lt_cv_ar_at_file" = xno; then
5507 archiver_list_spec=
5508 else
5509 archiver_list_spec=$lt_cv_ar_at_file
5510 fi
5511
5512
5513
5514
5515
5516
5517
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}strip; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_STRIP+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$STRIP"; then
5527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 STRIP=$ac_cv_prog_STRIP
5547 if test -n "$STRIP"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5549 $as_echo "$STRIP" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 fi
5557 if test -z "$ac_cv_prog_STRIP"; then
5558 ac_ct_STRIP=$STRIP
5559 # Extract the first word of "strip", so it can be a program name with args.
5560 set dummy strip; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$ac_ct_STRIP"; then
5567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_ac_ct_STRIP="strip"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5587 if test -n "$ac_ct_STRIP"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5589 $as_echo "$ac_ct_STRIP" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595 if test "x$ac_ct_STRIP" = x; then
5596 STRIP=":"
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604 STRIP=$ac_ct_STRIP
5605 fi
5606 else
5607 STRIP="$ac_cv_prog_STRIP"
5608 fi
5609
5610 test -z "$STRIP" && STRIP=:
5611
5612
5613
5614
5615
5616
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_RANLIB+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$RANLIB"; then
5626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 RANLIB=$ac_cv_prog_RANLIB
5646 if test -n "$RANLIB"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5648 $as_echo "$RANLIB" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 fi
5656 if test -z "$ac_cv_prog_RANLIB"; then
5657 ac_ct_RANLIB=$RANLIB
5658 # Extract the first word of "ranlib", so it can be a program name with args.
5659 set dummy ranlib; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$ac_ct_RANLIB"; then
5666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_ac_ct_RANLIB="ranlib"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5686 if test -n "$ac_ct_RANLIB"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5688 $as_echo "$ac_ct_RANLIB" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694 if test "x$ac_ct_RANLIB" = x; then
5695 RANLIB=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 RANLIB=$ac_ct_RANLIB
5704 fi
5705 else
5706 RANLIB="$ac_cv_prog_RANLIB"
5707 fi
5708
5709 test -z "$RANLIB" && RANLIB=:
5710
5711
5712
5713
5714
5715
5716 # Determine commands to create old-style static archives.
5717 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5718 old_postinstall_cmds='chmod 644 $oldlib'
5719 old_postuninstall_cmds=
5720
5721 if test -n "$RANLIB"; then
5722 case $host_os in
5723 openbsd*)
5724 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5725 ;;
5726 *)
5727 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5728 ;;
5729 esac
5730 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5731 fi
5732
5733 case $host_os in
5734 darwin*)
5735 lock_old_archive_extraction=yes ;;
5736 *)
5737 lock_old_archive_extraction=no ;;
5738 esac
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 # If no C compiler was specified, use CC.
5779 LTCC=${LTCC-"$CC"}
5780
5781 # If no C compiler flags were specified, use CFLAGS.
5782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5783
5784 # Allow CC to be a program name with arguments.
5785 compiler=$CC
5786
5787
5788 # Check for command to grab the raw symbol name followed by C symbol from nm.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5790 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5791 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794
5795 # These are sane defaults that work on at least a few old systems.
5796 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5797
5798 # Character class describing NM global symbol codes.
5799 symcode='[BCDEGRST]'
5800
5801 # Regexp to match symbols that can be accessed directly from C.
5802 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5803
5804 # Define system-specific variables.
5805 case $host_os in
5806 aix*)
5807 symcode='[BCDT]'
5808 ;;
5809 cygwin* | mingw* | pw32* | cegcc*)
5810 symcode='[ABCDGISTW]'
5811 ;;
5812 hpux*)
5813 if test "$host_cpu" = ia64; then
5814 symcode='[ABCDEGRST]'
5815 fi
5816 ;;
5817 irix* | nonstopux*)
5818 symcode='[BCDEGRST]'
5819 ;;
5820 osf*)
5821 symcode='[BCDEGQRST]'
5822 ;;
5823 solaris*)
5824 symcode='[BDRT]'
5825 ;;
5826 sco3.2v5*)
5827 symcode='[DT]'
5828 ;;
5829 sysv4.2uw2*)
5830 symcode='[DT]'
5831 ;;
5832 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5833 symcode='[ABDT]'
5834 ;;
5835 sysv4)
5836 symcode='[DFNSTU]'
5837 ;;
5838 esac
5839
5840 # If we're using GNU nm, then use its standard symbol codes.
5841 case `$NM -V 2>&1` in
5842 *GNU* | *'with BFD'*)
5843 symcode='[ABCDGIRSTW]' ;;
5844 esac
5845
5846 # Transform an extracted symbol line into a proper C declaration.
5847 # Some systems (esp. on ia64) link data and code symbols differently,
5848 # so use this general approach.
5849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5850
5851 # Transform an extracted symbol line into symbol name and symbol address
5852 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5853 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5854
5855 # Handle CRLF in mingw tool chain
5856 opt_cr=
5857 case $build_os in
5858 mingw*)
5859 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5860 ;;
5861 esac
5862
5863 # Try without a prefix underscore, then with it.
5864 for ac_symprfx in "" "_"; do
5865
5866 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5867 symxfrm="\\1 $ac_symprfx\\2 \\2"
5868
5869 # Write the raw and C identifiers.
5870 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5871 # Fake it for dumpbin and say T for any non-static function
5872 # and D for any global variable.
5873 # Also find C++ and __fastcall symbols from MSVC++,
5874 # which start with @ or ?.
5875 lt_cv_sys_global_symbol_pipe="$AWK '"\
5876 " {last_section=section; section=\$ 3};"\
5877 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5878 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5879 " \$ 0!~/External *\|/{next};"\
5880 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5881 " {if(hide[section]) next};"\
5882 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5883 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5884 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5885 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5886 " ' prfx=^$ac_symprfx"
5887 else
5888 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5889 fi
5890 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5891
5892 # Check to see that the pipe works correctly.
5893 pipe_works=no
5894
5895 rm -f conftest*
5896 cat > conftest.$ac_ext <<_LT_EOF
5897 #ifdef __cplusplus
5898 extern "C" {
5899 #endif
5900 char nm_test_var;
5901 void nm_test_func(void);
5902 void nm_test_func(void){}
5903 #ifdef __cplusplus
5904 }
5905 #endif
5906 int main(){nm_test_var='a';nm_test_func();return(0);}
5907 _LT_EOF
5908
5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5910 (eval $ac_compile) 2>&5
5911 ac_status=$?
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; }; then
5914 # Now try to grab the symbols.
5915 nlist=conftest.nm
5916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5917 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5918 ac_status=$?
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920 test $ac_status = 0; } && test -s "$nlist"; then
5921 # Try sorting and uniquifying the output.
5922 if sort "$nlist" | uniq > "$nlist"T; then
5923 mv -f "$nlist"T "$nlist"
5924 else
5925 rm -f "$nlist"T
5926 fi
5927
5928 # Make sure that we snagged all the symbols we need.
5929 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5930 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5931 cat <<_LT_EOF > conftest.$ac_ext
5932 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5933 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5934 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5935 relocations are performed -- see ld's documentation on pseudo-relocs. */
5936 # define LT_DLSYM_CONST
5937 #elif defined(__osf__)
5938 /* This system does not cope well with relocations in const data. */
5939 # define LT_DLSYM_CONST
5940 #else
5941 # define LT_DLSYM_CONST const
5942 #endif
5943
5944 #ifdef __cplusplus
5945 extern "C" {
5946 #endif
5947
5948 _LT_EOF
5949 # Now generate the symbol file.
5950 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5951
5952 cat <<_LT_EOF >> conftest.$ac_ext
5953
5954 /* The mapping between symbol names and symbols. */
5955 LT_DLSYM_CONST struct {
5956 const char *name;
5957 void *address;
5958 }
5959 lt__PROGRAM__LTX_preloaded_symbols[] =
5960 {
5961 { "@PROGRAM@", (void *) 0 },
5962 _LT_EOF
5963 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5964 cat <<\_LT_EOF >> conftest.$ac_ext
5965 {0, (void *) 0}
5966 };
5967
5968 /* This works around a problem in FreeBSD linker */
5969 #ifdef FREEBSD_WORKAROUND
5970 static const void *lt_preloaded_setup() {
5971 return lt__PROGRAM__LTX_preloaded_symbols;
5972 }
5973 #endif
5974
5975 #ifdef __cplusplus
5976 }
5977 #endif
5978 _LT_EOF
5979 # Now try linking the two files.
5980 mv conftest.$ac_objext conftstm.$ac_objext
5981 lt_globsym_save_LIBS=$LIBS
5982 lt_globsym_save_CFLAGS=$CFLAGS
5983 LIBS="conftstm.$ac_objext"
5984 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5986 (eval $ac_link) 2>&5
5987 ac_status=$?
5988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5989 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5990 pipe_works=yes
5991 fi
5992 LIBS=$lt_globsym_save_LIBS
5993 CFLAGS=$lt_globsym_save_CFLAGS
5994 else
5995 echo "cannot find nm_test_func in $nlist" >&5
5996 fi
5997 else
5998 echo "cannot find nm_test_var in $nlist" >&5
5999 fi
6000 else
6001 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6002 fi
6003 else
6004 echo "$progname: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6006 fi
6007 rm -rf conftest* conftst*
6008
6009 # Do not use the global_symbol_pipe unless it works.
6010 if test "$pipe_works" = yes; then
6011 break
6012 else
6013 lt_cv_sys_global_symbol_pipe=
6014 fi
6015 done
6016
6017 fi
6018
6019 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6020 lt_cv_sys_global_symbol_to_cdecl=
6021 fi
6022 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6024 $as_echo "failed" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6027 $as_echo "ok" >&6; }
6028 fi
6029
6030 # Response file support.
6031 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6032 nm_file_list_spec='@'
6033 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6034 nm_file_list_spec='@'
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6064 $as_echo_n "checking for sysroot... " >&6; }
6065
6066 # Check whether --with-sysroot was given.
6067 if test "${with_sysroot+set}" = set; then :
6068 withval=$with_sysroot;
6069 else
6070 with_sysroot=no
6071 fi
6072
6073
6074 lt_sysroot=
6075 case ${with_sysroot} in #(
6076 yes)
6077 if test "$GCC" = yes; then
6078 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6079 fi
6080 ;; #(
6081 /*)
6082 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6083 ;; #(
6084 no|'')
6085 ;; #(
6086 *)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6088 $as_echo "${with_sysroot}" >&6; }
6089 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6090 ;;
6091 esac
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6094 $as_echo "${lt_sysroot:-no}" >&6; }
6095
6096
6097
6098
6099
6100 # Check whether --enable-libtool-lock was given.
6101 if test "${enable_libtool_lock+set}" = set; then :
6102 enableval=$enable_libtool_lock;
6103 fi
6104
6105 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6106
6107 # Some flags need to be propagated to the compiler or linker for good
6108 # libtool support.
6109 case $host in
6110 ia64-*-hpux*)
6111 # Find out which ABI we are using.
6112 echo 'int i;' > conftest.$ac_ext
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114 (eval $ac_compile) 2>&5
6115 ac_status=$?
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }; then
6118 case `/usr/bin/file conftest.$ac_objext` in
6119 *ELF-32*)
6120 HPUX_IA64_MODE="32"
6121 ;;
6122 *ELF-64*)
6123 HPUX_IA64_MODE="64"
6124 ;;
6125 esac
6126 fi
6127 rm -rf conftest*
6128 ;;
6129 *-*-irix6*)
6130 # Find out which ABI we are using.
6131 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6133 (eval $ac_compile) 2>&5
6134 ac_status=$?
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; }; then
6137 if test "$lt_cv_prog_gnu_ld" = yes; then
6138 case `/usr/bin/file conftest.$ac_objext` in
6139 *32-bit*)
6140 LD="${LD-ld} -melf32bsmip"
6141 ;;
6142 *N32*)
6143 LD="${LD-ld} -melf32bmipn32"
6144 ;;
6145 *64-bit*)
6146 LD="${LD-ld} -melf64bmip"
6147 ;;
6148 esac
6149 else
6150 case `/usr/bin/file conftest.$ac_objext` in
6151 *32-bit*)
6152 LD="${LD-ld} -32"
6153 ;;
6154 *N32*)
6155 LD="${LD-ld} -n32"
6156 ;;
6157 *64-bit*)
6158 LD="${LD-ld} -64"
6159 ;;
6160 esac
6161 fi
6162 fi
6163 rm -rf conftest*
6164 ;;
6165
6166 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6167 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6168 # Find out which ABI we are using.
6169 echo 'int i;' > conftest.$ac_ext
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; then
6175 case `/usr/bin/file conftest.o` in
6176 *32-bit*)
6177 case $host in
6178 x86_64-*kfreebsd*-gnu)
6179 LD="${LD-ld} -m elf_i386_fbsd"
6180 ;;
6181 x86_64-*linux*)
6182 LD="${LD-ld} -m elf_i386"
6183 ;;
6184 ppc64-*linux*|powerpc64-*linux*)
6185 LD="${LD-ld} -m elf32ppclinux"
6186 ;;
6187 s390x-*linux*)
6188 LD="${LD-ld} -m elf_s390"
6189 ;;
6190 sparc64-*linux*)
6191 LD="${LD-ld} -m elf32_sparc"
6192 ;;
6193 esac
6194 ;;
6195 *64-bit*)
6196 case $host in
6197 x86_64-*kfreebsd*-gnu)
6198 LD="${LD-ld} -m elf_x86_64_fbsd"
6199 ;;
6200 x86_64-*linux*)
6201 LD="${LD-ld} -m elf_x86_64"
6202 ;;
6203 ppc*-*linux*|powerpc*-*linux*)
6204 LD="${LD-ld} -m elf64ppc"
6205 ;;
6206 s390*-*linux*|s390*-*tpf*)
6207 LD="${LD-ld} -m elf64_s390"
6208 ;;
6209 sparc*-*linux*)
6210 LD="${LD-ld} -m elf64_sparc"
6211 ;;
6212 esac
6213 ;;
6214 esac
6215 fi
6216 rm -rf conftest*
6217 ;;
6218
6219 *-*-sco3.2v5*)
6220 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6221 SAVE_CFLAGS="$CFLAGS"
6222 CFLAGS="$CFLAGS -belf"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6224 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6225 if ${lt_cv_cc_needs_belf+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 ac_ext=c
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236
6237 int
6238 main ()
6239 {
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_link "$LINENO"; then :
6246 lt_cv_cc_needs_belf=yes
6247 else
6248 lt_cv_cc_needs_belf=no
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252 ac_ext=c
6253 ac_cpp='$CPP $CPPFLAGS'
6254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6260 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6261 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6262 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6263 CFLAGS="$SAVE_CFLAGS"
6264 fi
6265 ;;
6266 *-*solaris*)
6267 # Find out which ABI we are using.
6268 echo 'int i;' > conftest.$ac_ext
6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6270 (eval $ac_compile) 2>&5
6271 ac_status=$?
6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273 test $ac_status = 0; }; then
6274 case `/usr/bin/file conftest.o` in
6275 *64-bit*)
6276 case $lt_cv_prog_gnu_ld in
6277 yes*)
6278 case $host in
6279 i?86-*-solaris*)
6280 LD="${LD-ld} -m elf_x86_64"
6281 ;;
6282 sparc*-*-solaris*)
6283 LD="${LD-ld} -m elf64_sparc"
6284 ;;
6285 esac
6286 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6287 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6288 LD="${LD-ld}_sol2"
6289 fi
6290 ;;
6291 *)
6292 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6293 LD="${LD-ld} -64"
6294 fi
6295 ;;
6296 esac
6297 ;;
6298 esac
6299 fi
6300 rm -rf conftest*
6301 ;;
6302 esac
6303
6304 need_locks="$enable_libtool_lock"
6305
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}mt; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$MANIFEST_TOOL"; then
6315 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6335 if test -n "$MANIFEST_TOOL"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6337 $as_echo "$MANIFEST_TOOL" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343
6344 fi
6345 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6346 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6347 # Extract the first word of "mt", so it can be a program name with args.
6348 set dummy mt; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_MANIFEST_TOOL"; then
6355 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6375 if test -n "$ac_ct_MANIFEST_TOOL"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6377 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6384 MANIFEST_TOOL=":"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6393 fi
6394 else
6395 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6396 fi
6397
6398 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6400 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6401 if ${lt_cv_path_mainfest_tool+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 lt_cv_path_mainfest_tool=no
6405 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6406 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6407 cat conftest.err >&5
6408 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6409 lt_cv_path_mainfest_tool=yes
6410 fi
6411 rm -f conftest*
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6414 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6415 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6416 MANIFEST_TOOL=:
6417 fi
6418
6419
6420
6421
6422
6423
6424 case $host_os in
6425 rhapsody* | darwin*)
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if test -n "$DSYMUTIL"; then
6435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6455 if test -n "$DSYMUTIL"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6457 $as_echo "$DSYMUTIL" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 fi
6465 if test -z "$ac_cv_prog_DSYMUTIL"; then
6466 ac_ct_DSYMUTIL=$DSYMUTIL
6467 # Extract the first word of "dsymutil", so it can be a program name with args.
6468 set dummy dsymutil; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$ac_ct_DSYMUTIL"; then
6475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6495 if test -n "$ac_ct_DSYMUTIL"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6497 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503 if test "x$ac_ct_DSYMUTIL" = x; then
6504 DSYMUTIL=":"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512 DSYMUTIL=$ac_ct_DSYMUTIL
6513 fi
6514 else
6515 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6516 fi
6517
6518 if test -n "$ac_tool_prefix"; then
6519 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6520 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_NMEDIT+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if test -n "$NMEDIT"; then
6527 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 NMEDIT=$ac_cv_prog_NMEDIT
6547 if test -n "$NMEDIT"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6549 $as_echo "$NMEDIT" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555
6556 fi
6557 if test -z "$ac_cv_prog_NMEDIT"; then
6558 ac_ct_NMEDIT=$NMEDIT
6559 # Extract the first word of "nmedit", so it can be a program name with args.
6560 set dummy nmedit; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$ac_ct_NMEDIT"; then
6567 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6587 if test -n "$ac_ct_NMEDIT"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6589 $as_echo "$ac_ct_NMEDIT" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595 if test "x$ac_ct_NMEDIT" = x; then
6596 NMEDIT=":"
6597 else
6598 case $cross_compiling:$ac_tool_warned in
6599 yes:)
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602 ac_tool_warned=yes ;;
6603 esac
6604 NMEDIT=$ac_ct_NMEDIT
6605 fi
6606 else
6607 NMEDIT="$ac_cv_prog_NMEDIT"
6608 fi
6609
6610 if test -n "$ac_tool_prefix"; then
6611 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6612 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_LIPO+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$LIPO"; then
6619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 LIPO=$ac_cv_prog_LIPO
6639 if test -n "$LIPO"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6641 $as_echo "$LIPO" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647
6648 fi
6649 if test -z "$ac_cv_prog_LIPO"; then
6650 ac_ct_LIPO=$LIPO
6651 # Extract the first word of "lipo", so it can be a program name with args.
6652 set dummy lipo; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$ac_ct_LIPO"; then
6659 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_LIPO="lipo"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6679 if test -n "$ac_ct_LIPO"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6681 $as_echo "$ac_ct_LIPO" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687 if test "x$ac_ct_LIPO" = x; then
6688 LIPO=":"
6689 else
6690 case $cross_compiling:$ac_tool_warned in
6691 yes:)
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694 ac_tool_warned=yes ;;
6695 esac
6696 LIPO=$ac_ct_LIPO
6697 fi
6698 else
6699 LIPO="$ac_cv_prog_LIPO"
6700 fi
6701
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}otool; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_OTOOL+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$OTOOL"; then
6711 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 OTOOL=$ac_cv_prog_OTOOL
6731 if test -n "$OTOOL"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6733 $as_echo "$OTOOL" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739
6740 fi
6741 if test -z "$ac_cv_prog_OTOOL"; then
6742 ac_ct_OTOOL=$OTOOL
6743 # Extract the first word of "otool", so it can be a program name with args.
6744 set dummy otool; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test -n "$ac_ct_OTOOL"; then
6751 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760 ac_cv_prog_ac_ct_OTOOL="otool"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6771 if test -n "$ac_ct_OTOOL"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6773 $as_echo "$ac_ct_OTOOL" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778
6779 if test "x$ac_ct_OTOOL" = x; then
6780 OTOOL=":"
6781 else
6782 case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6787 esac
6788 OTOOL=$ac_ct_OTOOL
6789 fi
6790 else
6791 OTOOL="$ac_cv_prog_OTOOL"
6792 fi
6793
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_OTOOL64+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$OTOOL64"; then
6803 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 OTOOL64=$ac_cv_prog_OTOOL64
6823 if test -n "$OTOOL64"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6825 $as_echo "$OTOOL64" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 fi
6833 if test -z "$ac_cv_prog_OTOOL64"; then
6834 ac_ct_OTOOL64=$OTOOL64
6835 # Extract the first word of "otool64", so it can be a program name with args.
6836 set dummy otool64; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_OTOOL64"; then
6843 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_ac_ct_OTOOL64="otool64"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6863 if test -n "$ac_ct_OTOOL64"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6865 $as_echo "$ac_ct_OTOOL64" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871 if test "x$ac_ct_OTOOL64" = x; then
6872 OTOOL64=":"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 OTOOL64=$ac_ct_OTOOL64
6881 fi
6882 else
6883 OTOOL64="$ac_cv_prog_OTOOL64"
6884 fi
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6913 $as_echo_n "checking for -single_module linker flag... " >&6; }
6914 if ${lt_cv_apple_cc_single_mod+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 lt_cv_apple_cc_single_mod=no
6918 if test -z "${LT_MULTI_MODULE}"; then
6919 # By default we will add the -single_module flag. You can override
6920 # by either setting the environment variable LT_MULTI_MODULE
6921 # non-empty at configure time, or by adding -multi_module to the
6922 # link flags.
6923 rm -rf libconftest.dylib*
6924 echo "int foo(void){return 1;}" > conftest.c
6925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6926 -dynamiclib -Wl,-single_module conftest.c" >&5
6927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6929 _lt_result=$?
6930 # If there is a non-empty error log, and "single_module"
6931 # appears in it, assume the flag caused a linker warning
6932 if test -s conftest.err && $GREP single_module conftest.err; then
6933 cat conftest.err >&5
6934 # Otherwise, if the output was created with a 0 exit code from
6935 # the compiler, it worked.
6936 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6937 lt_cv_apple_cc_single_mod=yes
6938 else
6939 cat conftest.err >&5
6940 fi
6941 rm -rf libconftest.dylib*
6942 rm -f conftest.*
6943 fi
6944 fi
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6946 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6947
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6949 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6950 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 lt_cv_ld_exported_symbols_list=no
6954 save_LDFLAGS=$LDFLAGS
6955 echo "_main" > conftest.sym
6956 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959
6960 int
6961 main ()
6962 {
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 if ac_fn_c_try_link "$LINENO"; then :
6969 lt_cv_ld_exported_symbols_list=yes
6970 else
6971 lt_cv_ld_exported_symbols_list=no
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975 LDFLAGS="$save_LDFLAGS"
6976
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6979 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6982 $as_echo_n "checking for -force_load linker flag... " >&6; }
6983 if ${lt_cv_ld_force_load+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 lt_cv_ld_force_load=no
6987 cat > conftest.c << _LT_EOF
6988 int forced_loaded() { return 2;}
6989 _LT_EOF
6990 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6991 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6992 echo "$AR cru libconftest.a conftest.o" >&5
6993 $AR cru libconftest.a conftest.o 2>&5
6994 echo "$RANLIB libconftest.a" >&5
6995 $RANLIB libconftest.a 2>&5
6996 cat > conftest.c << _LT_EOF
6997 int main() { return 0;}
6998 _LT_EOF
6999 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7000 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7001 _lt_result=$?
7002 if test -s conftest.err && $GREP force_load conftest.err; then
7003 cat conftest.err >&5
7004 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7005 lt_cv_ld_force_load=yes
7006 else
7007 cat conftest.err >&5
7008 fi
7009 rm -f conftest.err libconftest.a conftest conftest.c
7010 rm -rf conftest.dSYM
7011
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7014 $as_echo "$lt_cv_ld_force_load" >&6; }
7015 case $host_os in
7016 rhapsody* | darwin1.[012])
7017 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7018 darwin1.*)
7019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7020 darwin*) # darwin 5.x on
7021 # if running on 10.5 or later, the deployment target defaults
7022 # to the OS version, if on x86, and 10.4, the deployment
7023 # target defaults to 10.4. Don't you love it?
7024 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7025 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7026 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7027 10.[012]*)
7028 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7029 10.*)
7030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7031 esac
7032 ;;
7033 esac
7034 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7035 _lt_dar_single_mod='$single_module'
7036 fi
7037 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7038 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7039 else
7040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7041 fi
7042 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7043 _lt_dsymutil='~$DSYMUTIL $lib || :'
7044 else
7045 _lt_dsymutil=
7046 fi
7047 ;;
7048 esac
7049
7050 ac_ext=c
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7057 # On Suns, sometimes $CPP names a directory.
7058 if test -n "$CPP" && test -d "$CPP"; then
7059 CPP=
7060 fi
7061 if test -z "$CPP"; then
7062 if ${ac_cv_prog_CPP+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 # Double quotes because CPP needs to be expanded
7066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7067 do
7068 ac_preproc_ok=false
7069 for ac_c_preproc_warn_flag in '' yes
7070 do
7071 # Use a header file that comes with gcc, so configuring glibc
7072 # with a fresh cross-compiler works.
7073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7074 # <limits.h> exists even on freestanding compilers.
7075 # On the NeXT, cc -E runs the code through the compiler's parser,
7076 # not just through cpp. "Syntax error" is here to catch this case.
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 #ifdef __STDC__
7080 # include <limits.h>
7081 #else
7082 # include <assert.h>
7083 #endif
7084 Syntax error
7085 _ACEOF
7086 if ac_fn_c_try_cpp "$LINENO"; then :
7087
7088 else
7089 # Broken: fails on valid input.
7090 continue
7091 fi
7092 rm -f conftest.err conftest.i conftest.$ac_ext
7093
7094 # OK, works on sane cases. Now check whether nonexistent headers
7095 # can be detected and how.
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 #include <ac_nonexistent.h>
7099 _ACEOF
7100 if ac_fn_c_try_cpp "$LINENO"; then :
7101 # Broken: success on invalid input.
7102 continue
7103 else
7104 # Passes both tests.
7105 ac_preproc_ok=:
7106 break
7107 fi
7108 rm -f conftest.err conftest.i conftest.$ac_ext
7109
7110 done
7111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7112 rm -f conftest.i conftest.err conftest.$ac_ext
7113 if $ac_preproc_ok; then :
7114 break
7115 fi
7116
7117 done
7118 ac_cv_prog_CPP=$CPP
7119
7120 fi
7121 CPP=$ac_cv_prog_CPP
7122 else
7123 ac_cv_prog_CPP=$CPP
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7126 $as_echo "$CPP" >&6; }
7127 ac_preproc_ok=false
7128 for ac_c_preproc_warn_flag in '' yes
7129 do
7130 # Use a header file that comes with gcc, so configuring glibc
7131 # with a fresh cross-compiler works.
7132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 # <limits.h> exists even on freestanding compilers.
7134 # On the NeXT, cc -E runs the code through the compiler's parser,
7135 # not just through cpp. "Syntax error" is here to catch this case.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #ifdef __STDC__
7139 # include <limits.h>
7140 #else
7141 # include <assert.h>
7142 #endif
7143 Syntax error
7144 _ACEOF
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7146
7147 else
7148 # Broken: fails on valid input.
7149 continue
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153 # OK, works on sane cases. Now check whether nonexistent headers
7154 # can be detected and how.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160 # Broken: success on invalid input.
7161 continue
7162 else
7163 # Passes both tests.
7164 ac_preproc_ok=:
7165 break
7166 fi
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169 done
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7173
7174 else
7175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7178 See \`config.log' for more details" "$LINENO" 5; }
7179 fi
7180
7181 ac_ext=c
7182 ac_cpp='$CPP $CPPFLAGS'
7183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7186
7187
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7189 $as_echo_n "checking for ANSI C header files... " >&6; }
7190 if ${ac_cv_header_stdc+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <stdlib.h>
7196 #include <stdarg.h>
7197 #include <string.h>
7198 #include <float.h>
7199
7200 int
7201 main ()
7202 {
7203
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"; then :
7209 ac_cv_header_stdc=yes
7210 else
7211 ac_cv_header_stdc=no
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214
7215 if test $ac_cv_header_stdc = yes; then
7216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #include <string.h>
7220
7221 _ACEOF
7222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7223 $EGREP "memchr" >/dev/null 2>&1; then :
7224
7225 else
7226 ac_cv_header_stdc=no
7227 fi
7228 rm -f conftest*
7229
7230 fi
7231
7232 if test $ac_cv_header_stdc = yes; then
7233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <stdlib.h>
7237
7238 _ACEOF
7239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7240 $EGREP "free" >/dev/null 2>&1; then :
7241
7242 else
7243 ac_cv_header_stdc=no
7244 fi
7245 rm -f conftest*
7246
7247 fi
7248
7249 if test $ac_cv_header_stdc = yes; then
7250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7251 if test "$cross_compiling" = yes; then :
7252 :
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #include <ctype.h>
7257 #include <stdlib.h>
7258 #if ((' ' & 0x0FF) == 0x020)
7259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7261 #else
7262 # define ISLOWER(c) \
7263 (('a' <= (c) && (c) <= 'i') \
7264 || ('j' <= (c) && (c) <= 'r') \
7265 || ('s' <= (c) && (c) <= 'z'))
7266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7267 #endif
7268
7269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7270 int
7271 main ()
7272 {
7273 int i;
7274 for (i = 0; i < 256; i++)
7275 if (XOR (islower (i), ISLOWER (i))
7276 || toupper (i) != TOUPPER (i))
7277 return 2;
7278 return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_run "$LINENO"; then :
7282
7283 else
7284 ac_cv_header_stdc=no
7285 fi
7286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7287 conftest.$ac_objext conftest.beam conftest.$ac_ext
7288 fi
7289
7290 fi
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7293 $as_echo "$ac_cv_header_stdc" >&6; }
7294 if test $ac_cv_header_stdc = yes; then
7295
7296 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7297
7298 fi
7299
7300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7302 inttypes.h stdint.h unistd.h
7303 do :
7304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7306 "
7307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7308 cat >>confdefs.h <<_ACEOF
7309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310 _ACEOF
7311
7312 fi
7313
7314 done
7315
7316
7317 for ac_header in dlfcn.h
7318 do :
7319 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7320 "
7321 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7322 cat >>confdefs.h <<_ACEOF
7323 #define HAVE_DLFCN_H 1
7324 _ACEOF
7325
7326 fi
7327
7328 done
7329
7330
7331
7332
7333
7334 # Set options
7335
7336
7337
7338 enable_dlopen=no
7339
7340
7341 enable_win32_dll=no
7342
7343
7344 # Check whether --enable-shared was given.
7345 if test "${enable_shared+set}" = set; then :
7346 enableval=$enable_shared; p=${PACKAGE-default}
7347 case $enableval in
7348 yes) enable_shared=yes ;;
7349 no) enable_shared=no ;;
7350 *)
7351 enable_shared=no
7352 # Look at the argument we got. We use all the common list separators.
7353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7354 for pkg in $enableval; do
7355 IFS="$lt_save_ifs"
7356 if test "X$pkg" = "X$p"; then
7357 enable_shared=yes
7358 fi
7359 done
7360 IFS="$lt_save_ifs"
7361 ;;
7362 esac
7363 else
7364 enable_shared=yes
7365 fi
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 # Check whether --enable-static was given.
7376 if test "${enable_static+set}" = set; then :
7377 enableval=$enable_static; p=${PACKAGE-default}
7378 case $enableval in
7379 yes) enable_static=yes ;;
7380 no) enable_static=no ;;
7381 *)
7382 enable_static=no
7383 # Look at the argument we got. We use all the common list separators.
7384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7385 for pkg in $enableval; do
7386 IFS="$lt_save_ifs"
7387 if test "X$pkg" = "X$p"; then
7388 enable_static=yes
7389 fi
7390 done
7391 IFS="$lt_save_ifs"
7392 ;;
7393 esac
7394 else
7395 enable_static=yes
7396 fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 # Check whether --with-pic was given.
7408 if test "${with_pic+set}" = set; then :
7409 withval=$with_pic; lt_p=${PACKAGE-default}
7410 case $withval in
7411 yes|no) pic_mode=$withval ;;
7412 *)
7413 pic_mode=default
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for lt_pkg in $withval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$lt_pkg" = "X$lt_p"; then
7419 pic_mode=yes
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
7423 ;;
7424 esac
7425 else
7426 pic_mode=default
7427 fi
7428
7429
7430 test -z "$pic_mode" && pic_mode=default
7431
7432
7433
7434
7435
7436
7437
7438 # Check whether --enable-fast-install was given.
7439 if test "${enable_fast_install+set}" = set; then :
7440 enableval=$enable_fast_install; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_fast_install=yes ;;
7443 no) enable_fast_install=no ;;
7444 *)
7445 enable_fast_install=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_fast_install=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
7455 ;;
7456 esac
7457 else
7458 enable_fast_install=yes
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # This can be used to rebuild libtool when needed
7472 LIBTOOL_DEPS="$ltmain"
7473
7474 # Always use our own libtool.
7475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 test -z "$LN_S" && LN_S="ln -s"
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 if test -n "${ZSH_VERSION+set}" ; then
7522 setopt NO_GLOB_SUBST
7523 fi
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7526 $as_echo_n "checking for objdir... " >&6; }
7527 if ${lt_cv_objdir+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 rm -f .libs 2>/dev/null
7531 mkdir .libs 2>/dev/null
7532 if test -d .libs; then
7533 lt_cv_objdir=.libs
7534 else
7535 # MS-DOS does not allow filenames that begin with a dot.
7536 lt_cv_objdir=_libs
7537 fi
7538 rmdir .libs 2>/dev/null
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7541 $as_echo "$lt_cv_objdir" >&6; }
7542 objdir=$lt_cv_objdir
7543
7544
7545
7546
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define LT_OBJDIR "$lt_cv_objdir/"
7550 _ACEOF
7551
7552
7553
7554
7555 case $host_os in
7556 aix3*)
7557 # AIX sometimes has problems with the GCC collect2 program. For some
7558 # reason, if we set the COLLECT_NAMES environment variable, the problems
7559 # vanish in a puff of smoke.
7560 if test "X${COLLECT_NAMES+set}" != Xset; then
7561 COLLECT_NAMES=
7562 export COLLECT_NAMES
7563 fi
7564 ;;
7565 esac
7566
7567 # Global variables:
7568 ofile=libtool
7569 can_build_shared=yes
7570
7571 # All known linkers require a `.a' archive for static linking (except MSVC,
7572 # which needs '.lib').
7573 libext=a
7574
7575 with_gnu_ld="$lt_cv_prog_gnu_ld"
7576
7577 old_CC="$CC"
7578 old_CFLAGS="$CFLAGS"
7579
7580 # Set sane defaults for various variables
7581 test -z "$CC" && CC=cc
7582 test -z "$LTCC" && LTCC=$CC
7583 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7584 test -z "$LD" && LD=ld
7585 test -z "$ac_objext" && ac_objext=o
7586
7587 for cc_temp in $compiler""; do
7588 case $cc_temp in
7589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7591 \-*) ;;
7592 *) break;;
7593 esac
7594 done
7595 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7596
7597
7598 # Only perform the check for file, if the check method requires it
7599 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7600 case $deplibs_check_method in
7601 file_magic*)
7602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7604 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7605 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 case $MAGIC_CMD in
7609 [\\/*] | ?:[\\/]*)
7610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7611 ;;
7612 *)
7613 lt_save_MAGIC_CMD="$MAGIC_CMD"
7614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7616 for ac_dir in $ac_dummy; do
7617 IFS="$lt_save_ifs"
7618 test -z "$ac_dir" && ac_dir=.
7619 if test -f $ac_dir/${ac_tool_prefix}file; then
7620 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7621 if test -n "$file_magic_test_file"; then
7622 case $deplibs_check_method in
7623 "file_magic "*)
7624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7627 $EGREP "$file_magic_regex" > /dev/null; then
7628 :
7629 else
7630 cat <<_LT_EOF 1>&2
7631
7632 *** Warning: the command libtool uses to detect shared libraries,
7633 *** $file_magic_cmd, produces output that libtool cannot recognize.
7634 *** The result is that libtool may fail to recognize shared libraries
7635 *** as such. This will affect the creation of libtool libraries that
7636 *** depend on shared libraries, but programs linked with such libtool
7637 *** libraries will work regardless of this problem. Nevertheless, you
7638 *** may want to report the problem to your system manager and/or to
7639 *** bug-libtool@gnu.org
7640
7641 _LT_EOF
7642 fi ;;
7643 esac
7644 fi
7645 break
7646 fi
7647 done
7648 IFS="$lt_save_ifs"
7649 MAGIC_CMD="$lt_save_MAGIC_CMD"
7650 ;;
7651 esac
7652 fi
7653
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if test -n "$MAGIC_CMD"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7657 $as_echo "$MAGIC_CMD" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664
7665
7666
7667 if test -z "$lt_cv_path_MAGIC_CMD"; then
7668 if test -n "$ac_tool_prefix"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7670 $as_echo_n "checking for file... " >&6; }
7671 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 case $MAGIC_CMD in
7675 [\\/*] | ?:[\\/]*)
7676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 lt_save_MAGIC_CMD="$MAGIC_CMD"
7680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7682 for ac_dir in $ac_dummy; do
7683 IFS="$lt_save_ifs"
7684 test -z "$ac_dir" && ac_dir=.
7685 if test -f $ac_dir/file; then
7686 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7687 if test -n "$file_magic_test_file"; then
7688 case $deplibs_check_method in
7689 "file_magic "*)
7690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7693 $EGREP "$file_magic_regex" > /dev/null; then
7694 :
7695 else
7696 cat <<_LT_EOF 1>&2
7697
7698 *** Warning: the command libtool uses to detect shared libraries,
7699 *** $file_magic_cmd, produces output that libtool cannot recognize.
7700 *** The result is that libtool may fail to recognize shared libraries
7701 *** as such. This will affect the creation of libtool libraries that
7702 *** depend on shared libraries, but programs linked with such libtool
7703 *** libraries will work regardless of this problem. Nevertheless, you
7704 *** may want to report the problem to your system manager and/or to
7705 *** bug-libtool@gnu.org
7706
7707 _LT_EOF
7708 fi ;;
7709 esac
7710 fi
7711 break
7712 fi
7713 done
7714 IFS="$lt_save_ifs"
7715 MAGIC_CMD="$lt_save_MAGIC_CMD"
7716 ;;
7717 esac
7718 fi
7719
7720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721 if test -n "$MAGIC_CMD"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7723 $as_echo "$MAGIC_CMD" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 else
7731 MAGIC_CMD=:
7732 fi
7733 fi
7734
7735 fi
7736 ;;
7737 esac
7738
7739 # Use C for the default configuration in the libtool script
7740
7741 lt_save_CC="$CC"
7742 ac_ext=c
7743 ac_cpp='$CPP $CPPFLAGS'
7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748
7749 # Source file extension for C test sources.
7750 ac_ext=c
7751
7752 # Object file extension for compiled C test sources.
7753 objext=o
7754 objext=$objext
7755
7756 # Code to be used in simple compile tests
7757 lt_simple_compile_test_code="int some_variable = 0;"
7758
7759 # Code to be used in simple link tests
7760 lt_simple_link_test_code='int main(){return(0);}'
7761
7762
7763
7764
7765
7766
7767
7768 # If no C compiler was specified, use CC.
7769 LTCC=${LTCC-"$CC"}
7770
7771 # If no C compiler flags were specified, use CFLAGS.
7772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7773
7774 # Allow CC to be a program name with arguments.
7775 compiler=$CC
7776
7777 # Save the default compiler, since it gets overwritten when the other
7778 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7779 compiler_DEFAULT=$CC
7780
7781 # save warnings/boilerplate of simple test code
7782 ac_outfile=conftest.$ac_objext
7783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7785 _lt_compiler_boilerplate=`cat conftest.err`
7786 $RM conftest*
7787
7788 ac_outfile=conftest.$ac_objext
7789 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7791 _lt_linker_boilerplate=`cat conftest.err`
7792 $RM -r conftest*
7793
7794
7795 if test -n "$compiler"; then
7796
7797 lt_prog_compiler_no_builtin_flag=
7798
7799 if test "$GCC" = yes; then
7800 case $cc_basename in
7801 nvcc*)
7802 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7803 *)
7804 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7805 esac
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7808 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7809 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 lt_cv_prog_compiler_rtti_exceptions=no
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7815 lt_compiler_flag="-fno-rtti -fno-exceptions"
7816 # Insert the option either (1) after the last *FLAGS variable, or
7817 # (2) before a word containing "conftest.", or (3) at the end.
7818 # Note that $ac_compile itself does not contain backslashes and begins
7819 # with a dollar sign (not a hyphen), so the echo should work correctly.
7820 # The option is referenced via a variable to avoid confusing sed.
7821 lt_compile=`echo "$ac_compile" | $SED \
7822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824 -e 's:$: $lt_compiler_flag:'`
7825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7826 (eval "$lt_compile" 2>conftest.err)
7827 ac_status=$?
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 if (exit $ac_status) && test -s "$ac_outfile"; then
7831 # The compiler can only warn and ignore the option if not recognized
7832 # So say no if there are warnings other than the usual output.
7833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7836 lt_cv_prog_compiler_rtti_exceptions=yes
7837 fi
7838 fi
7839 $RM conftest*
7840
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7843 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7844
7845 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7846 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7847 else
7848 :
7849 fi
7850
7851 fi
7852
7853
7854
7855
7856
7857
7858 lt_prog_compiler_wl=
7859 lt_prog_compiler_pic=
7860 lt_prog_compiler_static=
7861
7862
7863 if test "$GCC" = yes; then
7864 lt_prog_compiler_wl='-Wl,'
7865 lt_prog_compiler_static='-static'
7866
7867 case $host_os in
7868 aix*)
7869 # All AIX code is PIC.
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7873 fi
7874 ;;
7875
7876 amigaos*)
7877 case $host_cpu in
7878 powerpc)
7879 # see comment about AmigaOS4 .so support
7880 lt_prog_compiler_pic='-fPIC'
7881 ;;
7882 m68k)
7883 # FIXME: we need at least 68020 code to build shared libraries, but
7884 # adding the `-m68020' flag to GCC prevents building anything better,
7885 # like `-m68040'.
7886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7887 ;;
7888 esac
7889 ;;
7890
7891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7892 # PIC is the default for these OSes.
7893 ;;
7894
7895 mingw* | cygwin* | pw32* | os2* | cegcc*)
7896 # This hack is so that the source file can tell whether it is being
7897 # built for inclusion in a dll (and should export symbols for example).
7898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7899 # (--disable-auto-import) libraries
7900 lt_prog_compiler_pic='-DDLL_EXPORT'
7901 ;;
7902
7903 darwin* | rhapsody*)
7904 # PIC is the default on this platform
7905 # Common symbols not allowed in MH_DYLIB files
7906 lt_prog_compiler_pic='-fno-common'
7907 ;;
7908
7909 haiku*)
7910 # PIC is the default for Haiku.
7911 # The "-static" flag exists, but is broken.
7912 lt_prog_compiler_static=
7913 ;;
7914
7915 hpux*)
7916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7918 # sets the default TLS model and affects inlining.
7919 case $host_cpu in
7920 hppa*64*)
7921 # +Z the default
7922 ;;
7923 *)
7924 lt_prog_compiler_pic='-fPIC'
7925 ;;
7926 esac
7927 ;;
7928
7929 interix[3-9]*)
7930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7931 # Instead, we relocate shared libraries at runtime.
7932 ;;
7933
7934 msdosdjgpp*)
7935 # Just because we use GCC doesn't mean we suddenly get shared libraries
7936 # on systems that don't support them.
7937 lt_prog_compiler_can_build_shared=no
7938 enable_shared=no
7939 ;;
7940
7941 *nto* | *qnx*)
7942 # QNX uses GNU C++, but need to define -shared option too, otherwise
7943 # it will coredump.
7944 lt_prog_compiler_pic='-fPIC -shared'
7945 ;;
7946
7947 sysv4*MP*)
7948 if test -d /usr/nec; then
7949 lt_prog_compiler_pic=-Kconform_pic
7950 fi
7951 ;;
7952
7953 *)
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 esac
7957
7958 case $cc_basename in
7959 nvcc*) # Cuda Compiler Driver 2.2
7960 lt_prog_compiler_wl='-Xlinker '
7961 if test -n "$lt_prog_compiler_pic"; then
7962 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7963 fi
7964 ;;
7965 esac
7966 else
7967 # PORTME Check for flag to pass linker flags through the system compiler.
7968 case $host_os in
7969 aix*)
7970 lt_prog_compiler_wl='-Wl,'
7971 if test "$host_cpu" = ia64; then
7972 # AIX 5 now supports IA64 processor
7973 lt_prog_compiler_static='-Bstatic'
7974 else
7975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7976 fi
7977 ;;
7978
7979 mingw* | cygwin* | pw32* | os2* | cegcc*)
7980 # This hack is so that the source file can tell whether it is being
7981 # built for inclusion in a dll (and should export symbols for example).
7982 lt_prog_compiler_pic='-DDLL_EXPORT'
7983 ;;
7984
7985 hpux9* | hpux10* | hpux11*)
7986 lt_prog_compiler_wl='-Wl,'
7987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7988 # not for PA HP-UX.
7989 case $host_cpu in
7990 hppa*64*|ia64*)
7991 # +Z the default
7992 ;;
7993 *)
7994 lt_prog_compiler_pic='+Z'
7995 ;;
7996 esac
7997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7998 lt_prog_compiler_static='${wl}-a ${wl}archive'
7999 ;;
8000
8001 irix5* | irix6* | nonstopux*)
8002 lt_prog_compiler_wl='-Wl,'
8003 # PIC (with -KPIC) is the default.
8004 lt_prog_compiler_static='-non_shared'
8005 ;;
8006
8007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8008 case $cc_basename in
8009 # old Intel for x86_64 which still supported -KPIC.
8010 ecc*)
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-static'
8014 ;;
8015 # icc used to be incompatible with GCC.
8016 # ICC 10 doesn't accept -KPIC any more.
8017 icc* | ifort*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-fPIC'
8020 lt_prog_compiler_static='-static'
8021 ;;
8022 # Lahey Fortran 8.1.
8023 lf95*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='--shared'
8026 lt_prog_compiler_static='--static'
8027 ;;
8028 nagfor*)
8029 # NAG Fortran compiler
8030 lt_prog_compiler_wl='-Wl,-Wl,,'
8031 lt_prog_compiler_pic='-PIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 ;;
8034 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8035 # Portland Group compilers (*not* the Pentium gcc compiler,
8036 # which looks to be a dead project)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-fpic'
8039 lt_prog_compiler_static='-Bstatic'
8040 ;;
8041 ccc*)
8042 lt_prog_compiler_wl='-Wl,'
8043 # All Alpha code is PIC.
8044 lt_prog_compiler_static='-non_shared'
8045 ;;
8046 xl* | bgxl* | bgf* | mpixl*)
8047 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-qpic'
8050 lt_prog_compiler_static='-qstaticlink'
8051 ;;
8052 *)
8053 case `$CC -V 2>&1 | sed 5q` in
8054 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 lt_prog_compiler_wl=''
8059 ;;
8060 *Sun\ F* | *Sun*Fortran*)
8061 lt_prog_compiler_pic='-KPIC'
8062 lt_prog_compiler_static='-Bstatic'
8063 lt_prog_compiler_wl='-Qoption ld '
8064 ;;
8065 *Sun\ C*)
8066 # Sun C 5.9
8067 lt_prog_compiler_pic='-KPIC'
8068 lt_prog_compiler_static='-Bstatic'
8069 lt_prog_compiler_wl='-Wl,'
8070 ;;
8071 *Intel*\ [CF]*Compiler*)
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-fPIC'
8074 lt_prog_compiler_static='-static'
8075 ;;
8076 *Portland\ Group*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-fpic'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081 esac
8082 ;;
8083 esac
8084 ;;
8085
8086 newsos6)
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-Bstatic'
8089 ;;
8090
8091 *nto* | *qnx*)
8092 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 # it will coredump.
8094 lt_prog_compiler_pic='-fPIC -shared'
8095 ;;
8096
8097 osf3* | osf4* | osf5*)
8098 lt_prog_compiler_wl='-Wl,'
8099 # All OSF/1 code is PIC.
8100 lt_prog_compiler_static='-non_shared'
8101 ;;
8102
8103 rdos*)
8104 lt_prog_compiler_static='-non_shared'
8105 ;;
8106
8107 solaris*)
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 case $cc_basename in
8111 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8112 lt_prog_compiler_wl='-Qoption ld ';;
8113 *)
8114 lt_prog_compiler_wl='-Wl,';;
8115 esac
8116 ;;
8117
8118 sunos4*)
8119 lt_prog_compiler_wl='-Qoption ld '
8120 lt_prog_compiler_pic='-PIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 ;;
8123
8124 sysv4 | sysv4.2uw2* | sysv4.3*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 ;;
8129
8130 sysv4*MP*)
8131 if test -d /usr/nec ;then
8132 lt_prog_compiler_pic='-Kconform_pic'
8133 lt_prog_compiler_static='-Bstatic'
8134 fi
8135 ;;
8136
8137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 ;;
8142
8143 unicos*)
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_can_build_shared=no
8146 ;;
8147
8148 uts4*)
8149 lt_prog_compiler_pic='-pic'
8150 lt_prog_compiler_static='-Bstatic'
8151 ;;
8152
8153 *)
8154 lt_prog_compiler_can_build_shared=no
8155 ;;
8156 esac
8157 fi
8158
8159 case $host_os in
8160 # For platforms which do not support PIC, -DPIC is meaningless:
8161 *djgpp*)
8162 lt_prog_compiler_pic=
8163 ;;
8164 *)
8165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8166 ;;
8167 esac
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8171 if ${lt_cv_prog_compiler_pic+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8177 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8179
8180 #
8181 # Check to make sure the PIC flag actually works.
8182 #
8183 if test -n "$lt_prog_compiler_pic"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8185 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8186 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 lt_cv_prog_compiler_pic_works=no
8190 ac_outfile=conftest.$ac_objext
8191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8192 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8193 # Insert the option either (1) after the last *FLAGS variable, or
8194 # (2) before a word containing "conftest.", or (3) at the end.
8195 # Note that $ac_compile itself does not contain backslashes and begins
8196 # with a dollar sign (not a hyphen), so the echo should work correctly.
8197 # The option is referenced via a variable to avoid confusing sed.
8198 lt_compile=`echo "$ac_compile" | $SED \
8199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8201 -e 's:$: $lt_compiler_flag:'`
8202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8203 (eval "$lt_compile" 2>conftest.err)
8204 ac_status=$?
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 if (exit $ac_status) && test -s "$ac_outfile"; then
8208 # The compiler can only warn and ignore the option if not recognized
8209 # So say no if there are warnings other than the usual output.
8210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8213 lt_cv_prog_compiler_pic_works=yes
8214 fi
8215 fi
8216 $RM conftest*
8217
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8220 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8221
8222 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8223 case $lt_prog_compiler_pic in
8224 "" | " "*) ;;
8225 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8226 esac
8227 else
8228 lt_prog_compiler_pic=
8229 lt_prog_compiler_can_build_shared=no
8230 fi
8231
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 #
8245 # Check to make sure the static flag actually works.
8246 #
8247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8250 if ${lt_cv_prog_compiler_static_works+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 lt_cv_prog_compiler_static_works=no
8254 save_LDFLAGS="$LDFLAGS"
8255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8258 # The linker can only warn and ignore the option if not recognized
8259 # So say no if there are warnings
8260 if test -s conftest.err; then
8261 # Append any errors to the config.log.
8262 cat conftest.err 1>&5
8263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8265 if diff conftest.exp conftest.er2 >/dev/null; then
8266 lt_cv_prog_compiler_static_works=yes
8267 fi
8268 else
8269 lt_cv_prog_compiler_static_works=yes
8270 fi
8271 fi
8272 $RM -r conftest*
8273 LDFLAGS="$save_LDFLAGS"
8274
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8277 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8278
8279 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8280 :
8281 else
8282 lt_prog_compiler_static=
8283 fi
8284
8285
8286
8287
8288
8289
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8293 if ${lt_cv_prog_compiler_c_o+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 lt_cv_prog_compiler_c_o=no
8297 $RM -r conftest 2>/dev/null
8298 mkdir conftest
8299 cd conftest
8300 mkdir out
8301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8302
8303 lt_compiler_flag="-o out/conftest2.$ac_objext"
8304 # Insert the option either (1) after the last *FLAGS variable, or
8305 # (2) before a word containing "conftest.", or (3) at the end.
8306 # Note that $ac_compile itself does not contain backslashes and begins
8307 # with a dollar sign (not a hyphen), so the echo should work correctly.
8308 lt_compile=`echo "$ac_compile" | $SED \
8309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311 -e 's:$: $lt_compiler_flag:'`
8312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8313 (eval "$lt_compile" 2>out/conftest.err)
8314 ac_status=$?
8315 cat out/conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8318 then
8319 # The compiler can only warn and ignore the option if not recognized
8320 # So say no if there are warnings
8321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_c_o=yes
8325 fi
8326 fi
8327 chmod u+w . 2>&5
8328 $RM conftest*
8329 # SGI C++ compiler will create directory out/ii_files/ for
8330 # template instantiation
8331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8332 $RM out/* && rmdir out
8333 cd ..
8334 $RM -r conftest
8335 $RM conftest*
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8340
8341
8342
8343
8344
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8348 if ${lt_cv_prog_compiler_c_o+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 lt_cv_prog_compiler_c_o=no
8352 $RM -r conftest 2>/dev/null
8353 mkdir conftest
8354 cd conftest
8355 mkdir out
8356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357
8358 lt_compiler_flag="-o out/conftest2.$ac_objext"
8359 # Insert the option either (1) after the last *FLAGS variable, or
8360 # (2) before a word containing "conftest.", or (3) at the end.
8361 # Note that $ac_compile itself does not contain backslashes and begins
8362 # with a dollar sign (not a hyphen), so the echo should work correctly.
8363 lt_compile=`echo "$ac_compile" | $SED \
8364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366 -e 's:$: $lt_compiler_flag:'`
8367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8368 (eval "$lt_compile" 2>out/conftest.err)
8369 ac_status=$?
8370 cat out/conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8373 then
8374 # The compiler can only warn and ignore the option if not recognized
8375 # So say no if there are warnings
8376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8379 lt_cv_prog_compiler_c_o=yes
8380 fi
8381 fi
8382 chmod u+w . 2>&5
8383 $RM conftest*
8384 # SGI C++ compiler will create directory out/ii_files/ for
8385 # template instantiation
8386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8387 $RM out/* && rmdir out
8388 cd ..
8389 $RM -r conftest
8390 $RM conftest*
8391
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8395
8396
8397
8398
8399 hard_links="nottested"
8400 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8401 # do not overwrite the value of need_locks provided by the user
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8403 $as_echo_n "checking if we can lock with hard links... " >&6; }
8404 hard_links=yes
8405 $RM conftest*
8406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8407 touch conftest.a
8408 ln conftest.a conftest.b 2>&5 || hard_links=no
8409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8411 $as_echo "$hard_links" >&6; }
8412 if test "$hard_links" = no; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8414 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8415 need_locks=warn
8416 fi
8417 else
8418 need_locks=no
8419 fi
8420
8421
8422
8423
8424
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8428
8429 runpath_var=
8430 allow_undefined_flag=
8431 always_export_symbols=no
8432 archive_cmds=
8433 archive_expsym_cmds=
8434 compiler_needs_object=no
8435 enable_shared_with_static_runtimes=no
8436 export_dynamic_flag_spec=
8437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8438 hardcode_automatic=no
8439 hardcode_direct=no
8440 hardcode_direct_absolute=no
8441 hardcode_libdir_flag_spec=
8442 hardcode_libdir_separator=
8443 hardcode_minus_L=no
8444 hardcode_shlibpath_var=unsupported
8445 inherit_rpath=no
8446 link_all_deplibs=unknown
8447 module_cmds=
8448 module_expsym_cmds=
8449 old_archive_from_new_cmds=
8450 old_archive_from_expsyms_cmds=
8451 thread_safe_flag_spec=
8452 whole_archive_flag_spec=
8453 # include_expsyms should be a list of space-separated symbols to be *always*
8454 # included in the symbol list
8455 include_expsyms=
8456 # exclude_expsyms can be an extended regexp of symbols to exclude
8457 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8458 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8459 # as well as any symbol that contains `d'.
8460 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8461 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8462 # platforms (ab)use it in PIC code, but their linkers get confused if
8463 # the symbol is explicitly referenced. Since portable code cannot
8464 # rely on this symbol name, it's probably fine to never include it in
8465 # preloaded symbol tables.
8466 # Exclude shared library initialization/finalization symbols.
8467 extract_expsyms_cmds=
8468
8469 case $host_os in
8470 cygwin* | mingw* | pw32* | cegcc*)
8471 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8472 # When not using gcc, we currently assume that we are using
8473 # Microsoft Visual C++.
8474 if test "$GCC" != yes; then
8475 with_gnu_ld=no
8476 fi
8477 ;;
8478 interix*)
8479 # we just hope/assume this is gcc and not c89 (= MSVC++)
8480 with_gnu_ld=yes
8481 ;;
8482 openbsd*)
8483 with_gnu_ld=no
8484 ;;
8485 esac
8486
8487 ld_shlibs=yes
8488
8489 # On some targets, GNU ld is compatible enough with the native linker
8490 # that we're better off using the native interface for both.
8491 lt_use_gnu_ld_interface=no
8492 if test "$with_gnu_ld" = yes; then
8493 case $host_os in
8494 aix*)
8495 # The AIX port of GNU ld has always aspired to compatibility
8496 # with the native linker. However, as the warning in the GNU ld
8497 # block says, versions before 2.19.5* couldn't really create working
8498 # shared libraries, regardless of the interface used.
8499 case `$LD -v 2>&1` in
8500 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8501 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8502 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8503 *)
8504 lt_use_gnu_ld_interface=yes
8505 ;;
8506 esac
8507 ;;
8508 *)
8509 lt_use_gnu_ld_interface=yes
8510 ;;
8511 esac
8512 fi
8513
8514 if test "$lt_use_gnu_ld_interface" = yes; then
8515 # If archive_cmds runs LD, not CC, wlarc should be empty
8516 wlarc='${wl}'
8517
8518 # Set some defaults for GNU ld with shared library support. These
8519 # are reset later if shared libraries are not supported. Putting them
8520 # here allows them to be overridden if necessary.
8521 runpath_var=LD_RUN_PATH
8522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8523 export_dynamic_flag_spec='${wl}--export-dynamic'
8524 # ancient GNU ld didn't support --whole-archive et. al.
8525 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8526 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8527 else
8528 whole_archive_flag_spec=
8529 fi
8530 supports_anon_versioning=no
8531 case `$LD -v 2>&1` in
8532 *GNU\ gold*) supports_anon_versioning=yes ;;
8533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8536 *\ 2.11.*) ;; # other 2.11 versions
8537 *) supports_anon_versioning=yes ;;
8538 esac
8539
8540 # See if GNU ld supports shared libraries.
8541 case $host_os in
8542 aix[3-9]*)
8543 # On AIX/PPC, the GNU linker is very broken
8544 if test "$host_cpu" != ia64; then
8545 ld_shlibs=no
8546 cat <<_LT_EOF 1>&2
8547
8548 *** Warning: the GNU linker, at least up to release 2.19, is reported
8549 *** to be unable to reliably create shared libraries on AIX.
8550 *** Therefore, libtool is disabling shared libraries support. If you
8551 *** really care for shared libraries, you may want to install binutils
8552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8553 *** You will then need to restart the configuration process.
8554
8555 _LT_EOF
8556 fi
8557 ;;
8558
8559 amigaos*)
8560 case $host_cpu in
8561 powerpc)
8562 # see comment about AmigaOS4 .so support
8563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564 archive_expsym_cmds=''
8565 ;;
8566 m68k)
8567 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)'
8568 hardcode_libdir_flag_spec='-L$libdir'
8569 hardcode_minus_L=yes
8570 ;;
8571 esac
8572 ;;
8573
8574 beos*)
8575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8576 allow_undefined_flag=unsupported
8577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8578 # support --undefined. This deserves some investigation. FIXME
8579 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580 else
8581 ld_shlibs=no
8582 fi
8583 ;;
8584
8585 cygwin* | mingw* | pw32* | cegcc*)
8586 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8587 # as there is no search path for DLLs.
8588 hardcode_libdir_flag_spec='-L$libdir'
8589 export_dynamic_flag_spec='${wl}--export-all-symbols'
8590 allow_undefined_flag=unsupported
8591 always_export_symbols=no
8592 enable_shared_with_static_runtimes=yes
8593 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'
8594 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8595
8596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598 # If the export-symbols file already is a .def file (1st line
8599 # is EXPORTS), use it as is; otherwise, prepend...
8600 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8601 cp $export_symbols $output_objdir/$soname.def;
8602 else
8603 echo EXPORTS > $output_objdir/$soname.def;
8604 cat $export_symbols >> $output_objdir/$soname.def;
8605 fi~
8606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 else
8608 ld_shlibs=no
8609 fi
8610 ;;
8611
8612 haiku*)
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 link_all_deplibs=yes
8615 ;;
8616
8617 interix[3-9]*)
8618 hardcode_direct=no
8619 hardcode_shlibpath_var=no
8620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8621 export_dynamic_flag_spec='${wl}-E'
8622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8623 # Instead, shared libraries are loaded at an image base (0x10000000 by
8624 # default) and relocated if they conflict, which is a slow very memory
8625 # consuming and fragmenting process. To avoid this, we pick a random,
8626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8628 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8629 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'
8630 ;;
8631
8632 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8633 tmp_diet=no
8634 if test "$host_os" = linux-dietlibc; then
8635 case $cc_basename in
8636 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8637 esac
8638 fi
8639 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8640 && test "$tmp_diet" = no
8641 then
8642 tmp_addflag=' $pic_flag'
8643 tmp_sharedflag='-shared'
8644 case $cc_basename,$host_cpu in
8645 pgcc*) # Portland Group C compiler
8646 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'
8647 tmp_addflag=' $pic_flag'
8648 ;;
8649 pgf77* | pgf90* | pgf95* | pgfortran*)
8650 # Portland Group f77 and f90 compilers
8651 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'
8652 tmp_addflag=' $pic_flag -Mnomain' ;;
8653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8654 tmp_addflag=' -i_dynamic' ;;
8655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8656 tmp_addflag=' -i_dynamic -nofor_main' ;;
8657 ifc* | ifort*) # Intel Fortran compiler
8658 tmp_addflag=' -nofor_main' ;;
8659 lf95*) # Lahey Fortran 8.1
8660 whole_archive_flag_spec=
8661 tmp_sharedflag='--shared' ;;
8662 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8663 tmp_sharedflag='-qmkshrobj'
8664 tmp_addflag= ;;
8665 nvcc*) # Cuda Compiler Driver 2.2
8666 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'
8667 compiler_needs_object=yes
8668 ;;
8669 esac
8670 case `$CC -V 2>&1 | sed 5q` in
8671 *Sun\ C*) # Sun C 5.9
8672 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'
8673 compiler_needs_object=yes
8674 tmp_sharedflag='-G' ;;
8675 *Sun\ F*) # Sun Fortran 8.3
8676 tmp_sharedflag='-G' ;;
8677 esac
8678 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679
8680 if test "x$supports_anon_versioning" = xyes; then
8681 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8683 echo "local: *; };" >> $output_objdir/$libname.ver~
8684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8685 fi
8686
8687 case $cc_basename in
8688 xlf* | bgf* | bgxlf* | mpixlf*)
8689 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8690 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8693 if test "x$supports_anon_versioning" = xyes; then
8694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8696 echo "local: *; };" >> $output_objdir/$libname.ver~
8697 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 fi
8699 ;;
8700 esac
8701 else
8702 ld_shlibs=no
8703 fi
8704 ;;
8705
8706 netbsd*)
8707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8708 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8709 wlarc=
8710 else
8711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 fi
8714 ;;
8715
8716 solaris*)
8717 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8718 ld_shlibs=no
8719 cat <<_LT_EOF 1>&2
8720
8721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8722 *** create shared libraries on Solaris systems. Therefore, libtool
8723 *** is disabling shared libraries support. We urge you to upgrade GNU
8724 *** binutils to release 2.9.1 or newer. Another option is to modify
8725 *** your PATH or compiler configuration so that the native linker is
8726 *** used, and then restart.
8727
8728 _LT_EOF
8729 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 else
8733 ld_shlibs=no
8734 fi
8735 ;;
8736
8737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8738 case `$LD -v 2>&1` in
8739 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8740 ld_shlibs=no
8741 cat <<_LT_EOF 1>&2
8742
8743 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8744 *** reliably create shared libraries on SCO systems. Therefore, libtool
8745 *** is disabling shared libraries support. We urge you to upgrade GNU
8746 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8747 *** your PATH or compiler configuration so that the native linker is
8748 *** used, and then restart.
8749
8750 _LT_EOF
8751 ;;
8752 *)
8753 # For security reasons, it is highly recommended that you always
8754 # use absolute paths for naming shared libraries, and exclude the
8755 # DT_RUNPATH tag from executables and libraries. But doing so
8756 # requires that you compile everything twice, which is a pain.
8757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8761 else
8762 ld_shlibs=no
8763 fi
8764 ;;
8765 esac
8766 ;;
8767
8768 sunos4*)
8769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770 wlarc=
8771 hardcode_direct=yes
8772 hardcode_shlibpath_var=no
8773 ;;
8774
8775 *)
8776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779 else
8780 ld_shlibs=no
8781 fi
8782 ;;
8783 esac
8784
8785 if test "$ld_shlibs" = no; then
8786 runpath_var=
8787 hardcode_libdir_flag_spec=
8788 export_dynamic_flag_spec=
8789 whole_archive_flag_spec=
8790 fi
8791 else
8792 # PORTME fill in a description of your system's linker (not GNU ld)
8793 case $host_os in
8794 aix3*)
8795 allow_undefined_flag=unsupported
8796 always_export_symbols=yes
8797 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'
8798 # Note: this linker hardcodes the directories in LIBPATH if there
8799 # are no directories specified by -L.
8800 hardcode_minus_L=yes
8801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8802 # Neither direct hardcoding nor static linking is supported with a
8803 # broken collect2.
8804 hardcode_direct=unsupported
8805 fi
8806 ;;
8807
8808 aix[4-9]*)
8809 if test "$host_cpu" = ia64; then
8810 # On IA64, the linker does run time linking by default, so we don't
8811 # have to do anything special.
8812 aix_use_runtimelinking=no
8813 exp_sym_flag='-Bexport'
8814 no_entry_flag=""
8815 else
8816 # If we're using GNU nm, then we don't want the "-C" option.
8817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8818 # Also, AIX nm treats weak defined symbols like other global
8819 # defined symbols, whereas GNU nm marks them as "W".
8820 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8821 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8822 else
8823 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8824 fi
8825 aix_use_runtimelinking=no
8826
8827 # Test if we are trying to use run time linking or normal
8828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8829 # need to do runtime linking.
8830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8831 for ld_flag in $LDFLAGS; do
8832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8833 aix_use_runtimelinking=yes
8834 break
8835 fi
8836 done
8837 ;;
8838 esac
8839
8840 exp_sym_flag='-bexport'
8841 no_entry_flag='-bnoentry'
8842 fi
8843
8844 # When large executables or shared objects are built, AIX ld can
8845 # have problems creating the table of contents. If linking a library
8846 # or program results in "error TOC overflow" add -mminimal-toc to
8847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8849
8850 archive_cmds=''
8851 hardcode_direct=yes
8852 hardcode_direct_absolute=yes
8853 hardcode_libdir_separator=':'
8854 link_all_deplibs=yes
8855 file_list_spec='${wl}-f,'
8856
8857 if test "$GCC" = yes; then
8858 case $host_os in aix4.[012]|aix4.[012].*)
8859 # We only want to do this on AIX 4.2 and lower, the check
8860 # below for broken collect2 doesn't work under 4.3+
8861 collect2name=`${CC} -print-prog-name=collect2`
8862 if test -f "$collect2name" &&
8863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8864 then
8865 # We have reworked collect2
8866 :
8867 else
8868 # We have old collect2
8869 hardcode_direct=unsupported
8870 # It fails to find uninstalled libraries when the uninstalled
8871 # path is not listed in the libpath. Setting hardcode_minus_L
8872 # to unsupported forces relinking
8873 hardcode_minus_L=yes
8874 hardcode_libdir_flag_spec='-L$libdir'
8875 hardcode_libdir_separator=
8876 fi
8877 ;;
8878 esac
8879 shared_flag='-shared'
8880 if test "$aix_use_runtimelinking" = yes; then
8881 shared_flag="$shared_flag "'${wl}-G'
8882 fi
8883 else
8884 # not using gcc
8885 if test "$host_cpu" = ia64; then
8886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8887 # chokes on -Wl,-G. The following line is correct:
8888 shared_flag='-G'
8889 else
8890 if test "$aix_use_runtimelinking" = yes; then
8891 shared_flag='${wl}-G'
8892 else
8893 shared_flag='${wl}-bM:SRE'
8894 fi
8895 fi
8896 fi
8897
8898 export_dynamic_flag_spec='${wl}-bexpall'
8899 # It seems that -bexpall does not export symbols beginning with
8900 # underscore (_), so it is better to generate a list of symbols to export.
8901 always_export_symbols=yes
8902 if test "$aix_use_runtimelinking" = yes; then
8903 # Warning - without using the other runtime loading flags (-brtl),
8904 # -berok will link without error, but may produce a broken library.
8905 allow_undefined_flag='-berok'
8906 # Determine the default libpath from the value encoded in an
8907 # empty executable.
8908 if test "${lt_cv_aix_libpath+set}" = set; then
8909 aix_libpath=$lt_cv_aix_libpath
8910 else
8911 if ${lt_cv_aix_libpath_+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916
8917 int
8918 main ()
8919 {
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_c_try_link "$LINENO"; then :
8926
8927 lt_aix_libpath_sed='
8928 /Import File Strings/,/^$/ {
8929 /^0/ {
8930 s/^0 *\([^ ]*\) *$/\1/
8931 p
8932 }
8933 }'
8934 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8935 # Check for a 64-bit object if we didn't find anything.
8936 if test -z "$lt_cv_aix_libpath_"; then
8937 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 fi
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 if test -z "$lt_cv_aix_libpath_"; then
8943 lt_cv_aix_libpath_="/usr/lib:/lib"
8944 fi
8945
8946 fi
8947
8948 aix_libpath=$lt_cv_aix_libpath_
8949 fi
8950
8951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8953 else
8954 if test "$host_cpu" = ia64; then
8955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956 allow_undefined_flag="-z nodefs"
8957 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"
8958 else
8959 # Determine the default libpath from the value encoded in an
8960 # empty executable.
8961 if test "${lt_cv_aix_libpath+set}" = set; then
8962 aix_libpath=$lt_cv_aix_libpath
8963 else
8964 if ${lt_cv_aix_libpath_+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969
8970 int
8971 main ()
8972 {
8973
8974 ;
8975 return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979
8980 lt_aix_libpath_sed='
8981 /Import File Strings/,/^$/ {
8982 /^0/ {
8983 s/^0 *\([^ ]*\) *$/\1/
8984 p
8985 }
8986 }'
8987 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 # Check for a 64-bit object if we didn't find anything.
8989 if test -z "$lt_cv_aix_libpath_"; then
8990 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 fi
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 if test -z "$lt_cv_aix_libpath_"; then
8996 lt_cv_aix_libpath_="/usr/lib:/lib"
8997 fi
8998
8999 fi
9000
9001 aix_libpath=$lt_cv_aix_libpath_
9002 fi
9003
9004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9005 # Warning - without using the other run time loading flags,
9006 # -berok will link without error, but may produce a broken library.
9007 no_undefined_flag=' ${wl}-bernotok'
9008 allow_undefined_flag=' ${wl}-berok'
9009 if test "$with_gnu_ld" = yes; then
9010 # We only use this code for GNU lds that support --whole-archive.
9011 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9012 else
9013 # Exported symbols can be pulled into shared objects from archives
9014 whole_archive_flag_spec='$convenience'
9015 fi
9016 archive_cmds_need_lc=yes
9017 # This is similar to how AIX traditionally builds its shared libraries.
9018 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9019 fi
9020 fi
9021 ;;
9022
9023 amigaos*)
9024 case $host_cpu in
9025 powerpc)
9026 # see comment about AmigaOS4 .so support
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds=''
9029 ;;
9030 m68k)
9031 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)'
9032 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_minus_L=yes
9034 ;;
9035 esac
9036 ;;
9037
9038 bsdi[45]*)
9039 export_dynamic_flag_spec=-rdynamic
9040 ;;
9041
9042 cygwin* | mingw* | pw32* | cegcc*)
9043 # When not using gcc, we currently assume that we are using
9044 # Microsoft Visual C++.
9045 # hardcode_libdir_flag_spec is actually meaningless, as there is
9046 # no search path for DLLs.
9047 case $cc_basename in
9048 cl*)
9049 # Native MSVC
9050 hardcode_libdir_flag_spec=' '
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 file_list_spec='@'
9054 # Tell ltmain to make .lib files, not .a files.
9055 libext=lib
9056 # Tell ltmain to make .dll files, not .so files.
9057 shrext_cmds=".dll"
9058 # FIXME: Setting linknames here is a bad hack.
9059 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9060 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9062 else
9063 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9064 fi~
9065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9066 linknames='
9067 # The linker will not automatically build a static lib if we build a DLL.
9068 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9069 enable_shared_with_static_runtimes=yes
9070 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9072 # Don't use ranlib
9073 old_postinstall_cmds='chmod 644 $oldlib'
9074 postlink_cmds='lt_outputfile="@OUTPUT@"~
9075 lt_tool_outputfile="@TOOL_OUTPUT@"~
9076 case $lt_outputfile in
9077 *.exe|*.EXE) ;;
9078 *)
9079 lt_outputfile="$lt_outputfile.exe"
9080 lt_tool_outputfile="$lt_tool_outputfile.exe"
9081 ;;
9082 esac~
9083 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9084 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9085 $RM "$lt_outputfile.manifest";
9086 fi'
9087 ;;
9088 *)
9089 # Assume MSVC wrapper
9090 hardcode_libdir_flag_spec=' '
9091 allow_undefined_flag=unsupported
9092 # Tell ltmain to make .lib files, not .a files.
9093 libext=lib
9094 # Tell ltmain to make .dll files, not .so files.
9095 shrext_cmds=".dll"
9096 # FIXME: Setting linknames here is a bad hack.
9097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9098 # The linker will automatically build a .lib file if we build a DLL.
9099 old_archive_from_new_cmds='true'
9100 # FIXME: Should let the user specify the lib program.
9101 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9102 enable_shared_with_static_runtimes=yes
9103 ;;
9104 esac
9105 ;;
9106
9107 darwin* | rhapsody*)
9108
9109
9110 archive_cmds_need_lc=no
9111 hardcode_direct=no
9112 hardcode_automatic=yes
9113 hardcode_shlibpath_var=unsupported
9114 if test "$lt_cv_ld_force_load" = "yes"; then
9115 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\"`'
9116
9117 else
9118 whole_archive_flag_spec=''
9119 fi
9120 link_all_deplibs=yes
9121 allow_undefined_flag="$_lt_dar_allow_undefined"
9122 case $cc_basename in
9123 ifort*) _lt_dar_can_shared=yes ;;
9124 *) _lt_dar_can_shared=$GCC ;;
9125 esac
9126 if test "$_lt_dar_can_shared" = "yes"; then
9127 output_verbose_link_cmd=func_echo_all
9128 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9129 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9130 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}"
9131 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}"
9132
9133 else
9134 ld_shlibs=no
9135 fi
9136
9137 ;;
9138
9139 dgux*)
9140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9146 # support. Future versions do this automatically, but an explicit c++rt0.o
9147 # does not break anything, and helps significantly (at the cost of a little
9148 # extra space).
9149 freebsd2.2*)
9150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9151 hardcode_libdir_flag_spec='-R$libdir'
9152 hardcode_direct=yes
9153 hardcode_shlibpath_var=no
9154 ;;
9155
9156 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9157 freebsd2.*)
9158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9159 hardcode_direct=yes
9160 hardcode_minus_L=yes
9161 hardcode_shlibpath_var=no
9162 ;;
9163
9164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9165 freebsd* | dragonfly*)
9166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9167 hardcode_libdir_flag_spec='-R$libdir'
9168 hardcode_direct=yes
9169 hardcode_shlibpath_var=no
9170 ;;
9171
9172 hpux9*)
9173 if test "$GCC" = yes; then
9174 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9175 else
9176 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9177 fi
9178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179 hardcode_libdir_separator=:
9180 hardcode_direct=yes
9181
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9185 export_dynamic_flag_spec='${wl}-E'
9186 ;;
9187
9188 hpux10*)
9189 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9190 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9191 else
9192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9193 fi
9194 if test "$with_gnu_ld" = no; then
9195 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9196 hardcode_libdir_separator=:
9197 hardcode_direct=yes
9198 hardcode_direct_absolute=yes
9199 export_dynamic_flag_spec='${wl}-E'
9200 # hardcode_minus_L: Not really in the search PATH,
9201 # but as the default location of the library.
9202 hardcode_minus_L=yes
9203 fi
9204 ;;
9205
9206 hpux11*)
9207 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9208 case $host_cpu in
9209 hppa*64*)
9210 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 ;;
9212 ia64*)
9213 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9214 ;;
9215 *)
9216 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9217 ;;
9218 esac
9219 else
9220 case $host_cpu in
9221 hppa*64*)
9222 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 ;;
9224 ia64*)
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9226 ;;
9227 *)
9228
9229 # Older versions of the 11.00 compiler do not understand -b yet
9230 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9232 $as_echo_n "checking if $CC understands -b... " >&6; }
9233 if ${lt_cv_prog_compiler__b+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 lt_cv_prog_compiler__b=no
9237 save_LDFLAGS="$LDFLAGS"
9238 LDFLAGS="$LDFLAGS -b"
9239 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9241 # The linker can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
9243 if test -s conftest.err; then
9244 # Append any errors to the config.log.
9245 cat conftest.err 1>&5
9246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9248 if diff conftest.exp conftest.er2 >/dev/null; then
9249 lt_cv_prog_compiler__b=yes
9250 fi
9251 else
9252 lt_cv_prog_compiler__b=yes
9253 fi
9254 fi
9255 $RM -r conftest*
9256 LDFLAGS="$save_LDFLAGS"
9257
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9260 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9261
9262 if test x"$lt_cv_prog_compiler__b" = xyes; then
9263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9264 else
9265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9266 fi
9267
9268 ;;
9269 esac
9270 fi
9271 if test "$with_gnu_ld" = no; then
9272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9273 hardcode_libdir_separator=:
9274
9275 case $host_cpu in
9276 hppa*64*|ia64*)
9277 hardcode_direct=no
9278 hardcode_shlibpath_var=no
9279 ;;
9280 *)
9281 hardcode_direct=yes
9282 hardcode_direct_absolute=yes
9283 export_dynamic_flag_spec='${wl}-E'
9284
9285 # hardcode_minus_L: Not really in the search PATH,
9286 # but as the default location of the library.
9287 hardcode_minus_L=yes
9288 ;;
9289 esac
9290 fi
9291 ;;
9292
9293 irix5* | irix6* | nonstopux*)
9294 if test "$GCC" = yes; then
9295 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'
9296 # Try to use the -exported_symbol ld option, if it does not
9297 # work, assume that -exports_file does not work either and
9298 # implicitly export all symbols.
9299 # This should be the same for all languages, so no per-tag cache variable.
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9301 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9302 if ${lt_cv_irix_exported_symbol+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 save_LDFLAGS="$LDFLAGS"
9306 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 int foo (void) { return 0; }
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 lt_cv_irix_exported_symbol=yes
9313 else
9314 lt_cv_irix_exported_symbol=no
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LDFLAGS="$save_LDFLAGS"
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9321 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9322 if test "$lt_cv_irix_exported_symbol" = yes; then
9323 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'
9324 fi
9325 else
9326 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'
9327 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'
9328 fi
9329 archive_cmds_need_lc='no'
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 hardcode_libdir_separator=:
9332 inherit_rpath=yes
9333 link_all_deplibs=yes
9334 ;;
9335
9336 netbsd*)
9337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9339 else
9340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9341 fi
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 newsos6)
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_direct=yes
9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 *nto* | *qnx*)
9356 ;;
9357
9358 openbsd*)
9359 if test -f /usr/libexec/ld.so; then
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 hardcode_direct_absolute=yes
9363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367 export_dynamic_flag_spec='${wl}-E'
9368 else
9369 case $host_os in
9370 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 ;;
9374 *)
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377 ;;
9378 esac
9379 fi
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 os2*)
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9388 allow_undefined_flag=unsupported
9389 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9391 ;;
9392
9393 osf3*)
9394 if test "$GCC" = yes; then
9395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9396 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'
9397 else
9398 allow_undefined_flag=' -expect_unresolved \*'
9399 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'
9400 fi
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 hardcode_libdir_separator=:
9404 ;;
9405
9406 osf4* | osf5*) # as osf3* with the addition of -msym flag
9407 if test "$GCC" = yes; then
9408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9409 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'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 else
9412 allow_undefined_flag=' -expect_unresolved \*'
9413 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'
9414 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~
9415 $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'
9416
9417 # Both c and cxx compiler support -rpath directly
9418 hardcode_libdir_flag_spec='-rpath $libdir'
9419 fi
9420 archive_cmds_need_lc='no'
9421 hardcode_libdir_separator=:
9422 ;;
9423
9424 solaris*)
9425 no_undefined_flag=' -z defs'
9426 if test "$GCC" = yes; then
9427 wlarc='${wl}'
9428 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9430 $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'
9431 else
9432 case `$CC -V 2>&1` in
9433 *"Compilers 5.0"*)
9434 wlarc=''
9435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9438 ;;
9439 *)
9440 wlarc='${wl}'
9441 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9443 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9444 ;;
9445 esac
9446 fi
9447 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9449 case $host_os in
9450 solaris2.[0-5] | solaris2.[0-5].*) ;;
9451 *)
9452 # The compiler driver will combine and reorder linker options,
9453 # but understands `-z linker_flag'. GCC discards it without `$wl',
9454 # but is careful enough not to reorder.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
9456 if test "$GCC" = yes; then
9457 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9458 else
9459 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9460 fi
9461 ;;
9462 esac
9463 link_all_deplibs=yes
9464 ;;
9465
9466 sunos4*)
9467 if test "x$host_vendor" = xsequent; then
9468 # Use $CC to link under sequent, because it throws in some extra .o
9469 # files that make .init and .fini sections work.
9470 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9471 else
9472 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9473 fi
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_direct=yes
9476 hardcode_minus_L=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 sysv4)
9481 case $host_vendor in
9482 sni)
9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_direct=yes # is this really true???
9485 ;;
9486 siemens)
9487 ## LD is ld it makes a PLAMLIB
9488 ## CC just makes a GrossModule.
9489 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9490 reload_cmds='$CC -r -o $output$reload_objs'
9491 hardcode_direct=no
9492 ;;
9493 motorola)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9496 ;;
9497 esac
9498 runpath_var='LD_RUN_PATH'
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 sysv4.3*)
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var=no
9505 export_dynamic_flag_spec='-Bexport'
9506 ;;
9507
9508 sysv4*MP*)
9509 if test -d /usr/nec; then
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9512 runpath_var=LD_RUN_PATH
9513 hardcode_runpath_var=yes
9514 ld_shlibs=yes
9515 fi
9516 ;;
9517
9518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9519 no_undefined_flag='${wl}-z,text'
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 runpath_var='LD_RUN_PATH'
9523
9524 if test "$GCC" = yes; then
9525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6*)
9534 # Note: We can NOT use -z defs as we might desire, because we do not
9535 # link with -lc, and that would cause any symbols used from libc to
9536 # always be unresolved, which means just about no library would
9537 # ever link correctly. If we're not using GNU ld we use -z text
9538 # though, which does catch some bad symbols but isn't as heavy-handed
9539 # as -z defs.
9540 no_undefined_flag='${wl}-z,text'
9541 allow_undefined_flag='${wl}-z,nodefs'
9542 archive_cmds_need_lc=no
9543 hardcode_shlibpath_var=no
9544 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9545 hardcode_libdir_separator=':'
9546 link_all_deplibs=yes
9547 export_dynamic_flag_spec='${wl}-Bexport'
9548 runpath_var='LD_RUN_PATH'
9549
9550 if test "$GCC" = yes; then
9551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 else
9554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 fi
9557 ;;
9558
9559 uts4*)
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 *)
9566 ld_shlibs=no
9567 ;;
9568 esac
9569
9570 if test x$host_vendor = xsni; then
9571 case $host in
9572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9573 export_dynamic_flag_spec='${wl}-Blargedynsym'
9574 ;;
9575 esac
9576 fi
9577 fi
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9580 $as_echo "$ld_shlibs" >&6; }
9581 test "$ld_shlibs" = no && can_build_shared=no
9582
9583 with_gnu_ld=$with_gnu_ld
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 #
9600 # Do we need to explicitly link libc?
9601 #
9602 case "x$archive_cmds_need_lc" in
9603 x|xyes)
9604 # Assume -lc should be added
9605 archive_cmds_need_lc=yes
9606
9607 if test "$enable_shared" = yes && test "$GCC" = yes; then
9608 case $archive_cmds in
9609 *'~'*)
9610 # FIXME: we may have to deal with multi-command sequences.
9611 ;;
9612 '$CC '*)
9613 # Test whether the compiler implicitly links with -lc since on some
9614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9615 # to ld, don't add -lc before -lgcc.
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9617 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9618 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 $RM conftest*
9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9623
9624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9625 (eval $ac_compile) 2>&5
9626 ac_status=$?
9627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628 test $ac_status = 0; } 2>conftest.err; then
9629 soname=conftest
9630 lib=conftest
9631 libobjs=conftest.$ac_objext
9632 deplibs=
9633 wl=$lt_prog_compiler_wl
9634 pic_flag=$lt_prog_compiler_pic
9635 compiler_flags=-v
9636 linker_flags=-v
9637 verstring=
9638 output_objdir=.
9639 libname=conftest
9640 lt_save_allow_undefined_flag=$allow_undefined_flag
9641 allow_undefined_flag=
9642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9643 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9644 ac_status=$?
9645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9646 test $ac_status = 0; }
9647 then
9648 lt_cv_archive_cmds_need_lc=no
9649 else
9650 lt_cv_archive_cmds_need_lc=yes
9651 fi
9652 allow_undefined_flag=$lt_save_allow_undefined_flag
9653 else
9654 cat conftest.err 1>&5
9655 fi
9656 $RM conftest*
9657
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9660 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9661 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9662 ;;
9663 esac
9664 fi
9665 ;;
9666 esac
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9820 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9821
9822 if test "$GCC" = yes; then
9823 case $host_os in
9824 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9825 *) lt_awk_arg="/^libraries:/" ;;
9826 esac
9827 case $host_os in
9828 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9829 *) lt_sed_strip_eq="s,=/,/,g" ;;
9830 esac
9831 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9832 case $lt_search_path_spec in
9833 *\;*)
9834 # if the path contains ";" then we assume it to be the separator
9835 # otherwise default to the standard path separator (i.e. ":") - it is
9836 # assumed that no part of a normal pathname contains ";" but that should
9837 # okay in the real world where ";" in dirpaths is itself problematic.
9838 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9839 ;;
9840 *)
9841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9842 ;;
9843 esac
9844 # Ok, now we have the path, separated by spaces, we can step through it
9845 # and add multilib dir if necessary.
9846 lt_tmp_lt_search_path_spec=
9847 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9848 for lt_sys_path in $lt_search_path_spec; do
9849 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9851 else
9852 test -d "$lt_sys_path" && \
9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9854 fi
9855 done
9856 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9857 BEGIN {RS=" "; FS="/|\n";} {
9858 lt_foo="";
9859 lt_count=0;
9860 for (lt_i = NF; lt_i > 0; lt_i--) {
9861 if ($lt_i != "" && $lt_i != ".") {
9862 if ($lt_i == "..") {
9863 lt_count++;
9864 } else {
9865 if (lt_count == 0) {
9866 lt_foo="/" $lt_i lt_foo;
9867 } else {
9868 lt_count--;
9869 }
9870 }
9871 }
9872 }
9873 if (lt_foo != "") { lt_freq[lt_foo]++; }
9874 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9875 }'`
9876 # AWK program above erroneously prepends '/' to C:/dos/paths
9877 # for these hosts.
9878 case $host_os in
9879 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9880 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9881 esac
9882 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9883 else
9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9885 fi
9886 library_names_spec=
9887 libname_spec='lib$name'
9888 soname_spec=
9889 shrext_cmds=".so"
9890 postinstall_cmds=
9891 postuninstall_cmds=
9892 finish_cmds=
9893 finish_eval=
9894 shlibpath_var=
9895 shlibpath_overrides_runpath=unknown
9896 version_type=none
9897 dynamic_linker="$host_os ld.so"
9898 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9899 need_lib_prefix=unknown
9900 hardcode_into_libs=no
9901
9902 # when you set need_version to no, make sure it does not cause -set_version
9903 # flags to be left without arguments
9904 need_version=unknown
9905
9906 case $host_os in
9907 aix3*)
9908 version_type=linux # correct to gnu/linux during the next big refactor
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9910 shlibpath_var=LIBPATH
9911
9912 # AIX 3 has no versioning support, so we append a major version to the name.
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 ;;
9915
9916 aix[4-9]*)
9917 version_type=linux # correct to gnu/linux during the next big refactor
9918 need_lib_prefix=no
9919 need_version=no
9920 hardcode_into_libs=yes
9921 if test "$host_cpu" = ia64; then
9922 # AIX 5 supports IA64
9923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9924 shlibpath_var=LD_LIBRARY_PATH
9925 else
9926 # With GCC up to 2.95.x, collect2 would create an import file
9927 # for dependence libraries. The import file would start with
9928 # the line `#! .'. This would cause the generated library to
9929 # depend on `.', always an invalid library. This was fixed in
9930 # development snapshots of GCC prior to 3.0.
9931 case $host_os in
9932 aix4 | aix4.[01] | aix4.[01].*)
9933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9934 echo ' yes '
9935 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9936 :
9937 else
9938 can_build_shared=no
9939 fi
9940 ;;
9941 esac
9942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9943 # soname into executable. Probably we can add versioning support to
9944 # collect2, so additional links can be useful in future.
9945 if test "$aix_use_runtimelinking" = yes; then
9946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9947 # instead of lib<name>.a to let people know that these are not
9948 # typical AIX shared libraries.
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950 else
9951 # We preserve .a as extension for shared libraries through AIX4.2
9952 # and later when we are not doing run time linking.
9953 library_names_spec='${libname}${release}.a $libname.a'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 fi
9956 shlibpath_var=LIBPATH
9957 fi
9958 ;;
9959
9960 amigaos*)
9961 case $host_cpu in
9962 powerpc)
9963 # Since July 2007 AmigaOS4 officially supports .so libraries.
9964 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 ;;
9967 m68k)
9968 library_names_spec='$libname.ixlibrary $libname.a'
9969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9971 ;;
9972 esac
9973 ;;
9974
9975 beos*)
9976 library_names_spec='${libname}${shared_ext}'
9977 dynamic_linker="$host_os ld.so"
9978 shlibpath_var=LIBRARY_PATH
9979 ;;
9980
9981 bsdi[45]*)
9982 version_type=linux # correct to gnu/linux during the next big refactor
9983 need_version=no
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9990 # the default ld.so.conf also contains /usr/contrib/lib and
9991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9992 # libtool to hard-code these into programs
9993 ;;
9994
9995 cygwin* | mingw* | pw32* | cegcc*)
9996 version_type=windows
9997 shrext_cmds=".dll"
9998 need_version=no
9999 need_lib_prefix=no
10000
10001 case $GCC,$cc_basename in
10002 yes,*)
10003 # gcc
10004 library_names_spec='$libname.dll.a'
10005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10006 postinstall_cmds='base_file=`basename \${file}`~
10007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10008 dldir=$destdir/`dirname \$dlpath`~
10009 test -d \$dldir || mkdir -p \$dldir~
10010 $install_prog $dir/$dlname \$dldir/$dlname~
10011 chmod a+x \$dldir/$dlname~
10012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10014 fi'
10015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10016 dlpath=$dir/\$dldll~
10017 $RM \$dlpath'
10018 shlibpath_overrides_runpath=yes
10019
10020 case $host_os in
10021 cygwin*)
10022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024
10025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10026 ;;
10027 mingw* | cegcc*)
10028 # MinGW DLLs use traditional 'lib' prefix
10029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10030 ;;
10031 pw32*)
10032 # pw32 DLLs use 'pw' prefix rather than 'lib'
10033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034 ;;
10035 esac
10036 dynamic_linker='Win32 ld.exe'
10037 ;;
10038
10039 *,cl*)
10040 # Native MSVC
10041 libname_spec='$name'
10042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043 library_names_spec='${libname}.dll.lib'
10044
10045 case $build_os in
10046 mingw*)
10047 sys_lib_search_path_spec=
10048 lt_save_ifs=$IFS
10049 IFS=';'
10050 for lt_path in $LIB
10051 do
10052 IFS=$lt_save_ifs
10053 # Let DOS variable expansion print the short 8.3 style file name.
10054 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10055 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10056 done
10057 IFS=$lt_save_ifs
10058 # Convert to MSYS style.
10059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10060 ;;
10061 cygwin*)
10062 # Convert to unix form, then to dos form, then back to unix form
10063 # but this time dos style (no spaces!) so that the unix form looks
10064 # like /cygdrive/c/PROGRA~1:/cygdr...
10065 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10066 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10067 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10068 ;;
10069 *)
10070 sys_lib_search_path_spec="$LIB"
10071 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10072 # It is most probably a Windows format PATH.
10073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10074 else
10075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10076 fi
10077 # FIXME: find the short name or the path components, as spaces are
10078 # common. (e.g. "Program Files" -> "PROGRA~1")
10079 ;;
10080 esac
10081
10082 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10083 postinstall_cmds='base_file=`basename \${file}`~
10084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10085 dldir=$destdir/`dirname \$dlpath`~
10086 test -d \$dldir || mkdir -p \$dldir~
10087 $install_prog $dir/$dlname \$dldir/$dlname'
10088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10089 dlpath=$dir/\$dldll~
10090 $RM \$dlpath'
10091 shlibpath_overrides_runpath=yes
10092 dynamic_linker='Win32 link.exe'
10093 ;;
10094
10095 *)
10096 # Assume MSVC wrapper
10097 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10098 dynamic_linker='Win32 ld.exe'
10099 ;;
10100 esac
10101 # FIXME: first we should search . and the directory the executable is in
10102 shlibpath_var=PATH
10103 ;;
10104
10105 darwin* | rhapsody*)
10106 dynamic_linker="$host_os dyld"
10107 version_type=darwin
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10111 soname_spec='${libname}${release}${major}$shared_ext'
10112 shlibpath_overrides_runpath=yes
10113 shlibpath_var=DYLD_LIBRARY_PATH
10114 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10115
10116 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10118 ;;
10119
10120 dgux*)
10121 version_type=linux # correct to gnu/linux during the next big refactor
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 ;;
10128
10129 freebsd* | dragonfly*)
10130 # DragonFly does not have aout. When/if they implement a new
10131 # versioning mechanism, adjust this.
10132 if test -x /usr/bin/objformat; then
10133 objformat=`/usr/bin/objformat`
10134 else
10135 case $host_os in
10136 freebsd[23].*) objformat=aout ;;
10137 *) objformat=elf ;;
10138 esac
10139 fi
10140 version_type=freebsd-$objformat
10141 case $version_type in
10142 freebsd-elf*)
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10144 need_version=no
10145 need_lib_prefix=no
10146 ;;
10147 freebsd-*)
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10149 need_version=yes
10150 ;;
10151 esac
10152 shlibpath_var=LD_LIBRARY_PATH
10153 case $host_os in
10154 freebsd2.*)
10155 shlibpath_overrides_runpath=yes
10156 ;;
10157 freebsd3.[01]* | freebsdelf3.[01]*)
10158 shlibpath_overrides_runpath=yes
10159 hardcode_into_libs=yes
10160 ;;
10161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10163 shlibpath_overrides_runpath=no
10164 hardcode_into_libs=yes
10165 ;;
10166 *) # from 4.6 on, and DragonFly
10167 shlibpath_overrides_runpath=yes
10168 hardcode_into_libs=yes
10169 ;;
10170 esac
10171 ;;
10172
10173 gnu*)
10174 version_type=linux # correct to gnu/linux during the next big refactor
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10182 ;;
10183
10184 haiku*)
10185 version_type=linux # correct to gnu/linux during the next big refactor
10186 need_lib_prefix=no
10187 need_version=no
10188 dynamic_linker="$host_os runtime_loader"
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 shlibpath_var=LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10194 hardcode_into_libs=yes
10195 ;;
10196
10197 hpux9* | hpux10* | hpux11*)
10198 # Give a soname corresponding to the major version so that dld.sl refuses to
10199 # link against other versions.
10200 version_type=sunos
10201 need_lib_prefix=no
10202 need_version=no
10203 case $host_cpu in
10204 ia64*)
10205 shrext_cmds='.so'
10206 hardcode_into_libs=yes
10207 dynamic_linker="$host_os dld.so"
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 if test "X$HPUX_IA64_MODE" = X32; then
10213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10214 else
10215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10216 fi
10217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10218 ;;
10219 hppa*64*)
10220 shrext_cmds='.sl'
10221 hardcode_into_libs=yes
10222 dynamic_linker="$host_os dld.sl"
10223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10229 ;;
10230 *)
10231 shrext_cmds='.sl'
10232 dynamic_linker="$host_os dld.sl"
10233 shlibpath_var=SHLIB_PATH
10234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 ;;
10238 esac
10239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10240 postinstall_cmds='chmod 555 $lib'
10241 # or fails outright, so override atomically:
10242 install_override_mode=555
10243 ;;
10244
10245 interix[3-9]*)
10246 version_type=linux # correct to gnu/linux during the next big refactor
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=no
10254 hardcode_into_libs=yes
10255 ;;
10256
10257 irix5* | irix6* | nonstopux*)
10258 case $host_os in
10259 nonstopux*) version_type=nonstopux ;;
10260 *)
10261 if test "$lt_cv_prog_gnu_ld" = yes; then
10262 version_type=linux # correct to gnu/linux during the next big refactor
10263 else
10264 version_type=irix
10265 fi ;;
10266 esac
10267 need_lib_prefix=no
10268 need_version=no
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10271 case $host_os in
10272 irix5* | nonstopux*)
10273 libsuff= shlibsuff=
10274 ;;
10275 *)
10276 case $LD in # libtool.m4 will add one of these switches to LD
10277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10278 libsuff= shlibsuff= libmagic=32-bit;;
10279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10280 libsuff=32 shlibsuff=N32 libmagic=N32;;
10281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10283 *) libsuff= shlibsuff= libmagic=never-match;;
10284 esac
10285 ;;
10286 esac
10287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10288 shlibpath_overrides_runpath=no
10289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10291 hardcode_into_libs=yes
10292 ;;
10293
10294 # No shared lib support for Linux oldld, aout, or coff.
10295 linux*oldld* | linux*aout* | linux*coff*)
10296 dynamic_linker=no
10297 ;;
10298
10299 # This must be glibc/ELF.
10300 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10301 version_type=linux # correct to gnu/linux during the next big refactor
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309
10310 # Some binutils ld are patched to set DT_RUNPATH
10311 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 lt_cv_shlibpath_overrides_runpath=no
10315 save_LDFLAGS=$LDFLAGS
10316 save_libdir=$libdir
10317 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10318 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321
10322 int
10323 main ()
10324 {
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10332 lt_cv_shlibpath_overrides_runpath=yes
10333 fi
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LDFLAGS=$save_LDFLAGS
10338 libdir=$save_libdir
10339
10340 fi
10341
10342 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10343
10344 # This implies no fast_install, which is unacceptable.
10345 # Some rework will be needed to allow for fast_install
10346 # before this can be enabled.
10347 hardcode_into_libs=yes
10348
10349 # Add ABI-specific directories to the system library path.
10350 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10351
10352 # Append ld.so.conf contents to the search path
10353 if test -f /etc/ld.so.conf; then
10354 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' ' '`
10355 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10356
10357 fi
10358
10359 # We used to test for /lib/ld.so.1 and disable shared libraries on
10360 # powerpc, because MkLinux only supported shared libraries with the
10361 # GNU dynamic linker. Since this was broken with cross compilers,
10362 # most powerpc-linux boxes support dynamic linking these days and
10363 # people can always --disable-shared, the test was removed, and we
10364 # assume the GNU/Linux dynamic linker is in use.
10365 dynamic_linker='GNU/Linux ld.so'
10366 ;;
10367
10368 netbsd*)
10369 version_type=sunos
10370 need_lib_prefix=no
10371 need_version=no
10372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10375 dynamic_linker='NetBSD (a.out) ld.so'
10376 else
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 dynamic_linker='NetBSD ld.elf_so'
10380 fi
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10384 ;;
10385
10386 newsos6)
10387 version_type=linux # correct to gnu/linux during the next big refactor
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 ;;
10392
10393 *nto* | *qnx*)
10394 version_type=qnx
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=no
10401 hardcode_into_libs=yes
10402 dynamic_linker='ldqnx.so'
10403 ;;
10404
10405 openbsd*)
10406 version_type=sunos
10407 sys_lib_dlsearch_path_spec="/usr/lib"
10408 need_lib_prefix=no
10409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10410 case $host_os in
10411 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10412 *) need_version=no ;;
10413 esac
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10418 case $host_os in
10419 openbsd2.[89] | openbsd2.[89].*)
10420 shlibpath_overrides_runpath=no
10421 ;;
10422 *)
10423 shlibpath_overrides_runpath=yes
10424 ;;
10425 esac
10426 else
10427 shlibpath_overrides_runpath=yes
10428 fi
10429 ;;
10430
10431 os2*)
10432 libname_spec='$name'
10433 shrext_cmds=".dll"
10434 need_lib_prefix=no
10435 library_names_spec='$libname${shared_ext} $libname.a'
10436 dynamic_linker='OS/2 ld.exe'
10437 shlibpath_var=LIBPATH
10438 ;;
10439
10440 osf3* | osf4* | osf5*)
10441 version_type=osf
10442 need_lib_prefix=no
10443 need_version=no
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10449 ;;
10450
10451 rdos*)
10452 dynamic_linker=no
10453 ;;
10454
10455 solaris*)
10456 version_type=linux # correct to gnu/linux during the next big refactor
10457 need_lib_prefix=no
10458 need_version=no
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes
10463 hardcode_into_libs=yes
10464 # ldd complains unless libraries are executable
10465 postinstall_cmds='chmod +x $lib'
10466 ;;
10467
10468 sunos4*)
10469 version_type=sunos
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes
10474 if test "$with_gnu_ld" = yes; then
10475 need_lib_prefix=no
10476 fi
10477 need_version=yes
10478 ;;
10479
10480 sysv4 | sysv4.3*)
10481 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 case $host_vendor in
10486 sni)
10487 shlibpath_overrides_runpath=no
10488 need_lib_prefix=no
10489 runpath_var=LD_RUN_PATH
10490 ;;
10491 siemens)
10492 need_lib_prefix=no
10493 ;;
10494 motorola)
10495 need_lib_prefix=no
10496 need_version=no
10497 shlibpath_overrides_runpath=no
10498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10499 ;;
10500 esac
10501 ;;
10502
10503 sysv4*MP*)
10504 if test -d /usr/nec ;then
10505 version_type=linux # correct to gnu/linux during the next big refactor
10506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10507 soname_spec='$libname${shared_ext}.$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 fi
10510 ;;
10511
10512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10513 version_type=freebsd-elf
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10521 if test "$with_gnu_ld" = yes; then
10522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10523 else
10524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10525 case $host_os in
10526 sco3.2v5*)
10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10528 ;;
10529 esac
10530 fi
10531 sys_lib_dlsearch_path_spec='/usr/lib'
10532 ;;
10533
10534 tpf*)
10535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10536 version_type=linux # correct to gnu/linux during the next big refactor
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=no
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 uts4*)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 ;;
10551
10552 *)
10553 dynamic_linker=no
10554 ;;
10555 esac
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10557 $as_echo "$dynamic_linker" >&6; }
10558 test "$dynamic_linker" = no && can_build_shared=no
10559
10560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10561 if test "$GCC" = yes; then
10562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10563 fi
10564
10565 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10566 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10567 fi
10568 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10569 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10570 fi
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10665 hardcode_action=
10666 if test -n "$hardcode_libdir_flag_spec" ||
10667 test -n "$runpath_var" ||
10668 test "X$hardcode_automatic" = "Xyes" ; then
10669
10670 # We can hardcode non-existent directories.
10671 if test "$hardcode_direct" != no &&
10672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10673 # have to relink, otherwise we might link with an installed library
10674 # when we should be linking with a yet-to-be-installed one
10675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10676 test "$hardcode_minus_L" != no; then
10677 # Linking always hardcodes the temporary library directory.
10678 hardcode_action=relink
10679 else
10680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10681 hardcode_action=immediate
10682 fi
10683 else
10684 # We cannot hardcode anything, or else we can only hardcode existing
10685 # directories.
10686 hardcode_action=unsupported
10687 fi
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10689 $as_echo "$hardcode_action" >&6; }
10690
10691 if test "$hardcode_action" = relink ||
10692 test "$inherit_rpath" = yes; then
10693 # Fast installation is not supported
10694 enable_fast_install=no
10695 elif test "$shlibpath_overrides_runpath" = yes ||
10696 test "$enable_shared" = no; then
10697 # Fast installation is not necessary
10698 enable_fast_install=needless
10699 fi
10700
10701
10702
10703
10704
10705
10706 if test "x$enable_dlopen" != xyes; then
10707 enable_dlopen=unknown
10708 enable_dlopen_self=unknown
10709 enable_dlopen_self_static=unknown
10710 else
10711 lt_cv_dlopen=no
10712 lt_cv_dlopen_libs=
10713
10714 case $host_os in
10715 beos*)
10716 lt_cv_dlopen="load_add_on"
10717 lt_cv_dlopen_libs=
10718 lt_cv_dlopen_self=yes
10719 ;;
10720
10721 mingw* | pw32* | cegcc*)
10722 lt_cv_dlopen="LoadLibrary"
10723 lt_cv_dlopen_libs=
10724 ;;
10725
10726 cygwin*)
10727 lt_cv_dlopen="dlopen"
10728 lt_cv_dlopen_libs=
10729 ;;
10730
10731 darwin*)
10732 # if libdl is installed we need to link against it
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10735 if ${ac_cv_lib_dl_dlopen+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 ac_check_lib_save_LIBS=$LIBS
10739 LIBS="-ldl $LIBS"
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char dlopen ();
10750 int
10751 main ()
10752 {
10753 return dlopen ();
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759 ac_cv_lib_dl_dlopen=yes
10760 else
10761 ac_cv_lib_dl_dlopen=no
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10769 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 else
10772
10773 lt_cv_dlopen="dyld"
10774 lt_cv_dlopen_libs=
10775 lt_cv_dlopen_self=yes
10776
10777 fi
10778
10779 ;;
10780
10781 *)
10782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10783 if test "x$ac_cv_func_shl_load" = xyes; then :
10784 lt_cv_dlopen="shl_load"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10788 if ${ac_cv_lib_dld_shl_load+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char shl_load ();
10803 int
10804 main ()
10805 {
10806 return shl_load ();
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_dld_shl_load=yes
10813 else
10814 ac_cv_lib_dld_shl_load=no
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10822 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10824 else
10825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10826 if test "x$ac_cv_func_dlopen" = xyes; then :
10827 lt_cv_dlopen="dlopen"
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10831 if ${ac_cv_lib_dl_dlopen+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-ldl $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10846 int
10847 main ()
10848 {
10849 return dlopen ();
10850 ;
10851 return 0;
10852 }
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_dl_dlopen=yes
10856 else
10857 ac_cv_lib_dl_dlopen=no
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10865 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10869 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10870 if ${ac_cv_lib_svld_dlopen+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 int
10886 main ()
10887 {
10888 return dlopen ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 ac_cv_lib_svld_dlopen=yes
10895 else
10896 ac_cv_lib_svld_dlopen=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10904 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10909 if ${ac_cv_lib_dld_dld_link+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char dld_link ();
10924 int
10925 main ()
10926 {
10927 return dld_link ();
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_dld_link=yes
10934 else
10935 ac_cv_lib_dld_dld_link=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10943 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10945 fi
10946
10947
10948 fi
10949
10950
10951 fi
10952
10953
10954 fi
10955
10956
10957 fi
10958
10959
10960 fi
10961
10962 ;;
10963 esac
10964
10965 if test "x$lt_cv_dlopen" != xno; then
10966 enable_dlopen=yes
10967 else
10968 enable_dlopen=no
10969 fi
10970
10971 case $lt_cv_dlopen in
10972 dlopen)
10973 save_CPPFLAGS="$CPPFLAGS"
10974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10975
10976 save_LDFLAGS="$LDFLAGS"
10977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10978
10979 save_LIBS="$LIBS"
10980 LIBS="$lt_cv_dlopen_libs $LIBS"
10981
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10983 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10984 if ${lt_cv_dlopen_self+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test "$cross_compiling" = yes; then :
10988 lt_cv_dlopen_self=cross
10989 else
10990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10991 lt_status=$lt_dlunknown
10992 cat > conftest.$ac_ext <<_LT_EOF
10993 #line $LINENO "configure"
10994 #include "confdefs.h"
10995
10996 #if HAVE_DLFCN_H
10997 #include <dlfcn.h>
10998 #endif
10999
11000 #include <stdio.h>
11001
11002 #ifdef RTLD_GLOBAL
11003 # define LT_DLGLOBAL RTLD_GLOBAL
11004 #else
11005 # ifdef DL_GLOBAL
11006 # define LT_DLGLOBAL DL_GLOBAL
11007 # else
11008 # define LT_DLGLOBAL 0
11009 # endif
11010 #endif
11011
11012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11013 find out it does not work in some platform. */
11014 #ifndef LT_DLLAZY_OR_NOW
11015 # ifdef RTLD_LAZY
11016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # else
11018 # ifdef DL_LAZY
11019 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # else
11021 # ifdef RTLD_NOW
11022 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # else
11024 # ifdef DL_NOW
11025 # define LT_DLLAZY_OR_NOW DL_NOW
11026 # else
11027 # define LT_DLLAZY_OR_NOW 0
11028 # endif
11029 # endif
11030 # endif
11031 # endif
11032 #endif
11033
11034 /* When -fvisbility=hidden is used, assume the code has been annotated
11035 correspondingly for the symbols needed. */
11036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11037 int fnord () __attribute__((visibility("default")));
11038 #endif
11039
11040 int fnord () { return 42; }
11041 int main ()
11042 {
11043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11044 int status = $lt_dlunknown;
11045
11046 if (self)
11047 {
11048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11049 else
11050 {
11051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 else puts (dlerror ());
11053 }
11054 /* dlclose (self); */
11055 }
11056 else
11057 puts (dlerror ());
11058
11059 return status;
11060 }
11061 _LT_EOF
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11067 (./conftest; exit; ) >&5 2>/dev/null
11068 lt_status=$?
11069 case x$lt_status in
11070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11073 esac
11074 else :
11075 # compilation failed
11076 lt_cv_dlopen_self=no
11077 fi
11078 fi
11079 rm -fr conftest*
11080
11081
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11084 $as_echo "$lt_cv_dlopen_self" >&6; }
11085
11086 if test "x$lt_cv_dlopen_self" = xyes; then
11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11089 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11090 if ${lt_cv_dlopen_self_static+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 if test "$cross_compiling" = yes; then :
11094 lt_cv_dlopen_self_static=cross
11095 else
11096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11097 lt_status=$lt_dlunknown
11098 cat > conftest.$ac_ext <<_LT_EOF
11099 #line $LINENO "configure"
11100 #include "confdefs.h"
11101
11102 #if HAVE_DLFCN_H
11103 #include <dlfcn.h>
11104 #endif
11105
11106 #include <stdio.h>
11107
11108 #ifdef RTLD_GLOBAL
11109 # define LT_DLGLOBAL RTLD_GLOBAL
11110 #else
11111 # ifdef DL_GLOBAL
11112 # define LT_DLGLOBAL DL_GLOBAL
11113 # else
11114 # define LT_DLGLOBAL 0
11115 # endif
11116 #endif
11117
11118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11119 find out it does not work in some platform. */
11120 #ifndef LT_DLLAZY_OR_NOW
11121 # ifdef RTLD_LAZY
11122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11123 # else
11124 # ifdef DL_LAZY
11125 # define LT_DLLAZY_OR_NOW DL_LAZY
11126 # else
11127 # ifdef RTLD_NOW
11128 # define LT_DLLAZY_OR_NOW RTLD_NOW
11129 # else
11130 # ifdef DL_NOW
11131 # define LT_DLLAZY_OR_NOW DL_NOW
11132 # else
11133 # define LT_DLLAZY_OR_NOW 0
11134 # endif
11135 # endif
11136 # endif
11137 # endif
11138 #endif
11139
11140 /* When -fvisbility=hidden is used, assume the code has been annotated
11141 correspondingly for the symbols needed. */
11142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11143 int fnord () __attribute__((visibility("default")));
11144 #endif
11145
11146 int fnord () { return 42; }
11147 int main ()
11148 {
11149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150 int status = $lt_dlunknown;
11151
11152 if (self)
11153 {
11154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11155 else
11156 {
11157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11158 else puts (dlerror ());
11159 }
11160 /* dlclose (self); */
11161 }
11162 else
11163 puts (dlerror ());
11164
11165 return status;
11166 }
11167 _LT_EOF
11168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11169 (eval $ac_link) 2>&5
11170 ac_status=$?
11171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11173 (./conftest; exit; ) >&5 2>/dev/null
11174 lt_status=$?
11175 case x$lt_status in
11176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11178 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11179 esac
11180 else :
11181 # compilation failed
11182 lt_cv_dlopen_self_static=no
11183 fi
11184 fi
11185 rm -fr conftest*
11186
11187
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11190 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11191 fi
11192
11193 CPPFLAGS="$save_CPPFLAGS"
11194 LDFLAGS="$save_LDFLAGS"
11195 LIBS="$save_LIBS"
11196 ;;
11197 esac
11198
11199 case $lt_cv_dlopen_self in
11200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11201 *) enable_dlopen_self=unknown ;;
11202 esac
11203
11204 case $lt_cv_dlopen_self_static in
11205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11206 *) enable_dlopen_self_static=unknown ;;
11207 esac
11208 fi
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226 striplib=
11227 old_striplib=
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11229 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11230 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11231 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11232 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11235 else
11236 # FIXME - insert some real tests, host_os isn't really good enough
11237 case $host_os in
11238 darwin*)
11239 if test -n "$STRIP" ; then
11240 striplib="$STRIP -x"
11241 old_striplib="$STRIP -S"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248 ;;
11249 *)
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 ;;
11253 esac
11254 fi
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 # Report which library types will actually be built
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11269 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11271 $as_echo "$can_build_shared" >&6; }
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11274 $as_echo_n "checking whether to build shared libraries... " >&6; }
11275 test "$can_build_shared" = "no" && enable_shared=no
11276
11277 # On AIX, shared libraries and static libraries use the same namespace, and
11278 # are all built from PIC.
11279 case $host_os in
11280 aix3*)
11281 test "$enable_shared" = yes && enable_static=no
11282 if test -n "$RANLIB"; then
11283 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11284 postinstall_cmds='$RANLIB $lib'
11285 fi
11286 ;;
11287
11288 aix[4-9]*)
11289 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11290 test "$enable_shared" = yes && enable_static=no
11291 fi
11292 ;;
11293 esac
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11295 $as_echo "$enable_shared" >&6; }
11296
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11298 $as_echo_n "checking whether to build static libraries... " >&6; }
11299 # Make sure either enable_shared or enable_static is yes.
11300 test "$enable_shared" = yes || enable_static=yes
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11302 $as_echo "$enable_static" >&6; }
11303
11304
11305
11306
11307 fi
11308 ac_ext=c
11309 ac_cpp='$CPP $CPPFLAGS'
11310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11313
11314 CC="$lt_save_CC"
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 ac_config_commands="$ac_config_commands libtool"
11331
11332
11333
11334
11335 # Only expand once:
11336
11337
11338
11339 if test x$GCC = xyes
11340 then
11341 CFLAGS="-Wall $CFLAGS"
11342 fi
11343 if test x$GXX = xyes
11344 then
11345 CXXFLAGS="-Wall $CXXFLAGS"
11346 fi
11347
11348 CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS"
11349 CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS"
11350
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11352 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11353 if ${ac_cv_c_const+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358
11359 int
11360 main ()
11361 {
11362
11363 #ifndef __cplusplus
11364 /* Ultrix mips cc rejects this sort of thing. */
11365 typedef int charset[2];
11366 const charset cs = { 0, 0 };
11367 /* SunOS 4.1.1 cc rejects this. */
11368 char const *const *pcpcc;
11369 char **ppc;
11370 /* NEC SVR4.0.2 mips cc rejects this. */
11371 struct point {int x, y;};
11372 static struct point const zero = {0,0};
11373 /* AIX XL C 1.02.0.0 rejects this.
11374 It does not let you subtract one const X* pointer from another in
11375 an arm of an if-expression whose if-part is not a constant
11376 expression */
11377 const char *g = "string";
11378 pcpcc = &g + (g ? g-g : 0);
11379 /* HPUX 7.0 cc rejects these. */
11380 ++pcpcc;
11381 ppc = (char**) pcpcc;
11382 pcpcc = (char const *const *) ppc;
11383 { /* SCO 3.2v4 cc rejects this sort of thing. */
11384 char tx;
11385 char *t = &tx;
11386 char const *s = 0 ? (char *) 0 : (char const *) 0;
11387
11388 *t++ = 0;
11389 if (s) return 0;
11390 }
11391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11392 int x[] = {25, 17};
11393 const int *foo = &x[0];
11394 ++foo;
11395 }
11396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11397 typedef const int *iptr;
11398 iptr p = 0;
11399 ++p;
11400 }
11401 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11403 struct s { int j; const int *ap[3]; } bx;
11404 struct s *b = &bx; b->j = 5;
11405 }
11406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11407 const int foo = 10;
11408 if (!foo) return 0;
11409 }
11410 return !cs[0] && !zero.x;
11411 #endif
11412
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_compile "$LINENO"; then :
11418 ac_cv_c_const=yes
11419 else
11420 ac_cv_c_const=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11425 $as_echo "$ac_cv_c_const" >&6; }
11426 if test $ac_cv_c_const = no; then
11427
11428 $as_echo "#define const /**/" >>confdefs.h
11429
11430 fi
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11433 $as_echo_n "checking for ANSI C header files... " >&6; }
11434 if ${ac_cv_header_stdc+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439 #include <stdlib.h>
11440 #include <stdarg.h>
11441 #include <string.h>
11442 #include <float.h>
11443
11444 int
11445 main ()
11446 {
11447
11448 ;
11449 return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_compile "$LINENO"; then :
11453 ac_cv_header_stdc=yes
11454 else
11455 ac_cv_header_stdc=no
11456 fi
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458
11459 if test $ac_cv_header_stdc = yes; then
11460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 #include <string.h>
11464
11465 _ACEOF
11466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11467 $EGREP "memchr" >/dev/null 2>&1; then :
11468
11469 else
11470 ac_cv_header_stdc=no
11471 fi
11472 rm -f conftest*
11473
11474 fi
11475
11476 if test $ac_cv_header_stdc = yes; then
11477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 #include <stdlib.h>
11481
11482 _ACEOF
11483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11484 $EGREP "free" >/dev/null 2>&1; then :
11485
11486 else
11487 ac_cv_header_stdc=no
11488 fi
11489 rm -f conftest*
11490
11491 fi
11492
11493 if test $ac_cv_header_stdc = yes; then
11494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11495 if test "$cross_compiling" = yes; then :
11496 :
11497 else
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #include <ctype.h>
11501 #include <stdlib.h>
11502 #if ((' ' & 0x0FF) == 0x020)
11503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11505 #else
11506 # define ISLOWER(c) \
11507 (('a' <= (c) && (c) <= 'i') \
11508 || ('j' <= (c) && (c) <= 'r') \
11509 || ('s' <= (c) && (c) <= 'z'))
11510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11511 #endif
11512
11513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11514 int
11515 main ()
11516 {
11517 int i;
11518 for (i = 0; i < 256; i++)
11519 if (XOR (islower (i), ISLOWER (i))
11520 || toupper (i) != TOUPPER (i))
11521 return 2;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_run "$LINENO"; then :
11526
11527 else
11528 ac_cv_header_stdc=no
11529 fi
11530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11531 conftest.$ac_objext conftest.beam conftest.$ac_ext
11532 fi
11533
11534 fi
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11537 $as_echo "$ac_cv_header_stdc" >&6; }
11538 if test $ac_cv_header_stdc = yes; then
11539
11540 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11541
11542 fi
11543
11544 for ac_header in fcntl.h string.h syslog.h
11545 do :
11546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11547 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11549 cat >>confdefs.h <<_ACEOF
11550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11551 _ACEOF
11552
11553 fi
11554
11555 done
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11558 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11559 if ${ac_cv_type_uid_t+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11564 #include <sys/types.h>
11565
11566 _ACEOF
11567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11568 $EGREP "uid_t" >/dev/null 2>&1; then :
11569 ac_cv_type_uid_t=yes
11570 else
11571 ac_cv_type_uid_t=no
11572 fi
11573 rm -f conftest*
11574
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11577 $as_echo "$ac_cv_type_uid_t" >&6; }
11578 if test $ac_cv_type_uid_t = no; then
11579
11580 $as_echo "#define uid_t int" >>confdefs.h
11581
11582
11583 $as_echo "#define gid_t int" >>confdefs.h
11584
11585 fi
11586
11587 # Check whether --enable-largefile was given.
11588 if test "${enable_largefile+set}" = set; then :
11589 enableval=$enable_largefile;
11590 fi
11591
11592 if test "$enable_largefile" != no; then
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11595 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11596 if ${ac_cv_sys_largefile_CC+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_cv_sys_largefile_CC=no
11600 if test "$GCC" != yes; then
11601 ac_save_CC=$CC
11602 while :; do
11603 # IRIX 6.2 and later do not support large files by default,
11604 # so use the C compiler's -n32 option if that helps.
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #include <sys/types.h>
11608 /* Check that off_t can represent 2**63 - 1 correctly.
11609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11610 since some C++ compilers masquerading as C compilers
11611 incorrectly reject 9223372036854775807. */
11612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11614 && LARGE_OFF_T % 2147483647 == 1)
11615 ? 1 : -1];
11616 int
11617 main ()
11618 {
11619
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_compile "$LINENO"; then :
11625 break
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext
11628 CC="$CC -n32"
11629 if ac_fn_c_try_compile "$LINENO"; then :
11630 ac_cv_sys_largefile_CC=' -n32'; break
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext
11633 break
11634 done
11635 CC=$ac_save_CC
11636 rm -f conftest.$ac_ext
11637 fi
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11640 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11641 if test "$ac_cv_sys_largefile_CC" != no; then
11642 CC=$CC$ac_cv_sys_largefile_CC
11643 fi
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11646 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11647 if ${ac_cv_sys_file_offset_bits+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 while :; do
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653 #include <sys/types.h>
11654 /* Check that off_t can represent 2**63 - 1 correctly.
11655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11656 since some C++ compilers masquerading as C compilers
11657 incorrectly reject 9223372036854775807. */
11658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11660 && LARGE_OFF_T % 2147483647 == 1)
11661 ? 1 : -1];
11662 int
11663 main ()
11664 {
11665
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_compile "$LINENO"; then :
11671 ac_cv_sys_file_offset_bits=no; break
11672 fi
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #define _FILE_OFFSET_BITS 64
11677 #include <sys/types.h>
11678 /* Check that off_t can represent 2**63 - 1 correctly.
11679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11680 since some C++ compilers masquerading as C compilers
11681 incorrectly reject 9223372036854775807. */
11682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11684 && LARGE_OFF_T % 2147483647 == 1)
11685 ? 1 : -1];
11686 int
11687 main ()
11688 {
11689
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_compile "$LINENO"; then :
11695 ac_cv_sys_file_offset_bits=64; break
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 ac_cv_sys_file_offset_bits=unknown
11699 break
11700 done
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11703 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11704 case $ac_cv_sys_file_offset_bits in #(
11705 no | unknown) ;;
11706 *)
11707 cat >>confdefs.h <<_ACEOF
11708 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11709 _ACEOF
11710 ;;
11711 esac
11712 rm -rf conftest*
11713 if test $ac_cv_sys_file_offset_bits = unknown; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11715 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11716 if ${ac_cv_sys_large_files+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 while :; do
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <sys/types.h>
11723 /* Check that off_t can represent 2**63 - 1 correctly.
11724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11725 since some C++ compilers masquerading as C compilers
11726 incorrectly reject 9223372036854775807. */
11727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11729 && LARGE_OFF_T % 2147483647 == 1)
11730 ? 1 : -1];
11731 int
11732 main ()
11733 {
11734
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_compile "$LINENO"; then :
11740 ac_cv_sys_large_files=no; break
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11745 #define _LARGE_FILES 1
11746 #include <sys/types.h>
11747 /* Check that off_t can represent 2**63 - 1 correctly.
11748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11749 since some C++ compilers masquerading as C compilers
11750 incorrectly reject 9223372036854775807. */
11751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11753 && LARGE_OFF_T % 2147483647 == 1)
11754 ? 1 : -1];
11755 int
11756 main ()
11757 {
11758
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 ac_cv_sys_large_files=1; break
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 ac_cv_sys_large_files=unknown
11768 break
11769 done
11770 fi
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11772 $as_echo "$ac_cv_sys_large_files" >&6; }
11773 case $ac_cv_sys_large_files in #(
11774 no | unknown) ;;
11775 *)
11776 cat >>confdefs.h <<_ACEOF
11777 #define _LARGE_FILES $ac_cv_sys_large_files
11778 _ACEOF
11779 ;;
11780 esac
11781 rm -rf conftest*
11782 fi
11783
11784
11785 fi
11786
11787 for ac_func in strchr
11788 do :
11789 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
11790 if test "x$ac_cv_func_strchr" = xyes; then :
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_STRCHR 1
11793 _ACEOF
11794
11795 fi
11796 done
11797
11798
11799
11800 # Check whether --with-syslog was given.
11801 if test "${with_syslog+set}" = set; then :
11802 withval=$with_syslog; logdest="LOG_$withval"
11803 else
11804 logdest="LOG_MAIL"
11805 fi
11806
11807
11808
11809 cat >>confdefs.h <<_ACEOF
11810 #define LOG_DEST $logdest
11811 _ACEOF
11812
11813 if test -d ${srcdir}/../libs/docbook; then
11814 HAVE_SGML_TRUE=
11815 HAVE_SGML_FALSE='#'
11816 else
11817 HAVE_SGML_TRUE='#'
11818 HAVE_SGML_FALSE=
11819 fi
11820
11821 ac_config_files="$ac_config_files Makefile"
11822
11823 cat >confcache <<\_ACEOF
11824 # This file is a shell script that caches the results of configure
11825 # tests run on this system so they can be shared between configure
11826 # scripts and configure runs, see configure's option --config-cache.
11827 # It is not useful on other systems. If it contains results you don't
11828 # want to keep, you may remove or edit it.
11829 #
11830 # config.status only pays attention to the cache file if you give it
11831 # the --recheck option to rerun configure.
11832 #
11833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11835 # following values.
11836
11837 _ACEOF
11838
11839 # The following way of writing the cache mishandles newlines in values,
11840 # but we know of no workaround that is simple, portable, and efficient.
11841 # So, we kill variables containing newlines.
11842 # Ultrix sh set writes to stderr and can't be redirected directly,
11843 # and sets the high bit in the cache file unless we assign to the vars.
11844 (
11845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11846 eval ac_val=\$$ac_var
11847 case $ac_val in #(
11848 *${as_nl}*)
11849 case $ac_var in #(
11850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11852 esac
11853 case $ac_var in #(
11854 _ | IFS | as_nl) ;; #(
11855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11856 *) { eval $ac_var=; unset $ac_var;} ;;
11857 esac ;;
11858 esac
11859 done
11860
11861 (set) 2>&1 |
11862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11863 *${as_nl}ac_space=\ *)
11864 # `set' does not quote correctly, so add quotes: double-quote
11865 # substitution turns \\\\ into \\, and sed turns \\ into \.
11866 sed -n \
11867 "s/'/'\\\\''/g;
11868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11869 ;; #(
11870 *)
11871 # `set' quotes correctly as required by POSIX, so do not add quotes.
11872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11873 ;;
11874 esac |
11875 sort
11876 ) |
11877 sed '
11878 /^ac_cv_env_/b end
11879 t clear
11880 :clear
11881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11882 t end
11883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11884 :end' >>confcache
11885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11886 if test -w "$cache_file"; then
11887 if test "x$cache_file" != "x/dev/null"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11889 $as_echo "$as_me: updating cache $cache_file" >&6;}
11890 if test ! -f "$cache_file" || test -h "$cache_file"; then
11891 cat confcache >"$cache_file"
11892 else
11893 case $cache_file in #(
11894 */* | ?:*)
11895 mv -f confcache "$cache_file"$$ &&
11896 mv -f "$cache_file"$$ "$cache_file" ;; #(
11897 *)
11898 mv -f confcache "$cache_file" ;;
11899 esac
11900 fi
11901 fi
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11905 fi
11906 fi
11907 rm -f confcache
11908
11909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11910 # Let make expand exec_prefix.
11911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11912
11913 DEFS=-DHAVE_CONFIG_H
11914
11915 ac_libobjs=
11916 ac_ltlibobjs=
11917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11918 # 1. Remove the extension, and $U if already installed.
11919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11922 # will be set to the directory where LIBOBJS objects are built.
11923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11925 done
11926 LIBOBJS=$ac_libobjs
11927
11928 LTLIBOBJS=$ac_ltlibobjs
11929
11930
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11932 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11933 if test -n "$am_sleep_pid"; then
11934 # Hide warnings about reused PIDs.
11935 wait $am_sleep_pid 2>/dev/null
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11938 $as_echo "done" >&6; }
11939 if test -n "$EXEEXT"; then
11940 am__EXEEXT_TRUE=
11941 am__EXEEXT_FALSE='#'
11942 else
11943 am__EXEEXT_TRUE='#'
11944 am__EXEEXT_FALSE=
11945 fi
11946
11947 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11948 as_fn_error $? "conditional \"AMDEP\" was never defined.
11949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11950 fi
11951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11952 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11954 fi
11955 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
11956 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
11957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11958 fi
11959
11960 : "${CONFIG_STATUS=./config.status}"
11961 ac_write_fail=0
11962 ac_clean_files_save=$ac_clean_files
11963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11965 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11966 as_write_fail=0
11967 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11968 #! $SHELL
11969 # Generated by $as_me.
11970 # Run this file to recreate the current configuration.
11971 # Compiler output produced by configure, useful for debugging
11972 # configure, is in config.log if it exists.
11973
11974 debug=false
11975 ac_cs_recheck=false
11976 ac_cs_silent=false
11977
11978 SHELL=\${CONFIG_SHELL-$SHELL}
11979 export SHELL
11980 _ASEOF
11981 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11982 ## -------------------- ##
11983 ## M4sh Initialization. ##
11984 ## -------------------- ##
11985
11986 # Be more Bourne compatible
11987 DUALCASE=1; export DUALCASE # for MKS sh
11988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11989 emulate sh
11990 NULLCMD=:
11991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11992 # is contrary to our usage. Disable this feature.
11993 alias -g '${1+"$@"}'='"$@"'
11994 setopt NO_GLOB_SUBST
11995 else
11996 case `(set -o) 2>/dev/null` in #(
11997 *posix*) :
11998 set -o posix ;; #(
11999 *) :
12000 ;;
12001 esac
12002 fi
12003
12004
12005 as_nl='
12006 '
12007 export as_nl
12008 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12009 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12012 # Prefer a ksh shell builtin over an external printf program on Solaris,
12013 # but without wasting forks for bash or zsh.
12014 if test -z "$BASH_VERSION$ZSH_VERSION" \
12015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12016 as_echo='print -r --'
12017 as_echo_n='print -rn --'
12018 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12019 as_echo='printf %s\n'
12020 as_echo_n='printf %s'
12021 else
12022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12023 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12024 as_echo_n='/usr/ucb/echo -n'
12025 else
12026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12027 as_echo_n_body='eval
12028 arg=$1;
12029 case $arg in #(
12030 *"$as_nl"*)
12031 expr "X$arg" : "X\\(.*\\)$as_nl";
12032 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12033 esac;
12034 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12035 '
12036 export as_echo_n_body
12037 as_echo_n='sh -c $as_echo_n_body as_echo'
12038 fi
12039 export as_echo_body
12040 as_echo='sh -c $as_echo_body as_echo'
12041 fi
12042
12043 # The user is always right.
12044 if test "${PATH_SEPARATOR+set}" != set; then
12045 PATH_SEPARATOR=:
12046 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12047 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12048 PATH_SEPARATOR=';'
12049 }
12050 fi
12051
12052
12053 # IFS
12054 # We need space, tab and new line, in precisely that order. Quoting is
12055 # there to prevent editors from complaining about space-tab.
12056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12057 # splitting by setting IFS to empty value.)
12058 IFS=" "" $as_nl"
12059
12060 # Find who we are. Look in the path if we contain no directory separator.
12061 as_myself=
12062 case $0 in #((
12063 *[\\/]* ) as_myself=$0 ;;
12064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12070 done
12071 IFS=$as_save_IFS
12072
12073 ;;
12074 esac
12075 # We did not find ourselves, most probably we were run as `sh COMMAND'
12076 # in which case we are not to be found in the path.
12077 if test "x$as_myself" = x; then
12078 as_myself=$0
12079 fi
12080 if test ! -f "$as_myself"; then
12081 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12082 exit 1
12083 fi
12084
12085 # Unset variables that we do not need and which cause bugs (e.g. in
12086 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12087 # suppresses any "Segmentation fault" message there. '((' could
12088 # trigger a bug in pdksh 5.2.14.
12089 for as_var in BASH_ENV ENV MAIL MAILPATH
12090 do eval test x\${$as_var+set} = xset \
12091 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12092 done
12093 PS1='$ '
12094 PS2='> '
12095 PS4='+ '
12096
12097 # NLS nuisances.
12098 LC_ALL=C
12099 export LC_ALL
12100 LANGUAGE=C
12101 export LANGUAGE
12102
12103 # CDPATH.
12104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12105
12106
12107 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12108 # ----------------------------------------
12109 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12110 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12111 # script with STATUS, using 1 if that was 0.
12112 as_fn_error ()
12113 {
12114 as_status=$1; test $as_status -eq 0 && as_status=1
12115 if test "$4"; then
12116 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12117 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12118 fi
12119 $as_echo "$as_me: error: $2" >&2
12120 as_fn_exit $as_status
12121 } # as_fn_error
12122
12123
12124 # as_fn_set_status STATUS
12125 # -----------------------
12126 # Set $? to STATUS, without forking.
12127 as_fn_set_status ()
12128 {
12129 return $1
12130 } # as_fn_set_status
12131
12132 # as_fn_exit STATUS
12133 # -----------------
12134 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12135 as_fn_exit ()
12136 {
12137 set +e
12138 as_fn_set_status $1
12139 exit $1
12140 } # as_fn_exit
12141
12142 # as_fn_unset VAR
12143 # ---------------
12144 # Portably unset VAR.
12145 as_fn_unset ()
12146 {
12147 { eval $1=; unset $1;}
12148 }
12149 as_unset=as_fn_unset
12150 # as_fn_append VAR VALUE
12151 # ----------------------
12152 # Append the text in VALUE to the end of the definition contained in VAR. Take
12153 # advantage of any shell optimizations that allow amortized linear growth over
12154 # repeated appends, instead of the typical quadratic growth present in naive
12155 # implementations.
12156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12157 eval 'as_fn_append ()
12158 {
12159 eval $1+=\$2
12160 }'
12161 else
12162 as_fn_append ()
12163 {
12164 eval $1=\$$1\$2
12165 }
12166 fi # as_fn_append
12167
12168 # as_fn_arith ARG...
12169 # ------------------
12170 # Perform arithmetic evaluation on the ARGs, and store the result in the
12171 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12172 # must be portable across $(()) and expr.
12173 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12174 eval 'as_fn_arith ()
12175 {
12176 as_val=$(( $* ))
12177 }'
12178 else
12179 as_fn_arith ()
12180 {
12181 as_val=`expr "$@" || test $? -eq 1`
12182 }
12183 fi # as_fn_arith
12184
12185
12186 if expr a : '\(a\)' >/dev/null 2>&1 &&
12187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12188 as_expr=expr
12189 else
12190 as_expr=false
12191 fi
12192
12193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12194 as_basename=basename
12195 else
12196 as_basename=false
12197 fi
12198
12199 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12200 as_dirname=dirname
12201 else
12202 as_dirname=false
12203 fi
12204
12205 as_me=`$as_basename -- "$0" ||
12206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12207 X"$0" : 'X\(//\)$' \| \
12208 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12209 $as_echo X/"$0" |
12210 sed '/^.*\/\([^/][^/]*\)\/*$/{
12211 s//\1/
12212 q
12213 }
12214 /^X\/\(\/\/\)$/{
12215 s//\1/
12216 q
12217 }
12218 /^X\/\(\/\).*/{
12219 s//\1/
12220 q
12221 }
12222 s/.*/./; q'`
12223
12224 # Avoid depending upon Character Ranges.
12225 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12226 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12227 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12228 as_cr_digits='0123456789'
12229 as_cr_alnum=$as_cr_Letters$as_cr_digits
12230
12231 ECHO_C= ECHO_N= ECHO_T=
12232 case `echo -n x` in #(((((
12233 -n*)
12234 case `echo 'xy\c'` in
12235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12236 xy) ECHO_C='\c';;
12237 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12238 ECHO_T=' ';;
12239 esac;;
12240 *)
12241 ECHO_N='-n';;
12242 esac
12243
12244 rm -f conf$$ conf$$.exe conf$$.file
12245 if test -d conf$$.dir; then
12246 rm -f conf$$.dir/conf$$.file
12247 else
12248 rm -f conf$$.dir
12249 mkdir conf$$.dir 2>/dev/null
12250 fi
12251 if (echo >conf$$.file) 2>/dev/null; then
12252 if ln -s conf$$.file conf$$ 2>/dev/null; then
12253 as_ln_s='ln -s'
12254 # ... but there are two gotchas:
12255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12257 # In both cases, we have to default to `cp -pR'.
12258 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12259 as_ln_s='cp -pR'
12260 elif ln conf$$.file conf$$ 2>/dev/null; then
12261 as_ln_s=ln
12262 else
12263 as_ln_s='cp -pR'
12264 fi
12265 else
12266 as_ln_s='cp -pR'
12267 fi
12268 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12269 rmdir conf$$.dir 2>/dev/null
12270
12271
12272 # as_fn_mkdir_p
12273 # -------------
12274 # Create "$as_dir" as a directory, including parents if necessary.
12275 as_fn_mkdir_p ()
12276 {
12277
12278 case $as_dir in #(
12279 -*) as_dir=./$as_dir;;
12280 esac
12281 test -d "$as_dir" || eval $as_mkdir_p || {
12282 as_dirs=
12283 while :; do
12284 case $as_dir in #(
12285 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12286 *) as_qdir=$as_dir;;
12287 esac
12288 as_dirs="'$as_qdir' $as_dirs"
12289 as_dir=`$as_dirname -- "$as_dir" ||
12290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12291 X"$as_dir" : 'X\(//\)[^/]' \| \
12292 X"$as_dir" : 'X\(//\)$' \| \
12293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12294 $as_echo X"$as_dir" |
12295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\/\)[^/].*/{
12300 s//\1/
12301 q
12302 }
12303 /^X\(\/\/\)$/{
12304 s//\1/
12305 q
12306 }
12307 /^X\(\/\).*/{
12308 s//\1/
12309 q
12310 }
12311 s/.*/./; q'`
12312 test -d "$as_dir" && break
12313 done
12314 test -z "$as_dirs" || eval "mkdir $as_dirs"
12315 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12316
12317
12318 } # as_fn_mkdir_p
12319 if mkdir -p . 2>/dev/null; then
12320 as_mkdir_p='mkdir -p "$as_dir"'
12321 else
12322 test -d ./-p && rmdir ./-p
12323 as_mkdir_p=false
12324 fi
12325
12326
12327 # as_fn_executable_p FILE
12328 # -----------------------
12329 # Test if FILE is an executable regular file.
12330 as_fn_executable_p ()
12331 {
12332 test -f "$1" && test -x "$1"
12333 } # as_fn_executable_p
12334 as_test_x='test -x'
12335 as_executable_p=as_fn_executable_p
12336
12337 # Sed expression to map a string onto a valid CPP name.
12338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12339
12340 # Sed expression to map a string onto a valid variable name.
12341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12342
12343
12344 exec 6>&1
12345 ## ----------------------------------- ##
12346 ## Main body of $CONFIG_STATUS script. ##
12347 ## ----------------------------------- ##
12348 _ASEOF
12349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12350
12351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12352 # Save the log message, to keep $0 and so on meaningful, and to
12353 # report actual input values of CONFIG_FILES etc. instead of their
12354 # values after options handling.
12355 ac_log="
12356 This file was extended by courierlogger $as_me 0.10, which was
12357 generated by GNU Autoconf 2.69. Invocation command line was
12358
12359 CONFIG_FILES = $CONFIG_FILES
12360 CONFIG_HEADERS = $CONFIG_HEADERS
12361 CONFIG_LINKS = $CONFIG_LINKS
12362 CONFIG_COMMANDS = $CONFIG_COMMANDS
12363 $ $0 $@
12364
12365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12366 "
12367
12368 _ACEOF
12369
12370 case $ac_config_files in *"
12371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12372 esac
12373
12374 case $ac_config_headers in *"
12375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12376 esac
12377
12378
12379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12380 # Files that config.status was made for.
12381 config_files="$ac_config_files"
12382 config_headers="$ac_config_headers"
12383 config_commands="$ac_config_commands"
12384
12385 _ACEOF
12386
12387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12388 ac_cs_usage="\
12389 \`$as_me' instantiates files and other configuration actions
12390 from templates according to the current configuration. Unless the files
12391 and actions are specified as TAGs, all are instantiated by default.
12392
12393 Usage: $0 [OPTION]... [TAG]...
12394
12395 -h, --help print this help, then exit
12396 -V, --version print version number and configuration settings, then exit
12397 --config print configuration, then exit
12398 -q, --quiet, --silent
12399 do not print progress messages
12400 -d, --debug don't remove temporary files
12401 --recheck update $as_me by reconfiguring in the same conditions
12402 --file=FILE[:TEMPLATE]
12403 instantiate the configuration file FILE
12404 --header=FILE[:TEMPLATE]
12405 instantiate the configuration header FILE
12406
12407 Configuration files:
12408 $config_files
12409
12410 Configuration headers:
12411 $config_headers
12412
12413 Configuration commands:
12414 $config_commands
12415
12416 Report bugs to <courier-users@lists.sourceforge.net>."
12417
12418 _ACEOF
12419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12420 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12421 ac_cs_version="\\
12422 courierlogger config.status 0.10
12423 configured by $0, generated by GNU Autoconf 2.69,
12424 with options \\"\$ac_cs_config\\"
12425
12426 Copyright (C) 2012 Free Software Foundation, Inc.
12427 This config.status script is free software; the Free Software Foundation
12428 gives unlimited permission to copy, distribute and modify it."
12429
12430 ac_pwd='$ac_pwd'
12431 srcdir='$srcdir'
12432 INSTALL='$INSTALL'
12433 MKDIR_P='$MKDIR_P'
12434 AWK='$AWK'
12435 test -n "\$AWK" || AWK=awk
12436 _ACEOF
12437
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 # The default lists apply if the user does not specify any file.
12440 ac_need_defaults=:
12441 while test $# != 0
12442 do
12443 case $1 in
12444 --*=?*)
12445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12447 ac_shift=:
12448 ;;
12449 --*=)
12450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12451 ac_optarg=
12452 ac_shift=:
12453 ;;
12454 *)
12455 ac_option=$1
12456 ac_optarg=$2
12457 ac_shift=shift
12458 ;;
12459 esac
12460
12461 case $ac_option in
12462 # Handling of the options.
12463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12464 ac_cs_recheck=: ;;
12465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12466 $as_echo "$ac_cs_version"; exit ;;
12467 --config | --confi | --conf | --con | --co | --c )
12468 $as_echo "$ac_cs_config"; exit ;;
12469 --debug | --debu | --deb | --de | --d | -d )
12470 debug=: ;;
12471 --file | --fil | --fi | --f )
12472 $ac_shift
12473 case $ac_optarg in
12474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12475 '') as_fn_error $? "missing file argument" ;;
12476 esac
12477 as_fn_append CONFIG_FILES " '$ac_optarg'"
12478 ac_need_defaults=false;;
12479 --header | --heade | --head | --hea )
12480 $ac_shift
12481 case $ac_optarg in
12482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12483 esac
12484 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12485 ac_need_defaults=false;;
12486 --he | --h)
12487 # Conflict between --help and --header
12488 as_fn_error $? "ambiguous option: \`$1'
12489 Try \`$0 --help' for more information.";;
12490 --help | --hel | -h )
12491 $as_echo "$ac_cs_usage"; exit ;;
12492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12494 ac_cs_silent=: ;;
12495
12496 # This is an error.
12497 -*) as_fn_error $? "unrecognized option: \`$1'
12498 Try \`$0 --help' for more information." ;;
12499
12500 *) as_fn_append ac_config_targets " $1"
12501 ac_need_defaults=false ;;
12502
12503 esac
12504 shift
12505 done
12506
12507 ac_configure_extra_args=
12508
12509 if $ac_cs_silent; then
12510 exec 6>/dev/null
12511 ac_configure_extra_args="$ac_configure_extra_args --silent"
12512 fi
12513
12514 _ACEOF
12515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12516 if \$ac_cs_recheck; then
12517 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12518 shift
12519 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12520 CONFIG_SHELL='$SHELL'
12521 export CONFIG_SHELL
12522 exec "\$@"
12523 fi
12524
12525 _ACEOF
12526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12527 exec 5>>config.log
12528 {
12529 echo
12530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12531 ## Running $as_me. ##
12532 _ASBOX
12533 $as_echo "$ac_log"
12534 } >&5
12535
12536 _ACEOF
12537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538 #
12539 # INIT-COMMANDS
12540 #
12541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12542
12543
12544 # The HP-UX ksh and POSIX shell print the target directory to stdout
12545 # if CDPATH is set.
12546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12547
12548 sed_quote_subst='$sed_quote_subst'
12549 double_quote_subst='$double_quote_subst'
12550 delay_variable_subst='$delay_variable_subst'
12551 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12552 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12553 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12554 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12555 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12556 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12557 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12558 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12559 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12560 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12561 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12562 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12563 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12564 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12565 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12566 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12567 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12568 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12569 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12570 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12571 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12572 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12573 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12574 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12575 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12576 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12577 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12578 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12579 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12580 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12581 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12584 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12585 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12586 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12587 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12588 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12589 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12590 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12591 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12592 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12593 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12594 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12595 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12596 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12597 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12598 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12599 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12600 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12601 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12602 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12603 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12604 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12605 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12606 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12607 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"`'
12608 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12609 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12610 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12611 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12612 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12613 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12614 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12615 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12616 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12617 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12618 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12619 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12620 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12621 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12622 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12623 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12624 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12625 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12626 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12627 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12628 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12629 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12630 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12631 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12632 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12633 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12634 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12635 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12636 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12637 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12638 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12639 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12640 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12641 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12642 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12643 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12644 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12645 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12646 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12647 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12648 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12649 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12650 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12651 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12652 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12653 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12654 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12655 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12656 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12657 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12658 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12659 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12660 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12661 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12662 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12663 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12664 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12665 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12666 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12667 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12668 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12669 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12670 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12671 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12672 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12673 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12674 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12675 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12676 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12677 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12678 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12679 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12680 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12681
12682 LTCC='$LTCC'
12683 LTCFLAGS='$LTCFLAGS'
12684 compiler='$compiler_DEFAULT'
12685
12686 # A function that is used when there is no print builtin or printf.
12687 func_fallback_echo ()
12688 {
12689 eval 'cat <<_LTECHO_EOF
12690 \$1
12691 _LTECHO_EOF'
12692 }
12693
12694 # Quote evaled strings.
12695 for var in SHELL \
12696 ECHO \
12697 PATH_SEPARATOR \
12698 SED \
12699 GREP \
12700 EGREP \
12701 FGREP \
12702 LD \
12703 NM \
12704 LN_S \
12705 lt_SP2NL \
12706 lt_NL2SP \
12707 reload_flag \
12708 OBJDUMP \
12709 deplibs_check_method \
12710 file_magic_cmd \
12711 file_magic_glob \
12712 want_nocaseglob \
12713 DLLTOOL \
12714 sharedlib_from_linklib_cmd \
12715 AR \
12716 AR_FLAGS \
12717 archiver_list_spec \
12718 STRIP \
12719 RANLIB \
12720 CC \
12721 CFLAGS \
12722 compiler \
12723 lt_cv_sys_global_symbol_pipe \
12724 lt_cv_sys_global_symbol_to_cdecl \
12725 lt_cv_sys_global_symbol_to_c_name_address \
12726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12727 nm_file_list_spec \
12728 lt_prog_compiler_no_builtin_flag \
12729 lt_prog_compiler_pic \
12730 lt_prog_compiler_wl \
12731 lt_prog_compiler_static \
12732 lt_cv_prog_compiler_c_o \
12733 need_locks \
12734 MANIFEST_TOOL \
12735 DSYMUTIL \
12736 NMEDIT \
12737 LIPO \
12738 OTOOL \
12739 OTOOL64 \
12740 shrext_cmds \
12741 export_dynamic_flag_spec \
12742 whole_archive_flag_spec \
12743 compiler_needs_object \
12744 with_gnu_ld \
12745 allow_undefined_flag \
12746 no_undefined_flag \
12747 hardcode_libdir_flag_spec \
12748 hardcode_libdir_separator \
12749 exclude_expsyms \
12750 include_expsyms \
12751 file_list_spec \
12752 variables_saved_for_relink \
12753 libname_spec \
12754 library_names_spec \
12755 soname_spec \
12756 install_override_mode \
12757 finish_eval \
12758 old_striplib \
12759 striplib; do
12760 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12761 *[\\\\\\\`\\"\\\$]*)
12762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12763 ;;
12764 *)
12765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12766 ;;
12767 esac
12768 done
12769
12770 # Double-quote double-evaled strings.
12771 for var in reload_cmds \
12772 old_postinstall_cmds \
12773 old_postuninstall_cmds \
12774 old_archive_cmds \
12775 extract_expsyms_cmds \
12776 old_archive_from_new_cmds \
12777 old_archive_from_expsyms_cmds \
12778 archive_cmds \
12779 archive_expsym_cmds \
12780 module_cmds \
12781 module_expsym_cmds \
12782 export_symbols_cmds \
12783 prelink_cmds \
12784 postlink_cmds \
12785 postinstall_cmds \
12786 postuninstall_cmds \
12787 finish_cmds \
12788 sys_lib_search_path_spec \
12789 sys_lib_dlsearch_path_spec; do
12790 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12791 *[\\\\\\\`\\"\\\$]*)
12792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12793 ;;
12794 *)
12795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12796 ;;
12797 esac
12798 done
12799
12800 ac_aux_dir='$ac_aux_dir'
12801 xsi_shell='$xsi_shell'
12802 lt_shell_append='$lt_shell_append'
12803
12804 # See if we are running on zsh, and set the options which allow our
12805 # commands through without removal of \ escapes INIT.
12806 if test -n "\${ZSH_VERSION+set}" ; then
12807 setopt NO_GLOB_SUBST
12808 fi
12809
12810
12811 PACKAGE='$PACKAGE'
12812 VERSION='$VERSION'
12813 TIMESTAMP='$TIMESTAMP'
12814 RM='$RM'
12815 ofile='$ofile'
12816
12817
12818
12819
12820 _ACEOF
12821
12822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12823
12824 # Handling of arguments.
12825 for ac_config_target in $ac_config_targets
12826 do
12827 case $ac_config_target in
12828 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12832
12833 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12834 esac
12835 done
12836
12837
12838 # If the user did not use the arguments to specify the items to instantiate,
12839 # then the envvar interface is used. Set only those that are not.
12840 # We use the long form for the default assignment because of an extremely
12841 # bizarre bug on SunOS 4.1.3.
12842 if $ac_need_defaults; then
12843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12846 fi
12847
12848 # Have a temporary directory for convenience. Make it in the build tree
12849 # simply because there is no reason against having it here, and in addition,
12850 # creating and moving files from /tmp can sometimes cause problems.
12851 # Hook for its removal unless debugging.
12852 # Note that there is a small window in which the directory will not be cleaned:
12853 # after its creation but before its name has been assigned to `$tmp'.
12854 $debug ||
12855 {
12856 tmp= ac_tmp=
12857 trap 'exit_status=$?
12858 : "${ac_tmp:=$tmp}"
12859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12860 ' 0
12861 trap 'as_fn_exit 1' 1 2 13 15
12862 }
12863 # Create a (secure) tmp directory for tmp files.
12864
12865 {
12866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12867 test -d "$tmp"
12868 } ||
12869 {
12870 tmp=./conf$$-$RANDOM
12871 (umask 077 && mkdir "$tmp")
12872 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12873 ac_tmp=$tmp
12874
12875 # Set up the scripts for CONFIG_FILES section.
12876 # No need to generate them if there are no CONFIG_FILES.
12877 # This happens for instance with `./config.status config.h'.
12878 if test -n "$CONFIG_FILES"; then
12879
12880
12881 ac_cr=`echo X | tr X '\015'`
12882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12883 # But we know of no other shell where ac_cr would be empty at this
12884 # point, so we can use a bashism as a fallback.
12885 if test "x$ac_cr" = x; then
12886 eval ac_cr=\$\'\\r\'
12887 fi
12888 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12890 ac_cs_awk_cr='\\r'
12891 else
12892 ac_cs_awk_cr=$ac_cr
12893 fi
12894
12895 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12896 _ACEOF
12897
12898
12899 {
12900 echo "cat >conf$$subs.awk <<_ACEOF" &&
12901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12902 echo "_ACEOF"
12903 } >conf$$subs.sh ||
12904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12906 ac_delim='%!_!# '
12907 for ac_last_try in false false false false false :; do
12908 . ./conf$$subs.sh ||
12909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12910
12911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12912 if test $ac_delim_n = $ac_delim_num; then
12913 break
12914 elif $ac_last_try; then
12915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12916 else
12917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12918 fi
12919 done
12920 rm -f conf$$subs.sh
12921
12922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12923 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12924 _ACEOF
12925 sed -n '
12926 h
12927 s/^/S["/; s/!.*/"]=/
12928 p
12929 g
12930 s/^[^!]*!//
12931 :repl
12932 t repl
12933 s/'"$ac_delim"'$//
12934 t delim
12935 :nl
12936 h
12937 s/\(.\{148\}\)..*/\1/
12938 t more1
12939 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12940 p
12941 n
12942 b repl
12943 :more1
12944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12945 p
12946 g
12947 s/.\{148\}//
12948 t nl
12949 :delim
12950 h
12951 s/\(.\{148\}\)..*/\1/
12952 t more2
12953 s/["\\]/\\&/g; s/^/"/; s/$/"/
12954 p
12955 b
12956 :more2
12957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12958 p
12959 g
12960 s/.\{148\}//
12961 t delim
12962 ' <conf$$subs.awk | sed '
12963 /^[^""]/{
12964 N
12965 s/\n//
12966 }
12967 ' >>$CONFIG_STATUS || ac_write_fail=1
12968 rm -f conf$$subs.awk
12969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970 _ACAWK
12971 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12972 for (key in S) S_is_set[key] = 1
12973 FS = "\a"
12974
12975 }
12976 {
12977 line = $ 0
12978 nfields = split(line, field, "@")
12979 substed = 0
12980 len = length(field[1])
12981 for (i = 2; i < nfields; i++) {
12982 key = field[i]
12983 keylen = length(key)
12984 if (S_is_set[key]) {
12985 value = S[key]
12986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12987 len += length(value) + length(field[++i])
12988 substed = 1
12989 } else
12990 len += 1 + keylen
12991 }
12992
12993 print line
12994 }
12995
12996 _ACAWK
12997 _ACEOF
12998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12999 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13001 else
13002 cat
13003 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13005 _ACEOF
13006
13007 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13008 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13009 # trailing colons and then remove the whole line if VPATH becomes empty
13010 # (actually we leave an empty line to preserve line numbers).
13011 if test "x$srcdir" = x.; then
13012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13013 h
13014 s///
13015 s/^/:/
13016 s/[ ]*$/:/
13017 s/:\$(srcdir):/:/g
13018 s/:\${srcdir}:/:/g
13019 s/:@srcdir@:/:/g
13020 s/^:*//
13021 s/:*$//
13022 x
13023 s/\(=[ ]*\).*/\1/
13024 G
13025 s/\n//
13026 s/^[^=]*=[ ]*$//
13027 }'
13028 fi
13029
13030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031 fi # test -n "$CONFIG_FILES"
13032
13033 # Set up the scripts for CONFIG_HEADERS section.
13034 # No need to generate them if there are no CONFIG_HEADERS.
13035 # This happens for instance with `./config.status Makefile'.
13036 if test -n "$CONFIG_HEADERS"; then
13037 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13038 BEGIN {
13039 _ACEOF
13040
13041 # Transform confdefs.h into an awk script `defines.awk', embedded as
13042 # here-document in config.status, that substitutes the proper values into
13043 # config.h.in to produce config.h.
13044
13045 # Create a delimiter string that does not exist in confdefs.h, to ease
13046 # handling of long lines.
13047 ac_delim='%!_!# '
13048 for ac_last_try in false false :; do
13049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13050 if test -z "$ac_tt"; then
13051 break
13052 elif $ac_last_try; then
13053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13054 else
13055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13056 fi
13057 done
13058
13059 # For the awk script, D is an array of macro values keyed by name,
13060 # likewise P contains macro parameters if any. Preserve backslash
13061 # newline sequences.
13062
13063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13064 sed -n '
13065 s/.\{148\}/&'"$ac_delim"'/g
13066 t rset
13067 :rset
13068 s/^[ ]*#[ ]*define[ ][ ]*/ /
13069 t def
13070 d
13071 :def
13072 s/\\$//
13073 t bsnl
13074 s/["\\]/\\&/g
13075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13076 D["\1"]=" \3"/p
13077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13078 d
13079 :bsnl
13080 s/["\\]/\\&/g
13081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13082 D["\1"]=" \3\\\\\\n"\\/p
13083 t cont
13084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13085 t cont
13086 d
13087 :cont
13088 n
13089 s/.\{148\}/&'"$ac_delim"'/g
13090 t clear
13091 :clear
13092 s/\\$//
13093 t bsnlc
13094 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13095 d
13096 :bsnlc
13097 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13098 b cont
13099 ' <confdefs.h | sed '
13100 s/'"$ac_delim"'/"\\\
13101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13102
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104 for (key in D) D_is_set[key] = 1
13105 FS = "\a"
13106 }
13107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13108 line = \$ 0
13109 split(line, arg, " ")
13110 if (arg[1] == "#") {
13111 defundef = arg[2]
13112 mac1 = arg[3]
13113 } else {
13114 defundef = substr(arg[1], 2)
13115 mac1 = arg[2]
13116 }
13117 split(mac1, mac2, "(") #)
13118 macro = mac2[1]
13119 prefix = substr(line, 1, index(line, defundef) - 1)
13120 if (D_is_set[macro]) {
13121 # Preserve the white space surrounding the "#".
13122 print prefix "define", macro P[macro] D[macro]
13123 next
13124 } else {
13125 # Replace #undef with comments. This is necessary, for example,
13126 # in the case of _POSIX_SOURCE, which is predefined and required
13127 # on some systems where configure will not decide to define it.
13128 if (defundef == "undef") {
13129 print "/*", prefix defundef, macro, "*/"
13130 next
13131 }
13132 }
13133 }
13134 { print }
13135 _ACAWK
13136 _ACEOF
13137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13139 fi # test -n "$CONFIG_HEADERS"
13140
13141
13142 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13143 shift
13144 for ac_tag
13145 do
13146 case $ac_tag in
13147 :[FHLC]) ac_mode=$ac_tag; continue;;
13148 esac
13149 case $ac_mode$ac_tag in
13150 :[FHL]*:*);;
13151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13152 :[FH]-) ac_tag=-:-;;
13153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13154 esac
13155 ac_save_IFS=$IFS
13156 IFS=:
13157 set x $ac_tag
13158 IFS=$ac_save_IFS
13159 shift
13160 ac_file=$1
13161 shift
13162
13163 case $ac_mode in
13164 :L) ac_source=$1;;
13165 :[FH])
13166 ac_file_inputs=
13167 for ac_f
13168 do
13169 case $ac_f in
13170 -) ac_f="$ac_tmp/stdin";;
13171 *) # Look for the file first in the build tree, then in the source tree
13172 # (if the path is not absolute). The absolute path cannot be DOS-style,
13173 # because $ac_f cannot contain `:'.
13174 test -f "$ac_f" ||
13175 case $ac_f in
13176 [\\/$]*) false;;
13177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13178 esac ||
13179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13180 esac
13181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13182 as_fn_append ac_file_inputs " '$ac_f'"
13183 done
13184
13185 # Let's still pretend it is `configure' which instantiates (i.e., don't
13186 # use $as_me), people would be surprised to read:
13187 # /* config.h. Generated by config.status. */
13188 configure_input='Generated from '`
13189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13190 `' by configure.'
13191 if test x"$ac_file" != x-; then
13192 configure_input="$ac_file. $configure_input"
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13194 $as_echo "$as_me: creating $ac_file" >&6;}
13195 fi
13196 # Neutralize special characters interpreted by sed in replacement strings.
13197 case $configure_input in #(
13198 *\&* | *\|* | *\\* )
13199 ac_sed_conf_input=`$as_echo "$configure_input" |
13200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13201 *) ac_sed_conf_input=$configure_input;;
13202 esac
13203
13204 case $ac_tag in
13205 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13207 esac
13208 ;;
13209 esac
13210
13211 ac_dir=`$as_dirname -- "$ac_file" ||
13212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13213 X"$ac_file" : 'X\(//\)[^/]' \| \
13214 X"$ac_file" : 'X\(//\)$' \| \
13215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13216 $as_echo X"$ac_file" |
13217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13218 s//\1/
13219 q
13220 }
13221 /^X\(\/\/\)[^/].*/{
13222 s//\1/
13223 q
13224 }
13225 /^X\(\/\/\)$/{
13226 s//\1/
13227 q
13228 }
13229 /^X\(\/\).*/{
13230 s//\1/
13231 q
13232 }
13233 s/.*/./; q'`
13234 as_dir="$ac_dir"; as_fn_mkdir_p
13235 ac_builddir=.
13236
13237 case "$ac_dir" in
13238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13239 *)
13240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13241 # A ".." for each directory in $ac_dir_suffix.
13242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13243 case $ac_top_builddir_sub in
13244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13246 esac ;;
13247 esac
13248 ac_abs_top_builddir=$ac_pwd
13249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13250 # for backward compatibility:
13251 ac_top_builddir=$ac_top_build_prefix
13252
13253 case $srcdir in
13254 .) # We are building in place.
13255 ac_srcdir=.
13256 ac_top_srcdir=$ac_top_builddir_sub
13257 ac_abs_top_srcdir=$ac_pwd ;;
13258 [\\/]* | ?:[\\/]* ) # Absolute name.
13259 ac_srcdir=$srcdir$ac_dir_suffix;
13260 ac_top_srcdir=$srcdir
13261 ac_abs_top_srcdir=$srcdir ;;
13262 *) # Relative name.
13263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13264 ac_top_srcdir=$ac_top_build_prefix$srcdir
13265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13266 esac
13267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13268
13269
13270 case $ac_mode in
13271 :F)
13272 #
13273 # CONFIG_FILE
13274 #
13275
13276 case $INSTALL in
13277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13279 esac
13280 ac_MKDIR_P=$MKDIR_P
13281 case $MKDIR_P in
13282 [\\/$]* | ?:[\\/]* ) ;;
13283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13284 esac
13285 _ACEOF
13286
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288 # If the template does not know about datarootdir, expand it.
13289 # FIXME: This hack should be removed a few years after 2.60.
13290 ac_datarootdir_hack=; ac_datarootdir_seen=
13291 ac_sed_dataroot='
13292 /datarootdir/ {
13293 p
13294 q
13295 }
13296 /@datadir@/p
13297 /@docdir@/p
13298 /@infodir@/p
13299 /@localedir@/p
13300 /@mandir@/p'
13301 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13302 *datarootdir*) ac_datarootdir_seen=yes;;
13303 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13305 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13306 _ACEOF
13307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13308 ac_datarootdir_hack='
13309 s&@datadir@&$datadir&g
13310 s&@docdir@&$docdir&g
13311 s&@infodir@&$infodir&g
13312 s&@localedir@&$localedir&g
13313 s&@mandir@&$mandir&g
13314 s&\\\${datarootdir}&$datarootdir&g' ;;
13315 esac
13316 _ACEOF
13317
13318 # Neutralize VPATH when `$srcdir' = `.'.
13319 # Shell code in configure.ac might set extrasub.
13320 # FIXME: do we really want to maintain this feature?
13321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322 ac_sed_extra="$ac_vpsub
13323 $extrasub
13324 _ACEOF
13325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13326 :t
13327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13328 s|@configure_input@|$ac_sed_conf_input|;t t
13329 s&@top_builddir@&$ac_top_builddir_sub&;t t
13330 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13331 s&@srcdir@&$ac_srcdir&;t t
13332 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13333 s&@top_srcdir@&$ac_top_srcdir&;t t
13334 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13335 s&@builddir@&$ac_builddir&;t t
13336 s&@abs_builddir@&$ac_abs_builddir&;t t
13337 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13338 s&@INSTALL@&$ac_INSTALL&;t t
13339 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13340 $ac_datarootdir_hack
13341 "
13342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13343 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13344
13345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13348 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13350 which seems to be undefined. Please make sure it is defined" >&5
13351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13352 which seems to be undefined. Please make sure it is defined" >&2;}
13353
13354 rm -f "$ac_tmp/stdin"
13355 case $ac_file in
13356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13358 esac \
13359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13360 ;;
13361 :H)
13362 #
13363 # CONFIG_HEADER
13364 #
13365 if test x"$ac_file" != x-; then
13366 {
13367 $as_echo "/* $configure_input */" \
13368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13369 } >"$ac_tmp/config.h" \
13370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13374 else
13375 rm -f "$ac_file"
13376 mv "$ac_tmp/config.h" "$ac_file" \
13377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13378 fi
13379 else
13380 $as_echo "/* $configure_input */" \
13381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13382 || as_fn_error $? "could not create -" "$LINENO" 5
13383 fi
13384 # Compute "$ac_file"'s index in $config_headers.
13385 _am_arg="$ac_file"
13386 _am_stamp_count=1
13387 for _am_header in $config_headers :; do
13388 case $_am_header in
13389 $_am_arg | $_am_arg:* )
13390 break ;;
13391 * )
13392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13393 esac
13394 done
13395 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13396 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397 X"$_am_arg" : 'X\(//\)[^/]' \| \
13398 X"$_am_arg" : 'X\(//\)$' \| \
13399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13400 $as_echo X"$_am_arg" |
13401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13402 s//\1/
13403 q
13404 }
13405 /^X\(\/\/\)[^/].*/{
13406 s//\1/
13407 q
13408 }
13409 /^X\(\/\/\)$/{
13410 s//\1/
13411 q
13412 }
13413 /^X\(\/\).*/{
13414 s//\1/
13415 q
13416 }
13417 s/.*/./; q'`/stamp-h$_am_stamp_count
13418 ;;
13419
13420 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13421 $as_echo "$as_me: executing $ac_file commands" >&6;}
13422 ;;
13423 esac
13424
13425
13426 case $ac_file$ac_mode in
13427 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13428 # Older Autoconf quotes --file arguments for eval, but not when files
13429 # are listed without --file. Let's play safe and only enable the eval
13430 # if we detect the quoting.
13431 case $CONFIG_FILES in
13432 *\'*) eval set x "$CONFIG_FILES" ;;
13433 *) set x $CONFIG_FILES ;;
13434 esac
13435 shift
13436 for mf
13437 do
13438 # Strip MF so we end up with the name of the file.
13439 mf=`echo "$mf" | sed -e 's/:.*$//'`
13440 # Check whether this is an Automake generated Makefile or not.
13441 # We used to match only the files named 'Makefile.in', but
13442 # some people rename them; so instead we look at the file content.
13443 # Grep'ing the first line is not enough: some people post-process
13444 # each Makefile.in and add a new line on top of each file to say so.
13445 # Grep'ing the whole file is not good either: AIX grep has a line
13446 # limit of 2048, but all sed's we know have understand at least 4000.
13447 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13448 dirpart=`$as_dirname -- "$mf" ||
13449 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13450 X"$mf" : 'X\(//\)[^/]' \| \
13451 X"$mf" : 'X\(//\)$' \| \
13452 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13453 $as_echo X"$mf" |
13454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\/\)[^/].*/{
13459 s//\1/
13460 q
13461 }
13462 /^X\(\/\/\)$/{
13463 s//\1/
13464 q
13465 }
13466 /^X\(\/\).*/{
13467 s//\1/
13468 q
13469 }
13470 s/.*/./; q'`
13471 else
13472 continue
13473 fi
13474 # Extract the definition of DEPDIR, am__include, and am__quote
13475 # from the Makefile without running 'make'.
13476 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13477 test -z "$DEPDIR" && continue
13478 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13479 test -z "$am__include" && continue
13480 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13481 # Find all dependency output files, they are included files with
13482 # $(DEPDIR) in their names. We invoke sed twice because it is the
13483 # simplest approach to changing $(DEPDIR) to its actual value in the
13484 # expansion.
13485 for file in `sed -n "
13486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13488 # Make sure the directory exists.
13489 test -f "$dirpart/$file" && continue
13490 fdir=`$as_dirname -- "$file" ||
13491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13492 X"$file" : 'X\(//\)[^/]' \| \
13493 X"$file" : 'X\(//\)$' \| \
13494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13495 $as_echo X"$file" |
13496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13497 s//\1/
13498 q
13499 }
13500 /^X\(\/\/\)[^/].*/{
13501 s//\1/
13502 q
13503 }
13504 /^X\(\/\/\)$/{
13505 s//\1/
13506 q
13507 }
13508 /^X\(\/\).*/{
13509 s//\1/
13510 q
13511 }
13512 s/.*/./; q'`
13513 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13514 # echo "creating $dirpart/$file"
13515 echo '# dummy' > "$dirpart/$file"
13516 done
13517 done
13518 }
13519 ;;
13520 "libtool":C)
13521
13522 # See if we are running on zsh, and set the options which allow our
13523 # commands through without removal of \ escapes.
13524 if test -n "${ZSH_VERSION+set}" ; then
13525 setopt NO_GLOB_SUBST
13526 fi
13527
13528 cfgfile="${ofile}T"
13529 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13530 $RM "$cfgfile"
13531
13532 cat <<_LT_EOF >> "$cfgfile"
13533 #! $SHELL
13534
13535 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13536 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13538 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13539 #
13540 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13541 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13542 # Foundation, Inc.
13543 # Written by Gordon Matzigkeit, 1996
13544 #
13545 # This file is part of GNU Libtool.
13546 #
13547 # GNU Libtool is free software; you can redistribute it and/or
13548 # modify it under the terms of the GNU General Public License as
13549 # published by the Free Software Foundation; either version 2 of
13550 # the License, or (at your option) any later version.
13551 #
13552 # As a special exception to the GNU General Public License,
13553 # if you distribute this file as part of a program or library that
13554 # is built using GNU Libtool, you may include this file under the
13555 # same distribution terms that you use for the rest of that program.
13556 #
13557 # GNU Libtool is distributed in the hope that it will be useful,
13558 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13560 # GNU General Public License for more details.
13561 #
13562 # You should have received a copy of the GNU General Public License
13563 # along with GNU Libtool; see the file COPYING. If not, a copy
13564 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13565 # obtained by writing to the Free Software Foundation, Inc.,
13566 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13567
13568
13569 # The names of the tagged configurations supported by this script.
13570 available_tags=""
13571
13572 # ### BEGIN LIBTOOL CONFIG
13573
13574 # Which release of libtool.m4 was used?
13575 macro_version=$macro_version
13576 macro_revision=$macro_revision
13577
13578 # Whether or not to build shared libraries.
13579 build_libtool_libs=$enable_shared
13580
13581 # Whether or not to build static libraries.
13582 build_old_libs=$enable_static
13583
13584 # What type of objects to build.
13585 pic_mode=$pic_mode
13586
13587 # Whether or not to optimize for fast installation.
13588 fast_install=$enable_fast_install
13589
13590 # Shell to use when invoking shell scripts.
13591 SHELL=$lt_SHELL
13592
13593 # An echo program that protects backslashes.
13594 ECHO=$lt_ECHO
13595
13596 # The PATH separator for the build system.
13597 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13598
13599 # The host system.
13600 host_alias=$host_alias
13601 host=$host
13602 host_os=$host_os
13603
13604 # The build system.
13605 build_alias=$build_alias
13606 build=$build
13607 build_os=$build_os
13608
13609 # A sed program that does not truncate output.
13610 SED=$lt_SED
13611
13612 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13613 Xsed="\$SED -e 1s/^X//"
13614
13615 # A grep program that handles long lines.
13616 GREP=$lt_GREP
13617
13618 # An ERE matcher.
13619 EGREP=$lt_EGREP
13620
13621 # A literal string matcher.
13622 FGREP=$lt_FGREP
13623
13624 # A BSD- or MS-compatible name lister.
13625 NM=$lt_NM
13626
13627 # Whether we need soft or hard links.
13628 LN_S=$lt_LN_S
13629
13630 # What is the maximum length of a command?
13631 max_cmd_len=$max_cmd_len
13632
13633 # Object file suffix (normally "o").
13634 objext=$ac_objext
13635
13636 # Executable file suffix (normally "").
13637 exeext=$exeext
13638
13639 # whether the shell understands "unset".
13640 lt_unset=$lt_unset
13641
13642 # turn spaces into newlines.
13643 SP2NL=$lt_lt_SP2NL
13644
13645 # turn newlines into spaces.
13646 NL2SP=$lt_lt_NL2SP
13647
13648 # convert \$build file names to \$host format.
13649 to_host_file_cmd=$lt_cv_to_host_file_cmd
13650
13651 # convert \$build files to toolchain format.
13652 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13653
13654 # An object symbol dumper.
13655 OBJDUMP=$lt_OBJDUMP
13656
13657 # Method to check whether dependent libraries are shared objects.
13658 deplibs_check_method=$lt_deplibs_check_method
13659
13660 # Command to use when deplibs_check_method = "file_magic".
13661 file_magic_cmd=$lt_file_magic_cmd
13662
13663 # How to find potential files when deplibs_check_method = "file_magic".
13664 file_magic_glob=$lt_file_magic_glob
13665
13666 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13667 want_nocaseglob=$lt_want_nocaseglob
13668
13669 # DLL creation program.
13670 DLLTOOL=$lt_DLLTOOL
13671
13672 # Command to associate shared and link libraries.
13673 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13674
13675 # The archiver.
13676 AR=$lt_AR
13677
13678 # Flags to create an archive.
13679 AR_FLAGS=$lt_AR_FLAGS
13680
13681 # How to feed a file listing to the archiver.
13682 archiver_list_spec=$lt_archiver_list_spec
13683
13684 # A symbol stripping program.
13685 STRIP=$lt_STRIP
13686
13687 # Commands used to install an old-style archive.
13688 RANLIB=$lt_RANLIB
13689 old_postinstall_cmds=$lt_old_postinstall_cmds
13690 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13691
13692 # Whether to use a lock for old archive extraction.
13693 lock_old_archive_extraction=$lock_old_archive_extraction
13694
13695 # A C compiler.
13696 LTCC=$lt_CC
13697
13698 # LTCC compiler flags.
13699 LTCFLAGS=$lt_CFLAGS
13700
13701 # Take the output of nm and produce a listing of raw symbols and C names.
13702 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13703
13704 # Transform the output of nm in a proper C declaration.
13705 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13706
13707 # Transform the output of nm in a C name address pair.
13708 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13709
13710 # Transform the output of nm in a C name address pair when lib prefix is needed.
13711 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13712
13713 # Specify filename containing input files for \$NM.
13714 nm_file_list_spec=$lt_nm_file_list_spec
13715
13716 # The root where to search for dependent libraries,and in which our libraries should be installed.
13717 lt_sysroot=$lt_sysroot
13718
13719 # The name of the directory that contains temporary libtool files.
13720 objdir=$objdir
13721
13722 # Used to examine libraries when file_magic_cmd begins with "file".
13723 MAGIC_CMD=$MAGIC_CMD
13724
13725 # Must we lock files when doing compilation?
13726 need_locks=$lt_need_locks
13727
13728 # Manifest tool.
13729 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13730
13731 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13732 DSYMUTIL=$lt_DSYMUTIL
13733
13734 # Tool to change global to local symbols on Mac OS X.
13735 NMEDIT=$lt_NMEDIT
13736
13737 # Tool to manipulate fat objects and archives on Mac OS X.
13738 LIPO=$lt_LIPO
13739
13740 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13741 OTOOL=$lt_OTOOL
13742
13743 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13744 OTOOL64=$lt_OTOOL64
13745
13746 # Old archive suffix (normally "a").
13747 libext=$libext
13748
13749 # Shared library suffix (normally ".so").
13750 shrext_cmds=$lt_shrext_cmds
13751
13752 # The commands to extract the exported symbol list from a shared archive.
13753 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13754
13755 # Variables whose values should be saved in libtool wrapper scripts and
13756 # restored at link time.
13757 variables_saved_for_relink=$lt_variables_saved_for_relink
13758
13759 # Do we need the "lib" prefix for modules?
13760 need_lib_prefix=$need_lib_prefix
13761
13762 # Do we need a version for libraries?
13763 need_version=$need_version
13764
13765 # Library versioning type.
13766 version_type=$version_type
13767
13768 # Shared library runtime path variable.
13769 runpath_var=$runpath_var
13770
13771 # Shared library path variable.
13772 shlibpath_var=$shlibpath_var
13773
13774 # Is shlibpath searched before the hard-coded library search path?
13775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13776
13777 # Format of library name prefix.
13778 libname_spec=$lt_libname_spec
13779
13780 # List of archive names. First name is the real one, the rest are links.
13781 # The last name is the one that the linker finds with -lNAME
13782 library_names_spec=$lt_library_names_spec
13783
13784 # The coded name of the library, if different from the real name.
13785 soname_spec=$lt_soname_spec
13786
13787 # Permission mode override for installation of shared libraries.
13788 install_override_mode=$lt_install_override_mode
13789
13790 # Command to use after installation of a shared archive.
13791 postinstall_cmds=$lt_postinstall_cmds
13792
13793 # Command to use after uninstallation of a shared archive.
13794 postuninstall_cmds=$lt_postuninstall_cmds
13795
13796 # Commands used to finish a libtool library installation in a directory.
13797 finish_cmds=$lt_finish_cmds
13798
13799 # As "finish_cmds", except a single script fragment to be evaled but
13800 # not shown.
13801 finish_eval=$lt_finish_eval
13802
13803 # Whether we should hardcode library paths into libraries.
13804 hardcode_into_libs=$hardcode_into_libs
13805
13806 # Compile-time system search path for libraries.
13807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13808
13809 # Run-time system search path for libraries.
13810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13811
13812 # Whether dlopen is supported.
13813 dlopen_support=$enable_dlopen
13814
13815 # Whether dlopen of programs is supported.
13816 dlopen_self=$enable_dlopen_self
13817
13818 # Whether dlopen of statically linked programs is supported.
13819 dlopen_self_static=$enable_dlopen_self_static
13820
13821 # Commands to strip libraries.
13822 old_striplib=$lt_old_striplib
13823 striplib=$lt_striplib
13824
13825
13826 # The linker used to build libraries.
13827 LD=$lt_LD
13828
13829 # How to create reloadable object files.
13830 reload_flag=$lt_reload_flag
13831 reload_cmds=$lt_reload_cmds
13832
13833 # Commands used to build an old-style archive.
13834 old_archive_cmds=$lt_old_archive_cmds
13835
13836 # A language specific compiler.
13837 CC=$lt_compiler
13838
13839 # Is the compiler the GNU compiler?
13840 with_gcc=$GCC
13841
13842 # Compiler flag to turn off builtin functions.
13843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13844
13845 # Additional compiler flags for building library objects.
13846 pic_flag=$lt_lt_prog_compiler_pic
13847
13848 # How to pass a linker flag through the compiler.
13849 wl=$lt_lt_prog_compiler_wl
13850
13851 # Compiler flag to prevent dynamic linking.
13852 link_static_flag=$lt_lt_prog_compiler_static
13853
13854 # Does compiler simultaneously support -c and -o options?
13855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13856
13857 # Whether or not to add -lc for building shared libraries.
13858 build_libtool_need_lc=$archive_cmds_need_lc
13859
13860 # Whether or not to disallow shared libs when runtime libs are static.
13861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13862
13863 # Compiler flag to allow reflexive dlopens.
13864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13865
13866 # Compiler flag to generate shared objects directly from archives.
13867 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13868
13869 # Whether the compiler copes with passing no objects directly.
13870 compiler_needs_object=$lt_compiler_needs_object
13871
13872 # Create an old-style archive from a shared archive.
13873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13874
13875 # Create a temporary old-style archive to link instead of a shared archive.
13876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13877
13878 # Commands used to build a shared archive.
13879 archive_cmds=$lt_archive_cmds
13880 archive_expsym_cmds=$lt_archive_expsym_cmds
13881
13882 # Commands used to build a loadable module if different from building
13883 # a shared archive.
13884 module_cmds=$lt_module_cmds
13885 module_expsym_cmds=$lt_module_expsym_cmds
13886
13887 # Whether we are building with GNU ld or not.
13888 with_gnu_ld=$lt_with_gnu_ld
13889
13890 # Flag that allows shared libraries with undefined symbols to be built.
13891 allow_undefined_flag=$lt_allow_undefined_flag
13892
13893 # Flag that enforces no undefined symbols.
13894 no_undefined_flag=$lt_no_undefined_flag
13895
13896 # Flag to hardcode \$libdir into a binary during linking.
13897 # This must work even if \$libdir does not exist
13898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13899
13900 # Whether we need a single "-rpath" flag with a separated argument.
13901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13902
13903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13904 # DIR into the resulting binary.
13905 hardcode_direct=$hardcode_direct
13906
13907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13908 # DIR into the resulting binary and the resulting library dependency is
13909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13910 # library is relocated.
13911 hardcode_direct_absolute=$hardcode_direct_absolute
13912
13913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13914 # into the resulting binary.
13915 hardcode_minus_L=$hardcode_minus_L
13916
13917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13918 # into the resulting binary.
13919 hardcode_shlibpath_var=$hardcode_shlibpath_var
13920
13921 # Set to "yes" if building a shared library automatically hardcodes DIR
13922 # into the library and all subsequent libraries and executables linked
13923 # against it.
13924 hardcode_automatic=$hardcode_automatic
13925
13926 # Set to yes if linker adds runtime paths of dependent libraries
13927 # to runtime path list.
13928 inherit_rpath=$inherit_rpath
13929
13930 # Whether libtool must link a program against all its dependency libraries.
13931 link_all_deplibs=$link_all_deplibs
13932
13933 # Set to "yes" if exported symbols are required.
13934 always_export_symbols=$always_export_symbols
13935
13936 # The commands to list exported symbols.
13937 export_symbols_cmds=$lt_export_symbols_cmds
13938
13939 # Symbols that should not be listed in the preloaded symbols.
13940 exclude_expsyms=$lt_exclude_expsyms
13941
13942 # Symbols that must always be exported.
13943 include_expsyms=$lt_include_expsyms
13944
13945 # Commands necessary for linking programs (against libraries) with templates.
13946 prelink_cmds=$lt_prelink_cmds
13947
13948 # Commands necessary for finishing linking programs.
13949 postlink_cmds=$lt_postlink_cmds
13950
13951 # Specify filename containing input files.
13952 file_list_spec=$lt_file_list_spec
13953
13954 # How to hardcode a shared library path into an executable.
13955 hardcode_action=$hardcode_action
13956
13957 # ### END LIBTOOL CONFIG
13958
13959 _LT_EOF
13960
13961 case $host_os in
13962 aix3*)
13963 cat <<\_LT_EOF >> "$cfgfile"
13964 # AIX sometimes has problems with the GCC collect2 program. For some
13965 # reason, if we set the COLLECT_NAMES environment variable, the problems
13966 # vanish in a puff of smoke.
13967 if test "X${COLLECT_NAMES+set}" != Xset; then
13968 COLLECT_NAMES=
13969 export COLLECT_NAMES
13970 fi
13971 _LT_EOF
13972 ;;
13973 esac
13974
13975
13976 ltmain="$ac_aux_dir/ltmain.sh"
13977
13978
13979 # We use sed instead of cat because bash on DJGPP gets confused if
13980 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13981 # text mode, it properly converts lines to CR/LF. This bash problem
13982 # is reportedly fixed, but why not run on old versions too?
13983 sed '$q' "$ltmain" >> "$cfgfile" \
13984 || (rm -f "$cfgfile"; exit 1)
13985
13986 if test x"$xsi_shell" = xyes; then
13987 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13988 func_dirname ()\
13989 {\
13990 \ case ${1} in\
13991 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13992 \ * ) func_dirname_result="${3}" ;;\
13993 \ esac\
13994 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13995 && mv -f "$cfgfile.tmp" "$cfgfile" \
13996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13997 test 0 -eq $? || _lt_function_replace_fail=:
13998
13999
14000 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14001 func_basename ()\
14002 {\
14003 \ func_basename_result="${1##*/}"\
14004 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14005 && mv -f "$cfgfile.tmp" "$cfgfile" \
14006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14007 test 0 -eq $? || _lt_function_replace_fail=:
14008
14009
14010 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14011 func_dirname_and_basename ()\
14012 {\
14013 \ case ${1} in\
14014 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14015 \ * ) func_dirname_result="${3}" ;;\
14016 \ esac\
14017 \ func_basename_result="${1##*/}"\
14018 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14019 && mv -f "$cfgfile.tmp" "$cfgfile" \
14020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14021 test 0 -eq $? || _lt_function_replace_fail=:
14022
14023
14024 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14025 func_stripname ()\
14026 {\
14027 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14028 \ # positional parameters, so assign one to ordinary parameter first.\
14029 \ func_stripname_result=${3}\
14030 \ func_stripname_result=${func_stripname_result#"${1}"}\
14031 \ func_stripname_result=${func_stripname_result%"${2}"}\
14032 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14033 && mv -f "$cfgfile.tmp" "$cfgfile" \
14034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14035 test 0 -eq $? || _lt_function_replace_fail=:
14036
14037
14038 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14039 func_split_long_opt ()\
14040 {\
14041 \ func_split_long_opt_name=${1%%=*}\
14042 \ func_split_long_opt_arg=${1#*=}\
14043 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14044 && mv -f "$cfgfile.tmp" "$cfgfile" \
14045 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14046 test 0 -eq $? || _lt_function_replace_fail=:
14047
14048
14049 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14050 func_split_short_opt ()\
14051 {\
14052 \ func_split_short_opt_arg=${1#??}\
14053 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14054 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14055 && mv -f "$cfgfile.tmp" "$cfgfile" \
14056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14057 test 0 -eq $? || _lt_function_replace_fail=:
14058
14059
14060 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14061 func_lo2o ()\
14062 {\
14063 \ case ${1} in\
14064 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14065 \ *) func_lo2o_result=${1} ;;\
14066 \ esac\
14067 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14068 && mv -f "$cfgfile.tmp" "$cfgfile" \
14069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14070 test 0 -eq $? || _lt_function_replace_fail=:
14071
14072
14073 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14074 func_xform ()\
14075 {\
14076 func_xform_result=${1%.*}.lo\
14077 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14078 && mv -f "$cfgfile.tmp" "$cfgfile" \
14079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14080 test 0 -eq $? || _lt_function_replace_fail=:
14081
14082
14083 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14084 func_arith ()\
14085 {\
14086 func_arith_result=$(( $* ))\
14087 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14088 && mv -f "$cfgfile.tmp" "$cfgfile" \
14089 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14090 test 0 -eq $? || _lt_function_replace_fail=:
14091
14092
14093 sed -e '/^func_len ()$/,/^} # func_len /c\
14094 func_len ()\
14095 {\
14096 func_len_result=${#1}\
14097 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14098 && mv -f "$cfgfile.tmp" "$cfgfile" \
14099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14100 test 0 -eq $? || _lt_function_replace_fail=:
14101
14102 fi
14103
14104 if test x"$lt_shell_append" = xyes; then
14105 sed -e '/^func_append ()$/,/^} # func_append /c\
14106 func_append ()\
14107 {\
14108 eval "${1}+=\\${2}"\
14109 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14110 && mv -f "$cfgfile.tmp" "$cfgfile" \
14111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14112 test 0 -eq $? || _lt_function_replace_fail=:
14113
14114
14115 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14116 func_append_quoted ()\
14117 {\
14118 \ func_quote_for_eval "${2}"\
14119 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14120 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14121 && mv -f "$cfgfile.tmp" "$cfgfile" \
14122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14123 test 0 -eq $? || _lt_function_replace_fail=:
14124
14125
14126 # Save a `func_append' function call where possible by direct use of '+='
14127 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14128 && mv -f "$cfgfile.tmp" "$cfgfile" \
14129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130 test 0 -eq $? || _lt_function_replace_fail=:
14131 else
14132 # Save a `func_append' function call even when '+=' is not available
14133 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14134 && mv -f "$cfgfile.tmp" "$cfgfile" \
14135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14136 test 0 -eq $? || _lt_function_replace_fail=:
14137 fi
14138
14139 if test x"$_lt_function_replace_fail" = x":"; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14141 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14142 fi
14143
14144
14145 mv -f "$cfgfile" "$ofile" ||
14146 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14147 chmod +x "$ofile"
14148
14149 ;;
14150
14151 esac
14152 done # for ac_tag
14153
14154
14155 as_fn_exit 0
14156 _ACEOF
14157 ac_clean_files=$ac_clean_files_save
14158
14159 test $ac_write_fail = 0 ||
14160 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14161
14162
14163 # configure is writing to config.log, and then calls config.status.
14164 # config.status does its own redirection, appending to config.log.
14165 # Unfortunately, on DOS this fails, as config.log is still kept open
14166 # by configure, so config.status won't be able to write to it; its
14167 # output is simply discarded. So we exec the FD to /dev/null,
14168 # effectively closing config.log, so it can be properly (re)opened and
14169 # appended to by config.status. When coming back to configure, we
14170 # need to make the FD available again.
14171 if test "$no_create" != yes; then
14172 ac_cs_success=:
14173 ac_config_status_args=
14174 test "$silent" = yes &&
14175 ac_config_status_args="$ac_config_status_args --quiet"
14176 exec 5>/dev/null
14177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14178 exec 5>>config.log
14179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14180 # would make configure fail if this is the last instruction.
14181 $ac_cs_success || as_fn_exit 1
14182 fi
14183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14186 fi
14187