Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / userdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libuserdb 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='libuserdb'
592 PACKAGE_TARNAME='libuserdb'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='libuserdb 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="userdb.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 CRYPTLIBS
642 HMACLIB
643 SHA1LIB
644 MD5LIB
645 makedat
646 tmpdir
647 userdbtmpdir
648 USERDB
649 userdb
650 PERL
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 LIBTOOL
680 LN_S
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 with_userdb
776 with_userdbmandir
777 with_userdbtmpdir
778 with_makedatprog
779 enable_largefile
780 with_random
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1385
1386 cat <<\_ACEOF
1387
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --disable-largefile omit support for large files
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430
1431 --with-random=/dev/urandom - location of the system random file generator
1432 --without-random - there is no system random file generator
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <courier-users@lists.sourceforge.net>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 libuserdb configure 0.10
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 eval "$3=yes"
1627 else
1628 eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_header_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711 fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1739
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1745
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main ()
1764 {
1765 return $2 ();
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813 else
1814 ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829 else
1830 ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ( $as_echo "## -------------------------------------------------- ##
1856 ## Report this to courier-users@lists.sourceforge.net ##
1857 ## -------------------------------------------------- ##"
1858 ) | sed "s/^/$as_me: WARNING: /" >&2
1859 ;;
1860 esac
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 eval "$3=\$ac_header_compiler"
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_header_mongrel
1875
1876 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877 # -------------------------------------------
1878 # Tests whether TYPE exists after having included INCLUDES, setting cache
1879 # variable VAR accordingly.
1880 ac_fn_c_check_type ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 if (sizeof (($2)))
1909 return 0;
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915
1916 else
1917 eval "$3=yes"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_type
1929 cat >config.log <<_ACEOF
1930 This file contains any messages produced by compilers while
1931 running configure, to aid debugging if configure makes a mistake.
1932
1933 It was created by libuserdb $as_me 0.10, which was
1934 generated by GNU Autoconf 2.69. Invocation command line was
1935
1936 $ $0 $@
1937
1938 _ACEOF
1939 exec 5>>config.log
1940 {
1941 cat <<_ASUNAME
1942 ## --------- ##
1943 ## Platform. ##
1944 ## --------- ##
1945
1946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951
1952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1953 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954
1955 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1956 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1958 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1959 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1960 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1961 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1962
1963 _ASUNAME
1964
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 $as_echo "PATH: $as_dir"
1971 done
1972 IFS=$as_save_IFS
1973
1974 } >&5
1975
1976 cat >&5 <<_ACEOF
1977
1978
1979 ## ----------- ##
1980 ## Core tests. ##
1981 ## ----------- ##
1982
1983 _ACEOF
1984
1985
1986 # Keep a trace of the command line.
1987 # Strip out --no-create and --no-recursion so they do not pile up.
1988 # Strip out --silent because we don't want to record it for future runs.
1989 # Also quote any args containing shell meta-characters.
1990 # Make two passes to allow for proper duplicate-argument suppression.
1991 ac_configure_args=
1992 ac_configure_args0=
1993 ac_configure_args1=
1994 ac_must_keep_next=false
1995 for ac_pass in 1 2
1996 do
1997 for ac_arg
1998 do
1999 case $ac_arg in
2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2002 | -silent | --silent | --silen | --sile | --sil)
2003 continue ;;
2004 *\'*)
2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 esac
2007 case $ac_pass in
2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2009 2)
2010 as_fn_append ac_configure_args1 " '$ac_arg'"
2011 if test $ac_must_keep_next = true; then
2012 ac_must_keep_next=false # Got value, back to normal.
2013 else
2014 case $ac_arg in
2015 *=* | --config-cache | -C | -disable-* | --disable-* \
2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2018 | -with-* | --with-* | -without-* | --without-* | --x)
2019 case "$ac_configure_args0 " in
2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021 esac
2022 ;;
2023 -* ) ac_must_keep_next=true ;;
2024 esac
2025 fi
2026 as_fn_append ac_configure_args " '$ac_arg'"
2027 ;;
2028 esac
2029 done
2030 done
2031 { ac_configure_args0=; unset ac_configure_args0;}
2032 { ac_configure_args1=; unset ac_configure_args1;}
2033
2034 # When interrupted or exit'd, cleanup temporary files, and complete
2035 # config.log. We remove comments because anyway the quotes in there
2036 # would cause problems or look ugly.
2037 # WARNING: Use '\'' to represent an apostrophe within the trap.
2038 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2039 trap 'exit_status=$?
2040 # Save into config.log some information that might help in debugging.
2041 {
2042 echo
2043
2044 $as_echo "## ---------------- ##
2045 ## Cache variables. ##
2046 ## ---------------- ##"
2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
2049 (
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061 *) { eval $ac_var=; unset $ac_var;} ;;
2062 esac ;;
2063 esac
2064 done
2065 (set) 2>&1 |
2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
2068 sed -n \
2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
2072 *)
2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2074 ;;
2075 esac |
2076 sort
2077 )
2078 echo
2079
2080 $as_echo "## ----------------- ##
2081 ## Output variables. ##
2082 ## ----------------- ##"
2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
2095 $as_echo "## ------------------- ##
2096 ## File substitutions. ##
2097 ## ------------------- ##"
2098 echo
2099 for ac_var in $ac_subst_files
2100 do
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
2106 done | sort
2107 echo
2108 fi
2109
2110 if test -s confdefs.h; then
2111 $as_echo "## ----------- ##
2112 ## confdefs.h. ##
2113 ## ----------- ##"
2114 echo
2115 cat confdefs.h
2116 echo
2117 fi
2118 test "$ac_signal" != 0 &&
2119 $as_echo "$as_me: caught signal $ac_signal"
2120 $as_echo "$as_me: exit $exit_status"
2121 } >&5
2122 rm -f core *.core core.conftest.* &&
2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2124 exit $exit_status
2125 ' 0
2126 for ac_signal in 1 2 13 15; do
2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2128 done
2129 ac_signal=0
2130
2131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2132 rm -f -r conftest* confdefs.h
2133
2134 $as_echo "/* confdefs.h */" > confdefs.h
2135
2136 # Predefined preprocessor variables.
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_NAME "$PACKAGE_NAME"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_STRING "$PACKAGE_STRING"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_URL "$PACKAGE_URL"
2160 _ACEOF
2161
2162
2163 # Let the site file select an alternate cache file if it wants to.
2164 # Prefer an explicitly selected file to automatically selected ones.
2165 ac_site_file1=NONE
2166 ac_site_file2=NONE
2167 if test -n "$CONFIG_SITE"; then
2168 # We do not want a PATH search for config.site.
2169 case $CONFIG_SITE in #((
2170 -*) ac_site_file1=./$CONFIG_SITE;;
2171 */*) ac_site_file1=$CONFIG_SITE;;
2172 *) ac_site_file1=./$CONFIG_SITE;;
2173 esac
2174 elif test "x$prefix" != xNONE; then
2175 ac_site_file1=$prefix/share/config.site
2176 ac_site_file2=$prefix/etc/config.site
2177 else
2178 ac_site_file1=$ac_default_prefix/share/config.site
2179 ac_site_file2=$ac_default_prefix/etc/config.site
2180 fi
2181 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 do
2183 test "x$ac_site_file" = xNONE && continue
2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2187 sed 's/^/| /' "$ac_site_file" >&5
2188 . "$ac_site_file" \
2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 as_fn_error $? "failed to load site script $ac_site_file
2192 See \`config.log' for more details" "$LINENO" 5; }
2193 fi
2194 done
2195
2196 if test -r "$cache_file"; then
2197 # Some versions of bash will fail to source /dev/null (special files
2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201 $as_echo "$as_me: loading cache $cache_file" >&6;}
2202 case $cache_file in
2203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204 *) . "./$cache_file";;
2205 esac
2206 fi
2207 else
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209 $as_echo "$as_me: creating cache $cache_file" >&6;}
2210 >$cache_file
2211 fi
2212
2213 # Check that the precious variables saved in the cache have kept the same
2214 # value.
2215 ac_cache_corrupted=false
2216 for ac_var in $ac_precious_vars; do
2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2218 eval ac_new_set=\$ac_env_${ac_var}_set
2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2220 eval ac_new_val=\$ac_env_${ac_var}_value
2221 case $ac_old_set,$ac_new_set in
2222 set,)
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2224 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2225 ac_cache_corrupted=: ;;
2226 ,set)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2228 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,);;
2231 *)
2232 if test "x$ac_old_val" != "x$ac_new_val"; then
2233 # differences in whitespace do not lead to failure.
2234 ac_old_val_w=`echo x $ac_old_val`
2235 ac_new_val_w=`echo x $ac_new_val`
2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2238 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2239 ac_cache_corrupted=:
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2242 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2243 eval $ac_var=\$ac_old_val
2244 fi
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2246 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2248 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2249 fi;;
2250 esac
2251 # Pass precious variables to config.status.
2252 if test "$ac_new_set" = set; then
2253 case $ac_new_val in
2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 *) ac_arg=$ac_var=$ac_new_val ;;
2256 esac
2257 case " $ac_configure_args " in
2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2260 esac
2261 fi
2262 done
2263 if $ac_cache_corrupted; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2267 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2269 fi
2270 ## -------------------- ##
2271 ## Main body of script. ##
2272 ## -------------------- ##
2273
2274 ac_ext=c
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279
2280
2281
2282 >confdefs.h # Kill PACKAGE_ macros.
2283
2284 LPATH="$PATH:/usr/local/bin"
2285
2286
2287 ac_aux_dir=
2288 for ac_dir in .. "$srcdir"/..; do
2289 if test -f "$ac_dir/install-sh"; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 break
2293 elif test -f "$ac_dir/install.sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 break
2297 elif test -f "$ac_dir/shtool"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 break
2301 fi
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2305 fi
2306
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
2315
2316 am__api_version='1.13'
2317
2318 # Find a good install program. We prefer a C program (faster),
2319 # so one script is as good as another. But avoid the broken or
2320 # incompatible versions:
2321 # SysV /etc/install, /usr/sbin/install
2322 # SunOS /usr/etc/install
2323 # IRIX /sbin/install
2324 # AIX /bin/install
2325 # AmigaOS /C/install, which installs bootblocks on floppy discs
2326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2329 # OS/2's system install, which has a completely different semantic
2330 # ./install, which can be erroneously created by make from ./install.sh.
2331 # Reject install programs that cannot install multiple files.
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2334 if test -z "$INSTALL"; then
2335 if ${ac_cv_path_install+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 # Account for people who put trailing slashes in PATH elements.
2344 case $as_dir/ in #((
2345 ./ | .// | /[cC]/* | \
2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2348 /usr/ucb/* ) ;;
2349 *)
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2352 # by default.
2353 for ac_prog in ginstall scoinst install; do
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2356 if test $ac_prog = install &&
2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # AIX install. It has an incompatible calling convention.
2359 :
2360 elif test $ac_prog = install &&
2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # program-specific install script used by HP pwplus--don't use.
2363 :
2364 else
2365 rm -rf conftest.one conftest.two conftest.dir
2366 echo one > conftest.one
2367 echo two > conftest.two
2368 mkdir conftest.dir
2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2370 test -s conftest.one && test -s conftest.two &&
2371 test -s conftest.dir/conftest.one &&
2372 test -s conftest.dir/conftest.two
2373 then
2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2375 break 3
2376 fi
2377 fi
2378 fi
2379 done
2380 done
2381 ;;
2382 esac
2383
2384 done
2385 IFS=$as_save_IFS
2386
2387 rm -rf conftest.one conftest.two conftest.dir
2388
2389 fi
2390 if test "${ac_cv_path_install+set}" = set; then
2391 INSTALL=$ac_cv_path_install
2392 else
2393 # As a last resort, use the slow shell script. Don't cache a
2394 # value for INSTALL within a source directory, because that will
2395 # break other packages using the cache if that directory is
2396 # removed, or if the value is a relative name.
2397 INSTALL=$ac_install_sh
2398 fi
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2401 $as_echo "$INSTALL" >&6; }
2402
2403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2404 # It thinks the first close brace ends the variable substitution.
2405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2406
2407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2408
2409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2412 $as_echo_n "checking whether build environment is sane... " >&6; }
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name. Accept space and tab only in the latter.
2415 am_lf='
2416 '
2417 case `pwd` in
2418 *[\\\"\#\$\&\'\`$am_lf]*)
2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 esac
2421 case $srcdir in
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2423 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2424 esac
2425
2426 # Do 'set' in a subshell so we don't clobber the current shell's
2427 # arguments. Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2430 # directory).
2431 if (
2432 am_has_slept=no
2433 for am_try in 1 2; do
2434 echo "timestamp, slept: $am_has_slept" > conftest.file
2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2436 if test "$*" = "X"; then
2437 # -L didn't work.
2438 set X `ls -t "$srcdir/configure" conftest.file`
2439 fi
2440 if test "$*" != "X $srcdir/configure conftest.file" \
2441 && test "$*" != "X conftest.file $srcdir/configure"; then
2442
2443 # If neither matched, then we have a broken ls. This can happen
2444 # if, for instance, CONFIG_SHELL is bash and it inherits a
2445 # broken ls alias from the environment. This has actually
2446 # happened. Such a system could not be considered "sane".
2447 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2448 alias in your environment" "$LINENO" 5
2449 fi
2450 if test "$2" = conftest.file || test $am_try -eq 2; then
2451 break
2452 fi
2453 # Just in case.
2454 sleep 1
2455 am_has_slept=yes
2456 done
2457 test "$2" = conftest.file
2458 )
2459 then
2460 # Ok.
2461 :
2462 else
2463 as_fn_error $? "newly created file is older than distributed files!
2464 Check your system clock" "$LINENO" 5
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2468 # If we didn't sleep, we still need to ensure time stamps of config.status and
2469 # generated files are strictly newer.
2470 am_sleep_pid=
2471 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2472 ( sleep 1 ) &
2473 am_sleep_pid=$!
2474 fi
2475
2476 rm -f conftest.file
2477
2478 test "$program_prefix" != NONE &&
2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480 # Use a double $ so make ignores it.
2481 test "$program_suffix" != NONE &&
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483 # Double any \ or $.
2484 # By default was `s,x,x', remove it if useless.
2485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488 # expand $ac_aux_dir to an absolute path
2489 am_aux_dir=`cd $ac_aux_dir && pwd`
2490
2491 if test x"${MISSING+set}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495 *)
2496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 esac
2498 fi
2499 # Use eval to expand $SHELL
2500 if eval "$MISSING --is-lightweight"; then
2501 am_missing_run="$MISSING "
2502 else
2503 am_missing_run=
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2505 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2506 fi
2507
2508 if test x"${install_sh}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512 *)
2513 install_sh="\${SHELL} $am_aux_dir/install-sh"
2514 esac
2515 fi
2516
2517 # Installed binaries are usually stripped using 'strip' when the user
2518 # run "make install-strip". However 'strip' might not be the right
2519 # tool to use in cross-compilation environments, therefore Automake
2520 # will honor the 'STRIP' environment variable to overrule this program.
2521 if test "$cross_compiling" != no; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}strip; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_STRIP+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$STRIP"; then
2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 STRIP=$ac_cv_prog_STRIP
2551 if test -n "$STRIP"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2553 $as_echo "$STRIP" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$ac_cv_prog_STRIP"; then
2562 ac_ct_STRIP=$STRIP
2563 # Extract the first word of "strip", so it can be a program name with args.
2564 set dummy strip; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$ac_ct_STRIP"; then
2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_ac_ct_STRIP="strip"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591 if test -n "$ac_ct_STRIP"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2593 $as_echo "$ac_ct_STRIP" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599 if test "x$ac_ct_STRIP" = x; then
2600 STRIP=":"
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608 STRIP=$ac_ct_STRIP
2609 fi
2610 else
2611 STRIP="$ac_cv_prog_STRIP"
2612 fi
2613
2614 fi
2615 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2618 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619 if test -z "$MKDIR_P"; then
2620 if ${ac_cv_path_mkdir+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_prog in mkdir gmkdir; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632 'mkdir (GNU coreutils) '* | \
2633 'mkdir (coreutils) '* | \
2634 'mkdir (fileutils) '4.1*)
2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636 break 3;;
2637 esac
2638 done
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644
2645 test -d ./--version && rmdir ./--version
2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
2648 else
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 MKDIR_P="$ac_install_sh -d"
2654 fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2657 $as_echo "$MKDIR_P" >&6; }
2658
2659 for ac_prog in gawk mawk nawk awk
2660 do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_AWK+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$AWK"; then
2669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_AWK="$ac_prog"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 AWK=$ac_cv_prog_AWK
2689 if test -n "$AWK"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2691 $as_echo "$AWK" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 test -n "$AWK" && break
2699 done
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2703 set x ${MAKE-make}
2704 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2705 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat >conftest.make <<\_ACEOF
2709 SHELL = /bin/sh
2710 all:
2711 @echo '@@@%%%=$(MAKE)=@@@%%%'
2712 _ACEOF
2713 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2715 *@@@%%%=?*=@@@%%%*)
2716 eval ac_cv_prog_make_${ac_make}_set=yes;;
2717 *)
2718 eval ac_cv_prog_make_${ac_make}_set=no;;
2719 esac
2720 rm -f conftest.make
2721 fi
2722 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2725 SET_MAKE=
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 SET_MAKE="MAKE=${MAKE-make}"
2730 fi
2731
2732 rm -rf .tst 2>/dev/null
2733 mkdir .tst 2>/dev/null
2734 if test -d .tst; then
2735 am__leading_dot=.
2736 else
2737 am__leading_dot=_
2738 fi
2739 rmdir .tst 2>/dev/null
2740
2741 # Check whether --enable-silent-rules was given.
2742 if test "${enable_silent_rules+set}" = set; then :
2743 enableval=$enable_silent_rules;
2744 fi
2745
2746 case $enable_silent_rules in # (((
2747 yes) AM_DEFAULT_VERBOSITY=0;;
2748 no) AM_DEFAULT_VERBOSITY=1;;
2749 *) AM_DEFAULT_VERBOSITY=1;;
2750 esac
2751 am_make=${MAKE-make}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2753 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2754 if ${am_cv_make_support_nested_variables+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if $as_echo 'TRUE=$(BAR$(V))
2758 BAR0=false
2759 BAR1=true
2760 V=1
2761 am__doit:
2762 @$(TRUE)
2763 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2764 am_cv_make_support_nested_variables=yes
2765 else
2766 am_cv_make_support_nested_variables=no
2767 fi
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2770 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2771 if test $am_cv_make_support_nested_variables = yes; then
2772 AM_V='$(V)'
2773 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2774 else
2775 AM_V=$AM_DEFAULT_VERBOSITY
2776 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2777 fi
2778 AM_BACKSLASH='\'
2779
2780 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2782 # is not polluted with repeated "-I."
2783 am__isrc=' -I$(srcdir)'
2784 # test to see if srcdir already configured
2785 if test -f $srcdir/config.status; then
2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2787 fi
2788 fi
2789
2790 # test whether we have cygpath
2791 if test -z "$CYGPATH_W"; then
2792 if (cygpath --version) >/dev/null 2>/dev/null; then
2793 CYGPATH_W='cygpath -w'
2794 else
2795 CYGPATH_W=echo
2796 fi
2797 fi
2798
2799
2800 # Define the identity of the package.
2801 PACKAGE='libuserdb'
2802 VERSION='0.10'
2803
2804
2805 # Some tools Automake needs.
2806
2807 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2808
2809
2810 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2811
2812
2813 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2814
2815
2816 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2817
2818
2819 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2820
2821 # For better backward compatibility. To be removed once Automake 1.9.x
2822 # dies out for good. For more background, see:
2823 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2824 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2825 mkdir_p='$(MKDIR_P)'
2826
2827 # We need awk for the "check" target. The system "awk" is bad on
2828 # some platforms.
2829 # Always define AMTAR for backward compatibility. Yes, it's still used
2830 # in the wild :-( We should find a proper way to deprecate it ...
2831 AMTAR='$${TAR-tar}'
2832
2833
2834 # We'll loop over all known methods to create a tar archive until one works.
2835 _am_tools='gnutar pax cpio none'
2836
2837 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2838
2839
2840
2841
2842
2843
2844 ac_config_headers="$ac_config_headers config.h"
2845
2846
2847 for ac_prog in gawk mawk nawk awk
2848 do
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_AWK+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_AWK="$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 AWK=$ac_cv_prog_AWK
2877 if test -n "$AWK"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2879 $as_echo "$AWK" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 test -n "$AWK" && break
2887 done
2888
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_CC"; then
2934 ac_ct_CC=$CC
2935 # Extract the first word of "gcc", so it can be a program name with args.
2936 set dummy gcc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_CC="gcc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 CC=$ac_ct_CC
2981 fi
2982 else
2983 CC="$ac_cv_prog_CC"
2984 fi
2985
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_CC="${ac_tool_prefix}cc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 fi
3026 fi
3027 if test -z "$CC"; then
3028 # Extract the first word of "cc", so it can be a program name with args.
3029 set dummy cc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 ac_prog_rejected=no
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047 ac_prog_rejected=yes
3048 continue
3049 fi
3050 ac_cv_prog_CC="cc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 if test $ac_prog_rejected = yes; then
3059 # We found a bogon in the path, so make sure we never use it.
3060 set dummy $ac_cv_prog_CC
3061 shift
3062 if test $# != 0; then
3063 # We chose a different compiler from the bogus one.
3064 # However, it has the same basename, so the bogon will be chosen
3065 # first if we set CC to just the basename; use the full file name.
3066 shift
3067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 fi
3069 fi
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in cl.exe
3086 do
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_CC+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 test -n "$CC" && break
3125 done
3126 fi
3127 if test -z "$CC"; then
3128 ac_ct_CC=$CC
3129 for ac_prog in cl.exe
3130 do
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_CC="$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 test -n "$ac_ct_CC" && break
3169 done
3170
3171 if test "x$ac_ct_CC" = x; then
3172 CC=""
3173 else
3174 case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180 CC=$ac_ct_CC
3181 fi
3182 fi
3183
3184 fi
3185
3186
3187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details" "$LINENO" 5; }
3191
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 for ac_option in --version -v -V -qversion; do
3197 { { ac_try="$ac_compiler $ac_option >&5"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3205 ac_status=$?
3206 if test -s conftest.err; then
3207 sed '10a\
3208 ... rest of stderr output deleted ...
3209 10q' conftest.err >conftest.er1
3210 cat conftest.er1 >&5
3211 fi
3212 rm -f conftest.er1 conftest.err
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3215 done
3216
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 ac_clean_files_save=$ac_clean_files
3229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3230 # Try to create an executable without -o first, disregard a.out.
3231 # It will help us diagnose broken compilers, and finding out an intuition
3232 # of exeext.
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3234 $as_echo_n "checking whether the C compiler works... " >&6; }
3235 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3236
3237 # The possible output files:
3238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3239
3240 ac_rmfiles=
3241 for ac_file in $ac_files
3242 do
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 esac
3247 done
3248 rm -f $ac_rmfiles
3249
3250 if { { ac_try="$ac_link_default"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link_default") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
3261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3264 # so that the user can short-circuit this test for compilers unknown to
3265 # Autoconf.
3266 for ac_file in $ac_files ''
3267 do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3271 ;;
3272 [ab].out )
3273 # We found the default executable, but exeext='' is most
3274 # certainly right.
3275 break;;
3276 *.* )
3277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3278 then :; else
3279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 fi
3281 # We set ac_cv_exeext here because the later test for it is not
3282 # safe: cross compilers may not add the suffix if given an `-o'
3283 # argument, so we may need to know it at that point already.
3284 # Even if this section looks crufty: it has the advantage of
3285 # actually working.
3286 break;;
3287 * )
3288 break;;
3289 esac
3290 done
3291 test "$ac_cv_exeext" = no && ac_cv_exeext=
3292
3293 else
3294 ac_file=''
3295 fi
3296 if test -z "$ac_file"; then :
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error 77 "C compiler cannot create executables
3305 See \`config.log' for more details" "$LINENO" 5; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3311 $as_echo_n "checking for C compiler default output file name... " >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3313 $as_echo "$ac_file" >&6; }
3314 ac_exeext=$ac_cv_exeext
3315
3316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3317 ac_clean_files=$ac_clean_files_save
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3319 $as_echo_n "checking for suffix of executables... " >&6; }
3320 if { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333 # work properly (i.e., refer to `conftest.exe'), while it won't with
3334 # `rm'.
3335 for ac_file in conftest.exe conftest conftest.*; do
3336 test -f "$ac_file" || continue
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 break;;
3341 * ) break;;
3342 esac
3343 done
3344 else
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3348 See \`config.log' for more details" "$LINENO" 5; }
3349 fi
3350 rm -f conftest conftest$ac_cv_exeext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3352 $as_echo "$ac_cv_exeext" >&6; }
3353
3354 rm -f conftest.$ac_ext
3355 EXEEXT=$ac_cv_exeext
3356 ac_exeext=$EXEEXT
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #include <stdio.h>
3360 int
3361 main ()
3362 {
3363 FILE *f = fopen ("conftest.out", "w");
3364 return ferror (f) || fclose (f) != 0;
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 ac_clean_files="$ac_clean_files conftest.out"
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 if test "$cross_compiling" != yes; then
3376 { { ac_try="$ac_link"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }
3387 if { ac_try='./conftest$ac_cv_exeext'
3388 { { case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; }; then
3398 cross_compiling=no
3399 else
3400 if test "$cross_compiling" = maybe; then
3401 cross_compiling=yes
3402 else
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details" "$LINENO" 5; }
3408 fi
3409 fi
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3412 $as_echo "$cross_compiling" >&6; }
3413
3414 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3415 ac_clean_files=$ac_clean_files_save
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3417 $as_echo_n "checking for suffix of object files... " >&6; }
3418 if ${ac_cv_objext+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 rm -f conftest.o conftest.obj
3433 if { { ac_try="$ac_compile"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compile") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 for ac_file in conftest.o conftest.obj conftest.*; do
3445 test -f "$ac_file" || continue;
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 break;;
3450 esac
3451 done
3452 else
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "cannot compute suffix of object files: cannot compile
3459 See \`config.log' for more details" "$LINENO" 5; }
3460 fi
3461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3464 $as_echo "$ac_cv_objext" >&6; }
3465 OBJEXT=$ac_cv_objext
3466 ac_objext=$OBJEXT
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3469 if ${ac_cv_c_compiler_gnu+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478 #ifndef __GNUC__
3479 choke me
3480 #endif
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487 ac_compiler_gnu=yes
3488 else
3489 ac_compiler_gnu=no
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3497 if test $ac_compiler_gnu = yes; then
3498 GCC=yes
3499 else
3500 GCC=
3501 fi
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3506 if ${ac_cv_prog_cc_g+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3511 ac_cv_prog_cc_g=no
3512 CFLAGS="-g"
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515
3516 int
3517 main ()
3518 {
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525 ac_cv_prog_cc_g=yes
3526 else
3527 CFLAGS=""
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540
3541 else
3542 ac_c_werror_flag=$ac_save_c_werror_flag
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_c_werror_flag=$ac_save_c_werror_flag
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3566 $as_echo "$ac_cv_prog_cc_g" >&6; }
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS=$ac_save_CFLAGS
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3571 CFLAGS="-g -O2"
3572 else
3573 CFLAGS="-g"
3574 fi
3575 else
3576 if test "$GCC" = yes; then
3577 CFLAGS="-O2"
3578 else
3579 CFLAGS=
3580 fi
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3584 if ${ac_cv_prog_cc_c89+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 ac_cv_prog_cc_c89=no
3588 ac_save_CC=$CC
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591 #include <stdarg.h>
3592 #include <stdio.h>
3593 struct stat;
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3598 char **p;
3599 int i;
3600 {
3601 return p[i];
3602 }
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3604 {
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611 }
3612
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std. */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3623 inside strings and character constants. */
3624 #define FOO(x) 'x'
3625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626
3627 int test (int i, double x);
3628 struct s1 {int (*f) (int a);};
3629 struct s2 {int (*f) (double a);};
3630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 int argc;
3632 char **argv;
3633 int
3634 main ()
3635 {
3636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 do
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_c89=$ac_arg
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
3650 done
3651 rm -f conftest.$ac_ext
3652 CC=$ac_save_CC
3653
3654 fi
3655 # AC_CACHE_VAL
3656 case "x$ac_cv_prog_cc_c89" in
3657 x)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3660 xno)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3663 *)
3664 CC="$CC $ac_cv_prog_cc_c89"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3667 esac
3668 if test "x$ac_cv_prog_cc_c89" != xno; then :
3669
3670 fi
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 DEPDIR="${am__leading_dot}deps"
3678
3679 ac_config_commands="$ac_config_commands depfiles"
3680
3681
3682 am_make=${MAKE-make}
3683 cat > confinc << 'END'
3684 am__doit:
3685 @echo this is the am__doit target
3686 .PHONY: am__doit
3687 END
3688 # If we don't find an include directive, just comment out the code.
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3690 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3691 am__include="#"
3692 am__quote=
3693 _am_result=none
3694 # First try GNU make style include.
3695 echo "include confinc" > confmf
3696 # Ignore all kinds of additional output from 'make'.
3697 case `$am_make -s -f confmf 2> /dev/null` in #(
3698 *the\ am__doit\ target*)
3699 am__include=include
3700 am__quote=
3701 _am_result=GNU
3702 ;;
3703 esac
3704 # Now try BSD make style include.
3705 if test "$am__include" = "#"; then
3706 echo '.include "confinc"' > confmf
3707 case `$am_make -s -f confmf 2> /dev/null` in #(
3708 *the\ am__doit\ target*)
3709 am__include=.include
3710 am__quote="\""
3711 _am_result=BSD
3712 ;;
3713 esac
3714 fi
3715
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3718 $as_echo "$_am_result" >&6; }
3719 rm -f confinc confmf
3720
3721 # Check whether --enable-dependency-tracking was given.
3722 if test "${enable_dependency_tracking+set}" = set; then :
3723 enableval=$enable_dependency_tracking;
3724 fi
3725
3726 if test "x$enable_dependency_tracking" != xno; then
3727 am_depcomp="$ac_aux_dir/depcomp"
3728 AMDEPBACKSLASH='\'
3729 am__nodep='_no'
3730 fi
3731 if test "x$enable_dependency_tracking" != xno; then
3732 AMDEP_TRUE=
3733 AMDEP_FALSE='#'
3734 else
3735 AMDEP_TRUE='#'
3736 AMDEP_FALSE=
3737 fi
3738
3739
3740
3741 depcc="$CC" am_compiler_list=
3742
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3744 $as_echo_n "checking dependency style of $depcc... " >&6; }
3745 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3749 # We make a subdir and do the tests there. Otherwise we can end up
3750 # making bogus files that we don't know about and never remove. For
3751 # instance it was reported that on HP-UX the gcc test will end up
3752 # making a dummy file named 'D' -- because '-MD' means "put the output
3753 # in D".
3754 rm -rf conftest.dir
3755 mkdir conftest.dir
3756 # Copy depcomp to subdir because otherwise we won't find it if we're
3757 # using a relative directory.
3758 cp "$am_depcomp" conftest.dir
3759 cd conftest.dir
3760 # We will build objects and dependencies in a subdirectory because
3761 # it helps to detect inapplicable dependency modes. For instance
3762 # both Tru64's cc and ICC support -MD to output dependencies as a
3763 # side effect of compilation, but ICC will put the dependencies in
3764 # the current directory while Tru64 will put them in the object
3765 # directory.
3766 mkdir sub
3767
3768 am_cv_CC_dependencies_compiler_type=none
3769 if test "$am_compiler_list" = ""; then
3770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 fi
3772 am__universal=false
3773 case " $depcc " in #(
3774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775 esac
3776
3777 for depmode in $am_compiler_list; do
3778 # Setup a source with many dependencies, because some compilers
3779 # like to wrap large dependency lists on column 80 (with \), and
3780 # we should not choose a depcomp mode which is confused by this.
3781 #
3782 # We need to recreate these files for each test, as the compiler may
3783 # overwrite some of them when testing with obscure command lines.
3784 # This happens at least with the AIX C compiler.
3785 : > sub/conftest.c
3786 for i in 1 2 3 4 5 6; do
3787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3789 # Solaris 10 /bin/sh.
3790 echo '/* dummy */' > sub/conftst$i.h
3791 done
3792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3795 # mode. It turns out that the SunPro C++ compiler does not properly
3796 # handle '-M -o', and we need to detect this. Also, some Intel
3797 # versions had trouble with output in subdirs.
3798 am__obj=sub/conftest.${OBJEXT-o}
3799 am__minus_obj="-o $am__obj"
3800 case $depmode in
3801 gcc)
3802 # This depmode causes a compiler race in universal mode.
3803 test "$am__universal" = false || continue
3804 ;;
3805 nosideeffect)
3806 # After this tag, mechanisms are not by side-effect, so they'll
3807 # only be used when explicitly requested.
3808 if test "x$enable_dependency_tracking" = xyes; then
3809 continue
3810 else
3811 break
3812 fi
3813 ;;
3814 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3815 # This compiler won't grok '-c -o', but also, the minuso test has
3816 # not run yet. These depmodes are late enough in the game, and
3817 # so weak that their functioning should not be impacted.
3818 am__obj=conftest.${OBJEXT-o}
3819 am__minus_obj=
3820 ;;
3821 none) break ;;
3822 esac
3823 if depmode=$depmode \
3824 source=sub/conftest.c object=$am__obj \
3825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3827 >/dev/null 2>conftest.err &&
3828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3832 # icc doesn't choke on unknown options, it will just issue warnings
3833 # or remarks (even with -Werror). So we grep stderr for any message
3834 # that says an option was ignored or not supported.
3835 # When given -MP, icc 7.0 and 7.1 complain thusly:
3836 # icc: Command line warning: ignoring option '-M'; no argument required
3837 # The diagnosis changed in icc 8.0:
3838 # icc: Command line remark: option '-MP' not supported
3839 if (grep 'ignoring option' conftest.err ||
3840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3841 am_cv_CC_dependencies_compiler_type=$depmode
3842 break
3843 fi
3844 fi
3845 done
3846
3847 cd ..
3848 rm -rf conftest.dir
3849 else
3850 am_cv_CC_dependencies_compiler_type=none
3851 fi
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3855 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857
3858 if
3859 test "x$enable_dependency_tracking" != xno \
3860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861 am__fastdepCC_TRUE=
3862 am__fastdepCC_FALSE='#'
3863 else
3864 am__fastdepCC_TRUE='#'
3865 am__fastdepCC_FALSE=
3866 fi
3867
3868
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3871 $as_echo_n "checking whether ln -s works... " >&6; }
3872 LN_S=$as_ln_s
3873 if test "$LN_S" = "ln -s"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3876 else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3878 $as_echo "no, using $LN_S" >&6; }
3879 fi
3880
3881 case `pwd` in
3882 *\ * | *\ *)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3884 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3885 esac
3886
3887
3888
3889 macro_version='2.4.2'
3890 macro_revision='1.3337'
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904 ltmain="$ac_aux_dir/ltmain.sh"
3905
3906 # Make sure we can run config.sub.
3907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3908 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3911 $as_echo_n "checking build system type... " >&6; }
3912 if ${ac_cv_build+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 ac_build_alias=$build_alias
3916 test "x$ac_build_alias" = x &&
3917 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3918 test "x$ac_build_alias" = x &&
3919 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3920 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3921 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3922
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3925 $as_echo "$ac_cv_build" >&6; }
3926 case $ac_cv_build in
3927 *-*-*) ;;
3928 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3929 esac
3930 build=$ac_cv_build
3931 ac_save_IFS=$IFS; IFS='-'
3932 set x $ac_cv_build
3933 shift
3934 build_cpu=$1
3935 build_vendor=$2
3936 shift; shift
3937 # Remember, the first character of IFS is used to create $*,
3938 # except with old shells:
3939 build_os=$*
3940 IFS=$ac_save_IFS
3941 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3942
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3945 $as_echo_n "checking host system type... " >&6; }
3946 if ${ac_cv_host+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test "x$host_alias" = x; then
3950 ac_cv_host=$ac_cv_build
3951 else
3952 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3953 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3954 fi
3955
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3958 $as_echo "$ac_cv_host" >&6; }
3959 case $ac_cv_host in
3960 *-*-*) ;;
3961 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3962 esac
3963 host=$ac_cv_host
3964 ac_save_IFS=$IFS; IFS='-'
3965 set x $ac_cv_host
3966 shift
3967 host_cpu=$1
3968 host_vendor=$2
3969 shift; shift
3970 # Remember, the first character of IFS is used to create $*,
3971 # except with old shells:
3972 host_os=$*
3973 IFS=$ac_save_IFS
3974 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3975
3976
3977 # Backslashify metacharacters that are still active within
3978 # double-quoted strings.
3979 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3980
3981 # Same as above, but do not quote variable references.
3982 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3983
3984 # Sed substitution to delay expansion of an escaped shell variable in a
3985 # double_quote_subst'ed string.
3986 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3987
3988 # Sed substitution to delay expansion of an escaped single quote.
3989 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3990
3991 # Sed substitution to avoid accidental globbing in evaled expressions
3992 no_glob_subst='s/\*/\\\*/g'
3993
3994 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3999 $as_echo_n "checking how to print strings... " >&6; }
4000 # Test print first, because it will be a builtin if present.
4001 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4003 ECHO='print -r --'
4004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4005 ECHO='printf %s\n'
4006 else
4007 # Use this function as a fallback that always works.
4008 func_fallback_echo ()
4009 {
4010 eval 'cat <<_LTECHO_EOF
4011 $1
4012 _LTECHO_EOF'
4013 }
4014 ECHO='func_fallback_echo'
4015 fi
4016
4017 # func_echo_all arg...
4018 # Invoke $ECHO with all args, space-separated.
4019 func_echo_all ()
4020 {
4021 $ECHO ""
4022 }
4023
4024 case "$ECHO" in
4025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4026 $as_echo "printf" >&6; } ;;
4027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4028 $as_echo "print -r" >&6; } ;;
4029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4030 $as_echo "cat" >&6; } ;;
4031 esac
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4048 if ${ac_cv_path_SED+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4052 for ac_i in 1 2 3 4 5 6 7; do
4053 ac_script="$ac_script$as_nl$ac_script"
4054 done
4055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4056 { ac_script=; unset ac_script;}
4057 if test -z "$SED"; then
4058 ac_path_SED_found=false
4059 # Loop through the user's path and test for each of PROGNAME-LIST
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_prog in sed gsed; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4068 as_fn_executable_p "$ac_path_SED" || continue
4069 # Check for GNU ac_path_SED and select it if it is found.
4070 # Check for GNU $ac_path_SED
4071 case `"$ac_path_SED" --version 2>&1` in
4072 *GNU*)
4073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4074 *)
4075 ac_count=0
4076 $as_echo_n 0123456789 >"conftest.in"
4077 while :
4078 do
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 $as_echo '' >> "conftest.nl"
4083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085 as_fn_arith $ac_count + 1 && ac_count=$as_val
4086 if test $ac_count -gt ${ac_path_SED_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_SED="$ac_path_SED"
4089 ac_path_SED_max=$ac_count
4090 fi
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4093 done
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 esac
4096
4097 $ac_path_SED_found && break 3
4098 done
4099 done
4100 done
4101 IFS=$as_save_IFS
4102 if test -z "$ac_cv_path_SED"; then
4103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4104 fi
4105 else
4106 ac_cv_path_SED=$SED
4107 fi
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4111 $as_echo "$ac_cv_path_SED" >&6; }
4112 SED="$ac_cv_path_SED"
4113 rm -f conftest.sed
4114
4115 test -z "$SED" && SED=sed
4116 Xsed="$SED -e 1s/^X//"
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4130 if ${ac_cv_path_GREP+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -z "$GREP"; then
4134 ac_path_GREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in grep ggrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4144 as_fn_executable_p "$ac_path_GREP" || continue
4145 # Check for GNU ac_path_GREP and select it if it is found.
4146 # Check for GNU $ac_path_GREP
4147 case `"$ac_path_GREP" --version 2>&1` in
4148 *GNU*)
4149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4150 *)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'GREP' >> "conftest.nl"
4159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_GREP="$ac_path_GREP"
4165 ac_path_GREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173 $ac_path_GREP_found && break 3
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_GREP"; then
4179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 fi
4181 else
4182 ac_cv_path_GREP=$GREP
4183 fi
4184
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4187 $as_echo "$ac_cv_path_GREP" >&6; }
4188 GREP="$ac_cv_path_GREP"
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4192 $as_echo_n "checking for egrep... " >&6; }
4193 if ${ac_cv_path_EGREP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4197 then ac_cv_path_EGREP="$GREP -E"
4198 else
4199 if test -z "$EGREP"; then
4200 ac_path_EGREP_found=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in egrep; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4210 as_fn_executable_p "$ac_path_EGREP" || continue
4211 # Check for GNU ac_path_EGREP and select it if it is found.
4212 # Check for GNU $ac_path_EGREP
4213 case `"$ac_path_EGREP" --version 2>&1` in
4214 *GNU*)
4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216 *)
4217 ac_count=0
4218 $as_echo_n 0123456789 >"conftest.in"
4219 while :
4220 do
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 $as_echo 'EGREP' >> "conftest.nl"
4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227 as_fn_arith $ac_count + 1 && ac_count=$as_val
4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_EGREP="$ac_path_EGREP"
4231 ac_path_EGREP_max=$ac_count
4232 fi
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4235 done
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4238
4239 $ac_path_EGREP_found && break 3
4240 done
4241 done
4242 done
4243 IFS=$as_save_IFS
4244 if test -z "$ac_cv_path_EGREP"; then
4245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246 fi
4247 else
4248 ac_cv_path_EGREP=$EGREP
4249 fi
4250
4251 fi
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4254 $as_echo "$ac_cv_path_EGREP" >&6; }
4255 EGREP="$ac_cv_path_EGREP"
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4259 $as_echo_n "checking for fgrep... " >&6; }
4260 if ${ac_cv_path_FGREP+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4264 then ac_cv_path_FGREP="$GREP -F"
4265 else
4266 if test -z "$FGREP"; then
4267 ac_path_FGREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_prog in fgrep; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4277 as_fn_executable_p "$ac_path_FGREP" || continue
4278 # Check for GNU ac_path_FGREP and select it if it is found.
4279 # Check for GNU $ac_path_FGREP
4280 case `"$ac_path_FGREP" --version 2>&1` in
4281 *GNU*)
4282 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4283 *)
4284 ac_count=0
4285 $as_echo_n 0123456789 >"conftest.in"
4286 while :
4287 do
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 $as_echo 'FGREP' >> "conftest.nl"
4292 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294 as_fn_arith $ac_count + 1 && ac_count=$as_val
4295 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_FGREP="$ac_path_FGREP"
4298 ac_path_FGREP_max=$ac_count
4299 fi
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4302 done
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304 esac
4305
4306 $ac_path_FGREP_found && break 3
4307 done
4308 done
4309 done
4310 IFS=$as_save_IFS
4311 if test -z "$ac_cv_path_FGREP"; then
4312 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4313 fi
4314 else
4315 ac_cv_path_FGREP=$FGREP
4316 fi
4317
4318 fi
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4321 $as_echo "$ac_cv_path_FGREP" >&6; }
4322 FGREP="$ac_cv_path_FGREP"
4323
4324
4325 test -z "$GREP" && GREP=grep
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 # Check whether --with-gnu-ld was given.
4346 if test "${with_gnu_ld+set}" = set; then :
4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4348 else
4349 with_gnu_ld=no
4350 fi
4351
4352 ac_prog=ld
4353 if test "$GCC" = yes; then
4354 # Check if gcc -print-prog-name=ld gives a path.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4356 $as_echo_n "checking for ld used by $CC... " >&6; }
4357 case $host in
4358 *-*-mingw*)
4359 # gcc leaves a trailing carriage return which upsets mingw
4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4361 *)
4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4363 esac
4364 case $ac_prog in
4365 # Accept absolute paths.
4366 [\\/]* | ?:[\\/]*)
4367 re_direlt='/[^/][^/]*/\.\./'
4368 # Canonicalize the pathname of ld
4369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4372 done
4373 test -z "$LD" && LD="$ac_prog"
4374 ;;
4375 "")
4376 # If it fails, then pretend we aren't using GCC.
4377 ac_prog=ld
4378 ;;
4379 *)
4380 # If it is relative, then search for the first ld in PATH.
4381 with_gnu_ld=unknown
4382 ;;
4383 esac
4384 elif test "$with_gnu_ld" = yes; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4386 $as_echo_n "checking for GNU ld... " >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4389 $as_echo_n "checking for non-GNU ld... " >&6; }
4390 fi
4391 if ${lt_cv_path_LD+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -z "$LD"; then
4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4396 for ac_dir in $PATH; do
4397 IFS="$lt_save_ifs"
4398 test -z "$ac_dir" && ac_dir=.
4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4400 lt_cv_path_LD="$ac_dir/$ac_prog"
4401 # Check to see if the program is GNU ld. I'd rather use --version,
4402 # but apparently some variants of GNU ld only accept -v.
4403 # Break only if it was the GNU/non-GNU ld that we prefer.
4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4405 *GNU* | *'with BFD'*)
4406 test "$with_gnu_ld" != no && break
4407 ;;
4408 *)
4409 test "$with_gnu_ld" != yes && break
4410 ;;
4411 esac
4412 fi
4413 done
4414 IFS="$lt_save_ifs"
4415 else
4416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4417 fi
4418 fi
4419
4420 LD="$lt_cv_path_LD"
4421 if test -n "$LD"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4423 $as_echo "$LD" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4430 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4431 if ${lt_cv_prog_gnu_ld+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4435 case `$LD -v 2>&1 </dev/null` in
4436 *GNU* | *'with BFD'*)
4437 lt_cv_prog_gnu_ld=yes
4438 ;;
4439 *)
4440 lt_cv_prog_gnu_ld=no
4441 ;;
4442 esac
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4445 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4446 with_gnu_ld=$lt_cv_prog_gnu_ld
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4457 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4458 if ${lt_cv_path_NM+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$NM"; then
4462 # Let the user override the test.
4463 lt_cv_path_NM="$NM"
4464 else
4465 lt_nm_to_check="${ac_tool_prefix}nm"
4466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4467 lt_nm_to_check="$lt_nm_to_check nm"
4468 fi
4469 for lt_tmp_nm in $lt_nm_to_check; do
4470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4472 IFS="$lt_save_ifs"
4473 test -z "$ac_dir" && ac_dir=.
4474 tmp_nm="$ac_dir/$lt_tmp_nm"
4475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4476 # Check to see if the nm accepts a BSD-compat flag.
4477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4478 # nm: unknown option "B" ignored
4479 # Tru64's nm complains that /dev/null is an invalid object file
4480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4481 */dev/null* | *'Invalid file or object type'*)
4482 lt_cv_path_NM="$tmp_nm -B"
4483 break
4484 ;;
4485 *)
4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4487 */dev/null*)
4488 lt_cv_path_NM="$tmp_nm -p"
4489 break
4490 ;;
4491 *)
4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4493 continue # so that we can try to find one that supports BSD flags
4494 ;;
4495 esac
4496 ;;
4497 esac
4498 fi
4499 done
4500 IFS="$lt_save_ifs"
4501 done
4502 : ${lt_cv_path_NM=no}
4503 fi
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4506 $as_echo "$lt_cv_path_NM" >&6; }
4507 if test "$lt_cv_path_NM" != "no"; then
4508 NM="$lt_cv_path_NM"
4509 else
4510 # Didn't find any BSD compatible name lister, look for dumpbin.
4511 if test -n "$DUMPBIN"; then :
4512 # Let the user override the test.
4513 else
4514 if test -n "$ac_tool_prefix"; then
4515 for ac_prog in dumpbin "link -dump"
4516 do
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_DUMPBIN+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$DUMPBIN"; then
4525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 DUMPBIN=$ac_cv_prog_DUMPBIN
4545 if test -n "$DUMPBIN"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4547 $as_echo "$DUMPBIN" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$DUMPBIN" && break
4555 done
4556 fi
4557 if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
4559 for ac_prog in dumpbin "link -dump"
4560 do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582 done
4583 done
4584 IFS=$as_save_IFS
4585
4586 fi
4587 fi
4588 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4589 if test -n "$ac_ct_DUMPBIN"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4591 $as_echo "$ac_ct_DUMPBIN" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597
4598 test -n "$ac_ct_DUMPBIN" && break
4599 done
4600
4601 if test "x$ac_ct_DUMPBIN" = x; then
4602 DUMPBIN=":"
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605 yes:)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 DUMPBIN=$ac_ct_DUMPBIN
4611 fi
4612 fi
4613
4614 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4615 *COFF*)
4616 DUMPBIN="$DUMPBIN -symbols"
4617 ;;
4618 *)
4619 DUMPBIN=:
4620 ;;
4621 esac
4622 fi
4623
4624 if test "$DUMPBIN" != ":"; then
4625 NM="$DUMPBIN"
4626 fi
4627 fi
4628 test -z "$NM" && NM=nm
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4636 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4637 if ${lt_cv_nm_interface+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 lt_cv_nm_interface="BSD nm"
4641 echo "int some_variable = 0;" > conftest.$ac_ext
4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4643 (eval "$ac_compile" 2>conftest.err)
4644 cat conftest.err >&5
4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4647 cat conftest.err >&5
4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4649 cat conftest.out >&5
4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4651 lt_cv_nm_interface="MS dumpbin"
4652 fi
4653 rm -f conftest*
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4656 $as_echo "$lt_cv_nm_interface" >&6; }
4657
4658 # find the maximum length of command line arguments
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4661 if ${lt_cv_sys_max_cmd_len+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 i=0
4665 teststring="ABCD"
4666
4667 case $build_os in
4668 msdosdjgpp*)
4669 # On DJGPP, this test can blow up pretty badly due to problems in libc
4670 # (any single argument exceeding 2000 bytes causes a buffer overrun
4671 # during glob expansion). Even if it were fixed, the result of this
4672 # check would be larger than it should be.
4673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4674 ;;
4675
4676 gnu*)
4677 # Under GNU Hurd, this test is not required because there is
4678 # no limit to the length of command line arguments.
4679 # Libtool will interpret -1 as no limit whatsoever
4680 lt_cv_sys_max_cmd_len=-1;
4681 ;;
4682
4683 cygwin* | mingw* | cegcc*)
4684 # On Win9x/ME, this test blows up -- it succeeds, but takes
4685 # about 5 minutes as the teststring grows exponentially.
4686 # Worse, since 9x/ME are not pre-emptively multitasking,
4687 # you end up with a "frozen" computer, even though with patience
4688 # the test eventually succeeds (with a max line length of 256k).
4689 # Instead, let's just punt: use the minimum linelength reported by
4690 # all of the supported platforms: 8192 (on NT/2K/XP).
4691 lt_cv_sys_max_cmd_len=8192;
4692 ;;
4693
4694 mint*)
4695 # On MiNT this can take a long time and run out of memory.
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
4699 amigaos*)
4700 # On AmigaOS with pdksh, this test takes hours, literally.
4701 # So we just punt and use a minimum line length of 8192.
4702 lt_cv_sys_max_cmd_len=8192;
4703 ;;
4704
4705 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4706 # This has been around since 386BSD, at least. Likely further.
4707 if test -x /sbin/sysctl; then
4708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4709 elif test -x /usr/sbin/sysctl; then
4710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4711 else
4712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4713 fi
4714 # And add a safety zone
4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4717 ;;
4718
4719 interix*)
4720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4721 lt_cv_sys_max_cmd_len=196608
4722 ;;
4723
4724 os2*)
4725 # The test takes a long time on OS/2.
4726 lt_cv_sys_max_cmd_len=8192
4727 ;;
4728
4729 osf*)
4730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4732 # nice to cause kernel panics so lets avoid the loop below.
4733 # First set a reasonable default.
4734 lt_cv_sys_max_cmd_len=16384
4735 #
4736 if test -x /sbin/sysconfig; then
4737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4739 esac
4740 fi
4741 ;;
4742 sco3.2v5*)
4743 lt_cv_sys_max_cmd_len=102400
4744 ;;
4745 sysv5* | sco5v6* | sysv4.2uw2*)
4746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4747 if test -n "$kargmax"; then
4748 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4749 else
4750 lt_cv_sys_max_cmd_len=32768
4751 fi
4752 ;;
4753 *)
4754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4755 if test -n "$lt_cv_sys_max_cmd_len"; then
4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 else
4759 # Make teststring a little bigger before we do anything with it.
4760 # a 1K string should be a reasonable start.
4761 for i in 1 2 3 4 5 6 7 8 ; do
4762 teststring=$teststring$teststring
4763 done
4764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4765 # If test is not a shell built-in, we'll probably end up computing a
4766 # maximum length that is only half of the actual maximum length, but
4767 # we can't tell.
4768 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4770 test $i != 17 # 1/2 MB should be enough
4771 do
4772 i=`expr $i + 1`
4773 teststring=$teststring$teststring
4774 done
4775 # Only check the string length outside the loop.
4776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4777 teststring=
4778 # Add a significant safety factor because C++ compilers can tack on
4779 # massive amounts of additional arguments before passing them to the
4780 # linker. It appears as though 1/2 is a usable value.
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4782 fi
4783 ;;
4784 esac
4785
4786 fi
4787
4788 if test -n $lt_cv_sys_max_cmd_len ; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4790 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4793 $as_echo "none" >&6; }
4794 fi
4795 max_cmd_len=$lt_cv_sys_max_cmd_len
4796
4797
4798
4799
4800
4801
4802 : ${CP="cp -f"}
4803 : ${MV="mv -f"}
4804 : ${RM="rm -f"}
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4807 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4808 # Try some XSI features
4809 xsi_shell=no
4810 ( _lt_dummy="a/b/c"
4811 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4812 = c,a/b,b/c, \
4813 && eval 'test $(( 1 + 1 )) -eq 2 \
4814 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4815 && xsi_shell=yes
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4817 $as_echo "$xsi_shell" >&6; }
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4821 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4822 lt_shell_append=no
4823 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4824 >/dev/null 2>&1 \
4825 && lt_shell_append=yes
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4827 $as_echo "$lt_shell_append" >&6; }
4828
4829
4830 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4831 lt_unset=unset
4832 else
4833 lt_unset=false
4834 fi
4835
4836
4837
4838
4839
4840 # test EBCDIC or ASCII
4841 case `echo X|tr X '\101'` in
4842 A) # ASCII based system
4843 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4844 lt_SP2NL='tr \040 \012'
4845 lt_NL2SP='tr \015\012 \040\040'
4846 ;;
4847 *) # EBCDIC based system
4848 lt_SP2NL='tr \100 \n'
4849 lt_NL2SP='tr \r\n \100\100'
4850 ;;
4851 esac
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4862 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4863 if ${lt_cv_to_host_file_cmd+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 case $host in
4867 *-*-mingw* )
4868 case $build in
4869 *-*-mingw* ) # actually msys
4870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4871 ;;
4872 *-*-cygwin* )
4873 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4874 ;;
4875 * ) # otherwise, assume *nix
4876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4877 ;;
4878 esac
4879 ;;
4880 *-*-cygwin* )
4881 case $build in
4882 *-*-mingw* ) # actually msys
4883 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4884 ;;
4885 *-*-cygwin* )
4886 lt_cv_to_host_file_cmd=func_convert_file_noop
4887 ;;
4888 * ) # otherwise, assume *nix
4889 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4890 ;;
4891 esac
4892 ;;
4893 * ) # unhandled hosts (and "normal" native builds)
4894 lt_cv_to_host_file_cmd=func_convert_file_noop
4895 ;;
4896 esac
4897
4898 fi
4899
4900 to_host_file_cmd=$lt_cv_to_host_file_cmd
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4902 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4903
4904
4905
4906
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4909 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4910 if ${lt_cv_to_tool_file_cmd+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 #assume ordinary cross tools, or native build.
4914 lt_cv_to_tool_file_cmd=func_convert_file_noop
4915 case $host in
4916 *-*-mingw* )
4917 case $build in
4918 *-*-mingw* ) # actually msys
4919 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4920 ;;
4921 esac
4922 ;;
4923 esac
4924
4925 fi
4926
4927 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4929 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4930
4931
4932
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4936 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4937 if ${lt_cv_ld_reload_flag+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 lt_cv_ld_reload_flag='-r'
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4943 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4944 reload_flag=$lt_cv_ld_reload_flag
4945 case $reload_flag in
4946 "" | " "*) ;;
4947 *) reload_flag=" $reload_flag" ;;
4948 esac
4949 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950 case $host_os in
4951 cygwin* | mingw* | pw32* | cegcc*)
4952 if test "$GCC" != yes; then
4953 reload_cmds=false
4954 fi
4955 ;;
4956 darwin*)
4957 if test "$GCC" = yes; then
4958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4959 else
4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4961 fi
4962 ;;
4963 esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_OBJDUMP+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$OBJDUMP"; then
4982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 OBJDUMP=$ac_cv_prog_OBJDUMP
5002 if test -n "$OBJDUMP"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5004 $as_echo "$OBJDUMP" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$ac_cv_prog_OBJDUMP"; then
5013 ac_ct_OBJDUMP=$OBJDUMP
5014 # Extract the first word of "objdump", so it can be a program name with args.
5015 set dummy objdump; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$ac_ct_OBJDUMP"; then
5022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5042 if test -n "$ac_ct_OBJDUMP"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5044 $as_echo "$ac_ct_OBJDUMP" >&6; }
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050 if test "x$ac_ct_OBJDUMP" = x; then
5051 OBJDUMP="false"
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5058 esac
5059 OBJDUMP=$ac_ct_OBJDUMP
5060 fi
5061 else
5062 OBJDUMP="$ac_cv_prog_OBJDUMP"
5063 fi
5064
5065 test -z "$OBJDUMP" && OBJDUMP=objdump
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5076 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5077 if ${lt_cv_deplibs_check_method+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 lt_cv_file_magic_cmd='$MAGIC_CMD'
5081 lt_cv_file_magic_test_file=
5082 lt_cv_deplibs_check_method='unknown'
5083 # Need to set the preceding variable on all platforms that support
5084 # interlibrary dependencies.
5085 # 'none' -- dependencies not supported.
5086 # `unknown' -- same as none, but documents that we really don't know.
5087 # 'pass_all' -- all dependencies passed with no checks.
5088 # 'test_compile' -- check by making test program.
5089 # 'file_magic [[regex]]' -- check by looking for files in library path
5090 # which responds to the $file_magic_cmd with a given extended regex.
5091 # If you have `file' or equivalent on your system and you're not sure
5092 # whether `pass_all' will *always* work, you probably want this one.
5093
5094 case $host_os in
5095 aix[4-9]*)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098
5099 beos*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103 bsdi[45]*)
5104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5105 lt_cv_file_magic_cmd='/usr/bin/file -L'
5106 lt_cv_file_magic_test_file=/shlib/libc.so
5107 ;;
5108
5109 cygwin*)
5110 # func_win32_libid is a shell function defined in ltmain.sh
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 ;;
5114
5115 mingw* | pw32*)
5116 # Base MSYS/MinGW do not provide the 'file' command needed by
5117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5118 # unless we find 'file', for example because we are cross-compiling.
5119 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5120 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5122 lt_cv_file_magic_cmd='func_win32_libid'
5123 else
5124 # Keep this pattern in sync with the one in func_win32_libid.
5125 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5126 lt_cv_file_magic_cmd='$OBJDUMP -f'
5127 fi
5128 ;;
5129
5130 cegcc*)
5131 # use the weaker test based on 'objdump'. See mingw*.
5132 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5133 lt_cv_file_magic_cmd='$OBJDUMP -f'
5134 ;;
5135
5136 darwin* | rhapsody*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 freebsd* | dragonfly*)
5141 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5142 case $host_cpu in
5143 i*86 )
5144 # Not sure whether the presence of OpenBSD here was a mistake.
5145 # Let's accept both of them until this is cleared up.
5146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5147 lt_cv_file_magic_cmd=/usr/bin/file
5148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5149 ;;
5150 esac
5151 else
5152 lt_cv_deplibs_check_method=pass_all
5153 fi
5154 ;;
5155
5156 gnu*)
5157 lt_cv_deplibs_check_method=pass_all
5158 ;;
5159
5160 haiku*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163
5164 hpux10.20* | hpux11*)
5165 lt_cv_file_magic_cmd=/usr/bin/file
5166 case $host_cpu in
5167 ia64*)
5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5169 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5170 ;;
5171 hppa*64*)
5172 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]'
5173 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5174 ;;
5175 *)
5176 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5177 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5178 ;;
5179 esac
5180 ;;
5181
5182 interix[3-9]*)
5183 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5185 ;;
5186
5187 irix5* | irix6* | nonstopux*)
5188 case $LD in
5189 *-32|*"-32 ") libmagic=32-bit;;
5190 *-n32|*"-n32 ") libmagic=N32;;
5191 *-64|*"-64 ") libmagic=64-bit;;
5192 *) libmagic=never-match;;
5193 esac
5194 lt_cv_deplibs_check_method=pass_all
5195 ;;
5196
5197 # This must be glibc/ELF.
5198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 netbsd*)
5203 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5205 else
5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5207 fi
5208 ;;
5209
5210 newos6*)
5211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5212 lt_cv_file_magic_cmd=/usr/bin/file
5213 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5214 ;;
5215
5216 *nto* | *qnx*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219
5220 openbsd*)
5221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5223 else
5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5225 fi
5226 ;;
5227
5228 osf3* | osf4* | osf5*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 rdos*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 solaris*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244 sysv4 | sysv4.3*)
5245 case $host_vendor in
5246 motorola)
5247 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]'
5248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5249 ;;
5250 ncr)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253 sequent)
5254 lt_cv_file_magic_cmd='/bin/file'
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5256 ;;
5257 sni)
5258 lt_cv_file_magic_cmd='/bin/file'
5259 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5260 lt_cv_file_magic_test_file=/lib/libc.so
5261 ;;
5262 siemens)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265 pc)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268 esac
5269 ;;
5270
5271 tpf*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274 esac
5275
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5278 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5279
5280 file_magic_glob=
5281 want_nocaseglob=no
5282 if test "$build" = "$host"; then
5283 case $host_os in
5284 mingw* | pw32*)
5285 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5286 want_nocaseglob=yes
5287 else
5288 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5289 fi
5290 ;;
5291 esac
5292 fi
5293
5294 file_magic_cmd=$lt_cv_file_magic_cmd
5295 deplibs_check_method=$lt_cv_deplibs_check_method
5296 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5321 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_DLLTOOL+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$DLLTOOL"; then
5328 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 DLLTOOL=$ac_cv_prog_DLLTOOL
5348 if test -n "$DLLTOOL"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5350 $as_echo "$DLLTOOL" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$ac_cv_prog_DLLTOOL"; then
5359 ac_ct_DLLTOOL=$DLLTOOL
5360 # Extract the first word of "dlltool", so it can be a program name with args.
5361 set dummy dlltool; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$ac_ct_DLLTOOL"; then
5368 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5388 if test -n "$ac_ct_DLLTOOL"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5390 $as_echo "$ac_ct_DLLTOOL" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396 if test "x$ac_ct_DLLTOOL" = x; then
5397 DLLTOOL="false"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 DLLTOOL=$ac_ct_DLLTOOL
5406 fi
5407 else
5408 DLLTOOL="$ac_cv_prog_DLLTOOL"
5409 fi
5410
5411 test -z "$DLLTOOL" && DLLTOOL=dlltool
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5423 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5424 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 lt_cv_sharedlib_from_linklib_cmd='unknown'
5428
5429 case $host_os in
5430 cygwin* | mingw* | pw32* | cegcc*)
5431 # two different shell functions defined in ltmain.sh
5432 # decide which to use based on capabilities of $DLLTOOL
5433 case `$DLLTOOL --help 2>&1` in
5434 *--identify-strict*)
5435 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5436 ;;
5437 *)
5438 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5439 ;;
5440 esac
5441 ;;
5442 *)
5443 # fallback: assume linklib IS sharedlib
5444 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5445 ;;
5446 esac
5447
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5450 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5451 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5452 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5453
5454
5455
5456
5457
5458
5459
5460
5461 if test -n "$ac_tool_prefix"; then
5462 for ac_prog in ar
5463 do
5464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_AR+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$AR"; then
5472 ac_cv_prog_AR="$AR" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 AR=$ac_cv_prog_AR
5492 if test -n "$AR"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5494 $as_echo "$AR" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500
5501 test -n "$AR" && break
5502 done
5503 fi
5504 if test -z "$AR"; then
5505 ac_ct_AR=$AR
5506 for ac_prog in ar
5507 do
5508 # Extract the first word of "$ac_prog", so it can be a program name with args.
5509 set dummy $ac_prog; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$ac_ct_AR"; then
5516 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_ac_ct_AR="$ac_prog"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5532
5533 fi
5534 fi
5535 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5536 if test -n "$ac_ct_AR"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5538 $as_echo "$ac_ct_AR" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5542 fi
5543
5544
5545 test -n "$ac_ct_AR" && break
5546 done
5547
5548 if test "x$ac_ct_AR" = x; then
5549 AR="false"
5550 else
5551 case $cross_compiling:$ac_tool_warned in
5552 yes:)
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557 AR=$ac_ct_AR
5558 fi
5559 fi
5560
5561 : ${AR=ar}
5562 : ${AR_FLAGS=cru}
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5575 $as_echo_n "checking for archiver @FILE support... " >&6; }
5576 if ${lt_cv_ar_at_file+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 lt_cv_ar_at_file=no
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582
5583 int
5584 main ()
5585 {
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 echo conftest.$ac_objext > conftest.lst
5593 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5595 (eval $lt_ar_try) 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598 test $ac_status = 0; }
5599 if test "$ac_status" -eq 0; then
5600 # Ensure the archiver fails upon bogus file names.
5601 rm -f conftest.$ac_objext libconftest.a
5602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5603 (eval $lt_ar_try) 2>&5
5604 ac_status=$?
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }
5607 if test "$ac_status" -ne 0; then
5608 lt_cv_ar_at_file=@
5609 fi
5610 fi
5611 rm -f conftest.* libconftest.a
5612
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5618 $as_echo "$lt_cv_ar_at_file" >&6; }
5619
5620 if test "x$lt_cv_ar_at_file" = xno; then
5621 archiver_list_spec=
5622 else
5623 archiver_list_spec=$lt_cv_ar_at_file
5624 fi
5625
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}strip; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_STRIP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$STRIP"; then
5641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 STRIP=$ac_cv_prog_STRIP
5661 if test -n "$STRIP"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5663 $as_echo "$STRIP" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 fi
5671 if test -z "$ac_cv_prog_STRIP"; then
5672 ac_ct_STRIP=$STRIP
5673 # Extract the first word of "strip", so it can be a program name with args.
5674 set dummy strip; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_STRIP"; then
5681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_STRIP="strip"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5701 if test -n "$ac_ct_STRIP"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5703 $as_echo "$ac_ct_STRIP" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709 if test "x$ac_ct_STRIP" = x; then
5710 STRIP=":"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 STRIP=$ac_ct_STRIP
5719 fi
5720 else
5721 STRIP="$ac_cv_prog_STRIP"
5722 fi
5723
5724 test -z "$STRIP" && STRIP=:
5725
5726
5727
5728
5729
5730
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5733 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_RANLIB+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$RANLIB"; then
5740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 RANLIB=$ac_cv_prog_RANLIB
5760 if test -n "$RANLIB"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5762 $as_echo "$RANLIB" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768
5769 fi
5770 if test -z "$ac_cv_prog_RANLIB"; then
5771 ac_ct_RANLIB=$RANLIB
5772 # Extract the first word of "ranlib", so it can be a program name with args.
5773 set dummy ranlib; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if test -n "$ac_ct_RANLIB"; then
5780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_ac_ct_RANLIB="ranlib"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5800 if test -n "$ac_ct_RANLIB"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5802 $as_echo "$ac_ct_RANLIB" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808 if test "x$ac_ct_RANLIB" = x; then
5809 RANLIB=":"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815 ac_tool_warned=yes ;;
5816 esac
5817 RANLIB=$ac_ct_RANLIB
5818 fi
5819 else
5820 RANLIB="$ac_cv_prog_RANLIB"
5821 fi
5822
5823 test -z "$RANLIB" && RANLIB=:
5824
5825
5826
5827
5828
5829
5830 # Determine commands to create old-style static archives.
5831 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5832 old_postinstall_cmds='chmod 644 $oldlib'
5833 old_postuninstall_cmds=
5834
5835 if test -n "$RANLIB"; then
5836 case $host_os in
5837 openbsd*)
5838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5839 ;;
5840 *)
5841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5842 ;;
5843 esac
5844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5845 fi
5846
5847 case $host_os in
5848 darwin*)
5849 lock_old_archive_extraction=yes ;;
5850 *)
5851 lock_old_archive_extraction=no ;;
5852 esac
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 # If no C compiler was specified, use CC.
5893 LTCC=${LTCC-"$CC"}
5894
5895 # If no C compiler flags were specified, use CFLAGS.
5896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5897
5898 # Allow CC to be a program name with arguments.
5899 compiler=$CC
5900
5901
5902 # Check for command to grab the raw symbol name followed by C symbol from nm.
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5905 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908
5909 # These are sane defaults that work on at least a few old systems.
5910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5911
5912 # Character class describing NM global symbol codes.
5913 symcode='[BCDEGRST]'
5914
5915 # Regexp to match symbols that can be accessed directly from C.
5916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5917
5918 # Define system-specific variables.
5919 case $host_os in
5920 aix*)
5921 symcode='[BCDT]'
5922 ;;
5923 cygwin* | mingw* | pw32* | cegcc*)
5924 symcode='[ABCDGISTW]'
5925 ;;
5926 hpux*)
5927 if test "$host_cpu" = ia64; then
5928 symcode='[ABCDEGRST]'
5929 fi
5930 ;;
5931 irix* | nonstopux*)
5932 symcode='[BCDEGRST]'
5933 ;;
5934 osf*)
5935 symcode='[BCDEGQRST]'
5936 ;;
5937 solaris*)
5938 symcode='[BDRT]'
5939 ;;
5940 sco3.2v5*)
5941 symcode='[DT]'
5942 ;;
5943 sysv4.2uw2*)
5944 symcode='[DT]'
5945 ;;
5946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5947 symcode='[ABDT]'
5948 ;;
5949 sysv4)
5950 symcode='[DFNSTU]'
5951 ;;
5952 esac
5953
5954 # If we're using GNU nm, then use its standard symbol codes.
5955 case `$NM -V 2>&1` in
5956 *GNU* | *'with BFD'*)
5957 symcode='[ABCDGIRSTW]' ;;
5958 esac
5959
5960 # Transform an extracted symbol line into a proper C declaration.
5961 # Some systems (esp. on ia64) link data and code symbols differently,
5962 # so use this general approach.
5963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5964
5965 # Transform an extracted symbol line into symbol name and symbol address
5966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5967 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'"
5968
5969 # Handle CRLF in mingw tool chain
5970 opt_cr=
5971 case $build_os in
5972 mingw*)
5973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5974 ;;
5975 esac
5976
5977 # Try without a prefix underscore, then with it.
5978 for ac_symprfx in "" "_"; do
5979
5980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5981 symxfrm="\\1 $ac_symprfx\\2 \\2"
5982
5983 # Write the raw and C identifiers.
5984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985 # Fake it for dumpbin and say T for any non-static function
5986 # and D for any global variable.
5987 # Also find C++ and __fastcall symbols from MSVC++,
5988 # which start with @ or ?.
5989 lt_cv_sys_global_symbol_pipe="$AWK '"\
5990 " {last_section=section; section=\$ 3};"\
5991 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5993 " \$ 0!~/External *\|/{next};"\
5994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5995 " {if(hide[section]) next};"\
5996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6000 " ' prfx=^$ac_symprfx"
6001 else
6002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6003 fi
6004 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6005
6006 # Check to see that the pipe works correctly.
6007 pipe_works=no
6008
6009 rm -f conftest*
6010 cat > conftest.$ac_ext <<_LT_EOF
6011 #ifdef __cplusplus
6012 extern "C" {
6013 #endif
6014 char nm_test_var;
6015 void nm_test_func(void);
6016 void nm_test_func(void){}
6017 #ifdef __cplusplus
6018 }
6019 #endif
6020 int main(){nm_test_var='a';nm_test_func();return(0);}
6021 _LT_EOF
6022
6023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6024 (eval $ac_compile) 2>&5
6025 ac_status=$?
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; then
6028 # Now try to grab the symbols.
6029 nlist=conftest.nm
6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6031 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6032 ac_status=$?
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; } && test -s "$nlist"; then
6035 # Try sorting and uniquifying the output.
6036 if sort "$nlist" | uniq > "$nlist"T; then
6037 mv -f "$nlist"T "$nlist"
6038 else
6039 rm -f "$nlist"T
6040 fi
6041
6042 # Make sure that we snagged all the symbols we need.
6043 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6044 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6045 cat <<_LT_EOF > conftest.$ac_ext
6046 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6047 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6048 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6049 relocations are performed -- see ld's documentation on pseudo-relocs. */
6050 # define LT_DLSYM_CONST
6051 #elif defined(__osf__)
6052 /* This system does not cope well with relocations in const data. */
6053 # define LT_DLSYM_CONST
6054 #else
6055 # define LT_DLSYM_CONST const
6056 #endif
6057
6058 #ifdef __cplusplus
6059 extern "C" {
6060 #endif
6061
6062 _LT_EOF
6063 # Now generate the symbol file.
6064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6065
6066 cat <<_LT_EOF >> conftest.$ac_ext
6067
6068 /* The mapping between symbol names and symbols. */
6069 LT_DLSYM_CONST struct {
6070 const char *name;
6071 void *address;
6072 }
6073 lt__PROGRAM__LTX_preloaded_symbols[] =
6074 {
6075 { "@PROGRAM@", (void *) 0 },
6076 _LT_EOF
6077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6078 cat <<\_LT_EOF >> conftest.$ac_ext
6079 {0, (void *) 0}
6080 };
6081
6082 /* This works around a problem in FreeBSD linker */
6083 #ifdef FREEBSD_WORKAROUND
6084 static const void *lt_preloaded_setup() {
6085 return lt__PROGRAM__LTX_preloaded_symbols;
6086 }
6087 #endif
6088
6089 #ifdef __cplusplus
6090 }
6091 #endif
6092 _LT_EOF
6093 # Now try linking the two files.
6094 mv conftest.$ac_objext conftstm.$ac_objext
6095 lt_globsym_save_LIBS=$LIBS
6096 lt_globsym_save_CFLAGS=$CFLAGS
6097 LIBS="conftstm.$ac_objext"
6098 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6100 (eval $ac_link) 2>&5
6101 ac_status=$?
6102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6104 pipe_works=yes
6105 fi
6106 LIBS=$lt_globsym_save_LIBS
6107 CFLAGS=$lt_globsym_save_CFLAGS
6108 else
6109 echo "cannot find nm_test_func in $nlist" >&5
6110 fi
6111 else
6112 echo "cannot find nm_test_var in $nlist" >&5
6113 fi
6114 else
6115 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6116 fi
6117 else
6118 echo "$progname: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 fi
6121 rm -rf conftest* conftst*
6122
6123 # Do not use the global_symbol_pipe unless it works.
6124 if test "$pipe_works" = yes; then
6125 break
6126 else
6127 lt_cv_sys_global_symbol_pipe=
6128 fi
6129 done
6130
6131 fi
6132
6133 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6134 lt_cv_sys_global_symbol_to_cdecl=
6135 fi
6136 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6138 $as_echo "failed" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6141 $as_echo "ok" >&6; }
6142 fi
6143
6144 # Response file support.
6145 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6146 nm_file_list_spec='@'
6147 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6148 nm_file_list_spec='@'
6149 fi
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6178 $as_echo_n "checking for sysroot... " >&6; }
6179
6180 # Check whether --with-sysroot was given.
6181 if test "${with_sysroot+set}" = set; then :
6182 withval=$with_sysroot;
6183 else
6184 with_sysroot=no
6185 fi
6186
6187
6188 lt_sysroot=
6189 case ${with_sysroot} in #(
6190 yes)
6191 if test "$GCC" = yes; then
6192 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6193 fi
6194 ;; #(
6195 /*)
6196 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6197 ;; #(
6198 no|'')
6199 ;; #(
6200 *)
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6202 $as_echo "${with_sysroot}" >&6; }
6203 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6204 ;;
6205 esac
6206
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6208 $as_echo "${lt_sysroot:-no}" >&6; }
6209
6210
6211
6212
6213
6214 # Check whether --enable-libtool-lock was given.
6215 if test "${enable_libtool_lock+set}" = set; then :
6216 enableval=$enable_libtool_lock;
6217 fi
6218
6219 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6220
6221 # Some flags need to be propagated to the compiler or linker for good
6222 # libtool support.
6223 case $host in
6224 ia64-*-hpux*)
6225 # Find out which ABI we are using.
6226 echo 'int i;' > conftest.$ac_ext
6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6228 (eval $ac_compile) 2>&5
6229 ac_status=$?
6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231 test $ac_status = 0; }; then
6232 case `/usr/bin/file conftest.$ac_objext` in
6233 *ELF-32*)
6234 HPUX_IA64_MODE="32"
6235 ;;
6236 *ELF-64*)
6237 HPUX_IA64_MODE="64"
6238 ;;
6239 esac
6240 fi
6241 rm -rf conftest*
6242 ;;
6243 *-*-irix6*)
6244 # Find out which ABI we are using.
6245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; then
6251 if test "$lt_cv_prog_gnu_ld" = yes; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *32-bit*)
6254 LD="${LD-ld} -melf32bsmip"
6255 ;;
6256 *N32*)
6257 LD="${LD-ld} -melf32bmipn32"
6258 ;;
6259 *64-bit*)
6260 LD="${LD-ld} -melf64bmip"
6261 ;;
6262 esac
6263 else
6264 case `/usr/bin/file conftest.$ac_objext` in
6265 *32-bit*)
6266 LD="${LD-ld} -32"
6267 ;;
6268 *N32*)
6269 LD="${LD-ld} -n32"
6270 ;;
6271 *64-bit*)
6272 LD="${LD-ld} -64"
6273 ;;
6274 esac
6275 fi
6276 fi
6277 rm -rf conftest*
6278 ;;
6279
6280 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6281 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6282 # Find out which ABI we are using.
6283 echo 'int i;' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 case `/usr/bin/file conftest.o` in
6290 *32-bit*)
6291 case $host in
6292 x86_64-*kfreebsd*-gnu)
6293 LD="${LD-ld} -m elf_i386_fbsd"
6294 ;;
6295 x86_64-*linux*)
6296 LD="${LD-ld} -m elf_i386"
6297 ;;
6298 ppc64-*linux*|powerpc64-*linux*)
6299 LD="${LD-ld} -m elf32ppclinux"
6300 ;;
6301 s390x-*linux*)
6302 LD="${LD-ld} -m elf_s390"
6303 ;;
6304 sparc64-*linux*)
6305 LD="${LD-ld} -m elf32_sparc"
6306 ;;
6307 esac
6308 ;;
6309 *64-bit*)
6310 case $host in
6311 x86_64-*kfreebsd*-gnu)
6312 LD="${LD-ld} -m elf_x86_64_fbsd"
6313 ;;
6314 x86_64-*linux*)
6315 LD="${LD-ld} -m elf_x86_64"
6316 ;;
6317 ppc*-*linux*|powerpc*-*linux*)
6318 LD="${LD-ld} -m elf64ppc"
6319 ;;
6320 s390*-*linux*|s390*-*tpf*)
6321 LD="${LD-ld} -m elf64_s390"
6322 ;;
6323 sparc*-*linux*)
6324 LD="${LD-ld} -m elf64_sparc"
6325 ;;
6326 esac
6327 ;;
6328 esac
6329 fi
6330 rm -rf conftest*
6331 ;;
6332
6333 *-*-sco3.2v5*)
6334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6335 SAVE_CFLAGS="$CFLAGS"
6336 CFLAGS="$CFLAGS -belf"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6338 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6339 if ${lt_cv_cc_needs_belf+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 ac_ext=c
6343 ac_cpp='$CPP $CPPFLAGS'
6344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350
6351 int
6352 main ()
6353 {
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 lt_cv_cc_needs_belf=yes
6361 else
6362 lt_cv_cc_needs_belf=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 ac_ext=c
6367 ac_cpp='$CPP $CPPFLAGS'
6368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6374 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6377 CFLAGS="$SAVE_CFLAGS"
6378 fi
6379 ;;
6380 *-*solaris*)
6381 # Find out which ABI we are using.
6382 echo 'int i;' > conftest.$ac_ext
6383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6384 (eval $ac_compile) 2>&5
6385 ac_status=$?
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; }; then
6388 case `/usr/bin/file conftest.o` in
6389 *64-bit*)
6390 case $lt_cv_prog_gnu_ld in
6391 yes*)
6392 case $host in
6393 i?86-*-solaris*)
6394 LD="${LD-ld} -m elf_x86_64"
6395 ;;
6396 sparc*-*-solaris*)
6397 LD="${LD-ld} -m elf64_sparc"
6398 ;;
6399 esac
6400 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6401 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6402 LD="${LD-ld}_sol2"
6403 fi
6404 ;;
6405 *)
6406 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6407 LD="${LD-ld} -64"
6408 fi
6409 ;;
6410 esac
6411 ;;
6412 esac
6413 fi
6414 rm -rf conftest*
6415 ;;
6416 esac
6417
6418 need_locks="$enable_libtool_lock"
6419
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6422 set dummy ${ac_tool_prefix}mt; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$MANIFEST_TOOL"; then
6429 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6449 if test -n "$MANIFEST_TOOL"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6451 $as_echo "$MANIFEST_TOOL" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458 fi
6459 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6460 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6461 # Extract the first word of "mt", so it can be a program name with args.
6462 set dummy mt; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$ac_ct_MANIFEST_TOOL"; then
6469 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6489 if test -n "$ac_ct_MANIFEST_TOOL"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6491 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6498 MANIFEST_TOOL=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6507 fi
6508 else
6509 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6510 fi
6511
6512 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6514 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6515 if ${lt_cv_path_mainfest_tool+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_path_mainfest_tool=no
6519 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6520 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6521 cat conftest.err >&5
6522 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6523 lt_cv_path_mainfest_tool=yes
6524 fi
6525 rm -f conftest*
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6528 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6529 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6530 MANIFEST_TOOL=:
6531 fi
6532
6533
6534
6535
6536
6537
6538 case $host_os in
6539 rhapsody* | darwin*)
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 if test -n "$DSYMUTIL"; then
6549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6569 if test -n "$DSYMUTIL"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6571 $as_echo "$DSYMUTIL" >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578 fi
6579 if test -z "$ac_cv_prog_DSYMUTIL"; then
6580 ac_ct_DSYMUTIL=$DSYMUTIL
6581 # Extract the first word of "dsymutil", so it can be a program name with args.
6582 set dummy dsymutil; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 if test -n "$ac_ct_DSYMUTIL"; then
6589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6609 if test -n "$ac_ct_DSYMUTIL"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6611 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6612 else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617 if test "x$ac_ct_DSYMUTIL" = x; then
6618 DSYMUTIL=":"
6619 else
6620 case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626 DSYMUTIL=$ac_ct_DSYMUTIL
6627 fi
6628 else
6629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6630 fi
6631
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_NMEDIT+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$NMEDIT"; then
6641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 NMEDIT=$ac_cv_prog_NMEDIT
6661 if test -n "$NMEDIT"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6663 $as_echo "$NMEDIT" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_NMEDIT"; then
6672 ac_ct_NMEDIT=$NMEDIT
6673 # Extract the first word of "nmedit", so it can be a program name with args.
6674 set dummy nmedit; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_NMEDIT"; then
6681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6701 if test -n "$ac_ct_NMEDIT"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6703 $as_echo "$ac_ct_NMEDIT" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_NMEDIT" = x; then
6710 NMEDIT=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 NMEDIT=$ac_ct_NMEDIT
6719 fi
6720 else
6721 NMEDIT="$ac_cv_prog_NMEDIT"
6722 fi
6723
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_LIPO+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$LIPO"; then
6733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 LIPO=$ac_cv_prog_LIPO
6753 if test -n "$LIPO"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6755 $as_echo "$LIPO" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_LIPO"; then
6764 ac_ct_LIPO=$LIPO
6765 # Extract the first word of "lipo", so it can be a program name with args.
6766 set dummy lipo; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_LIPO"; then
6773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_LIPO="lipo"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6793 if test -n "$ac_ct_LIPO"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6795 $as_echo "$ac_ct_LIPO" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801 if test "x$ac_ct_LIPO" = x; then
6802 LIPO=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 LIPO=$ac_ct_LIPO
6811 fi
6812 else
6813 LIPO="$ac_cv_prog_LIPO"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}otool; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_OTOOL+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$OTOOL"; then
6825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 OTOOL=$ac_cv_prog_OTOOL
6845 if test -n "$OTOOL"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6847 $as_echo "$OTOOL" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_OTOOL"; then
6856 ac_ct_OTOOL=$OTOOL
6857 # Extract the first word of "otool", so it can be a program name with args.
6858 set dummy otool; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_OTOOL"; then
6865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_OTOOL="otool"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6885 if test -n "$ac_ct_OTOOL"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6887 $as_echo "$ac_ct_OTOOL" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_OTOOL" = x; then
6894 OTOOL=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 OTOOL=$ac_ct_OTOOL
6903 fi
6904 else
6905 OTOOL="$ac_cv_prog_OTOOL"
6906 fi
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_OTOOL64+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$OTOOL64"; then
6917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 OTOOL64=$ac_cv_prog_OTOOL64
6937 if test -n "$OTOOL64"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6939 $as_echo "$OTOOL64" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_OTOOL64"; then
6948 ac_ct_OTOOL64=$OTOOL64
6949 # Extract the first word of "otool64", so it can be a program name with args.
6950 set dummy otool64; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_OTOOL64"; then
6957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_OTOOL64="otool64"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6977 if test -n "$ac_ct_OTOOL64"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6979 $as_echo "$ac_ct_OTOOL64" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985 if test "x$ac_ct_OTOOL64" = x; then
6986 OTOOL64=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 OTOOL64=$ac_ct_OTOOL64
6995 fi
6996 else
6997 OTOOL64="$ac_cv_prog_OTOOL64"
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7027 $as_echo_n "checking for -single_module linker flag... " >&6; }
7028 if ${lt_cv_apple_cc_single_mod+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 lt_cv_apple_cc_single_mod=no
7032 if test -z "${LT_MULTI_MODULE}"; then
7033 # By default we will add the -single_module flag. You can override
7034 # by either setting the environment variable LT_MULTI_MODULE
7035 # non-empty at configure time, or by adding -multi_module to the
7036 # link flags.
7037 rm -rf libconftest.dylib*
7038 echo "int foo(void){return 1;}" > conftest.c
7039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7040 -dynamiclib -Wl,-single_module conftest.c" >&5
7041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7043 _lt_result=$?
7044 # If there is a non-empty error log, and "single_module"
7045 # appears in it, assume the flag caused a linker warning
7046 if test -s conftest.err && $GREP single_module conftest.err; then
7047 cat conftest.err >&5
7048 # Otherwise, if the output was created with a 0 exit code from
7049 # the compiler, it worked.
7050 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7051 lt_cv_apple_cc_single_mod=yes
7052 else
7053 cat conftest.err >&5
7054 fi
7055 rm -rf libconftest.dylib*
7056 rm -f conftest.*
7057 fi
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7060 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7063 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7064 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 lt_cv_ld_exported_symbols_list=no
7068 save_LDFLAGS=$LDFLAGS
7069 echo "_main" > conftest.sym
7070 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073
7074 int
7075 main ()
7076 {
7077
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 lt_cv_ld_exported_symbols_list=yes
7084 else
7085 lt_cv_ld_exported_symbols_list=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 LDFLAGS="$save_LDFLAGS"
7090
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7093 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7094
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7096 $as_echo_n "checking for -force_load linker flag... " >&6; }
7097 if ${lt_cv_ld_force_load+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 lt_cv_ld_force_load=no
7101 cat > conftest.c << _LT_EOF
7102 int forced_loaded() { return 2;}
7103 _LT_EOF
7104 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7105 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7106 echo "$AR cru libconftest.a conftest.o" >&5
7107 $AR cru libconftest.a conftest.o 2>&5
7108 echo "$RANLIB libconftest.a" >&5
7109 $RANLIB libconftest.a 2>&5
7110 cat > conftest.c << _LT_EOF
7111 int main() { return 0;}
7112 _LT_EOF
7113 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7114 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7115 _lt_result=$?
7116 if test -s conftest.err && $GREP force_load conftest.err; then
7117 cat conftest.err >&5
7118 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7119 lt_cv_ld_force_load=yes
7120 else
7121 cat conftest.err >&5
7122 fi
7123 rm -f conftest.err libconftest.a conftest conftest.c
7124 rm -rf conftest.dSYM
7125
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7128 $as_echo "$lt_cv_ld_force_load" >&6; }
7129 case $host_os in
7130 rhapsody* | darwin1.[012])
7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7132 darwin1.*)
7133 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7134 darwin*) # darwin 5.x on
7135 # if running on 10.5 or later, the deployment target defaults
7136 # to the OS version, if on x86, and 10.4, the deployment
7137 # target defaults to 10.4. Don't you love it?
7138 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7139 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7141 10.[012]*)
7142 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7143 10.*)
7144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7145 esac
7146 ;;
7147 esac
7148 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7149 _lt_dar_single_mod='$single_module'
7150 fi
7151 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7152 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7153 else
7154 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155 fi
7156 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7157 _lt_dsymutil='~$DSYMUTIL $lib || :'
7158 else
7159 _lt_dsymutil=
7160 fi
7161 ;;
7162 esac
7163
7164 ac_ext=c
7165 ac_cpp='$CPP $CPPFLAGS'
7166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7170 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7171 # On Suns, sometimes $CPP names a directory.
7172 if test -n "$CPP" && test -d "$CPP"; then
7173 CPP=
7174 fi
7175 if test -z "$CPP"; then
7176 if ${ac_cv_prog_CPP+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 # Double quotes because CPP needs to be expanded
7180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7181 do
7182 ac_preproc_ok=false
7183 for ac_c_preproc_warn_flag in '' yes
7184 do
7185 # Use a header file that comes with gcc, so configuring glibc
7186 # with a fresh cross-compiler works.
7187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 # <limits.h> exists even on freestanding compilers.
7189 # On the NeXT, cc -E runs the code through the compiler's parser,
7190 # not just through cpp. "Syntax error" is here to catch this case.
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 #ifdef __STDC__
7194 # include <limits.h>
7195 #else
7196 # include <assert.h>
7197 #endif
7198 Syntax error
7199 _ACEOF
7200 if ac_fn_c_try_cpp "$LINENO"; then :
7201
7202 else
7203 # Broken: fails on valid input.
7204 continue
7205 fi
7206 rm -f conftest.err conftest.i conftest.$ac_ext
7207
7208 # OK, works on sane cases. Now check whether nonexistent headers
7209 # can be detected and how.
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <ac_nonexistent.h>
7213 _ACEOF
7214 if ac_fn_c_try_cpp "$LINENO"; then :
7215 # Broken: success on invalid input.
7216 continue
7217 else
7218 # Passes both tests.
7219 ac_preproc_ok=:
7220 break
7221 fi
7222 rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224 done
7225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7226 rm -f conftest.i conftest.err conftest.$ac_ext
7227 if $ac_preproc_ok; then :
7228 break
7229 fi
7230
7231 done
7232 ac_cv_prog_CPP=$CPP
7233
7234 fi
7235 CPP=$ac_cv_prog_CPP
7236 else
7237 ac_cv_prog_CPP=$CPP
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7240 $as_echo "$CPP" >&6; }
7241 ac_preproc_ok=false
7242 for ac_c_preproc_warn_flag in '' yes
7243 do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 #ifdef __STDC__
7253 # include <limits.h>
7254 #else
7255 # include <assert.h>
7256 #endif
7257 Syntax error
7258 _ACEOF
7259 if ac_fn_c_try_cpp "$LINENO"; then :
7260
7261 else
7262 # Broken: fails on valid input.
7263 continue
7264 fi
7265 rm -f conftest.err conftest.i conftest.$ac_ext
7266
7267 # OK, works on sane cases. Now check whether nonexistent headers
7268 # can be detected and how.
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <ac_nonexistent.h>
7272 _ACEOF
7273 if ac_fn_c_try_cpp "$LINENO"; then :
7274 # Broken: success on invalid input.
7275 continue
7276 else
7277 # Passes both tests.
7278 ac_preproc_ok=:
7279 break
7280 fi
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7282
7283 done
7284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7285 rm -f conftest.i conftest.err conftest.$ac_ext
7286 if $ac_preproc_ok; then :
7287
7288 else
7289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7291 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7292 See \`config.log' for more details" "$LINENO" 5; }
7293 fi
7294
7295 ac_ext=c
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7303 $as_echo_n "checking for ANSI C header files... " >&6; }
7304 if ${ac_cv_header_stdc+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <stdlib.h>
7310 #include <stdarg.h>
7311 #include <string.h>
7312 #include <float.h>
7313
7314 int
7315 main ()
7316 {
7317
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323 ac_cv_header_stdc=yes
7324 else
7325 ac_cv_header_stdc=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328
7329 if test $ac_cv_header_stdc = yes; then
7330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #include <string.h>
7334
7335 _ACEOF
7336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7337 $EGREP "memchr" >/dev/null 2>&1; then :
7338
7339 else
7340 ac_cv_header_stdc=no
7341 fi
7342 rm -f conftest*
7343
7344 fi
7345
7346 if test $ac_cv_header_stdc = yes; then
7347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 #include <stdlib.h>
7351
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP "free" >/dev/null 2>&1; then :
7355
7356 else
7357 ac_cv_header_stdc=no
7358 fi
7359 rm -f conftest*
7360
7361 fi
7362
7363 if test $ac_cv_header_stdc = yes; then
7364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7365 if test "$cross_compiling" = yes; then :
7366 :
7367 else
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <ctype.h>
7371 #include <stdlib.h>
7372 #if ((' ' & 0x0FF) == 0x020)
7373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7375 #else
7376 # define ISLOWER(c) \
7377 (('a' <= (c) && (c) <= 'i') \
7378 || ('j' <= (c) && (c) <= 'r') \
7379 || ('s' <= (c) && (c) <= 'z'))
7380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7381 #endif
7382
7383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7384 int
7385 main ()
7386 {
7387 int i;
7388 for (i = 0; i < 256; i++)
7389 if (XOR (islower (i), ISLOWER (i))
7390 || toupper (i) != TOUPPER (i))
7391 return 2;
7392 return 0;
7393 }
7394 _ACEOF
7395 if ac_fn_c_try_run "$LINENO"; then :
7396
7397 else
7398 ac_cv_header_stdc=no
7399 fi
7400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7401 conftest.$ac_objext conftest.beam conftest.$ac_ext
7402 fi
7403
7404 fi
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7407 $as_echo "$ac_cv_header_stdc" >&6; }
7408 if test $ac_cv_header_stdc = yes; then
7409
7410 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7411
7412 fi
7413
7414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7415 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7416 inttypes.h stdint.h unistd.h
7417 do :
7418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7420 "
7421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7422 cat >>confdefs.h <<_ACEOF
7423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424 _ACEOF
7425
7426 fi
7427
7428 done
7429
7430
7431 for ac_header in dlfcn.h
7432 do :
7433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7434 "
7435 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7436 cat >>confdefs.h <<_ACEOF
7437 #define HAVE_DLFCN_H 1
7438 _ACEOF
7439
7440 fi
7441
7442 done
7443
7444
7445
7446
7447
7448 # Set options
7449
7450
7451
7452 enable_dlopen=no
7453
7454
7455 enable_win32_dll=no
7456
7457
7458 # Check whether --enable-shared was given.
7459 if test "${enable_shared+set}" = set; then :
7460 enableval=$enable_shared; p=${PACKAGE-default}
7461 case $enableval in
7462 yes) enable_shared=yes ;;
7463 no) enable_shared=no ;;
7464 *)
7465 enable_shared=no
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468 for pkg in $enableval; do
7469 IFS="$lt_save_ifs"
7470 if test "X$pkg" = "X$p"; then
7471 enable_shared=yes
7472 fi
7473 done
7474 IFS="$lt_save_ifs"
7475 ;;
7476 esac
7477 else
7478 enable_shared=yes
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489 # Check whether --enable-static was given.
7490 if test "${enable_static+set}" = set; then :
7491 enableval=$enable_static; p=${PACKAGE-default}
7492 case $enableval in
7493 yes) enable_static=yes ;;
7494 no) enable_static=no ;;
7495 *)
7496 enable_static=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499 for pkg in $enableval; do
7500 IFS="$lt_save_ifs"
7501 if test "X$pkg" = "X$p"; then
7502 enable_static=yes
7503 fi
7504 done
7505 IFS="$lt_save_ifs"
7506 ;;
7507 esac
7508 else
7509 enable_static=yes
7510 fi
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 # Check whether --with-pic was given.
7522 if test "${with_pic+set}" = set; then :
7523 withval=$with_pic; lt_p=${PACKAGE-default}
7524 case $withval in
7525 yes|no) pic_mode=$withval ;;
7526 *)
7527 pic_mode=default
7528 # Look at the argument we got. We use all the common list separators.
7529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7530 for lt_pkg in $withval; do
7531 IFS="$lt_save_ifs"
7532 if test "X$lt_pkg" = "X$lt_p"; then
7533 pic_mode=yes
7534 fi
7535 done
7536 IFS="$lt_save_ifs"
7537 ;;
7538 esac
7539 else
7540 pic_mode=default
7541 fi
7542
7543
7544 test -z "$pic_mode" && pic_mode=default
7545
7546
7547
7548
7549
7550
7551
7552 # Check whether --enable-fast-install was given.
7553 if test "${enable_fast_install+set}" = set; then :
7554 enableval=$enable_fast_install; p=${PACKAGE-default}
7555 case $enableval in
7556 yes) enable_fast_install=yes ;;
7557 no) enable_fast_install=no ;;
7558 *)
7559 enable_fast_install=no
7560 # Look at the argument we got. We use all the common list separators.
7561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7562 for pkg in $enableval; do
7563 IFS="$lt_save_ifs"
7564 if test "X$pkg" = "X$p"; then
7565 enable_fast_install=yes
7566 fi
7567 done
7568 IFS="$lt_save_ifs"
7569 ;;
7570 esac
7571 else
7572 enable_fast_install=yes
7573 fi
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 # This can be used to rebuild libtool when needed
7586 LIBTOOL_DEPS="$ltmain"
7587
7588 # Always use our own libtool.
7589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 test -z "$LN_S" && LN_S="ln -s"
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 if test -n "${ZSH_VERSION+set}" ; then
7636 setopt NO_GLOB_SUBST
7637 fi
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7640 $as_echo_n "checking for objdir... " >&6; }
7641 if ${lt_cv_objdir+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 rm -f .libs 2>/dev/null
7645 mkdir .libs 2>/dev/null
7646 if test -d .libs; then
7647 lt_cv_objdir=.libs
7648 else
7649 # MS-DOS does not allow filenames that begin with a dot.
7650 lt_cv_objdir=_libs
7651 fi
7652 rmdir .libs 2>/dev/null
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7655 $as_echo "$lt_cv_objdir" >&6; }
7656 objdir=$lt_cv_objdir
7657
7658
7659
7660
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define LT_OBJDIR "$lt_cv_objdir/"
7664 _ACEOF
7665
7666
7667
7668
7669 case $host_os in
7670 aix3*)
7671 # AIX sometimes has problems with the GCC collect2 program. For some
7672 # reason, if we set the COLLECT_NAMES environment variable, the problems
7673 # vanish in a puff of smoke.
7674 if test "X${COLLECT_NAMES+set}" != Xset; then
7675 COLLECT_NAMES=
7676 export COLLECT_NAMES
7677 fi
7678 ;;
7679 esac
7680
7681 # Global variables:
7682 ofile=libtool
7683 can_build_shared=yes
7684
7685 # All known linkers require a `.a' archive for static linking (except MSVC,
7686 # which needs '.lib').
7687 libext=a
7688
7689 with_gnu_ld="$lt_cv_prog_gnu_ld"
7690
7691 old_CC="$CC"
7692 old_CFLAGS="$CFLAGS"
7693
7694 # Set sane defaults for various variables
7695 test -z "$CC" && CC=cc
7696 test -z "$LTCC" && LTCC=$CC
7697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7698 test -z "$LD" && LD=ld
7699 test -z "$ac_objext" && ac_objext=o
7700
7701 for cc_temp in $compiler""; do
7702 case $cc_temp in
7703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7705 \-*) ;;
7706 *) break;;
7707 esac
7708 done
7709 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7710
7711
7712 # Only perform the check for file, if the check method requires it
7713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7714 case $deplibs_check_method in
7715 file_magic*)
7716 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 case $MAGIC_CMD in
7723 [\\/*] | ?:[\\/]*)
7724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7725 ;;
7726 *)
7727 lt_save_MAGIC_CMD="$MAGIC_CMD"
7728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7730 for ac_dir in $ac_dummy; do
7731 IFS="$lt_save_ifs"
7732 test -z "$ac_dir" && ac_dir=.
7733 if test -f $ac_dir/${ac_tool_prefix}file; then
7734 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7735 if test -n "$file_magic_test_file"; then
7736 case $deplibs_check_method in
7737 "file_magic "*)
7738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7741 $EGREP "$file_magic_regex" > /dev/null; then
7742 :
7743 else
7744 cat <<_LT_EOF 1>&2
7745
7746 *** Warning: the command libtool uses to detect shared libraries,
7747 *** $file_magic_cmd, produces output that libtool cannot recognize.
7748 *** The result is that libtool may fail to recognize shared libraries
7749 *** as such. This will affect the creation of libtool libraries that
7750 *** depend on shared libraries, but programs linked with such libtool
7751 *** libraries will work regardless of this problem. Nevertheless, you
7752 *** may want to report the problem to your system manager and/or to
7753 *** bug-libtool@gnu.org
7754
7755 _LT_EOF
7756 fi ;;
7757 esac
7758 fi
7759 break
7760 fi
7761 done
7762 IFS="$lt_save_ifs"
7763 MAGIC_CMD="$lt_save_MAGIC_CMD"
7764 ;;
7765 esac
7766 fi
7767
7768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769 if test -n "$MAGIC_CMD"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7771 $as_echo "$MAGIC_CMD" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777
7778
7779
7780
7781 if test -z "$lt_cv_path_MAGIC_CMD"; then
7782 if test -n "$ac_tool_prefix"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7784 $as_echo_n "checking for file... " >&6; }
7785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 case $MAGIC_CMD in
7789 [\\/*] | ?:[\\/]*)
7790 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 lt_save_MAGIC_CMD="$MAGIC_CMD"
7794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7796 for ac_dir in $ac_dummy; do
7797 IFS="$lt_save_ifs"
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/file; then
7800 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7801 if test -n "$file_magic_test_file"; then
7802 case $deplibs_check_method in
7803 "file_magic "*)
7804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7807 $EGREP "$file_magic_regex" > /dev/null; then
7808 :
7809 else
7810 cat <<_LT_EOF 1>&2
7811
7812 *** Warning: the command libtool uses to detect shared libraries,
7813 *** $file_magic_cmd, produces output that libtool cannot recognize.
7814 *** The result is that libtool may fail to recognize shared libraries
7815 *** as such. This will affect the creation of libtool libraries that
7816 *** depend on shared libraries, but programs linked with such libtool
7817 *** libraries will work regardless of this problem. Nevertheless, you
7818 *** may want to report the problem to your system manager and/or to
7819 *** bug-libtool@gnu.org
7820
7821 _LT_EOF
7822 fi ;;
7823 esac
7824 fi
7825 break
7826 fi
7827 done
7828 IFS="$lt_save_ifs"
7829 MAGIC_CMD="$lt_save_MAGIC_CMD"
7830 ;;
7831 esac
7832 fi
7833
7834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7835 if test -n "$MAGIC_CMD"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7837 $as_echo "$MAGIC_CMD" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 else
7845 MAGIC_CMD=:
7846 fi
7847 fi
7848
7849 fi
7850 ;;
7851 esac
7852
7853 # Use C for the default configuration in the libtool script
7854
7855 lt_save_CC="$CC"
7856 ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863 # Source file extension for C test sources.
7864 ac_ext=c
7865
7866 # Object file extension for compiled C test sources.
7867 objext=o
7868 objext=$objext
7869
7870 # Code to be used in simple compile tests
7871 lt_simple_compile_test_code="int some_variable = 0;"
7872
7873 # Code to be used in simple link tests
7874 lt_simple_link_test_code='int main(){return(0);}'
7875
7876
7877
7878
7879
7880
7881
7882 # If no C compiler was specified, use CC.
7883 LTCC=${LTCC-"$CC"}
7884
7885 # If no C compiler flags were specified, use CFLAGS.
7886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7887
7888 # Allow CC to be a program name with arguments.
7889 compiler=$CC
7890
7891 # Save the default compiler, since it gets overwritten when the other
7892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7893 compiler_DEFAULT=$CC
7894
7895 # save warnings/boilerplate of simple test code
7896 ac_outfile=conftest.$ac_objext
7897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7899 _lt_compiler_boilerplate=`cat conftest.err`
7900 $RM conftest*
7901
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7905 _lt_linker_boilerplate=`cat conftest.err`
7906 $RM -r conftest*
7907
7908
7909 if test -n "$compiler"; then
7910
7911 lt_prog_compiler_no_builtin_flag=
7912
7913 if test "$GCC" = yes; then
7914 case $cc_basename in
7915 nvcc*)
7916 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7917 *)
7918 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7919 esac
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7922 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7923 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 lt_cv_prog_compiler_rtti_exceptions=no
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7929 lt_compiler_flag="-fno-rtti -fno-exceptions"
7930 # Insert the option either (1) after the last *FLAGS variable, or
7931 # (2) before a word containing "conftest.", or (3) at the end.
7932 # Note that $ac_compile itself does not contain backslashes and begins
7933 # with a dollar sign (not a hyphen), so the echo should work correctly.
7934 # The option is referenced via a variable to avoid confusing sed.
7935 lt_compile=`echo "$ac_compile" | $SED \
7936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7938 -e 's:$: $lt_compiler_flag:'`
7939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7940 (eval "$lt_compile" 2>conftest.err)
7941 ac_status=$?
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 if (exit $ac_status) && test -s "$ac_outfile"; then
7945 # The compiler can only warn and ignore the option if not recognized
7946 # So say no if there are warnings other than the usual output.
7947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7950 lt_cv_prog_compiler_rtti_exceptions=yes
7951 fi
7952 fi
7953 $RM conftest*
7954
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7957 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7958
7959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7961 else
7962 :
7963 fi
7964
7965 fi
7966
7967
7968
7969
7970
7971
7972 lt_prog_compiler_wl=
7973 lt_prog_compiler_pic=
7974 lt_prog_compiler_static=
7975
7976
7977 if test "$GCC" = yes; then
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_static='-static'
7980
7981 case $host_os in
7982 aix*)
7983 # All AIX code is PIC.
7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
7986 lt_prog_compiler_static='-Bstatic'
7987 fi
7988 ;;
7989
7990 amigaos*)
7991 case $host_cpu in
7992 powerpc)
7993 # see comment about AmigaOS4 .so support
7994 lt_prog_compiler_pic='-fPIC'
7995 ;;
7996 m68k)
7997 # FIXME: we need at least 68020 code to build shared libraries, but
7998 # adding the `-m68020' flag to GCC prevents building anything better,
7999 # like `-m68040'.
8000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8001 ;;
8002 esac
8003 ;;
8004
8005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8006 # PIC is the default for these OSes.
8007 ;;
8008
8009 mingw* | cygwin* | pw32* | os2* | cegcc*)
8010 # This hack is so that the source file can tell whether it is being
8011 # built for inclusion in a dll (and should export symbols for example).
8012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8013 # (--disable-auto-import) libraries
8014 lt_prog_compiler_pic='-DDLL_EXPORT'
8015 ;;
8016
8017 darwin* | rhapsody*)
8018 # PIC is the default on this platform
8019 # Common symbols not allowed in MH_DYLIB files
8020 lt_prog_compiler_pic='-fno-common'
8021 ;;
8022
8023 haiku*)
8024 # PIC is the default for Haiku.
8025 # The "-static" flag exists, but is broken.
8026 lt_prog_compiler_static=
8027 ;;
8028
8029 hpux*)
8030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8032 # sets the default TLS model and affects inlining.
8033 case $host_cpu in
8034 hppa*64*)
8035 # +Z the default
8036 ;;
8037 *)
8038 lt_prog_compiler_pic='-fPIC'
8039 ;;
8040 esac
8041 ;;
8042
8043 interix[3-9]*)
8044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8045 # Instead, we relocate shared libraries at runtime.
8046 ;;
8047
8048 msdosdjgpp*)
8049 # Just because we use GCC doesn't mean we suddenly get shared libraries
8050 # on systems that don't support them.
8051 lt_prog_compiler_can_build_shared=no
8052 enable_shared=no
8053 ;;
8054
8055 *nto* | *qnx*)
8056 # QNX uses GNU C++, but need to define -shared option too, otherwise
8057 # it will coredump.
8058 lt_prog_compiler_pic='-fPIC -shared'
8059 ;;
8060
8061 sysv4*MP*)
8062 if test -d /usr/nec; then
8063 lt_prog_compiler_pic=-Kconform_pic
8064 fi
8065 ;;
8066
8067 *)
8068 lt_prog_compiler_pic='-fPIC'
8069 ;;
8070 esac
8071
8072 case $cc_basename in
8073 nvcc*) # Cuda Compiler Driver 2.2
8074 lt_prog_compiler_wl='-Xlinker '
8075 if test -n "$lt_prog_compiler_pic"; then
8076 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8077 fi
8078 ;;
8079 esac
8080 else
8081 # PORTME Check for flag to pass linker flags through the system compiler.
8082 case $host_os in
8083 aix*)
8084 lt_prog_compiler_wl='-Wl,'
8085 if test "$host_cpu" = ia64; then
8086 # AIX 5 now supports IA64 processor
8087 lt_prog_compiler_static='-Bstatic'
8088 else
8089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8090 fi
8091 ;;
8092
8093 mingw* | cygwin* | pw32* | os2* | cegcc*)
8094 # This hack is so that the source file can tell whether it is being
8095 # built for inclusion in a dll (and should export symbols for example).
8096 lt_prog_compiler_pic='-DDLL_EXPORT'
8097 ;;
8098
8099 hpux9* | hpux10* | hpux11*)
8100 lt_prog_compiler_wl='-Wl,'
8101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8102 # not for PA HP-UX.
8103 case $host_cpu in
8104 hppa*64*|ia64*)
8105 # +Z the default
8106 ;;
8107 *)
8108 lt_prog_compiler_pic='+Z'
8109 ;;
8110 esac
8111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8112 lt_prog_compiler_static='${wl}-a ${wl}archive'
8113 ;;
8114
8115 irix5* | irix6* | nonstopux*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # PIC (with -KPIC) is the default.
8118 lt_prog_compiler_static='-non_shared'
8119 ;;
8120
8121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8122 case $cc_basename in
8123 # old Intel for x86_64 which still supported -KPIC.
8124 ecc*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-static'
8128 ;;
8129 # icc used to be incompatible with GCC.
8130 # ICC 10 doesn't accept -KPIC any more.
8131 icc* | ifort*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-fPIC'
8134 lt_prog_compiler_static='-static'
8135 ;;
8136 # Lahey Fortran 8.1.
8137 lf95*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='--shared'
8140 lt_prog_compiler_static='--static'
8141 ;;
8142 nagfor*)
8143 # NAG Fortran compiler
8144 lt_prog_compiler_wl='-Wl,-Wl,,'
8145 lt_prog_compiler_pic='-PIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8149 # Portland Group compilers (*not* the Pentium gcc compiler,
8150 # which looks to be a dead project)
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-fpic'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155 ccc*)
8156 lt_prog_compiler_wl='-Wl,'
8157 # All Alpha code is PIC.
8158 lt_prog_compiler_static='-non_shared'
8159 ;;
8160 xl* | bgxl* | bgf* | mpixl*)
8161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='-qpic'
8164 lt_prog_compiler_static='-qstaticlink'
8165 ;;
8166 *)
8167 case `$CC -V 2>&1 | sed 5q` in
8168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8172 lt_prog_compiler_wl=''
8173 ;;
8174 *Sun\ F* | *Sun*Fortran*)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 lt_prog_compiler_wl='-Qoption ld '
8178 ;;
8179 *Sun\ C*)
8180 # Sun C 5.9
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_wl='-Wl,'
8184 ;;
8185 *Intel*\ [CF]*Compiler*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-fPIC'
8188 lt_prog_compiler_static='-static'
8189 ;;
8190 *Portland\ Group*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-fpic'
8193 lt_prog_compiler_static='-Bstatic'
8194 ;;
8195 esac
8196 ;;
8197 esac
8198 ;;
8199
8200 newsos6)
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 ;;
8204
8205 *nto* | *qnx*)
8206 # QNX uses GNU C++, but need to define -shared option too, otherwise
8207 # it will coredump.
8208 lt_prog_compiler_pic='-fPIC -shared'
8209 ;;
8210
8211 osf3* | osf4* | osf5*)
8212 lt_prog_compiler_wl='-Wl,'
8213 # All OSF/1 code is PIC.
8214 lt_prog_compiler_static='-non_shared'
8215 ;;
8216
8217 rdos*)
8218 lt_prog_compiler_static='-non_shared'
8219 ;;
8220
8221 solaris*)
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8224 case $cc_basename in
8225 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8226 lt_prog_compiler_wl='-Qoption ld ';;
8227 *)
8228 lt_prog_compiler_wl='-Wl,';;
8229 esac
8230 ;;
8231
8232 sunos4*)
8233 lt_prog_compiler_wl='-Qoption ld '
8234 lt_prog_compiler_pic='-PIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 ;;
8237
8238 sysv4 | sysv4.2uw2* | sysv4.3*)
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_pic='-KPIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 ;;
8243
8244 sysv4*MP*)
8245 if test -d /usr/nec ;then
8246 lt_prog_compiler_pic='-Kconform_pic'
8247 lt_prog_compiler_static='-Bstatic'
8248 fi
8249 ;;
8250
8251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_pic='-KPIC'
8254 lt_prog_compiler_static='-Bstatic'
8255 ;;
8256
8257 unicos*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_can_build_shared=no
8260 ;;
8261
8262 uts4*)
8263 lt_prog_compiler_pic='-pic'
8264 lt_prog_compiler_static='-Bstatic'
8265 ;;
8266
8267 *)
8268 lt_prog_compiler_can_build_shared=no
8269 ;;
8270 esac
8271 fi
8272
8273 case $host_os in
8274 # For platforms which do not support PIC, -DPIC is meaningless:
8275 *djgpp*)
8276 lt_prog_compiler_pic=
8277 ;;
8278 *)
8279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8280 ;;
8281 esac
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8285 if ${lt_cv_prog_compiler_pic+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8291 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8292 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8293
8294 #
8295 # Check to make sure the PIC flag actually works.
8296 #
8297 if test -n "$lt_prog_compiler_pic"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8300 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 lt_cv_prog_compiler_pic_works=no
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 # The option is referenced via a variable to avoid confusing sed.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>conftest.err)
8318 ac_status=$?
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s "$ac_outfile"; then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings other than the usual output.
8324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8327 lt_cv_prog_compiler_pic_works=yes
8328 fi
8329 fi
8330 $RM conftest*
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8335
8336 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8337 case $lt_prog_compiler_pic in
8338 "" | " "*) ;;
8339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8340 esac
8341 else
8342 lt_prog_compiler_pic=
8343 lt_prog_compiler_can_build_shared=no
8344 fi
8345
8346 fi
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358 #
8359 # Check to make sure the static flag actually works.
8360 #
8361 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8363 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8364 if ${lt_cv_prog_compiler_static_works+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 lt_cv_prog_compiler_static_works=no
8368 save_LDFLAGS="$LDFLAGS"
8369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8372 # The linker can only warn and ignore the option if not recognized
8373 # So say no if there are warnings
8374 if test -s conftest.err; then
8375 # Append any errors to the config.log.
8376 cat conftest.err 1>&5
8377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_cv_prog_compiler_static_works=yes
8381 fi
8382 else
8383 lt_cv_prog_compiler_static_works=yes
8384 fi
8385 fi
8386 $RM -r conftest*
8387 LDFLAGS="$save_LDFLAGS"
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8391 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8392
8393 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8394 :
8395 else
8396 lt_prog_compiler_static=
8397 fi
8398
8399
8400
8401
8402
8403
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8407 if ${lt_cv_prog_compiler_c_o+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 lt_cv_prog_compiler_c_o=no
8411 $RM -r conftest 2>/dev/null
8412 mkdir conftest
8413 cd conftest
8414 mkdir out
8415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416
8417 lt_compiler_flag="-o out/conftest2.$ac_objext"
8418 # Insert the option either (1) after the last *FLAGS variable, or
8419 # (2) before a word containing "conftest.", or (3) at the end.
8420 # Note that $ac_compile itself does not contain backslashes and begins
8421 # with a dollar sign (not a hyphen), so the echo should work correctly.
8422 lt_compile=`echo "$ac_compile" | $SED \
8423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425 -e 's:$: $lt_compiler_flag:'`
8426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8427 (eval "$lt_compile" 2>out/conftest.err)
8428 ac_status=$?
8429 cat out/conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8432 then
8433 # The compiler can only warn and ignore the option if not recognized
8434 # So say no if there are warnings
8435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8438 lt_cv_prog_compiler_c_o=yes
8439 fi
8440 fi
8441 chmod u+w . 2>&5
8442 $RM conftest*
8443 # SGI C++ compiler will create directory out/ii_files/ for
8444 # template instantiation
8445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8446 $RM out/* && rmdir out
8447 cd ..
8448 $RM -r conftest
8449 $RM conftest*
8450
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8454
8455
8456
8457
8458
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8462 if ${lt_cv_prog_compiler_c_o+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 lt_cv_prog_compiler_c_o=no
8466 $RM -r conftest 2>/dev/null
8467 mkdir conftest
8468 cd conftest
8469 mkdir out
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471
8472 lt_compiler_flag="-o out/conftest2.$ac_objext"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>out/conftest.err)
8483 ac_status=$?
8484 cat out/conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8487 then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings
8490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8493 lt_cv_prog_compiler_c_o=yes
8494 fi
8495 fi
8496 chmod u+w . 2>&5
8497 $RM conftest*
8498 # SGI C++ compiler will create directory out/ii_files/ for
8499 # template instantiation
8500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8501 $RM out/* && rmdir out
8502 cd ..
8503 $RM -r conftest
8504 $RM conftest*
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8508 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8509
8510
8511
8512
8513 hard_links="nottested"
8514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8515 # do not overwrite the value of need_locks provided by the user
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8517 $as_echo_n "checking if we can lock with hard links... " >&6; }
8518 hard_links=yes
8519 $RM conftest*
8520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521 touch conftest.a
8522 ln conftest.a conftest.b 2>&5 || hard_links=no
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8525 $as_echo "$hard_links" >&6; }
8526 if test "$hard_links" = no; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8529 need_locks=warn
8530 fi
8531 else
8532 need_locks=no
8533 fi
8534
8535
8536
8537
8538
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8541 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8542
8543 runpath_var=
8544 allow_undefined_flag=
8545 always_export_symbols=no
8546 archive_cmds=
8547 archive_expsym_cmds=
8548 compiler_needs_object=no
8549 enable_shared_with_static_runtimes=no
8550 export_dynamic_flag_spec=
8551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8552 hardcode_automatic=no
8553 hardcode_direct=no
8554 hardcode_direct_absolute=no
8555 hardcode_libdir_flag_spec=
8556 hardcode_libdir_separator=
8557 hardcode_minus_L=no
8558 hardcode_shlibpath_var=unsupported
8559 inherit_rpath=no
8560 link_all_deplibs=unknown
8561 module_cmds=
8562 module_expsym_cmds=
8563 old_archive_from_new_cmds=
8564 old_archive_from_expsyms_cmds=
8565 thread_safe_flag_spec=
8566 whole_archive_flag_spec=
8567 # include_expsyms should be a list of space-separated symbols to be *always*
8568 # included in the symbol list
8569 include_expsyms=
8570 # exclude_expsyms can be an extended regexp of symbols to exclude
8571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8573 # as well as any symbol that contains `d'.
8574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8576 # platforms (ab)use it in PIC code, but their linkers get confused if
8577 # the symbol is explicitly referenced. Since portable code cannot
8578 # rely on this symbol name, it's probably fine to never include it in
8579 # preloaded symbol tables.
8580 # Exclude shared library initialization/finalization symbols.
8581 extract_expsyms_cmds=
8582
8583 case $host_os in
8584 cygwin* | mingw* | pw32* | cegcc*)
8585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8586 # When not using gcc, we currently assume that we are using
8587 # Microsoft Visual C++.
8588 if test "$GCC" != yes; then
8589 with_gnu_ld=no
8590 fi
8591 ;;
8592 interix*)
8593 # we just hope/assume this is gcc and not c89 (= MSVC++)
8594 with_gnu_ld=yes
8595 ;;
8596 openbsd*)
8597 with_gnu_ld=no
8598 ;;
8599 esac
8600
8601 ld_shlibs=yes
8602
8603 # On some targets, GNU ld is compatible enough with the native linker
8604 # that we're better off using the native interface for both.
8605 lt_use_gnu_ld_interface=no
8606 if test "$with_gnu_ld" = yes; then
8607 case $host_os in
8608 aix*)
8609 # The AIX port of GNU ld has always aspired to compatibility
8610 # with the native linker. However, as the warning in the GNU ld
8611 # block says, versions before 2.19.5* couldn't really create working
8612 # shared libraries, regardless of the interface used.
8613 case `$LD -v 2>&1` in
8614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8617 *)
8618 lt_use_gnu_ld_interface=yes
8619 ;;
8620 esac
8621 ;;
8622 *)
8623 lt_use_gnu_ld_interface=yes
8624 ;;
8625 esac
8626 fi
8627
8628 if test "$lt_use_gnu_ld_interface" = yes; then
8629 # If archive_cmds runs LD, not CC, wlarc should be empty
8630 wlarc='${wl}'
8631
8632 # Set some defaults for GNU ld with shared library support. These
8633 # are reset later if shared libraries are not supported. Putting them
8634 # here allows them to be overridden if necessary.
8635 runpath_var=LD_RUN_PATH
8636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8637 export_dynamic_flag_spec='${wl}--export-dynamic'
8638 # ancient GNU ld didn't support --whole-archive et. al.
8639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8640 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8641 else
8642 whole_archive_flag_spec=
8643 fi
8644 supports_anon_versioning=no
8645 case `$LD -v 2>&1` in
8646 *GNU\ gold*) supports_anon_versioning=yes ;;
8647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8650 *\ 2.11.*) ;; # other 2.11 versions
8651 *) supports_anon_versioning=yes ;;
8652 esac
8653
8654 # See if GNU ld supports shared libraries.
8655 case $host_os in
8656 aix[3-9]*)
8657 # On AIX/PPC, the GNU linker is very broken
8658 if test "$host_cpu" != ia64; then
8659 ld_shlibs=no
8660 cat <<_LT_EOF 1>&2
8661
8662 *** Warning: the GNU linker, at least up to release 2.19, is reported
8663 *** to be unable to reliably create shared libraries on AIX.
8664 *** Therefore, libtool is disabling shared libraries support. If you
8665 *** really care for shared libraries, you may want to install binutils
8666 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8667 *** You will then need to restart the configuration process.
8668
8669 _LT_EOF
8670 fi
8671 ;;
8672
8673 amigaos*)
8674 case $host_cpu in
8675 powerpc)
8676 # see comment about AmigaOS4 .so support
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds=''
8679 ;;
8680 m68k)
8681 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)'
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_minus_L=yes
8684 ;;
8685 esac
8686 ;;
8687
8688 beos*)
8689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8690 allow_undefined_flag=unsupported
8691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8692 # support --undefined. This deserves some investigation. FIXME
8693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 else
8695 ld_shlibs=no
8696 fi
8697 ;;
8698
8699 cygwin* | mingw* | pw32* | cegcc*)
8700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8701 # as there is no search path for DLLs.
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 export_dynamic_flag_spec='${wl}--export-all-symbols'
8704 allow_undefined_flag=unsupported
8705 always_export_symbols=no
8706 enable_shared_with_static_runtimes=yes
8707 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'
8708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8709
8710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8712 # If the export-symbols file already is a .def file (1st line
8713 # is EXPORTS), use it as is; otherwise, prepend...
8714 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8715 cp $export_symbols $output_objdir/$soname.def;
8716 else
8717 echo EXPORTS > $output_objdir/$soname.def;
8718 cat $export_symbols >> $output_objdir/$soname.def;
8719 fi~
8720 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721 else
8722 ld_shlibs=no
8723 fi
8724 ;;
8725
8726 haiku*)
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 link_all_deplibs=yes
8729 ;;
8730
8731 interix[3-9]*)
8732 hardcode_direct=no
8733 hardcode_shlibpath_var=no
8734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8735 export_dynamic_flag_spec='${wl}-E'
8736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8737 # Instead, shared libraries are loaded at an image base (0x10000000 by
8738 # default) and relocated if they conflict, which is a slow very memory
8739 # consuming and fragmenting process. To avoid this, we pick a random,
8740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8743 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'
8744 ;;
8745
8746 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8747 tmp_diet=no
8748 if test "$host_os" = linux-dietlibc; then
8749 case $cc_basename in
8750 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8751 esac
8752 fi
8753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8754 && test "$tmp_diet" = no
8755 then
8756 tmp_addflag=' $pic_flag'
8757 tmp_sharedflag='-shared'
8758 case $cc_basename,$host_cpu in
8759 pgcc*) # Portland Group C compiler
8760 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'
8761 tmp_addflag=' $pic_flag'
8762 ;;
8763 pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group f77 and f90 compilers
8765 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'
8766 tmp_addflag=' $pic_flag -Mnomain' ;;
8767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8768 tmp_addflag=' -i_dynamic' ;;
8769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8770 tmp_addflag=' -i_dynamic -nofor_main' ;;
8771 ifc* | ifort*) # Intel Fortran compiler
8772 tmp_addflag=' -nofor_main' ;;
8773 lf95*) # Lahey Fortran 8.1
8774 whole_archive_flag_spec=
8775 tmp_sharedflag='--shared' ;;
8776 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8777 tmp_sharedflag='-qmkshrobj'
8778 tmp_addflag= ;;
8779 nvcc*) # Cuda Compiler Driver 2.2
8780 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'
8781 compiler_needs_object=yes
8782 ;;
8783 esac
8784 case `$CC -V 2>&1 | sed 5q` in
8785 *Sun\ C*) # Sun C 5.9
8786 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'
8787 compiler_needs_object=yes
8788 tmp_sharedflag='-G' ;;
8789 *Sun\ F*) # Sun Fortran 8.3
8790 tmp_sharedflag='-G' ;;
8791 esac
8792 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793
8794 if test "x$supports_anon_versioning" = xyes; then
8795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8796 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8797 echo "local: *; };" >> $output_objdir/$libname.ver~
8798 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8799 fi
8800
8801 case $cc_basename in
8802 xlf* | bgf* | bgxlf* | mpixlf*)
8803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8804 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8807 if test "x$supports_anon_versioning" = xyes; then
8808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8810 echo "local: *; };" >> $output_objdir/$libname.ver~
8811 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8812 fi
8813 ;;
8814 esac
8815 else
8816 ld_shlibs=no
8817 fi
8818 ;;
8819
8820 netbsd*)
8821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8823 wlarc=
8824 else
8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8827 fi
8828 ;;
8829
8830 solaris*)
8831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8832 ld_shlibs=no
8833 cat <<_LT_EOF 1>&2
8834
8835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8836 *** create shared libraries on Solaris systems. Therefore, libtool
8837 *** is disabling shared libraries support. We urge you to upgrade GNU
8838 *** binutils to release 2.9.1 or newer. Another option is to modify
8839 *** your PATH or compiler configuration so that the native linker is
8840 *** used, and then restart.
8841
8842 _LT_EOF
8843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846 else
8847 ld_shlibs=no
8848 fi
8849 ;;
8850
8851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8852 case `$LD -v 2>&1` in
8853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8854 ld_shlibs=no
8855 cat <<_LT_EOF 1>&2
8856
8857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8858 *** reliably create shared libraries on SCO systems. Therefore, libtool
8859 *** is disabling shared libraries support. We urge you to upgrade GNU
8860 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8861 *** your PATH or compiler configuration so that the native linker is
8862 *** used, and then restart.
8863
8864 _LT_EOF
8865 ;;
8866 *)
8867 # For security reasons, it is highly recommended that you always
8868 # use absolute paths for naming shared libraries, and exclude the
8869 # DT_RUNPATH tag from executables and libraries. But doing so
8870 # requires that you compile everything twice, which is a pain.
8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8875 else
8876 ld_shlibs=no
8877 fi
8878 ;;
8879 esac
8880 ;;
8881
8882 sunos4*)
8883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884 wlarc=
8885 hardcode_direct=yes
8886 hardcode_shlibpath_var=no
8887 ;;
8888
8889 *)
8890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893 else
8894 ld_shlibs=no
8895 fi
8896 ;;
8897 esac
8898
8899 if test "$ld_shlibs" = no; then
8900 runpath_var=
8901 hardcode_libdir_flag_spec=
8902 export_dynamic_flag_spec=
8903 whole_archive_flag_spec=
8904 fi
8905 else
8906 # PORTME fill in a description of your system's linker (not GNU ld)
8907 case $host_os in
8908 aix3*)
8909 allow_undefined_flag=unsupported
8910 always_export_symbols=yes
8911 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'
8912 # Note: this linker hardcodes the directories in LIBPATH if there
8913 # are no directories specified by -L.
8914 hardcode_minus_L=yes
8915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8916 # Neither direct hardcoding nor static linking is supported with a
8917 # broken collect2.
8918 hardcode_direct=unsupported
8919 fi
8920 ;;
8921
8922 aix[4-9]*)
8923 if test "$host_cpu" = ia64; then
8924 # On IA64, the linker does run time linking by default, so we don't
8925 # have to do anything special.
8926 aix_use_runtimelinking=no
8927 exp_sym_flag='-Bexport'
8928 no_entry_flag=""
8929 else
8930 # If we're using GNU nm, then we don't want the "-C" option.
8931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8932 # Also, AIX nm treats weak defined symbols like other global
8933 # defined symbols, whereas GNU nm marks them as "W".
8934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8935 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'
8936 else
8937 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'
8938 fi
8939 aix_use_runtimelinking=no
8940
8941 # Test if we are trying to use run time linking or normal
8942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943 # need to do runtime linking.
8944 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8945 for ld_flag in $LDFLAGS; do
8946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947 aix_use_runtimelinking=yes
8948 break
8949 fi
8950 done
8951 ;;
8952 esac
8953
8954 exp_sym_flag='-bexport'
8955 no_entry_flag='-bnoentry'
8956 fi
8957
8958 # When large executables or shared objects are built, AIX ld can
8959 # have problems creating the table of contents. If linking a library
8960 # or program results in "error TOC overflow" add -mminimal-toc to
8961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8963
8964 archive_cmds=''
8965 hardcode_direct=yes
8966 hardcode_direct_absolute=yes
8967 hardcode_libdir_separator=':'
8968 link_all_deplibs=yes
8969 file_list_spec='${wl}-f,'
8970
8971 if test "$GCC" = yes; then
8972 case $host_os in aix4.[012]|aix4.[012].*)
8973 # We only want to do this on AIX 4.2 and lower, the check
8974 # below for broken collect2 doesn't work under 4.3+
8975 collect2name=`${CC} -print-prog-name=collect2`
8976 if test -f "$collect2name" &&
8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8978 then
8979 # We have reworked collect2
8980 :
8981 else
8982 # We have old collect2
8983 hardcode_direct=unsupported
8984 # It fails to find uninstalled libraries when the uninstalled
8985 # path is not listed in the libpath. Setting hardcode_minus_L
8986 # to unsupported forces relinking
8987 hardcode_minus_L=yes
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_libdir_separator=
8990 fi
8991 ;;
8992 esac
8993 shared_flag='-shared'
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag="$shared_flag "'${wl}-G'
8996 fi
8997 else
8998 # not using gcc
8999 if test "$host_cpu" = ia64; then
9000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9001 # chokes on -Wl,-G. The following line is correct:
9002 shared_flag='-G'
9003 else
9004 if test "$aix_use_runtimelinking" = yes; then
9005 shared_flag='${wl}-G'
9006 else
9007 shared_flag='${wl}-bM:SRE'
9008 fi
9009 fi
9010 fi
9011
9012 export_dynamic_flag_spec='${wl}-bexpall'
9013 # It seems that -bexpall does not export symbols beginning with
9014 # underscore (_), so it is better to generate a list of symbols to export.
9015 always_export_symbols=yes
9016 if test "$aix_use_runtimelinking" = yes; then
9017 # Warning - without using the other runtime loading flags (-brtl),
9018 # -berok will link without error, but may produce a broken library.
9019 allow_undefined_flag='-berok'
9020 # Determine the default libpath from the value encoded in an
9021 # empty executable.
9022 if test "${lt_cv_aix_libpath+set}" = set; then
9023 aix_libpath=$lt_cv_aix_libpath
9024 else
9025 if ${lt_cv_aix_libpath_+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030
9031 int
9032 main ()
9033 {
9034
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_link "$LINENO"; then :
9040
9041 lt_aix_libpath_sed='
9042 /Import File Strings/,/^$/ {
9043 /^0/ {
9044 s/^0 *\([^ ]*\) *$/\1/
9045 p
9046 }
9047 }'
9048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049 # Check for a 64-bit object if we didn't find anything.
9050 if test -z "$lt_cv_aix_libpath_"; then
9051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052 fi
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 if test -z "$lt_cv_aix_libpath_"; then
9057 lt_cv_aix_libpath_="/usr/lib:/lib"
9058 fi
9059
9060 fi
9061
9062 aix_libpath=$lt_cv_aix_libpath_
9063 fi
9064
9065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9066 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"
9067 else
9068 if test "$host_cpu" = ia64; then
9069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9070 allow_undefined_flag="-z nodefs"
9071 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"
9072 else
9073 # Determine the default libpath from the value encoded in an
9074 # empty executable.
9075 if test "${lt_cv_aix_libpath+set}" = set; then
9076 aix_libpath=$lt_cv_aix_libpath
9077 else
9078 if ${lt_cv_aix_libpath_+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083
9084 int
9085 main ()
9086 {
9087
9088 ;
9089 return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_link "$LINENO"; then :
9093
9094 lt_aix_libpath_sed='
9095 /Import File Strings/,/^$/ {
9096 /^0/ {
9097 s/^0 *\([^ ]*\) *$/\1/
9098 p
9099 }
9100 }'
9101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 # Check for a 64-bit object if we didn't find anything.
9103 if test -z "$lt_cv_aix_libpath_"; then
9104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105 fi
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109 if test -z "$lt_cv_aix_libpath_"; then
9110 lt_cv_aix_libpath_="/usr/lib:/lib"
9111 fi
9112
9113 fi
9114
9115 aix_libpath=$lt_cv_aix_libpath_
9116 fi
9117
9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119 # Warning - without using the other run time loading flags,
9120 # -berok will link without error, but may produce a broken library.
9121 no_undefined_flag=' ${wl}-bernotok'
9122 allow_undefined_flag=' ${wl}-berok'
9123 if test "$with_gnu_ld" = yes; then
9124 # We only use this code for GNU lds that support --whole-archive.
9125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9126 else
9127 # Exported symbols can be pulled into shared objects from archives
9128 whole_archive_flag_spec='$convenience'
9129 fi
9130 archive_cmds_need_lc=yes
9131 # This is similar to how AIX traditionally builds its shared libraries.
9132 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'
9133 fi
9134 fi
9135 ;;
9136
9137 amigaos*)
9138 case $host_cpu in
9139 powerpc)
9140 # see comment about AmigaOS4 .so support
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds=''
9143 ;;
9144 m68k)
9145 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)'
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_minus_L=yes
9148 ;;
9149 esac
9150 ;;
9151
9152 bsdi[45]*)
9153 export_dynamic_flag_spec=-rdynamic
9154 ;;
9155
9156 cygwin* | mingw* | pw32* | cegcc*)
9157 # When not using gcc, we currently assume that we are using
9158 # Microsoft Visual C++.
9159 # hardcode_libdir_flag_spec is actually meaningless, as there is
9160 # no search path for DLLs.
9161 case $cc_basename in
9162 cl*)
9163 # Native MSVC
9164 hardcode_libdir_flag_spec=' '
9165 allow_undefined_flag=unsupported
9166 always_export_symbols=yes
9167 file_list_spec='@'
9168 # Tell ltmain to make .lib files, not .a files.
9169 libext=lib
9170 # Tell ltmain to make .dll files, not .so files.
9171 shrext_cmds=".dll"
9172 # FIXME: Setting linknames here is a bad hack.
9173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9176 else
9177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9178 fi~
9179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9180 linknames='
9181 # The linker will not automatically build a static lib if we build a DLL.
9182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9183 enable_shared_with_static_runtimes=yes
9184 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9186 # Don't use ranlib
9187 old_postinstall_cmds='chmod 644 $oldlib'
9188 postlink_cmds='lt_outputfile="@OUTPUT@"~
9189 lt_tool_outputfile="@TOOL_OUTPUT@"~
9190 case $lt_outputfile in
9191 *.exe|*.EXE) ;;
9192 *)
9193 lt_outputfile="$lt_outputfile.exe"
9194 lt_tool_outputfile="$lt_tool_outputfile.exe"
9195 ;;
9196 esac~
9197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9199 $RM "$lt_outputfile.manifest";
9200 fi'
9201 ;;
9202 *)
9203 # Assume MSVC wrapper
9204 hardcode_libdir_flag_spec=' '
9205 allow_undefined_flag=unsupported
9206 # Tell ltmain to make .lib files, not .a files.
9207 libext=lib
9208 # Tell ltmain to make .dll files, not .so files.
9209 shrext_cmds=".dll"
9210 # FIXME: Setting linknames here is a bad hack.
9211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9212 # The linker will automatically build a .lib file if we build a DLL.
9213 old_archive_from_new_cmds='true'
9214 # FIXME: Should let the user specify the lib program.
9215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9216 enable_shared_with_static_runtimes=yes
9217 ;;
9218 esac
9219 ;;
9220
9221 darwin* | rhapsody*)
9222
9223
9224 archive_cmds_need_lc=no
9225 hardcode_direct=no
9226 hardcode_automatic=yes
9227 hardcode_shlibpath_var=unsupported
9228 if test "$lt_cv_ld_force_load" = "yes"; then
9229 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\"`'
9230
9231 else
9232 whole_archive_flag_spec=''
9233 fi
9234 link_all_deplibs=yes
9235 allow_undefined_flag="$_lt_dar_allow_undefined"
9236 case $cc_basename in
9237 ifort*) _lt_dar_can_shared=yes ;;
9238 *) _lt_dar_can_shared=$GCC ;;
9239 esac
9240 if test "$_lt_dar_can_shared" = "yes"; then
9241 output_verbose_link_cmd=func_echo_all
9242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9244 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}"
9245 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}"
9246
9247 else
9248 ld_shlibs=no
9249 fi
9250
9251 ;;
9252
9253 dgux*)
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9260 # support. Future versions do this automatically, but an explicit c++rt0.o
9261 # does not break anything, and helps significantly (at the cost of a little
9262 # extra space).
9263 freebsd2.2*)
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9265 hardcode_libdir_flag_spec='-R$libdir'
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
9268 ;;
9269
9270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9271 freebsd2.*)
9272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_direct=yes
9274 hardcode_minus_L=yes
9275 hardcode_shlibpath_var=no
9276 ;;
9277
9278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9279 freebsd* | dragonfly*)
9280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9281 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_direct=yes
9283 hardcode_shlibpath_var=no
9284 ;;
9285
9286 hpux9*)
9287 if test "$GCC" = yes; then
9288 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'
9289 else
9290 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'
9291 fi
9292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_direct=yes
9295
9296 # hardcode_minus_L: Not really in the search PATH,
9297 # but as the default location of the library.
9298 hardcode_minus_L=yes
9299 export_dynamic_flag_spec='${wl}-E'
9300 ;;
9301
9302 hpux10*)
9303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9304 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9305 else
9306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9307 fi
9308 if test "$with_gnu_ld" = no; then
9309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9310 hardcode_libdir_separator=:
9311 hardcode_direct=yes
9312 hardcode_direct_absolute=yes
9313 export_dynamic_flag_spec='${wl}-E'
9314 # hardcode_minus_L: Not really in the search PATH,
9315 # but as the default location of the library.
9316 hardcode_minus_L=yes
9317 fi
9318 ;;
9319
9320 hpux11*)
9321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9322 case $host_cpu in
9323 hppa*64*)
9324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9325 ;;
9326 ia64*)
9327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9328 ;;
9329 *)
9330 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9331 ;;
9332 esac
9333 else
9334 case $host_cpu in
9335 hppa*64*)
9336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 ;;
9338 ia64*)
9339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9340 ;;
9341 *)
9342
9343 # Older versions of the 11.00 compiler do not understand -b yet
9344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9346 $as_echo_n "checking if $CC understands -b... " >&6; }
9347 if ${lt_cv_prog_compiler__b+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 lt_cv_prog_compiler__b=no
9351 save_LDFLAGS="$LDFLAGS"
9352 LDFLAGS="$LDFLAGS -b"
9353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9355 # The linker can only warn and ignore the option if not recognized
9356 # So say no if there are warnings
9357 if test -s conftest.err; then
9358 # Append any errors to the config.log.
9359 cat conftest.err 1>&5
9360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9362 if diff conftest.exp conftest.er2 >/dev/null; then
9363 lt_cv_prog_compiler__b=yes
9364 fi
9365 else
9366 lt_cv_prog_compiler__b=yes
9367 fi
9368 fi
9369 $RM -r conftest*
9370 LDFLAGS="$save_LDFLAGS"
9371
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9374 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9375
9376 if test x"$lt_cv_prog_compiler__b" = xyes; then
9377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9380 fi
9381
9382 ;;
9383 esac
9384 fi
9385 if test "$with_gnu_ld" = no; then
9386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387 hardcode_libdir_separator=:
9388
9389 case $host_cpu in
9390 hppa*64*|ia64*)
9391 hardcode_direct=no
9392 hardcode_shlibpath_var=no
9393 ;;
9394 *)
9395 hardcode_direct=yes
9396 hardcode_direct_absolute=yes
9397 export_dynamic_flag_spec='${wl}-E'
9398
9399 # hardcode_minus_L: Not really in the search PATH,
9400 # but as the default location of the library.
9401 hardcode_minus_L=yes
9402 ;;
9403 esac
9404 fi
9405 ;;
9406
9407 irix5* | irix6* | nonstopux*)
9408 if test "$GCC" = yes; then
9409 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'
9410 # Try to use the -exported_symbol ld option, if it does not
9411 # work, assume that -exports_file does not work either and
9412 # implicitly export all symbols.
9413 # This should be the same for all languages, so no per-tag cache variable.
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9415 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9416 if ${lt_cv_irix_exported_symbol+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 save_LDFLAGS="$LDFLAGS"
9420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 int foo (void) { return 0; }
9424 _ACEOF
9425 if ac_fn_c_try_link "$LINENO"; then :
9426 lt_cv_irix_exported_symbol=yes
9427 else
9428 lt_cv_irix_exported_symbol=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LDFLAGS="$save_LDFLAGS"
9433 fi
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9435 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9436 if test "$lt_cv_irix_exported_symbol" = yes; then
9437 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'
9438 fi
9439 else
9440 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'
9441 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'
9442 fi
9443 archive_cmds_need_lc='no'
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 hardcode_libdir_separator=:
9446 inherit_rpath=yes
9447 link_all_deplibs=yes
9448 ;;
9449
9450 netbsd*)
9451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9453 else
9454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9455 fi
9456 hardcode_libdir_flag_spec='-R$libdir'
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 newsos6)
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_direct=yes
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 hardcode_libdir_separator=:
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *nto* | *qnx*)
9470 ;;
9471
9472 openbsd*)
9473 if test -f /usr/libexec/ld.so; then
9474 hardcode_direct=yes
9475 hardcode_shlibpath_var=no
9476 hardcode_direct_absolute=yes
9477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 export_dynamic_flag_spec='${wl}-E'
9482 else
9483 case $host_os in
9484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-R$libdir'
9487 ;;
9488 *)
9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9491 ;;
9492 esac
9493 fi
9494 else
9495 ld_shlibs=no
9496 fi
9497 ;;
9498
9499 os2*)
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_minus_L=yes
9502 allow_undefined_flag=unsupported
9503 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'
9504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9505 ;;
9506
9507 osf3*)
9508 if test "$GCC" = yes; then
9509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9510 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'
9511 else
9512 allow_undefined_flag=' -expect_unresolved \*'
9513 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'
9514 fi
9515 archive_cmds_need_lc='no'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 ;;
9519
9520 osf4* | osf5*) # as osf3* with the addition of -msym flag
9521 if test "$GCC" = yes; then
9522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9523 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'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 else
9526 allow_undefined_flag=' -expect_unresolved \*'
9527 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'
9528 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~
9529 $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'
9530
9531 # Both c and cxx compiler support -rpath directly
9532 hardcode_libdir_flag_spec='-rpath $libdir'
9533 fi
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_separator=:
9536 ;;
9537
9538 solaris*)
9539 no_undefined_flag=' -z defs'
9540 if test "$GCC" = yes; then
9541 wlarc='${wl}'
9542 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9544 $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'
9545 else
9546 case `$CC -V 2>&1` in
9547 *"Compilers 5.0"*)
9548 wlarc=''
9549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9552 ;;
9553 *)
9554 wlarc='${wl}'
9555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9558 ;;
9559 esac
9560 fi
9561 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_shlibpath_var=no
9563 case $host_os in
9564 solaris2.[0-5] | solaris2.[0-5].*) ;;
9565 *)
9566 # The compiler driver will combine and reorder linker options,
9567 # but understands `-z linker_flag'. GCC discards it without `$wl',
9568 # but is careful enough not to reorder.
9569 # Supported since Solaris 2.6 (maybe 2.5.1?)
9570 if test "$GCC" = yes; then
9571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9572 else
9573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9574 fi
9575 ;;
9576 esac
9577 link_all_deplibs=yes
9578 ;;
9579
9580 sunos4*)
9581 if test "x$host_vendor" = xsequent; then
9582 # Use $CC to link under sequent, because it throws in some extra .o
9583 # files that make .init and .fini sections work.
9584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9585 else
9586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9587 fi
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_direct=yes
9590 hardcode_minus_L=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 sysv4)
9595 case $host_vendor in
9596 sni)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_direct=yes # is this really true???
9599 ;;
9600 siemens)
9601 ## LD is ld it makes a PLAMLIB
9602 ## CC just makes a GrossModule.
9603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9604 reload_cmds='$CC -r -o $output$reload_objs'
9605 hardcode_direct=no
9606 ;;
9607 motorola)
9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9610 ;;
9611 esac
9612 runpath_var='LD_RUN_PATH'
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 sysv4.3*)
9617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_shlibpath_var=no
9619 export_dynamic_flag_spec='-Bexport'
9620 ;;
9621
9622 sysv4*MP*)
9623 if test -d /usr/nec; then
9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 hardcode_shlibpath_var=no
9626 runpath_var=LD_RUN_PATH
9627 hardcode_runpath_var=yes
9628 ld_shlibs=yes
9629 fi
9630 ;;
9631
9632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9633 no_undefined_flag='${wl}-z,text'
9634 archive_cmds_need_lc=no
9635 hardcode_shlibpath_var=no
9636 runpath_var='LD_RUN_PATH'
9637
9638 if test "$GCC" = yes; then
9639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 fi
9645 ;;
9646
9647 sysv5* | sco3.2v5* | sco5v6*)
9648 # Note: We can NOT use -z defs as we might desire, because we do not
9649 # link with -lc, and that would cause any symbols used from libc to
9650 # always be unresolved, which means just about no library would
9651 # ever link correctly. If we're not using GNU ld we use -z text
9652 # though, which does catch some bad symbols but isn't as heavy-handed
9653 # as -z defs.
9654 no_undefined_flag='${wl}-z,text'
9655 allow_undefined_flag='${wl}-z,nodefs'
9656 archive_cmds_need_lc=no
9657 hardcode_shlibpath_var=no
9658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9659 hardcode_libdir_separator=':'
9660 link_all_deplibs=yes
9661 export_dynamic_flag_spec='${wl}-Bexport'
9662 runpath_var='LD_RUN_PATH'
9663
9664 if test "$GCC" = yes; then
9665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 else
9668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 fi
9671 ;;
9672
9673 uts4*)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 *)
9680 ld_shlibs=no
9681 ;;
9682 esac
9683
9684 if test x$host_vendor = xsni; then
9685 case $host in
9686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9687 export_dynamic_flag_spec='${wl}-Blargedynsym'
9688 ;;
9689 esac
9690 fi
9691 fi
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9694 $as_echo "$ld_shlibs" >&6; }
9695 test "$ld_shlibs" = no && can_build_shared=no
9696
9697 with_gnu_ld=$with_gnu_ld
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713 #
9714 # Do we need to explicitly link libc?
9715 #
9716 case "x$archive_cmds_need_lc" in
9717 x|xyes)
9718 # Assume -lc should be added
9719 archive_cmds_need_lc=yes
9720
9721 if test "$enable_shared" = yes && test "$GCC" = yes; then
9722 case $archive_cmds in
9723 *'~'*)
9724 # FIXME: we may have to deal with multi-command sequences.
9725 ;;
9726 '$CC '*)
9727 # Test whether the compiler implicitly links with -lc since on some
9728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9729 # to ld, don't add -lc before -lgcc.
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9732 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 $RM conftest*
9736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9737
9738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9739 (eval $ac_compile) 2>&5
9740 ac_status=$?
9741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9742 test $ac_status = 0; } 2>conftest.err; then
9743 soname=conftest
9744 lib=conftest
9745 libobjs=conftest.$ac_objext
9746 deplibs=
9747 wl=$lt_prog_compiler_wl
9748 pic_flag=$lt_prog_compiler_pic
9749 compiler_flags=-v
9750 linker_flags=-v
9751 verstring=
9752 output_objdir=.
9753 libname=conftest
9754 lt_save_allow_undefined_flag=$allow_undefined_flag
9755 allow_undefined_flag=
9756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9758 ac_status=$?
9759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9760 test $ac_status = 0; }
9761 then
9762 lt_cv_archive_cmds_need_lc=no
9763 else
9764 lt_cv_archive_cmds_need_lc=yes
9765 fi
9766 allow_undefined_flag=$lt_save_allow_undefined_flag
9767 else
9768 cat conftest.err 1>&5
9769 fi
9770 $RM conftest*
9771
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9774 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9776 ;;
9777 esac
9778 fi
9779 ;;
9780 esac
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
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9934 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9935
9936 if test "$GCC" = yes; then
9937 case $host_os in
9938 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9939 *) lt_awk_arg="/^libraries:/" ;;
9940 esac
9941 case $host_os in
9942 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9943 *) lt_sed_strip_eq="s,=/,/,g" ;;
9944 esac
9945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9946 case $lt_search_path_spec in
9947 *\;*)
9948 # if the path contains ";" then we assume it to be the separator
9949 # otherwise default to the standard path separator (i.e. ":") - it is
9950 # assumed that no part of a normal pathname contains ";" but that should
9951 # okay in the real world where ";" in dirpaths is itself problematic.
9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9953 ;;
9954 *)
9955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9956 ;;
9957 esac
9958 # Ok, now we have the path, separated by spaces, we can step through it
9959 # and add multilib dir if necessary.
9960 lt_tmp_lt_search_path_spec=
9961 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9962 for lt_sys_path in $lt_search_path_spec; do
9963 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9965 else
9966 test -d "$lt_sys_path" && \
9967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9968 fi
9969 done
9970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9971 BEGIN {RS=" "; FS="/|\n";} {
9972 lt_foo="";
9973 lt_count=0;
9974 for (lt_i = NF; lt_i > 0; lt_i--) {
9975 if ($lt_i != "" && $lt_i != ".") {
9976 if ($lt_i == "..") {
9977 lt_count++;
9978 } else {
9979 if (lt_count == 0) {
9980 lt_foo="/" $lt_i lt_foo;
9981 } else {
9982 lt_count--;
9983 }
9984 }
9985 }
9986 }
9987 if (lt_foo != "") { lt_freq[lt_foo]++; }
9988 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9989 }'`
9990 # AWK program above erroneously prepends '/' to C:/dos/paths
9991 # for these hosts.
9992 case $host_os in
9993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9994 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9995 esac
9996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9997 else
9998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9999 fi
10000 library_names_spec=
10001 libname_spec='lib$name'
10002 soname_spec=
10003 shrext_cmds=".so"
10004 postinstall_cmds=
10005 postuninstall_cmds=
10006 finish_cmds=
10007 finish_eval=
10008 shlibpath_var=
10009 shlibpath_overrides_runpath=unknown
10010 version_type=none
10011 dynamic_linker="$host_os ld.so"
10012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10013 need_lib_prefix=unknown
10014 hardcode_into_libs=no
10015
10016 # when you set need_version to no, make sure it does not cause -set_version
10017 # flags to be left without arguments
10018 need_version=unknown
10019
10020 case $host_os in
10021 aix3*)
10022 version_type=linux # correct to gnu/linux during the next big refactor
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10024 shlibpath_var=LIBPATH
10025
10026 # AIX 3 has no versioning support, so we append a major version to the name.
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 ;;
10029
10030 aix[4-9]*)
10031 version_type=linux # correct to gnu/linux during the next big refactor
10032 need_lib_prefix=no
10033 need_version=no
10034 hardcode_into_libs=yes
10035 if test "$host_cpu" = ia64; then
10036 # AIX 5 supports IA64
10037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 else
10040 # With GCC up to 2.95.x, collect2 would create an import file
10041 # for dependence libraries. The import file would start with
10042 # the line `#! .'. This would cause the generated library to
10043 # depend on `.', always an invalid library. This was fixed in
10044 # development snapshots of GCC prior to 3.0.
10045 case $host_os in
10046 aix4 | aix4.[01] | aix4.[01].*)
10047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10048 echo ' yes '
10049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10050 :
10051 else
10052 can_build_shared=no
10053 fi
10054 ;;
10055 esac
10056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10057 # soname into executable. Probably we can add versioning support to
10058 # collect2, so additional links can be useful in future.
10059 if test "$aix_use_runtimelinking" = yes; then
10060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10061 # instead of lib<name>.a to let people know that these are not
10062 # typical AIX shared libraries.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 else
10065 # We preserve .a as extension for shared libraries through AIX4.2
10066 # and later when we are not doing run time linking.
10067 library_names_spec='${libname}${release}.a $libname.a'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 fi
10070 shlibpath_var=LIBPATH
10071 fi
10072 ;;
10073
10074 amigaos*)
10075 case $host_cpu in
10076 powerpc)
10077 # Since July 2007 AmigaOS4 officially supports .so libraries.
10078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 ;;
10081 m68k)
10082 library_names_spec='$libname.ixlibrary $libname.a'
10083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10084 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'
10085 ;;
10086 esac
10087 ;;
10088
10089 beos*)
10090 library_names_spec='${libname}${shared_ext}'
10091 dynamic_linker="$host_os ld.so"
10092 shlibpath_var=LIBRARY_PATH
10093 ;;
10094
10095 bsdi[45]*)
10096 version_type=linux # correct to gnu/linux during the next big refactor
10097 need_version=no
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10104 # the default ld.so.conf also contains /usr/contrib/lib and
10105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10106 # libtool to hard-code these into programs
10107 ;;
10108
10109 cygwin* | mingw* | pw32* | cegcc*)
10110 version_type=windows
10111 shrext_cmds=".dll"
10112 need_version=no
10113 need_lib_prefix=no
10114
10115 case $GCC,$cc_basename in
10116 yes,*)
10117 # gcc
10118 library_names_spec='$libname.dll.a'
10119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10120 postinstall_cmds='base_file=`basename \${file}`~
10121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10122 dldir=$destdir/`dirname \$dlpath`~
10123 test -d \$dldir || mkdir -p \$dldir~
10124 $install_prog $dir/$dlname \$dldir/$dlname~
10125 chmod a+x \$dldir/$dlname~
10126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10128 fi'
10129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10130 dlpath=$dir/\$dldll~
10131 $RM \$dlpath'
10132 shlibpath_overrides_runpath=yes
10133
10134 case $host_os in
10135 cygwin*)
10136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10138
10139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10140 ;;
10141 mingw* | cegcc*)
10142 # MinGW DLLs use traditional 'lib' prefix
10143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10144 ;;
10145 pw32*)
10146 # pw32 DLLs use 'pw' prefix rather than 'lib'
10147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148 ;;
10149 esac
10150 dynamic_linker='Win32 ld.exe'
10151 ;;
10152
10153 *,cl*)
10154 # Native MSVC
10155 libname_spec='$name'
10156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10157 library_names_spec='${libname}.dll.lib'
10158
10159 case $build_os in
10160 mingw*)
10161 sys_lib_search_path_spec=
10162 lt_save_ifs=$IFS
10163 IFS=';'
10164 for lt_path in $LIB
10165 do
10166 IFS=$lt_save_ifs
10167 # Let DOS variable expansion print the short 8.3 style file name.
10168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10170 done
10171 IFS=$lt_save_ifs
10172 # Convert to MSYS style.
10173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10174 ;;
10175 cygwin*)
10176 # Convert to unix form, then to dos form, then back to unix form
10177 # but this time dos style (no spaces!) so that the unix form looks
10178 # like /cygdrive/c/PROGRA~1:/cygdr...
10179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10182 ;;
10183 *)
10184 sys_lib_search_path_spec="$LIB"
10185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10186 # It is most probably a Windows format PATH.
10187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10188 else
10189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10190 fi
10191 # FIXME: find the short name or the path components, as spaces are
10192 # common. (e.g. "Program Files" -> "PROGRA~1")
10193 ;;
10194 esac
10195
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname'
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10206 dynamic_linker='Win32 link.exe'
10207 ;;
10208
10209 *)
10210 # Assume MSVC wrapper
10211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10212 dynamic_linker='Win32 ld.exe'
10213 ;;
10214 esac
10215 # FIXME: first we should search . and the directory the executable is in
10216 shlibpath_var=PATH
10217 ;;
10218
10219 darwin* | rhapsody*)
10220 dynamic_linker="$host_os dyld"
10221 version_type=darwin
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10225 soname_spec='${libname}${release}${major}$shared_ext'
10226 shlibpath_overrides_runpath=yes
10227 shlibpath_var=DYLD_LIBRARY_PATH
10228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10229
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10232 ;;
10233
10234 dgux*)
10235 version_type=linux # correct to gnu/linux during the next big refactor
10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 ;;
10242
10243 freebsd* | dragonfly*)
10244 # DragonFly does not have aout. When/if they implement a new
10245 # versioning mechanism, adjust this.
10246 if test -x /usr/bin/objformat; then
10247 objformat=`/usr/bin/objformat`
10248 else
10249 case $host_os in
10250 freebsd[23].*) objformat=aout ;;
10251 *) objformat=elf ;;
10252 esac
10253 fi
10254 version_type=freebsd-$objformat
10255 case $version_type in
10256 freebsd-elf*)
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 need_version=no
10259 need_lib_prefix=no
10260 ;;
10261 freebsd-*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10263 need_version=yes
10264 ;;
10265 esac
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_os in
10268 freebsd2.*)
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271 freebsd3.[01]* | freebsdelf3.[01]*)
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10274 ;;
10275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10279 ;;
10280 *) # from 4.6 on, and DragonFly
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 ;;
10284 esac
10285 ;;
10286
10287 gnu*)
10288 version_type=linux # correct to gnu/linux during the next big refactor
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=no
10295 hardcode_into_libs=yes
10296 ;;
10297
10298 haiku*)
10299 version_type=linux # correct to gnu/linux during the next big refactor
10300 need_lib_prefix=no
10301 need_version=no
10302 dynamic_linker="$host_os runtime_loader"
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10308 hardcode_into_libs=yes
10309 ;;
10310
10311 hpux9* | hpux10* | hpux11*)
10312 # Give a soname corresponding to the major version so that dld.sl refuses to
10313 # link against other versions.
10314 version_type=sunos
10315 need_lib_prefix=no
10316 need_version=no
10317 case $host_cpu in
10318 ia64*)
10319 shrext_cmds='.so'
10320 hardcode_into_libs=yes
10321 dynamic_linker="$host_os dld.so"
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 if test "X$HPUX_IA64_MODE" = X32; then
10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10328 else
10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330 fi
10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332 ;;
10333 hppa*64*)
10334 shrext_cmds='.sl'
10335 hardcode_into_libs=yes
10336 dynamic_linker="$host_os dld.sl"
10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 ;;
10344 *)
10345 shrext_cmds='.sl'
10346 dynamic_linker="$host_os dld.sl"
10347 shlibpath_var=SHLIB_PATH
10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 ;;
10352 esac
10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10354 postinstall_cmds='chmod 555 $lib'
10355 # or fails outright, so override atomically:
10356 install_override_mode=555
10357 ;;
10358
10359 interix[3-9]*)
10360 version_type=linux # correct to gnu/linux during the next big refactor
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=no
10368 hardcode_into_libs=yes
10369 ;;
10370
10371 irix5* | irix6* | nonstopux*)
10372 case $host_os in
10373 nonstopux*) version_type=nonstopux ;;
10374 *)
10375 if test "$lt_cv_prog_gnu_ld" = yes; then
10376 version_type=linux # correct to gnu/linux during the next big refactor
10377 else
10378 version_type=irix
10379 fi ;;
10380 esac
10381 need_lib_prefix=no
10382 need_version=no
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10385 case $host_os in
10386 irix5* | nonstopux*)
10387 libsuff= shlibsuff=
10388 ;;
10389 *)
10390 case $LD in # libtool.m4 will add one of these switches to LD
10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10392 libsuff= shlibsuff= libmagic=32-bit;;
10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10394 libsuff=32 shlibsuff=N32 libmagic=N32;;
10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10397 *) libsuff= shlibsuff= libmagic=never-match;;
10398 esac
10399 ;;
10400 esac
10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10405 hardcode_into_libs=yes
10406 ;;
10407
10408 # No shared lib support for Linux oldld, aout, or coff.
10409 linux*oldld* | linux*aout* | linux*coff*)
10410 dynamic_linker=no
10411 ;;
10412
10413 # This must be glibc/ELF.
10414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10423
10424 # Some binutils ld are patched to set DT_RUNPATH
10425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 lt_cv_shlibpath_overrides_runpath=no
10429 save_LDFLAGS=$LDFLAGS
10430 save_libdir=$libdir
10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435
10436 int
10437 main ()
10438 {
10439
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10446 lt_cv_shlibpath_overrides_runpath=yes
10447 fi
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LDFLAGS=$save_LDFLAGS
10452 libdir=$save_libdir
10453
10454 fi
10455
10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10457
10458 # This implies no fast_install, which is unacceptable.
10459 # Some rework will be needed to allow for fast_install
10460 # before this can be enabled.
10461 hardcode_into_libs=yes
10462
10463 # Add ABI-specific directories to the system library path.
10464 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10465
10466 # Append ld.so.conf contents to the search path
10467 if test -f /etc/ld.so.conf; then
10468 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' ' '`
10469 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10470
10471 fi
10472
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10480 ;;
10481
10482 netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10494 fi
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499
10500 newsos6)
10501 version_type=linux # correct to gnu/linux during the next big refactor
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10505 ;;
10506
10507 *nto* | *qnx*)
10508 version_type=qnx
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
10517 ;;
10518
10519 openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10535 ;;
10536 *)
10537 shlibpath_overrides_runpath=yes
10538 ;;
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10542 fi
10543 ;;
10544
10545 os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10552 ;;
10553
10554 osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563 ;;
10564
10565 rdos*)
10566 dynamic_linker=no
10567 ;;
10568
10569 solaris*)
10570 version_type=linux # correct to gnu/linux during the next big refactor
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10580 ;;
10581
10582 sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10590 fi
10591 need_version=yes
10592 ;;
10593
10594 sysv4 | sysv4.3*)
10595 version_type=linux # correct to gnu/linux during the next big refactor
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
10603 runpath_var=LD_RUN_PATH
10604 ;;
10605 siemens)
10606 need_lib_prefix=no
10607 ;;
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613 ;;
10614 esac
10615 ;;
10616
10617 sysv4*MP*)
10618 if test -d /usr/nec ;then
10619 version_type=linux # correct to gnu/linux during the next big refactor
10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 fi
10624 ;;
10625
10626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 ;;
10643 esac
10644 fi
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10646 ;;
10647
10648 tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658
10659 uts4*)
10660 version_type=linux # correct to gnu/linux during the next big refactor
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 ;;
10665
10666 *)
10667 dynamic_linker=no
10668 ;;
10669 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671 $as_echo "$dynamic_linker" >&6; }
10672 test "$dynamic_linker" = no && can_build_shared=no
10673
10674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675 if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677 fi
10678
10679 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10681 fi
10682 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10684 fi
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779 hardcode_action=
10780 if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10783
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10796 fi
10797 else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803 $as_echo "$hardcode_action" >&6; }
10804
10805 if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809 elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10813 fi
10814
10815
10816
10817
10818
10819
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824 else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10827
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10833 ;;
10834
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10838 ;;
10839
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10843 ;;
10844
10845 darwin*)
10846 # if libdl is installed we need to link against it
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10849 if ${ac_cv_lib_dl_dlopen+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldl $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10864 int
10865 main ()
10866 {
10867 return dlopen ();
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dl_dlopen=yes
10874 else
10875 ac_cv_lib_dl_dlopen=no
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885 else
10886
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
10890
10891 fi
10892
10893 ;;
10894
10895 *)
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897 if test "x$ac_cv_func_shl_load" = xyes; then :
10898 lt_cv_dlopen="shl_load"
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10902 if ${ac_cv_lib_dld_shl_load+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldld $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char shl_load ();
10917 int
10918 main ()
10919 {
10920 return shl_load ();
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dld_shl_load=yes
10927 else
10928 ac_cv_lib_dld_shl_load=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938 else
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940 if test "x$ac_cv_func_dlopen" = xyes; then :
10941 lt_cv_dlopen="dlopen"
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if ${ac_cv_lib_dl_dlopen+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10960 int
10961 main ()
10962 {
10963 return dlopen ();
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984 if ${ac_cv_lib_svld_dlopen+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lsvld $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
10999 int
11000 main ()
11001 {
11002 return dlopen ();
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_svld_dlopen=yes
11009 else
11010 ac_cv_lib_svld_dlopen=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11023 if ${ac_cv_lib_dld_dld_link+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dld_link ();
11038 int
11039 main ()
11040 {
11041 return dld_link ();
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_dld_link=yes
11048 else
11049 ac_cv_lib_dld_dld_link=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073
11074 fi
11075
11076 ;;
11077 esac
11078
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11083 fi
11084
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098 if ${lt_cv_dlopen_self+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103 else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
11107 #line $LINENO "configure"
11108 #include "confdefs.h"
11109
11110 #if HAVE_DLFCN_H
11111 #include <dlfcn.h>
11112 #endif
11113
11114 #include <stdio.h>
11115
11116 #ifdef RTLD_GLOBAL
11117 # define LT_DLGLOBAL RTLD_GLOBAL
11118 #else
11119 # ifdef DL_GLOBAL
11120 # define LT_DLGLOBAL DL_GLOBAL
11121 # else
11122 # define LT_DLGLOBAL 0
11123 # endif
11124 #endif
11125
11126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128 #ifndef LT_DLLAZY_OR_NOW
11129 # ifdef RTLD_LAZY
11130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11131 # else
11132 # ifdef DL_LAZY
11133 # define LT_DLLAZY_OR_NOW DL_LAZY
11134 # else
11135 # ifdef RTLD_NOW
11136 # define LT_DLLAZY_OR_NOW RTLD_NOW
11137 # else
11138 # ifdef DL_NOW
11139 # define LT_DLLAZY_OR_NOW DL_NOW
11140 # else
11141 # define LT_DLLAZY_OR_NOW 0
11142 # endif
11143 # endif
11144 # endif
11145 # endif
11146 #endif
11147
11148 /* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151 int fnord () __attribute__((visibility("default")));
11152 #endif
11153
11154 int fnord () { return 42; }
11155 int main ()
11156 {
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11159
11160 if (self)
11161 {
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11163 else
11164 {
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11167 }
11168 /* dlclose (self); */
11169 }
11170 else
11171 puts (dlerror ());
11172
11173 return status;
11174 }
11175 _LT_EOF
11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11191 fi
11192 fi
11193 rm -fr conftest*
11194
11195
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198 $as_echo "$lt_cv_dlopen_self" >&6; }
11199
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204 if ${lt_cv_dlopen_self_static+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209 else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
11213 #line $LINENO "configure"
11214 #include "confdefs.h"
11215
11216 #if HAVE_DLFCN_H
11217 #include <dlfcn.h>
11218 #endif
11219
11220 #include <stdio.h>
11221
11222 #ifdef RTLD_GLOBAL
11223 # define LT_DLGLOBAL RTLD_GLOBAL
11224 #else
11225 # ifdef DL_GLOBAL
11226 # define LT_DLGLOBAL DL_GLOBAL
11227 # else
11228 # define LT_DLGLOBAL 0
11229 # endif
11230 #endif
11231
11232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234 #ifndef LT_DLLAZY_OR_NOW
11235 # ifdef RTLD_LAZY
11236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11237 # else
11238 # ifdef DL_LAZY
11239 # define LT_DLLAZY_OR_NOW DL_LAZY
11240 # else
11241 # ifdef RTLD_NOW
11242 # define LT_DLLAZY_OR_NOW RTLD_NOW
11243 # else
11244 # ifdef DL_NOW
11245 # define LT_DLLAZY_OR_NOW DL_NOW
11246 # else
11247 # define LT_DLLAZY_OR_NOW 0
11248 # endif
11249 # endif
11250 # endif
11251 # endif
11252 #endif
11253
11254 /* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257 int fnord () __attribute__((visibility("default")));
11258 #endif
11259
11260 int fnord () { return 42; }
11261 int main ()
11262 {
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
11265
11266 if (self)
11267 {
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11269 else
11270 {
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11273 }
11274 /* dlclose (self); */
11275 }
11276 else
11277 puts (dlerror ());
11278
11279 return status;
11280 }
11281 _LT_EOF
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11297 fi
11298 fi
11299 rm -fr conftest*
11300
11301
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11305 fi
11306
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11310 ;;
11311 esac
11312
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
11317
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11322 fi
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340 striplib=
11341 old_striplib=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11349 else
11350 # FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357 $as_echo "yes" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11361 fi
11362 ;;
11363 *)
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 ;;
11367 esac
11368 fi
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 # Report which library types will actually be built
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385 $as_echo "$can_build_shared" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388 $as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
11390
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11399 fi
11400 ;;
11401
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11405 fi
11406 ;;
11407 esac
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409 $as_echo "$enable_shared" >&6; }
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412 $as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416 $as_echo "$enable_static" >&6; }
11417
11418
11419
11420
11421 fi
11422 ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428 CC="$lt_save_CC"
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 ac_config_commands="$ac_config_commands libtool"
11445
11446
11447
11448
11449 # Only expand once:
11450
11451
11452 for ac_prog in perl5 perl
11453 do
11454 # Extract the first word of "$ac_prog", so it can be a program name with args.
11455 set dummy $ac_prog; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_path_PERL+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 case $PERL in
11462 [\\/]* | ?:[\\/]*)
11463 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11464 ;;
11465 *)
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $LPATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 ;;
11482 esac
11483 fi
11484 PERL=$ac_cv_path_PERL
11485 if test -n "$PERL"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11487 $as_echo "$PERL" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 test -n "$PERL" && break
11495 done
11496 test -n "$PERL" || PERL="perl"
11497
11498
11499 if test "$PERL" = "perl"
11500 then
11501 as_fn_error $? "Perl not found." "$LINENO" 5
11502 fi
11503
11504 if test "$GCC" = "yes"
11505 then
11506 CFLAGS="$CFLAGS -Wall"
11507 fi
11508
11509 CFLAGS="$CFLAGS -I.. -I${srcdir}/.. -I../libs -I${srcdir}/../libs"
11510
11511
11512
11513 # Check whether --with-userdb was given.
11514 if test "${with_userdb+set}" = set; then :
11515 withval=$with_userdb; userdb="$withval"
11516 else
11517 userdb="/etc/userdb"
11518 fi
11519
11520
11521 USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
11522
11523
11524
11525 # Check whether --with-userdbmandir was given.
11526 if test "${with_userdbmandir+set}" = set; then :
11527 withval=$with_userdbmandir; mandir="$withval"
11528 fi
11529
11530
11531
11532 # Check whether --with-userdbtmpdir was given.
11533 if test "${with_userdbtmpdir+set}" = set; then :
11534 withval=$with_userdbtmpdir; tmpdir="$withval"
11535 else
11536 tmpdir=""
11537 fi
11538
11539
11540
11541
11542 if test "$tmpdir" = ""
11543 then
11544 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
11545 fi
11546
11547
11548
11549
11550
11551
11552
11553 # Check whether --with-makedatprog was given.
11554 if test "${with_makedatprog+set}" = set; then :
11555 withval=$with_makedatprog; makedat="$withval"
11556 else
11557 makedat="$bindir/makedat"
11558 fi
11559
11560
11561
11562 if test -d ${srcdir}/../libs/md5
11563 then
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_MD5 1
11567 _ACEOF
11568
11569 MD5LIB=../libs/md5/libmd5.la
11570 else
11571 MD5LIB=""
11572 fi
11573
11574
11575 if test -d ${srcdir}/../libs/sha1
11576 then
11577 SHA1LIB=../libs/sha1/libsha1.la
11578 else
11579 SHA1LIB=""
11580 fi
11581
11582
11583 if test -d ${srcdir}/../libs/libhmac
11584 then
11585
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_HMAC 1
11588 _ACEOF
11589
11590 HMACLIB=../libs/libhmac/libhmac.la
11591 else
11592 HMACLIB=""
11593 fi
11594
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11597 $as_echo_n "checking for ANSI C header files... " >&6; }
11598 if ${ac_cv_header_stdc+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603 #include <stdlib.h>
11604 #include <stdarg.h>
11605 #include <string.h>
11606 #include <float.h>
11607
11608 int
11609 main ()
11610 {
11611
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_compile "$LINENO"; then :
11617 ac_cv_header_stdc=yes
11618 else
11619 ac_cv_header_stdc=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622
11623 if test $ac_cv_header_stdc = yes; then
11624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 #include <string.h>
11628
11629 _ACEOF
11630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11631 $EGREP "memchr" >/dev/null 2>&1; then :
11632
11633 else
11634 ac_cv_header_stdc=no
11635 fi
11636 rm -f conftest*
11637
11638 fi
11639
11640 if test $ac_cv_header_stdc = yes; then
11641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644 #include <stdlib.h>
11645
11646 _ACEOF
11647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11648 $EGREP "free" >/dev/null 2>&1; then :
11649
11650 else
11651 ac_cv_header_stdc=no
11652 fi
11653 rm -f conftest*
11654
11655 fi
11656
11657 if test $ac_cv_header_stdc = yes; then
11658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11659 if test "$cross_compiling" = yes; then :
11660 :
11661 else
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 #include <ctype.h>
11665 #include <stdlib.h>
11666 #if ((' ' & 0x0FF) == 0x020)
11667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11669 #else
11670 # define ISLOWER(c) \
11671 (('a' <= (c) && (c) <= 'i') \
11672 || ('j' <= (c) && (c) <= 'r') \
11673 || ('s' <= (c) && (c) <= 'z'))
11674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11675 #endif
11676
11677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11678 int
11679 main ()
11680 {
11681 int i;
11682 for (i = 0; i < 256; i++)
11683 if (XOR (islower (i), ISLOWER (i))
11684 || toupper (i) != TOUPPER (i))
11685 return 2;
11686 return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_run "$LINENO"; then :
11690
11691 else
11692 ac_cv_header_stdc=no
11693 fi
11694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11695 conftest.$ac_objext conftest.beam conftest.$ac_ext
11696 fi
11697
11698 fi
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11701 $as_echo "$ac_cv_header_stdc" >&6; }
11702 if test $ac_cv_header_stdc = yes; then
11703
11704 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11705
11706 fi
11707
11708 for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
11709 do :
11710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11713 cat >>confdefs.h <<_ACEOF
11714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11715 _ACEOF
11716
11717 fi
11718
11719 done
11720
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11722 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11723 if ${ac_cv_header_time+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 #include <sys/types.h>
11729 #include <sys/time.h>
11730 #include <time.h>
11731
11732 int
11733 main ()
11734 {
11735 if ((struct tm *) 0)
11736 return 0;
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_c_try_compile "$LINENO"; then :
11742 ac_cv_header_time=yes
11743 else
11744 ac_cv_header_time=no
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11749 $as_echo "$ac_cv_header_time" >&6; }
11750 if test $ac_cv_header_time = yes; then
11751
11752 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11753
11754 fi
11755
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11758 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11759 if ${ac_cv_c_const+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764
11765 int
11766 main ()
11767 {
11768
11769 #ifndef __cplusplus
11770 /* Ultrix mips cc rejects this sort of thing. */
11771 typedef int charset[2];
11772 const charset cs = { 0, 0 };
11773 /* SunOS 4.1.1 cc rejects this. */
11774 char const *const *pcpcc;
11775 char **ppc;
11776 /* NEC SVR4.0.2 mips cc rejects this. */
11777 struct point {int x, y;};
11778 static struct point const zero = {0,0};
11779 /* AIX XL C 1.02.0.0 rejects this.
11780 It does not let you subtract one const X* pointer from another in
11781 an arm of an if-expression whose if-part is not a constant
11782 expression */
11783 const char *g = "string";
11784 pcpcc = &g + (g ? g-g : 0);
11785 /* HPUX 7.0 cc rejects these. */
11786 ++pcpcc;
11787 ppc = (char**) pcpcc;
11788 pcpcc = (char const *const *) ppc;
11789 { /* SCO 3.2v4 cc rejects this sort of thing. */
11790 char tx;
11791 char *t = &tx;
11792 char const *s = 0 ? (char *) 0 : (char const *) 0;
11793
11794 *t++ = 0;
11795 if (s) return 0;
11796 }
11797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11798 int x[] = {25, 17};
11799 const int *foo = &x[0];
11800 ++foo;
11801 }
11802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11803 typedef const int *iptr;
11804 iptr p = 0;
11805 ++p;
11806 }
11807 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11809 struct s { int j; const int *ap[3]; } bx;
11810 struct s *b = &bx; b->j = 5;
11811 }
11812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11813 const int foo = 10;
11814 if (!foo) return 0;
11815 }
11816 return !cs[0] && !zero.x;
11817 #endif
11818
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 ac_cv_c_const=yes
11825 else
11826 ac_cv_c_const=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11831 $as_echo "$ac_cv_c_const" >&6; }
11832 if test $ac_cv_c_const = no; then
11833
11834 $as_echo "#define const /**/" >>confdefs.h
11835
11836 fi
11837
11838 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11839 if test "x$ac_cv_type_pid_t" = xyes; then :
11840
11841 else
11842
11843 cat >>confdefs.h <<_ACEOF
11844 #define pid_t int
11845 _ACEOF
11846
11847 fi
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11850 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11851 if ${ac_cv_type_uid_t+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 #include <sys/types.h>
11857
11858 _ACEOF
11859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11860 $EGREP "uid_t" >/dev/null 2>&1; then :
11861 ac_cv_type_uid_t=yes
11862 else
11863 ac_cv_type_uid_t=no
11864 fi
11865 rm -f conftest*
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11869 $as_echo "$ac_cv_type_uid_t" >&6; }
11870 if test $ac_cv_type_uid_t = no; then
11871
11872 $as_echo "#define uid_t int" >>confdefs.h
11873
11874
11875 $as_echo "#define gid_t int" >>confdefs.h
11876
11877 fi
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11880 $as_echo_n "checking return type of signal handlers... " >&6; }
11881 if ${ac_cv_type_signal+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #include <sys/types.h>
11887 #include <signal.h>
11888
11889 int
11890 main ()
11891 {
11892 return *(signal (0, 0)) (0) == 1;
11893 ;
11894 return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_compile "$LINENO"; then :
11898 ac_cv_type_signal=int
11899 else
11900 ac_cv_type_signal=void
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11905 $as_echo "$ac_cv_type_signal" >&6; }
11906
11907 cat >>confdefs.h <<_ACEOF
11908 #define RETSIGTYPE $ac_cv_type_signal
11909 _ACEOF
11910
11911
11912 # Check whether --enable-largefile was given.
11913 if test "${enable_largefile+set}" = set; then :
11914 enableval=$enable_largefile;
11915 fi
11916
11917 if test "$enable_largefile" != no; then
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11920 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11921 if ${ac_cv_sys_largefile_CC+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 ac_cv_sys_largefile_CC=no
11925 if test "$GCC" != yes; then
11926 ac_save_CC=$CC
11927 while :; do
11928 # IRIX 6.2 and later do not support large files by default,
11929 # so use the C compiler's -n32 option if that helps.
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/types.h>
11933 /* Check that off_t can represent 2**63 - 1 correctly.
11934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11935 since some C++ compilers masquerading as C compilers
11936 incorrectly reject 9223372036854775807. */
11937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11939 && LARGE_OFF_T % 2147483647 == 1)
11940 ? 1 : -1];
11941 int
11942 main ()
11943 {
11944
11945 ;
11946 return 0;
11947 }
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 break
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext
11953 CC="$CC -n32"
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_sys_largefile_CC=' -n32'; break
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext
11958 break
11959 done
11960 CC=$ac_save_CC
11961 rm -f conftest.$ac_ext
11962 fi
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11965 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11966 if test "$ac_cv_sys_largefile_CC" != no; then
11967 CC=$CC$ac_cv_sys_largefile_CC
11968 fi
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11971 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11972 if ${ac_cv_sys_file_offset_bits+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 while :; do
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #include <sys/types.h>
11979 /* Check that off_t can represent 2**63 - 1 correctly.
11980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11981 since some C++ compilers masquerading as C compilers
11982 incorrectly reject 9223372036854775807. */
11983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11985 && LARGE_OFF_T % 2147483647 == 1)
11986 ? 1 : -1];
11987 int
11988 main ()
11989 {
11990
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_sys_file_offset_bits=no; break
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001 #define _FILE_OFFSET_BITS 64
12002 #include <sys/types.h>
12003 /* Check that off_t can represent 2**63 - 1 correctly.
12004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12005 since some C++ compilers masquerading as C compilers
12006 incorrectly reject 9223372036854775807. */
12007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12009 && LARGE_OFF_T % 2147483647 == 1)
12010 ? 1 : -1];
12011 int
12012 main ()
12013 {
12014
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 ac_cv_sys_file_offset_bits=64; break
12021 fi
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 ac_cv_sys_file_offset_bits=unknown
12024 break
12025 done
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12028 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12029 case $ac_cv_sys_file_offset_bits in #(
12030 no | unknown) ;;
12031 *)
12032 cat >>confdefs.h <<_ACEOF
12033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12034 _ACEOF
12035 ;;
12036 esac
12037 rm -rf conftest*
12038 if test $ac_cv_sys_file_offset_bits = unknown; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12040 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12041 if ${ac_cv_sys_large_files+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 while :; do
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #include <sys/types.h>
12048 /* Check that off_t can represent 2**63 - 1 correctly.
12049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12050 since some C++ compilers masquerading as C compilers
12051 incorrectly reject 9223372036854775807. */
12052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12054 && LARGE_OFF_T % 2147483647 == 1)
12055 ? 1 : -1];
12056 int
12057 main ()
12058 {
12059
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065 ac_cv_sys_large_files=no; break
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #define _LARGE_FILES 1
12071 #include <sys/types.h>
12072 /* Check that off_t can represent 2**63 - 1 correctly.
12073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12074 since some C++ compilers masquerading as C compilers
12075 incorrectly reject 9223372036854775807. */
12076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12078 && LARGE_OFF_T % 2147483647 == 1)
12079 ? 1 : -1];
12080 int
12081 main ()
12082 {
12083
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 ac_cv_sys_large_files=1; break
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 ac_cv_sys_large_files=unknown
12093 break
12094 done
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12097 $as_echo "$ac_cv_sys_large_files" >&6; }
12098 case $ac_cv_sys_large_files in #(
12099 no | unknown) ;;
12100 *)
12101 cat >>confdefs.h <<_ACEOF
12102 #define _LARGE_FILES $ac_cv_sys_large_files
12103 _ACEOF
12104 ;;
12105 esac
12106 rm -rf conftest*
12107 fi
12108
12109
12110 fi
12111
12112
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12115 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12116 if ${ac_cv_lib_crypt_crypt+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lcrypt $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char crypt ();
12131 int
12132 main ()
12133 {
12134 return crypt ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_crypt_crypt=yes
12141 else
12142 ac_cv_lib_crypt_crypt=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12149 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12150 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12151 CRYPTLIBS="-lcrypt"
12152 fi
12153
12154 saveLIBS="$LIBS"
12155 LIBS="$CRYPTLIBS $LIBS"
12156 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12157 if test "x$ac_cv_func_crypt" = xyes; then :
12158
12159 cat >>confdefs.h <<_ACEOF
12160 #define HAVE_CRYPT 1
12161 _ACEOF
12162
12163 fi
12164
12165 LIBS="$saveLIBS"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
12167 $as_echo_n "checking for crypt() prototype... " >&6; }
12168 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173
12174 #if HAVE_CRYPT_H
12175 #include <crypt.h>
12176 #endif
12177 #if HAVE_UNISTD_H
12178 #include <unistd.h>
12179 #endif
12180 int crypt(int, int);
12181
12182
12183 int
12184 main ()
12185 {
12186
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_compile "$LINENO"; then :
12192 userdb_cv_NEED_CRYPT_PROTOTYPE=1
12193 else
12194 userdb_cv_NEED_CRYPT_PROTOTYPE=0
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197
12198
12199 fi
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
12201 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
12202
12203
12204 cat >>confdefs.h <<_ACEOF
12205 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
12206 _ACEOF
12207
12208
12209
12210 for ac_func in isatty gettimeofday
12211 do :
12212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12215 cat >>confdefs.h <<_ACEOF
12216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12217 _ACEOF
12218
12219 fi
12220 done
12221
12222
12223
12224 # Check whether --with-random was given.
12225 if test "${with_random+set}" = set; then :
12226 withval=$with_random; random="$withval"
12227 else
12228 random="y"
12229 fi
12230
12231
12232 case "$random" in
12233 /*)
12234 ;;
12235 y*|1*)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
12237 $as_echo_n "checking for random source... " >&6; }
12238 if ${userdb_cv_RANDOM+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -c /dev/urandom
12242 then
12243 userdb_cv_RANDOM=/dev/urandom
12244 else
12245 if test -c /dev/random
12246 then
12247 userdb_cv_RANDOM=/dev/random
12248 else
12249 userdb_cv_RANDOM="none"
12250 fi
12251 fi
12252
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_RANDOM" >&5
12255 $as_echo "$userdb_cv_RANDOM" >&6; }
12256 random="$userdb_cv_RANDOM"
12257 ;;
12258 *)
12259 random="none"
12260 ;;
12261 esac
12262
12263 if test "$random" != "none"
12264 then
12265
12266 cat >>confdefs.h <<_ACEOF
12267 #define RANDOM "$random"
12268 _ACEOF
12269
12270 fi
12271
12272 if test -d ${srcdir}/../libs/docbook; then
12273 HAVE_SGML_TRUE=
12274 HAVE_SGML_FALSE='#'
12275 else
12276 HAVE_SGML_TRUE='#'
12277 HAVE_SGML_FALSE=
12278 fi
12279
12280
12281 ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
12282
12283 cat >confcache <<\_ACEOF
12284 # This file is a shell script that caches the results of configure
12285 # tests run on this system so they can be shared between configure
12286 # scripts and configure runs, see configure's option --config-cache.
12287 # It is not useful on other systems. If it contains results you don't
12288 # want to keep, you may remove or edit it.
12289 #
12290 # config.status only pays attention to the cache file if you give it
12291 # the --recheck option to rerun configure.
12292 #
12293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12295 # following values.
12296
12297 _ACEOF
12298
12299 # The following way of writing the cache mishandles newlines in values,
12300 # but we know of no workaround that is simple, portable, and efficient.
12301 # So, we kill variables containing newlines.
12302 # Ultrix sh set writes to stderr and can't be redirected directly,
12303 # and sets the high bit in the cache file unless we assign to the vars.
12304 (
12305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12306 eval ac_val=\$$ac_var
12307 case $ac_val in #(
12308 *${as_nl}*)
12309 case $ac_var in #(
12310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12311 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12312 esac
12313 case $ac_var in #(
12314 _ | IFS | as_nl) ;; #(
12315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12316 *) { eval $ac_var=; unset $ac_var;} ;;
12317 esac ;;
12318 esac
12319 done
12320
12321 (set) 2>&1 |
12322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12323 *${as_nl}ac_space=\ *)
12324 # `set' does not quote correctly, so add quotes: double-quote
12325 # substitution turns \\\\ into \\, and sed turns \\ into \.
12326 sed -n \
12327 "s/'/'\\\\''/g;
12328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12329 ;; #(
12330 *)
12331 # `set' quotes correctly as required by POSIX, so do not add quotes.
12332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12333 ;;
12334 esac |
12335 sort
12336 ) |
12337 sed '
12338 /^ac_cv_env_/b end
12339 t clear
12340 :clear
12341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12342 t end
12343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12344 :end' >>confcache
12345 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12346 if test -w "$cache_file"; then
12347 if test "x$cache_file" != "x/dev/null"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12349 $as_echo "$as_me: updating cache $cache_file" >&6;}
12350 if test ! -f "$cache_file" || test -h "$cache_file"; then
12351 cat confcache >"$cache_file"
12352 else
12353 case $cache_file in #(
12354 */* | ?:*)
12355 mv -f confcache "$cache_file"$$ &&
12356 mv -f "$cache_file"$$ "$cache_file" ;; #(
12357 *)
12358 mv -f confcache "$cache_file" ;;
12359 esac
12360 fi
12361 fi
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12364 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12365 fi
12366 fi
12367 rm -f confcache
12368
12369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12370 # Let make expand exec_prefix.
12371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12372
12373 DEFS=-DHAVE_CONFIG_H
12374
12375 ac_libobjs=
12376 ac_ltlibobjs=
12377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12378 # 1. Remove the extension, and $U if already installed.
12379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12382 # will be set to the directory where LIBOBJS objects are built.
12383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12385 done
12386 LIBOBJS=$ac_libobjs
12387
12388 LTLIBOBJS=$ac_ltlibobjs
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12392 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12393 if test -n "$am_sleep_pid"; then
12394 # Hide warnings about reused PIDs.
12395 wait $am_sleep_pid 2>/dev/null
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12398 $as_echo "done" >&6; }
12399 if test -n "$EXEEXT"; then
12400 am__EXEEXT_TRUE=
12401 am__EXEEXT_FALSE='#'
12402 else
12403 am__EXEEXT_TRUE='#'
12404 am__EXEEXT_FALSE=
12405 fi
12406
12407 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12408 as_fn_error $? "conditional \"AMDEP\" was never defined.
12409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12410 fi
12411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12412 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12414 fi
12415 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
12416 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12418 fi
12419
12420 : "${CONFIG_STATUS=./config.status}"
12421 ac_write_fail=0
12422 ac_clean_files_save=$ac_clean_files
12423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12425 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12426 as_write_fail=0
12427 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12428 #! $SHELL
12429 # Generated by $as_me.
12430 # Run this file to recreate the current configuration.
12431 # Compiler output produced by configure, useful for debugging
12432 # configure, is in config.log if it exists.
12433
12434 debug=false
12435 ac_cs_recheck=false
12436 ac_cs_silent=false
12437
12438 SHELL=\${CONFIG_SHELL-$SHELL}
12439 export SHELL
12440 _ASEOF
12441 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12442 ## -------------------- ##
12443 ## M4sh Initialization. ##
12444 ## -------------------- ##
12445
12446 # Be more Bourne compatible
12447 DUALCASE=1; export DUALCASE # for MKS sh
12448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12449 emulate sh
12450 NULLCMD=:
12451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12452 # is contrary to our usage. Disable this feature.
12453 alias -g '${1+"$@"}'='"$@"'
12454 setopt NO_GLOB_SUBST
12455 else
12456 case `(set -o) 2>/dev/null` in #(
12457 *posix*) :
12458 set -o posix ;; #(
12459 *) :
12460 ;;
12461 esac
12462 fi
12463
12464
12465 as_nl='
12466 '
12467 export as_nl
12468 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12469 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12470 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12472 # Prefer a ksh shell builtin over an external printf program on Solaris,
12473 # but without wasting forks for bash or zsh.
12474 if test -z "$BASH_VERSION$ZSH_VERSION" \
12475 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12476 as_echo='print -r --'
12477 as_echo_n='print -rn --'
12478 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12479 as_echo='printf %s\n'
12480 as_echo_n='printf %s'
12481 else
12482 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12483 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12484 as_echo_n='/usr/ucb/echo -n'
12485 else
12486 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12487 as_echo_n_body='eval
12488 arg=$1;
12489 case $arg in #(
12490 *"$as_nl"*)
12491 expr "X$arg" : "X\\(.*\\)$as_nl";
12492 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12493 esac;
12494 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12495 '
12496 export as_echo_n_body
12497 as_echo_n='sh -c $as_echo_n_body as_echo'
12498 fi
12499 export as_echo_body
12500 as_echo='sh -c $as_echo_body as_echo'
12501 fi
12502
12503 # The user is always right.
12504 if test "${PATH_SEPARATOR+set}" != set; then
12505 PATH_SEPARATOR=:
12506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12508 PATH_SEPARATOR=';'
12509 }
12510 fi
12511
12512
12513 # IFS
12514 # We need space, tab and new line, in precisely that order. Quoting is
12515 # there to prevent editors from complaining about space-tab.
12516 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12517 # splitting by setting IFS to empty value.)
12518 IFS=" "" $as_nl"
12519
12520 # Find who we are. Look in the path if we contain no directory separator.
12521 as_myself=
12522 case $0 in #((
12523 *[\\/]* ) as_myself=$0 ;;
12524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12530 done
12531 IFS=$as_save_IFS
12532
12533 ;;
12534 esac
12535 # We did not find ourselves, most probably we were run as `sh COMMAND'
12536 # in which case we are not to be found in the path.
12537 if test "x$as_myself" = x; then
12538 as_myself=$0
12539 fi
12540 if test ! -f "$as_myself"; then
12541 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12542 exit 1
12543 fi
12544
12545 # Unset variables that we do not need and which cause bugs (e.g. in
12546 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12547 # suppresses any "Segmentation fault" message there. '((' could
12548 # trigger a bug in pdksh 5.2.14.
12549 for as_var in BASH_ENV ENV MAIL MAILPATH
12550 do eval test x\${$as_var+set} = xset \
12551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12552 done
12553 PS1='$ '
12554 PS2='> '
12555 PS4='+ '
12556
12557 # NLS nuisances.
12558 LC_ALL=C
12559 export LC_ALL
12560 LANGUAGE=C
12561 export LANGUAGE
12562
12563 # CDPATH.
12564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12565
12566
12567 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12568 # ----------------------------------------
12569 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12570 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12571 # script with STATUS, using 1 if that was 0.
12572 as_fn_error ()
12573 {
12574 as_status=$1; test $as_status -eq 0 && as_status=1
12575 if test "$4"; then
12576 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12577 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12578 fi
12579 $as_echo "$as_me: error: $2" >&2
12580 as_fn_exit $as_status
12581 } # as_fn_error
12582
12583
12584 # as_fn_set_status STATUS
12585 # -----------------------
12586 # Set $? to STATUS, without forking.
12587 as_fn_set_status ()
12588 {
12589 return $1
12590 } # as_fn_set_status
12591
12592 # as_fn_exit STATUS
12593 # -----------------
12594 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12595 as_fn_exit ()
12596 {
12597 set +e
12598 as_fn_set_status $1
12599 exit $1
12600 } # as_fn_exit
12601
12602 # as_fn_unset VAR
12603 # ---------------
12604 # Portably unset VAR.
12605 as_fn_unset ()
12606 {
12607 { eval $1=; unset $1;}
12608 }
12609 as_unset=as_fn_unset
12610 # as_fn_append VAR VALUE
12611 # ----------------------
12612 # Append the text in VALUE to the end of the definition contained in VAR. Take
12613 # advantage of any shell optimizations that allow amortized linear growth over
12614 # repeated appends, instead of the typical quadratic growth present in naive
12615 # implementations.
12616 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12617 eval 'as_fn_append ()
12618 {
12619 eval $1+=\$2
12620 }'
12621 else
12622 as_fn_append ()
12623 {
12624 eval $1=\$$1\$2
12625 }
12626 fi # as_fn_append
12627
12628 # as_fn_arith ARG...
12629 # ------------------
12630 # Perform arithmetic evaluation on the ARGs, and store the result in the
12631 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12632 # must be portable across $(()) and expr.
12633 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12634 eval 'as_fn_arith ()
12635 {
12636 as_val=$(( $* ))
12637 }'
12638 else
12639 as_fn_arith ()
12640 {
12641 as_val=`expr "$@" || test $? -eq 1`
12642 }
12643 fi # as_fn_arith
12644
12645
12646 if expr a : '\(a\)' >/dev/null 2>&1 &&
12647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12648 as_expr=expr
12649 else
12650 as_expr=false
12651 fi
12652
12653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12654 as_basename=basename
12655 else
12656 as_basename=false
12657 fi
12658
12659 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12660 as_dirname=dirname
12661 else
12662 as_dirname=false
12663 fi
12664
12665 as_me=`$as_basename -- "$0" ||
12666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12667 X"$0" : 'X\(//\)$' \| \
12668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12669 $as_echo X/"$0" |
12670 sed '/^.*\/\([^/][^/]*\)\/*$/{
12671 s//\1/
12672 q
12673 }
12674 /^X\/\(\/\/\)$/{
12675 s//\1/
12676 q
12677 }
12678 /^X\/\(\/\).*/{
12679 s//\1/
12680 q
12681 }
12682 s/.*/./; q'`
12683
12684 # Avoid depending upon Character Ranges.
12685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12688 as_cr_digits='0123456789'
12689 as_cr_alnum=$as_cr_Letters$as_cr_digits
12690
12691 ECHO_C= ECHO_N= ECHO_T=
12692 case `echo -n x` in #(((((
12693 -n*)
12694 case `echo 'xy\c'` in
12695 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12696 xy) ECHO_C='\c';;
12697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12698 ECHO_T=' ';;
12699 esac;;
12700 *)
12701 ECHO_N='-n';;
12702 esac
12703
12704 rm -f conf$$ conf$$.exe conf$$.file
12705 if test -d conf$$.dir; then
12706 rm -f conf$$.dir/conf$$.file
12707 else
12708 rm -f conf$$.dir
12709 mkdir conf$$.dir 2>/dev/null
12710 fi
12711 if (echo >conf$$.file) 2>/dev/null; then
12712 if ln -s conf$$.file conf$$ 2>/dev/null; then
12713 as_ln_s='ln -s'
12714 # ... but there are two gotchas:
12715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12717 # In both cases, we have to default to `cp -pR'.
12718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12719 as_ln_s='cp -pR'
12720 elif ln conf$$.file conf$$ 2>/dev/null; then
12721 as_ln_s=ln
12722 else
12723 as_ln_s='cp -pR'
12724 fi
12725 else
12726 as_ln_s='cp -pR'
12727 fi
12728 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12729 rmdir conf$$.dir 2>/dev/null
12730
12731
12732 # as_fn_mkdir_p
12733 # -------------
12734 # Create "$as_dir" as a directory, including parents if necessary.
12735 as_fn_mkdir_p ()
12736 {
12737
12738 case $as_dir in #(
12739 -*) as_dir=./$as_dir;;
12740 esac
12741 test -d "$as_dir" || eval $as_mkdir_p || {
12742 as_dirs=
12743 while :; do
12744 case $as_dir in #(
12745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12746 *) as_qdir=$as_dir;;
12747 esac
12748 as_dirs="'$as_qdir' $as_dirs"
12749 as_dir=`$as_dirname -- "$as_dir" ||
12750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12751 X"$as_dir" : 'X\(//\)[^/]' \| \
12752 X"$as_dir" : 'X\(//\)$' \| \
12753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12754 $as_echo X"$as_dir" |
12755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12756 s//\1/
12757 q
12758 }
12759 /^X\(\/\/\)[^/].*/{
12760 s//\1/
12761 q
12762 }
12763 /^X\(\/\/\)$/{
12764 s//\1/
12765 q
12766 }
12767 /^X\(\/\).*/{
12768 s//\1/
12769 q
12770 }
12771 s/.*/./; q'`
12772 test -d "$as_dir" && break
12773 done
12774 test -z "$as_dirs" || eval "mkdir $as_dirs"
12775 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12776
12777
12778 } # as_fn_mkdir_p
12779 if mkdir -p . 2>/dev/null; then
12780 as_mkdir_p='mkdir -p "$as_dir"'
12781 else
12782 test -d ./-p && rmdir ./-p
12783 as_mkdir_p=false
12784 fi
12785
12786
12787 # as_fn_executable_p FILE
12788 # -----------------------
12789 # Test if FILE is an executable regular file.
12790 as_fn_executable_p ()
12791 {
12792 test -f "$1" && test -x "$1"
12793 } # as_fn_executable_p
12794 as_test_x='test -x'
12795 as_executable_p=as_fn_executable_p
12796
12797 # Sed expression to map a string onto a valid CPP name.
12798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12799
12800 # Sed expression to map a string onto a valid variable name.
12801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12802
12803
12804 exec 6>&1
12805 ## ----------------------------------- ##
12806 ## Main body of $CONFIG_STATUS script. ##
12807 ## ----------------------------------- ##
12808 _ASEOF
12809 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12810
12811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12812 # Save the log message, to keep $0 and so on meaningful, and to
12813 # report actual input values of CONFIG_FILES etc. instead of their
12814 # values after options handling.
12815 ac_log="
12816 This file was extended by libuserdb $as_me 0.10, which was
12817 generated by GNU Autoconf 2.69. Invocation command line was
12818
12819 CONFIG_FILES = $CONFIG_FILES
12820 CONFIG_HEADERS = $CONFIG_HEADERS
12821 CONFIG_LINKS = $CONFIG_LINKS
12822 CONFIG_COMMANDS = $CONFIG_COMMANDS
12823 $ $0 $@
12824
12825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12826 "
12827
12828 _ACEOF
12829
12830 case $ac_config_files in *"
12831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12832 esac
12833
12834 case $ac_config_headers in *"
12835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12836 esac
12837
12838
12839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12840 # Files that config.status was made for.
12841 config_files="$ac_config_files"
12842 config_headers="$ac_config_headers"
12843 config_commands="$ac_config_commands"
12844
12845 _ACEOF
12846
12847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12848 ac_cs_usage="\
12849 \`$as_me' instantiates files and other configuration actions
12850 from templates according to the current configuration. Unless the files
12851 and actions are specified as TAGs, all are instantiated by default.
12852
12853 Usage: $0 [OPTION]... [TAG]...
12854
12855 -h, --help print this help, then exit
12856 -V, --version print version number and configuration settings, then exit
12857 --config print configuration, then exit
12858 -q, --quiet, --silent
12859 do not print progress messages
12860 -d, --debug don't remove temporary files
12861 --recheck update $as_me by reconfiguring in the same conditions
12862 --file=FILE[:TEMPLATE]
12863 instantiate the configuration file FILE
12864 --header=FILE[:TEMPLATE]
12865 instantiate the configuration header FILE
12866
12867 Configuration files:
12868 $config_files
12869
12870 Configuration headers:
12871 $config_headers
12872
12873 Configuration commands:
12874 $config_commands
12875
12876 Report bugs to <courier-users@lists.sourceforge.net>."
12877
12878 _ACEOF
12879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12880 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12881 ac_cs_version="\\
12882 libuserdb config.status 0.10
12883 configured by $0, generated by GNU Autoconf 2.69,
12884 with options \\"\$ac_cs_config\\"
12885
12886 Copyright (C) 2012 Free Software Foundation, Inc.
12887 This config.status script is free software; the Free Software Foundation
12888 gives unlimited permission to copy, distribute and modify it."
12889
12890 ac_pwd='$ac_pwd'
12891 srcdir='$srcdir'
12892 INSTALL='$INSTALL'
12893 MKDIR_P='$MKDIR_P'
12894 AWK='$AWK'
12895 test -n "\$AWK" || AWK=awk
12896 _ACEOF
12897
12898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12899 # The default lists apply if the user does not specify any file.
12900 ac_need_defaults=:
12901 while test $# != 0
12902 do
12903 case $1 in
12904 --*=?*)
12905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12907 ac_shift=:
12908 ;;
12909 --*=)
12910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12911 ac_optarg=
12912 ac_shift=:
12913 ;;
12914 *)
12915 ac_option=$1
12916 ac_optarg=$2
12917 ac_shift=shift
12918 ;;
12919 esac
12920
12921 case $ac_option in
12922 # Handling of the options.
12923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12924 ac_cs_recheck=: ;;
12925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12926 $as_echo "$ac_cs_version"; exit ;;
12927 --config | --confi | --conf | --con | --co | --c )
12928 $as_echo "$ac_cs_config"; exit ;;
12929 --debug | --debu | --deb | --de | --d | -d )
12930 debug=: ;;
12931 --file | --fil | --fi | --f )
12932 $ac_shift
12933 case $ac_optarg in
12934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12935 '') as_fn_error $? "missing file argument" ;;
12936 esac
12937 as_fn_append CONFIG_FILES " '$ac_optarg'"
12938 ac_need_defaults=false;;
12939 --header | --heade | --head | --hea )
12940 $ac_shift
12941 case $ac_optarg in
12942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12943 esac
12944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12945 ac_need_defaults=false;;
12946 --he | --h)
12947 # Conflict between --help and --header
12948 as_fn_error $? "ambiguous option: \`$1'
12949 Try \`$0 --help' for more information.";;
12950 --help | --hel | -h )
12951 $as_echo "$ac_cs_usage"; exit ;;
12952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12954 ac_cs_silent=: ;;
12955
12956 # This is an error.
12957 -*) as_fn_error $? "unrecognized option: \`$1'
12958 Try \`$0 --help' for more information." ;;
12959
12960 *) as_fn_append ac_config_targets " $1"
12961 ac_need_defaults=false ;;
12962
12963 esac
12964 shift
12965 done
12966
12967 ac_configure_extra_args=
12968
12969 if $ac_cs_silent; then
12970 exec 6>/dev/null
12971 ac_configure_extra_args="$ac_configure_extra_args --silent"
12972 fi
12973
12974 _ACEOF
12975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976 if \$ac_cs_recheck; then
12977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12978 shift
12979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12980 CONFIG_SHELL='$SHELL'
12981 export CONFIG_SHELL
12982 exec "\$@"
12983 fi
12984
12985 _ACEOF
12986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12987 exec 5>>config.log
12988 {
12989 echo
12990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12991 ## Running $as_me. ##
12992 _ASBOX
12993 $as_echo "$ac_log"
12994 } >&5
12995
12996 _ACEOF
12997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12998 #
12999 # INIT-COMMANDS
13000 #
13001 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13002
13003
13004 # The HP-UX ksh and POSIX shell print the target directory to stdout
13005 # if CDPATH is set.
13006 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13007
13008 sed_quote_subst='$sed_quote_subst'
13009 double_quote_subst='$double_quote_subst'
13010 delay_variable_subst='$delay_variable_subst'
13011 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13012 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13013 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13014 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13015 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13016 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13017 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13018 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13019 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13020 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13021 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13022 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13023 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13024 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13025 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13026 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13027 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13028 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13029 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13030 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13031 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13032 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13033 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13034 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13035 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13036 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13037 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13038 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13039 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13040 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13041 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13042 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13043 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13044 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13045 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13046 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13047 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13048 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13049 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13050 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13051 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13052 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13053 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13054 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13055 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13056 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13057 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13058 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13059 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13060 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13061 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13062 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13063 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13064 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13065 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13066 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13067 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"`'
13068 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13069 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13070 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13071 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13072 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13073 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13074 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13075 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13076 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13077 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13078 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13079 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13080 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13081 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13082 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13083 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13084 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13085 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13086 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13087 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13088 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13089 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13090 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13091 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13092 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13093 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13094 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13095 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13096 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13097 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13098 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13099 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13100 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13101 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13102 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13103 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13104 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13105 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13106 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13107 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13108 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13109 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13110 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13111 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13112 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13113 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13114 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13115 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13116 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13117 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13118 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13119 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13120 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13121 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13122 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13123 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13124 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13125 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13126 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13127 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13128 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13129 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13130 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13131 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13132 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13133 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13134 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13135 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13136 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13137 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13138 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13139 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13140 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13141
13142 LTCC='$LTCC'
13143 LTCFLAGS='$LTCFLAGS'
13144 compiler='$compiler_DEFAULT'
13145
13146 # A function that is used when there is no print builtin or printf.
13147 func_fallback_echo ()
13148 {
13149 eval 'cat <<_LTECHO_EOF
13150 \$1
13151 _LTECHO_EOF'
13152 }
13153
13154 # Quote evaled strings.
13155 for var in SHELL \
13156 ECHO \
13157 PATH_SEPARATOR \
13158 SED \
13159 GREP \
13160 EGREP \
13161 FGREP \
13162 LD \
13163 NM \
13164 LN_S \
13165 lt_SP2NL \
13166 lt_NL2SP \
13167 reload_flag \
13168 OBJDUMP \
13169 deplibs_check_method \
13170 file_magic_cmd \
13171 file_magic_glob \
13172 want_nocaseglob \
13173 DLLTOOL \
13174 sharedlib_from_linklib_cmd \
13175 AR \
13176 AR_FLAGS \
13177 archiver_list_spec \
13178 STRIP \
13179 RANLIB \
13180 CC \
13181 CFLAGS \
13182 compiler \
13183 lt_cv_sys_global_symbol_pipe \
13184 lt_cv_sys_global_symbol_to_cdecl \
13185 lt_cv_sys_global_symbol_to_c_name_address \
13186 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13187 nm_file_list_spec \
13188 lt_prog_compiler_no_builtin_flag \
13189 lt_prog_compiler_pic \
13190 lt_prog_compiler_wl \
13191 lt_prog_compiler_static \
13192 lt_cv_prog_compiler_c_o \
13193 need_locks \
13194 MANIFEST_TOOL \
13195 DSYMUTIL \
13196 NMEDIT \
13197 LIPO \
13198 OTOOL \
13199 OTOOL64 \
13200 shrext_cmds \
13201 export_dynamic_flag_spec \
13202 whole_archive_flag_spec \
13203 compiler_needs_object \
13204 with_gnu_ld \
13205 allow_undefined_flag \
13206 no_undefined_flag \
13207 hardcode_libdir_flag_spec \
13208 hardcode_libdir_separator \
13209 exclude_expsyms \
13210 include_expsyms \
13211 file_list_spec \
13212 variables_saved_for_relink \
13213 libname_spec \
13214 library_names_spec \
13215 soname_spec \
13216 install_override_mode \
13217 finish_eval \
13218 old_striplib \
13219 striplib; do
13220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13221 *[\\\\\\\`\\"\\\$]*)
13222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13223 ;;
13224 *)
13225 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13226 ;;
13227 esac
13228 done
13229
13230 # Double-quote double-evaled strings.
13231 for var in reload_cmds \
13232 old_postinstall_cmds \
13233 old_postuninstall_cmds \
13234 old_archive_cmds \
13235 extract_expsyms_cmds \
13236 old_archive_from_new_cmds \
13237 old_archive_from_expsyms_cmds \
13238 archive_cmds \
13239 archive_expsym_cmds \
13240 module_cmds \
13241 module_expsym_cmds \
13242 export_symbols_cmds \
13243 prelink_cmds \
13244 postlink_cmds \
13245 postinstall_cmds \
13246 postuninstall_cmds \
13247 finish_cmds \
13248 sys_lib_search_path_spec \
13249 sys_lib_dlsearch_path_spec; do
13250 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13251 *[\\\\\\\`\\"\\\$]*)
13252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13253 ;;
13254 *)
13255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13256 ;;
13257 esac
13258 done
13259
13260 ac_aux_dir='$ac_aux_dir'
13261 xsi_shell='$xsi_shell'
13262 lt_shell_append='$lt_shell_append'
13263
13264 # See if we are running on zsh, and set the options which allow our
13265 # commands through without removal of \ escapes INIT.
13266 if test -n "\${ZSH_VERSION+set}" ; then
13267 setopt NO_GLOB_SUBST
13268 fi
13269
13270
13271 PACKAGE='$PACKAGE'
13272 VERSION='$VERSION'
13273 TIMESTAMP='$TIMESTAMP'
13274 RM='$RM'
13275 ofile='$ofile'
13276
13277
13278
13279
13280 _ACEOF
13281
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283
13284 # Handling of arguments.
13285 for ac_config_target in $ac_config_targets
13286 do
13287 case $ac_config_target in
13288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13289 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13290 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13292 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
13293 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
13294 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
13295
13296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13297 esac
13298 done
13299
13300
13301 # If the user did not use the arguments to specify the items to instantiate,
13302 # then the envvar interface is used. Set only those that are not.
13303 # We use the long form for the default assignment because of an extremely
13304 # bizarre bug on SunOS 4.1.3.
13305 if $ac_need_defaults; then
13306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13309 fi
13310
13311 # Have a temporary directory for convenience. Make it in the build tree
13312 # simply because there is no reason against having it here, and in addition,
13313 # creating and moving files from /tmp can sometimes cause problems.
13314 # Hook for its removal unless debugging.
13315 # Note that there is a small window in which the directory will not be cleaned:
13316 # after its creation but before its name has been assigned to `$tmp'.
13317 $debug ||
13318 {
13319 tmp= ac_tmp=
13320 trap 'exit_status=$?
13321 : "${ac_tmp:=$tmp}"
13322 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13323 ' 0
13324 trap 'as_fn_exit 1' 1 2 13 15
13325 }
13326 # Create a (secure) tmp directory for tmp files.
13327
13328 {
13329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13330 test -d "$tmp"
13331 } ||
13332 {
13333 tmp=./conf$$-$RANDOM
13334 (umask 077 && mkdir "$tmp")
13335 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13336 ac_tmp=$tmp
13337
13338 # Set up the scripts for CONFIG_FILES section.
13339 # No need to generate them if there are no CONFIG_FILES.
13340 # This happens for instance with `./config.status config.h'.
13341 if test -n "$CONFIG_FILES"; then
13342
13343
13344 ac_cr=`echo X | tr X '\015'`
13345 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13346 # But we know of no other shell where ac_cr would be empty at this
13347 # point, so we can use a bashism as a fallback.
13348 if test "x$ac_cr" = x; then
13349 eval ac_cr=\$\'\\r\'
13350 fi
13351 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13352 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13353 ac_cs_awk_cr='\\r'
13354 else
13355 ac_cs_awk_cr=$ac_cr
13356 fi
13357
13358 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13359 _ACEOF
13360
13361
13362 {
13363 echo "cat >conf$$subs.awk <<_ACEOF" &&
13364 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13365 echo "_ACEOF"
13366 } >conf$$subs.sh ||
13367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13368 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13369 ac_delim='%!_!# '
13370 for ac_last_try in false false false false false :; do
13371 . ./conf$$subs.sh ||
13372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13373
13374 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13375 if test $ac_delim_n = $ac_delim_num; then
13376 break
13377 elif $ac_last_try; then
13378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13379 else
13380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13381 fi
13382 done
13383 rm -f conf$$subs.sh
13384
13385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13386 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13387 _ACEOF
13388 sed -n '
13389 h
13390 s/^/S["/; s/!.*/"]=/
13391 p
13392 g
13393 s/^[^!]*!//
13394 :repl
13395 t repl
13396 s/'"$ac_delim"'$//
13397 t delim
13398 :nl
13399 h
13400 s/\(.\{148\}\)..*/\1/
13401 t more1
13402 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13403 p
13404 n
13405 b repl
13406 :more1
13407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13408 p
13409 g
13410 s/.\{148\}//
13411 t nl
13412 :delim
13413 h
13414 s/\(.\{148\}\)..*/\1/
13415 t more2
13416 s/["\\]/\\&/g; s/^/"/; s/$/"/
13417 p
13418 b
13419 :more2
13420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13421 p
13422 g
13423 s/.\{148\}//
13424 t delim
13425 ' <conf$$subs.awk | sed '
13426 /^[^""]/{
13427 N
13428 s/\n//
13429 }
13430 ' >>$CONFIG_STATUS || ac_write_fail=1
13431 rm -f conf$$subs.awk
13432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13433 _ACAWK
13434 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13435 for (key in S) S_is_set[key] = 1
13436 FS = "\a"
13437
13438 }
13439 {
13440 line = $ 0
13441 nfields = split(line, field, "@")
13442 substed = 0
13443 len = length(field[1])
13444 for (i = 2; i < nfields; i++) {
13445 key = field[i]
13446 keylen = length(key)
13447 if (S_is_set[key]) {
13448 value = S[key]
13449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13450 len += length(value) + length(field[++i])
13451 substed = 1
13452 } else
13453 len += 1 + keylen
13454 }
13455
13456 print line
13457 }
13458
13459 _ACAWK
13460 _ACEOF
13461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13462 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13464 else
13465 cat
13466 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13467 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13468 _ACEOF
13469
13470 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13471 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13472 # trailing colons and then remove the whole line if VPATH becomes empty
13473 # (actually we leave an empty line to preserve line numbers).
13474 if test "x$srcdir" = x.; then
13475 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13476 h
13477 s///
13478 s/^/:/
13479 s/[ ]*$/:/
13480 s/:\$(srcdir):/:/g
13481 s/:\${srcdir}:/:/g
13482 s/:@srcdir@:/:/g
13483 s/^:*//
13484 s/:*$//
13485 x
13486 s/\(=[ ]*\).*/\1/
13487 G
13488 s/\n//
13489 s/^[^=]*=[ ]*$//
13490 }'
13491 fi
13492
13493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13494 fi # test -n "$CONFIG_FILES"
13495
13496 # Set up the scripts for CONFIG_HEADERS section.
13497 # No need to generate them if there are no CONFIG_HEADERS.
13498 # This happens for instance with `./config.status Makefile'.
13499 if test -n "$CONFIG_HEADERS"; then
13500 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13501 BEGIN {
13502 _ACEOF
13503
13504 # Transform confdefs.h into an awk script `defines.awk', embedded as
13505 # here-document in config.status, that substitutes the proper values into
13506 # config.h.in to produce config.h.
13507
13508 # Create a delimiter string that does not exist in confdefs.h, to ease
13509 # handling of long lines.
13510 ac_delim='%!_!# '
13511 for ac_last_try in false false :; do
13512 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13513 if test -z "$ac_tt"; then
13514 break
13515 elif $ac_last_try; then
13516 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13517 else
13518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13519 fi
13520 done
13521
13522 # For the awk script, D is an array of macro values keyed by name,
13523 # likewise P contains macro parameters if any. Preserve backslash
13524 # newline sequences.
13525
13526 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13527 sed -n '
13528 s/.\{148\}/&'"$ac_delim"'/g
13529 t rset
13530 :rset
13531 s/^[ ]*#[ ]*define[ ][ ]*/ /
13532 t def
13533 d
13534 :def
13535 s/\\$//
13536 t bsnl
13537 s/["\\]/\\&/g
13538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13539 D["\1"]=" \3"/p
13540 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13541 d
13542 :bsnl
13543 s/["\\]/\\&/g
13544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13545 D["\1"]=" \3\\\\\\n"\\/p
13546 t cont
13547 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13548 t cont
13549 d
13550 :cont
13551 n
13552 s/.\{148\}/&'"$ac_delim"'/g
13553 t clear
13554 :clear
13555 s/\\$//
13556 t bsnlc
13557 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13558 d
13559 :bsnlc
13560 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13561 b cont
13562 ' <confdefs.h | sed '
13563 s/'"$ac_delim"'/"\\\
13564 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13565
13566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13567 for (key in D) D_is_set[key] = 1
13568 FS = "\a"
13569 }
13570 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13571 line = \$ 0
13572 split(line, arg, " ")
13573 if (arg[1] == "#") {
13574 defundef = arg[2]
13575 mac1 = arg[3]
13576 } else {
13577 defundef = substr(arg[1], 2)
13578 mac1 = arg[2]
13579 }
13580 split(mac1, mac2, "(") #)
13581 macro = mac2[1]
13582 prefix = substr(line, 1, index(line, defundef) - 1)
13583 if (D_is_set[macro]) {
13584 # Preserve the white space surrounding the "#".
13585 print prefix "define", macro P[macro] D[macro]
13586 next
13587 } else {
13588 # Replace #undef with comments. This is necessary, for example,
13589 # in the case of _POSIX_SOURCE, which is predefined and required
13590 # on some systems where configure will not decide to define it.
13591 if (defundef == "undef") {
13592 print "/*", prefix defundef, macro, "*/"
13593 next
13594 }
13595 }
13596 }
13597 { print }
13598 _ACAWK
13599 _ACEOF
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13602 fi # test -n "$CONFIG_HEADERS"
13603
13604
13605 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13606 shift
13607 for ac_tag
13608 do
13609 case $ac_tag in
13610 :[FHLC]) ac_mode=$ac_tag; continue;;
13611 esac
13612 case $ac_mode$ac_tag in
13613 :[FHL]*:*);;
13614 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13615 :[FH]-) ac_tag=-:-;;
13616 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13617 esac
13618 ac_save_IFS=$IFS
13619 IFS=:
13620 set x $ac_tag
13621 IFS=$ac_save_IFS
13622 shift
13623 ac_file=$1
13624 shift
13625
13626 case $ac_mode in
13627 :L) ac_source=$1;;
13628 :[FH])
13629 ac_file_inputs=
13630 for ac_f
13631 do
13632 case $ac_f in
13633 -) ac_f="$ac_tmp/stdin";;
13634 *) # Look for the file first in the build tree, then in the source tree
13635 # (if the path is not absolute). The absolute path cannot be DOS-style,
13636 # because $ac_f cannot contain `:'.
13637 test -f "$ac_f" ||
13638 case $ac_f in
13639 [\\/$]*) false;;
13640 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13641 esac ||
13642 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13643 esac
13644 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13645 as_fn_append ac_file_inputs " '$ac_f'"
13646 done
13647
13648 # Let's still pretend it is `configure' which instantiates (i.e., don't
13649 # use $as_me), people would be surprised to read:
13650 # /* config.h. Generated by config.status. */
13651 configure_input='Generated from '`
13652 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13653 `' by configure.'
13654 if test x"$ac_file" != x-; then
13655 configure_input="$ac_file. $configure_input"
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13657 $as_echo "$as_me: creating $ac_file" >&6;}
13658 fi
13659 # Neutralize special characters interpreted by sed in replacement strings.
13660 case $configure_input in #(
13661 *\&* | *\|* | *\\* )
13662 ac_sed_conf_input=`$as_echo "$configure_input" |
13663 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13664 *) ac_sed_conf_input=$configure_input;;
13665 esac
13666
13667 case $ac_tag in
13668 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13670 esac
13671 ;;
13672 esac
13673
13674 ac_dir=`$as_dirname -- "$ac_file" ||
13675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13676 X"$ac_file" : 'X\(//\)[^/]' \| \
13677 X"$ac_file" : 'X\(//\)$' \| \
13678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13679 $as_echo X"$ac_file" |
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13681 s//\1/
13682 q
13683 }
13684 /^X\(\/\/\)[^/].*/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\/\)$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\).*/{
13693 s//\1/
13694 q
13695 }
13696 s/.*/./; q'`
13697 as_dir="$ac_dir"; as_fn_mkdir_p
13698 ac_builddir=.
13699
13700 case "$ac_dir" in
13701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13702 *)
13703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13704 # A ".." for each directory in $ac_dir_suffix.
13705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13706 case $ac_top_builddir_sub in
13707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13709 esac ;;
13710 esac
13711 ac_abs_top_builddir=$ac_pwd
13712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13713 # for backward compatibility:
13714 ac_top_builddir=$ac_top_build_prefix
13715
13716 case $srcdir in
13717 .) # We are building in place.
13718 ac_srcdir=.
13719 ac_top_srcdir=$ac_top_builddir_sub
13720 ac_abs_top_srcdir=$ac_pwd ;;
13721 [\\/]* | ?:[\\/]* ) # Absolute name.
13722 ac_srcdir=$srcdir$ac_dir_suffix;
13723 ac_top_srcdir=$srcdir
13724 ac_abs_top_srcdir=$srcdir ;;
13725 *) # Relative name.
13726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13727 ac_top_srcdir=$ac_top_build_prefix$srcdir
13728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13729 esac
13730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13731
13732
13733 case $ac_mode in
13734 :F)
13735 #
13736 # CONFIG_FILE
13737 #
13738
13739 case $INSTALL in
13740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13742 esac
13743 ac_MKDIR_P=$MKDIR_P
13744 case $MKDIR_P in
13745 [\\/$]* | ?:[\\/]* ) ;;
13746 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13747 esac
13748 _ACEOF
13749
13750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13751 # If the template does not know about datarootdir, expand it.
13752 # FIXME: This hack should be removed a few years after 2.60.
13753 ac_datarootdir_hack=; ac_datarootdir_seen=
13754 ac_sed_dataroot='
13755 /datarootdir/ {
13756 p
13757 q
13758 }
13759 /@datadir@/p
13760 /@docdir@/p
13761 /@infodir@/p
13762 /@localedir@/p
13763 /@mandir@/p'
13764 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13765 *datarootdir*) ac_datarootdir_seen=yes;;
13766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13768 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13769 _ACEOF
13770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13771 ac_datarootdir_hack='
13772 s&@datadir@&$datadir&g
13773 s&@docdir@&$docdir&g
13774 s&@infodir@&$infodir&g
13775 s&@localedir@&$localedir&g
13776 s&@mandir@&$mandir&g
13777 s&\\\${datarootdir}&$datarootdir&g' ;;
13778 esac
13779 _ACEOF
13780
13781 # Neutralize VPATH when `$srcdir' = `.'.
13782 # Shell code in configure.ac might set extrasub.
13783 # FIXME: do we really want to maintain this feature?
13784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13785 ac_sed_extra="$ac_vpsub
13786 $extrasub
13787 _ACEOF
13788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13789 :t
13790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13791 s|@configure_input@|$ac_sed_conf_input|;t t
13792 s&@top_builddir@&$ac_top_builddir_sub&;t t
13793 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13794 s&@srcdir@&$ac_srcdir&;t t
13795 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13796 s&@top_srcdir@&$ac_top_srcdir&;t t
13797 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13798 s&@builddir@&$ac_builddir&;t t
13799 s&@abs_builddir@&$ac_abs_builddir&;t t
13800 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13801 s&@INSTALL@&$ac_INSTALL&;t t
13802 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13803 $ac_datarootdir_hack
13804 "
13805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13806 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13807
13808 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13809 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13811 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13813 which seems to be undefined. Please make sure it is defined" >&5
13814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13815 which seems to be undefined. Please make sure it is defined" >&2;}
13816
13817 rm -f "$ac_tmp/stdin"
13818 case $ac_file in
13819 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13820 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13821 esac \
13822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13823 ;;
13824 :H)
13825 #
13826 # CONFIG_HEADER
13827 #
13828 if test x"$ac_file" != x-; then
13829 {
13830 $as_echo "/* $configure_input */" \
13831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13832 } >"$ac_tmp/config.h" \
13833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13834 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13837 else
13838 rm -f "$ac_file"
13839 mv "$ac_tmp/config.h" "$ac_file" \
13840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13841 fi
13842 else
13843 $as_echo "/* $configure_input */" \
13844 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13845 || as_fn_error $? "could not create -" "$LINENO" 5
13846 fi
13847 # Compute "$ac_file"'s index in $config_headers.
13848 _am_arg="$ac_file"
13849 _am_stamp_count=1
13850 for _am_header in $config_headers :; do
13851 case $_am_header in
13852 $_am_arg | $_am_arg:* )
13853 break ;;
13854 * )
13855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13856 esac
13857 done
13858 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13859 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13860 X"$_am_arg" : 'X\(//\)[^/]' \| \
13861 X"$_am_arg" : 'X\(//\)$' \| \
13862 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13863 $as_echo X"$_am_arg" |
13864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13865 s//\1/
13866 q
13867 }
13868 /^X\(\/\/\)[^/].*/{
13869 s//\1/
13870 q
13871 }
13872 /^X\(\/\/\)$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\(\/\).*/{
13877 s//\1/
13878 q
13879 }
13880 s/.*/./; q'`/stamp-h$_am_stamp_count
13881 ;;
13882
13883 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13884 $as_echo "$as_me: executing $ac_file commands" >&6;}
13885 ;;
13886 esac
13887
13888
13889 case $ac_file$ac_mode in
13890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13891 # Older Autoconf quotes --file arguments for eval, but not when files
13892 # are listed without --file. Let's play safe and only enable the eval
13893 # if we detect the quoting.
13894 case $CONFIG_FILES in
13895 *\'*) eval set x "$CONFIG_FILES" ;;
13896 *) set x $CONFIG_FILES ;;
13897 esac
13898 shift
13899 for mf
13900 do
13901 # Strip MF so we end up with the name of the file.
13902 mf=`echo "$mf" | sed -e 's/:.*$//'`
13903 # Check whether this is an Automake generated Makefile or not.
13904 # We used to match only the files named 'Makefile.in', but
13905 # some people rename them; so instead we look at the file content.
13906 # Grep'ing the first line is not enough: some people post-process
13907 # each Makefile.in and add a new line on top of each file to say so.
13908 # Grep'ing the whole file is not good either: AIX grep has a line
13909 # limit of 2048, but all sed's we know have understand at least 4000.
13910 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13911 dirpart=`$as_dirname -- "$mf" ||
13912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13913 X"$mf" : 'X\(//\)[^/]' \| \
13914 X"$mf" : 'X\(//\)$' \| \
13915 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13916 $as_echo X"$mf" |
13917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13918 s//\1/
13919 q
13920 }
13921 /^X\(\/\/\)[^/].*/{
13922 s//\1/
13923 q
13924 }
13925 /^X\(\/\/\)$/{
13926 s//\1/
13927 q
13928 }
13929 /^X\(\/\).*/{
13930 s//\1/
13931 q
13932 }
13933 s/.*/./; q'`
13934 else
13935 continue
13936 fi
13937 # Extract the definition of DEPDIR, am__include, and am__quote
13938 # from the Makefile without running 'make'.
13939 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13940 test -z "$DEPDIR" && continue
13941 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13942 test -z "$am__include" && continue
13943 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13944 # Find all dependency output files, they are included files with
13945 # $(DEPDIR) in their names. We invoke sed twice because it is the
13946 # simplest approach to changing $(DEPDIR) to its actual value in the
13947 # expansion.
13948 for file in `sed -n "
13949 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13950 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13951 # Make sure the directory exists.
13952 test -f "$dirpart/$file" && continue
13953 fdir=`$as_dirname -- "$file" ||
13954 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13955 X"$file" : 'X\(//\)[^/]' \| \
13956 X"$file" : 'X\(//\)$' \| \
13957 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13958 $as_echo X"$file" |
13959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)[^/].*/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\/\)$/{
13968 s//\1/
13969 q
13970 }
13971 /^X\(\/\).*/{
13972 s//\1/
13973 q
13974 }
13975 s/.*/./; q'`
13976 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13977 # echo "creating $dirpart/$file"
13978 echo '# dummy' > "$dirpart/$file"
13979 done
13980 done
13981 }
13982 ;;
13983 "libtool":C)
13984
13985 # See if we are running on zsh, and set the options which allow our
13986 # commands through without removal of \ escapes.
13987 if test -n "${ZSH_VERSION+set}" ; then
13988 setopt NO_GLOB_SUBST
13989 fi
13990
13991 cfgfile="${ofile}T"
13992 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13993 $RM "$cfgfile"
13994
13995 cat <<_LT_EOF >> "$cfgfile"
13996 #! $SHELL
13997
13998 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13999 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14001 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14002 #
14003 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14004 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14005 # Foundation, Inc.
14006 # Written by Gordon Matzigkeit, 1996
14007 #
14008 # This file is part of GNU Libtool.
14009 #
14010 # GNU Libtool is free software; you can redistribute it and/or
14011 # modify it under the terms of the GNU General Public License as
14012 # published by the Free Software Foundation; either version 2 of
14013 # the License, or (at your option) any later version.
14014 #
14015 # As a special exception to the GNU General Public License,
14016 # if you distribute this file as part of a program or library that
14017 # is built using GNU Libtool, you may include this file under the
14018 # same distribution terms that you use for the rest of that program.
14019 #
14020 # GNU Libtool is distributed in the hope that it will be useful,
14021 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14023 # GNU General Public License for more details.
14024 #
14025 # You should have received a copy of the GNU General Public License
14026 # along with GNU Libtool; see the file COPYING. If not, a copy
14027 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14028 # obtained by writing to the Free Software Foundation, Inc.,
14029 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14030
14031
14032 # The names of the tagged configurations supported by this script.
14033 available_tags=""
14034
14035 # ### BEGIN LIBTOOL CONFIG
14036
14037 # Which release of libtool.m4 was used?
14038 macro_version=$macro_version
14039 macro_revision=$macro_revision
14040
14041 # Whether or not to build shared libraries.
14042 build_libtool_libs=$enable_shared
14043
14044 # Whether or not to build static libraries.
14045 build_old_libs=$enable_static
14046
14047 # What type of objects to build.
14048 pic_mode=$pic_mode
14049
14050 # Whether or not to optimize for fast installation.
14051 fast_install=$enable_fast_install
14052
14053 # Shell to use when invoking shell scripts.
14054 SHELL=$lt_SHELL
14055
14056 # An echo program that protects backslashes.
14057 ECHO=$lt_ECHO
14058
14059 # The PATH separator for the build system.
14060 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14061
14062 # The host system.
14063 host_alias=$host_alias
14064 host=$host
14065 host_os=$host_os
14066
14067 # The build system.
14068 build_alias=$build_alias
14069 build=$build
14070 build_os=$build_os
14071
14072 # A sed program that does not truncate output.
14073 SED=$lt_SED
14074
14075 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14076 Xsed="\$SED -e 1s/^X//"
14077
14078 # A grep program that handles long lines.
14079 GREP=$lt_GREP
14080
14081 # An ERE matcher.
14082 EGREP=$lt_EGREP
14083
14084 # A literal string matcher.
14085 FGREP=$lt_FGREP
14086
14087 # A BSD- or MS-compatible name lister.
14088 NM=$lt_NM
14089
14090 # Whether we need soft or hard links.
14091 LN_S=$lt_LN_S
14092
14093 # What is the maximum length of a command?
14094 max_cmd_len=$max_cmd_len
14095
14096 # Object file suffix (normally "o").
14097 objext=$ac_objext
14098
14099 # Executable file suffix (normally "").
14100 exeext=$exeext
14101
14102 # whether the shell understands "unset".
14103 lt_unset=$lt_unset
14104
14105 # turn spaces into newlines.
14106 SP2NL=$lt_lt_SP2NL
14107
14108 # turn newlines into spaces.
14109 NL2SP=$lt_lt_NL2SP
14110
14111 # convert \$build file names to \$host format.
14112 to_host_file_cmd=$lt_cv_to_host_file_cmd
14113
14114 # convert \$build files to toolchain format.
14115 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14116
14117 # An object symbol dumper.
14118 OBJDUMP=$lt_OBJDUMP
14119
14120 # Method to check whether dependent libraries are shared objects.
14121 deplibs_check_method=$lt_deplibs_check_method
14122
14123 # Command to use when deplibs_check_method = "file_magic".
14124 file_magic_cmd=$lt_file_magic_cmd
14125
14126 # How to find potential files when deplibs_check_method = "file_magic".
14127 file_magic_glob=$lt_file_magic_glob
14128
14129 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14130 want_nocaseglob=$lt_want_nocaseglob
14131
14132 # DLL creation program.
14133 DLLTOOL=$lt_DLLTOOL
14134
14135 # Command to associate shared and link libraries.
14136 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14137
14138 # The archiver.
14139 AR=$lt_AR
14140
14141 # Flags to create an archive.
14142 AR_FLAGS=$lt_AR_FLAGS
14143
14144 # How to feed a file listing to the archiver.
14145 archiver_list_spec=$lt_archiver_list_spec
14146
14147 # A symbol stripping program.
14148 STRIP=$lt_STRIP
14149
14150 # Commands used to install an old-style archive.
14151 RANLIB=$lt_RANLIB
14152 old_postinstall_cmds=$lt_old_postinstall_cmds
14153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14154
14155 # Whether to use a lock for old archive extraction.
14156 lock_old_archive_extraction=$lock_old_archive_extraction
14157
14158 # A C compiler.
14159 LTCC=$lt_CC
14160
14161 # LTCC compiler flags.
14162 LTCFLAGS=$lt_CFLAGS
14163
14164 # Take the output of nm and produce a listing of raw symbols and C names.
14165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14166
14167 # Transform the output of nm in a proper C declaration.
14168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14169
14170 # Transform the output of nm in a C name address pair.
14171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14172
14173 # Transform the output of nm in a C name address pair when lib prefix is needed.
14174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14175
14176 # Specify filename containing input files for \$NM.
14177 nm_file_list_spec=$lt_nm_file_list_spec
14178
14179 # The root where to search for dependent libraries,and in which our libraries should be installed.
14180 lt_sysroot=$lt_sysroot
14181
14182 # The name of the directory that contains temporary libtool files.
14183 objdir=$objdir
14184
14185 # Used to examine libraries when file_magic_cmd begins with "file".
14186 MAGIC_CMD=$MAGIC_CMD
14187
14188 # Must we lock files when doing compilation?
14189 need_locks=$lt_need_locks
14190
14191 # Manifest tool.
14192 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14193
14194 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14195 DSYMUTIL=$lt_DSYMUTIL
14196
14197 # Tool to change global to local symbols on Mac OS X.
14198 NMEDIT=$lt_NMEDIT
14199
14200 # Tool to manipulate fat objects and archives on Mac OS X.
14201 LIPO=$lt_LIPO
14202
14203 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14204 OTOOL=$lt_OTOOL
14205
14206 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14207 OTOOL64=$lt_OTOOL64
14208
14209 # Old archive suffix (normally "a").
14210 libext=$libext
14211
14212 # Shared library suffix (normally ".so").
14213 shrext_cmds=$lt_shrext_cmds
14214
14215 # The commands to extract the exported symbol list from a shared archive.
14216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14217
14218 # Variables whose values should be saved in libtool wrapper scripts and
14219 # restored at link time.
14220 variables_saved_for_relink=$lt_variables_saved_for_relink
14221
14222 # Do we need the "lib" prefix for modules?
14223 need_lib_prefix=$need_lib_prefix
14224
14225 # Do we need a version for libraries?
14226 need_version=$need_version
14227
14228 # Library versioning type.
14229 version_type=$version_type
14230
14231 # Shared library runtime path variable.
14232 runpath_var=$runpath_var
14233
14234 # Shared library path variable.
14235 shlibpath_var=$shlibpath_var
14236
14237 # Is shlibpath searched before the hard-coded library search path?
14238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14239
14240 # Format of library name prefix.
14241 libname_spec=$lt_libname_spec
14242
14243 # List of archive names. First name is the real one, the rest are links.
14244 # The last name is the one that the linker finds with -lNAME
14245 library_names_spec=$lt_library_names_spec
14246
14247 # The coded name of the library, if different from the real name.
14248 soname_spec=$lt_soname_spec
14249
14250 # Permission mode override for installation of shared libraries.
14251 install_override_mode=$lt_install_override_mode
14252
14253 # Command to use after installation of a shared archive.
14254 postinstall_cmds=$lt_postinstall_cmds
14255
14256 # Command to use after uninstallation of a shared archive.
14257 postuninstall_cmds=$lt_postuninstall_cmds
14258
14259 # Commands used to finish a libtool library installation in a directory.
14260 finish_cmds=$lt_finish_cmds
14261
14262 # As "finish_cmds", except a single script fragment to be evaled but
14263 # not shown.
14264 finish_eval=$lt_finish_eval
14265
14266 # Whether we should hardcode library paths into libraries.
14267 hardcode_into_libs=$hardcode_into_libs
14268
14269 # Compile-time system search path for libraries.
14270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14271
14272 # Run-time system search path for libraries.
14273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14274
14275 # Whether dlopen is supported.
14276 dlopen_support=$enable_dlopen
14277
14278 # Whether dlopen of programs is supported.
14279 dlopen_self=$enable_dlopen_self
14280
14281 # Whether dlopen of statically linked programs is supported.
14282 dlopen_self_static=$enable_dlopen_self_static
14283
14284 # Commands to strip libraries.
14285 old_striplib=$lt_old_striplib
14286 striplib=$lt_striplib
14287
14288
14289 # The linker used to build libraries.
14290 LD=$lt_LD
14291
14292 # How to create reloadable object files.
14293 reload_flag=$lt_reload_flag
14294 reload_cmds=$lt_reload_cmds
14295
14296 # Commands used to build an old-style archive.
14297 old_archive_cmds=$lt_old_archive_cmds
14298
14299 # A language specific compiler.
14300 CC=$lt_compiler
14301
14302 # Is the compiler the GNU compiler?
14303 with_gcc=$GCC
14304
14305 # Compiler flag to turn off builtin functions.
14306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14307
14308 # Additional compiler flags for building library objects.
14309 pic_flag=$lt_lt_prog_compiler_pic
14310
14311 # How to pass a linker flag through the compiler.
14312 wl=$lt_lt_prog_compiler_wl
14313
14314 # Compiler flag to prevent dynamic linking.
14315 link_static_flag=$lt_lt_prog_compiler_static
14316
14317 # Does compiler simultaneously support -c and -o options?
14318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14319
14320 # Whether or not to add -lc for building shared libraries.
14321 build_libtool_need_lc=$archive_cmds_need_lc
14322
14323 # Whether or not to disallow shared libs when runtime libs are static.
14324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14325
14326 # Compiler flag to allow reflexive dlopens.
14327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14328
14329 # Compiler flag to generate shared objects directly from archives.
14330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14331
14332 # Whether the compiler copes with passing no objects directly.
14333 compiler_needs_object=$lt_compiler_needs_object
14334
14335 # Create an old-style archive from a shared archive.
14336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14337
14338 # Create a temporary old-style archive to link instead of a shared archive.
14339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14340
14341 # Commands used to build a shared archive.
14342 archive_cmds=$lt_archive_cmds
14343 archive_expsym_cmds=$lt_archive_expsym_cmds
14344
14345 # Commands used to build a loadable module if different from building
14346 # a shared archive.
14347 module_cmds=$lt_module_cmds
14348 module_expsym_cmds=$lt_module_expsym_cmds
14349
14350 # Whether we are building with GNU ld or not.
14351 with_gnu_ld=$lt_with_gnu_ld
14352
14353 # Flag that allows shared libraries with undefined symbols to be built.
14354 allow_undefined_flag=$lt_allow_undefined_flag
14355
14356 # Flag that enforces no undefined symbols.
14357 no_undefined_flag=$lt_no_undefined_flag
14358
14359 # Flag to hardcode \$libdir into a binary during linking.
14360 # This must work even if \$libdir does not exist
14361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14362
14363 # Whether we need a single "-rpath" flag with a separated argument.
14364 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14365
14366 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14367 # DIR into the resulting binary.
14368 hardcode_direct=$hardcode_direct
14369
14370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14371 # DIR into the resulting binary and the resulting library dependency is
14372 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14373 # library is relocated.
14374 hardcode_direct_absolute=$hardcode_direct_absolute
14375
14376 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14377 # into the resulting binary.
14378 hardcode_minus_L=$hardcode_minus_L
14379
14380 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14381 # into the resulting binary.
14382 hardcode_shlibpath_var=$hardcode_shlibpath_var
14383
14384 # Set to "yes" if building a shared library automatically hardcodes DIR
14385 # into the library and all subsequent libraries and executables linked
14386 # against it.
14387 hardcode_automatic=$hardcode_automatic
14388
14389 # Set to yes if linker adds runtime paths of dependent libraries
14390 # to runtime path list.
14391 inherit_rpath=$inherit_rpath
14392
14393 # Whether libtool must link a program against all its dependency libraries.
14394 link_all_deplibs=$link_all_deplibs
14395
14396 # Set to "yes" if exported symbols are required.
14397 always_export_symbols=$always_export_symbols
14398
14399 # The commands to list exported symbols.
14400 export_symbols_cmds=$lt_export_symbols_cmds
14401
14402 # Symbols that should not be listed in the preloaded symbols.
14403 exclude_expsyms=$lt_exclude_expsyms
14404
14405 # Symbols that must always be exported.
14406 include_expsyms=$lt_include_expsyms
14407
14408 # Commands necessary for linking programs (against libraries) with templates.
14409 prelink_cmds=$lt_prelink_cmds
14410
14411 # Commands necessary for finishing linking programs.
14412 postlink_cmds=$lt_postlink_cmds
14413
14414 # Specify filename containing input files.
14415 file_list_spec=$lt_file_list_spec
14416
14417 # How to hardcode a shared library path into an executable.
14418 hardcode_action=$hardcode_action
14419
14420 # ### END LIBTOOL CONFIG
14421
14422 _LT_EOF
14423
14424 case $host_os in
14425 aix3*)
14426 cat <<\_LT_EOF >> "$cfgfile"
14427 # AIX sometimes has problems with the GCC collect2 program. For some
14428 # reason, if we set the COLLECT_NAMES environment variable, the problems
14429 # vanish in a puff of smoke.
14430 if test "X${COLLECT_NAMES+set}" != Xset; then
14431 COLLECT_NAMES=
14432 export COLLECT_NAMES
14433 fi
14434 _LT_EOF
14435 ;;
14436 esac
14437
14438
14439 ltmain="$ac_aux_dir/ltmain.sh"
14440
14441
14442 # We use sed instead of cat because bash on DJGPP gets confused if
14443 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14444 # text mode, it properly converts lines to CR/LF. This bash problem
14445 # is reportedly fixed, but why not run on old versions too?
14446 sed '$q' "$ltmain" >> "$cfgfile" \
14447 || (rm -f "$cfgfile"; exit 1)
14448
14449 if test x"$xsi_shell" = xyes; then
14450 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14451 func_dirname ()\
14452 {\
14453 \ case ${1} in\
14454 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14455 \ * ) func_dirname_result="${3}" ;;\
14456 \ esac\
14457 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14458 && mv -f "$cfgfile.tmp" "$cfgfile" \
14459 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14460 test 0 -eq $? || _lt_function_replace_fail=:
14461
14462
14463 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14464 func_basename ()\
14465 {\
14466 \ func_basename_result="${1##*/}"\
14467 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14468 && mv -f "$cfgfile.tmp" "$cfgfile" \
14469 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14470 test 0 -eq $? || _lt_function_replace_fail=:
14471
14472
14473 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14474 func_dirname_and_basename ()\
14475 {\
14476 \ case ${1} in\
14477 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14478 \ * ) func_dirname_result="${3}" ;;\
14479 \ esac\
14480 \ func_basename_result="${1##*/}"\
14481 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14482 && mv -f "$cfgfile.tmp" "$cfgfile" \
14483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14484 test 0 -eq $? || _lt_function_replace_fail=:
14485
14486
14487 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14488 func_stripname ()\
14489 {\
14490 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14491 \ # positional parameters, so assign one to ordinary parameter first.\
14492 \ func_stripname_result=${3}\
14493 \ func_stripname_result=${func_stripname_result#"${1}"}\
14494 \ func_stripname_result=${func_stripname_result%"${2}"}\
14495 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14496 && mv -f "$cfgfile.tmp" "$cfgfile" \
14497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14498 test 0 -eq $? || _lt_function_replace_fail=:
14499
14500
14501 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14502 func_split_long_opt ()\
14503 {\
14504 \ func_split_long_opt_name=${1%%=*}\
14505 \ func_split_long_opt_arg=${1#*=}\
14506 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14507 && mv -f "$cfgfile.tmp" "$cfgfile" \
14508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14509 test 0 -eq $? || _lt_function_replace_fail=:
14510
14511
14512 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14513 func_split_short_opt ()\
14514 {\
14515 \ func_split_short_opt_arg=${1#??}\
14516 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14517 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14518 && mv -f "$cfgfile.tmp" "$cfgfile" \
14519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14520 test 0 -eq $? || _lt_function_replace_fail=:
14521
14522
14523 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14524 func_lo2o ()\
14525 {\
14526 \ case ${1} in\
14527 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14528 \ *) func_lo2o_result=${1} ;;\
14529 \ esac\
14530 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14531 && mv -f "$cfgfile.tmp" "$cfgfile" \
14532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14533 test 0 -eq $? || _lt_function_replace_fail=:
14534
14535
14536 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14537 func_xform ()\
14538 {\
14539 func_xform_result=${1%.*}.lo\
14540 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14541 && mv -f "$cfgfile.tmp" "$cfgfile" \
14542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14543 test 0 -eq $? || _lt_function_replace_fail=:
14544
14545
14546 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14547 func_arith ()\
14548 {\
14549 func_arith_result=$(( $* ))\
14550 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14551 && mv -f "$cfgfile.tmp" "$cfgfile" \
14552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14553 test 0 -eq $? || _lt_function_replace_fail=:
14554
14555
14556 sed -e '/^func_len ()$/,/^} # func_len /c\
14557 func_len ()\
14558 {\
14559 func_len_result=${#1}\
14560 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14561 && mv -f "$cfgfile.tmp" "$cfgfile" \
14562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14563 test 0 -eq $? || _lt_function_replace_fail=:
14564
14565 fi
14566
14567 if test x"$lt_shell_append" = xyes; then
14568 sed -e '/^func_append ()$/,/^} # func_append /c\
14569 func_append ()\
14570 {\
14571 eval "${1}+=\\${2}"\
14572 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14573 && mv -f "$cfgfile.tmp" "$cfgfile" \
14574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575 test 0 -eq $? || _lt_function_replace_fail=:
14576
14577
14578 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14579 func_append_quoted ()\
14580 {\
14581 \ func_quote_for_eval "${2}"\
14582 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14583 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589 # Save a `func_append' function call where possible by direct use of '+='
14590 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14591 && mv -f "$cfgfile.tmp" "$cfgfile" \
14592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14593 test 0 -eq $? || _lt_function_replace_fail=:
14594 else
14595 # Save a `func_append' function call even when '+=' is not available
14596 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14597 && mv -f "$cfgfile.tmp" "$cfgfile" \
14598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14599 test 0 -eq $? || _lt_function_replace_fail=:
14600 fi
14601
14602 if test x"$_lt_function_replace_fail" = x":"; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14604 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14605 fi
14606
14607
14608 mv -f "$cfgfile" "$ofile" ||
14609 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14610 chmod +x "$ofile"
14611
14612 ;;
14613
14614 esac
14615 done # for ac_tag
14616
14617
14618 as_fn_exit 0
14619 _ACEOF
14620 ac_clean_files=$ac_clean_files_save
14621
14622 test $ac_write_fail = 0 ||
14623 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14624
14625
14626 # configure is writing to config.log, and then calls config.status.
14627 # config.status does its own redirection, appending to config.log.
14628 # Unfortunately, on DOS this fails, as config.log is still kept open
14629 # by configure, so config.status won't be able to write to it; its
14630 # output is simply discarded. So we exec the FD to /dev/null,
14631 # effectively closing config.log, so it can be properly (re)opened and
14632 # appended to by config.status. When coming back to configure, we
14633 # need to make the FD available again.
14634 if test "$no_create" != yes; then
14635 ac_cs_success=:
14636 ac_config_status_args=
14637 test "$silent" = yes &&
14638 ac_config_status_args="$ac_config_status_args --quiet"
14639 exec 5>/dev/null
14640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14641 exec 5>>config.log
14642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14643 # would make configure fail if this is the last instruction.
14644 $ac_cs_success || as_fn_exit 1
14645 fi
14646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14649 fi
14650