Import Upstream version 0.69.0
[hcoop/debian/courier-authlib.git] / libs / rfc822 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for rfc822lib 0.13.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell 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='rfc822lib'
592 PACKAGE_TARNAME='rfc822lib'
593 PACKAGE_VERSION='0.13'
594 PACKAGE_STRING='rfc822lib 0.13'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="rfc822.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 LIBIDN_LIBS
642 LIBIDN_CFLAGS
643 PKG_CONFIG_LIBDIR
644 PKG_CONFIG_PATH
645 PKG_CONFIG
646 LT_SYS_LIBRARY_PATH
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
655 AR
656 DLLTOOL
657 OBJDUMP
658 LN_S
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 EGREP
675 GREP
676 CPP
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_aix_soname
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_largefile
773 with_libidn
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 LT_SYS_LIBRARY_PATH
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 LIBIDN_CFLAGS
789 LIBIDN_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures rfc822lib 0.13 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of rfc822lib 0.13:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --disable-largefile omit support for large files
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-aix-soname=aix|svr4|both
1427 shared library versioning (aka "SONAME") variant to
1428 provide on AIX, [default=aix].
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431 compiler's sysroot if not specified).
1432 --with-libidn=DIR Support IDN (needs GNU Libidn)
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 LT_SYS_LIBRARY_PATH
1444 User-defined run-time library search path.
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 LIBIDN_CFLAGS
1451 C compiler flags for LIBIDN, overriding pkg-config
1452 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <courier-users@lists.sourceforge.net>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515 fi
1516
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519 cat <<\_ACEOF
1520 rfc822lib configure 0.13
1521 generated by GNU Autoconf 2.69
1522
1523 Copyright (C) 2012 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527 exit
1528 fi
1529
1530 ## ------------------------ ##
1531 ## Autoconf initialization. ##
1532 ## ------------------------ ##
1533
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_compile
1571
1572 # ac_fn_c_try_cpp LINENO
1573 # ----------------------
1574 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_cpp ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_cpp
1608
1609 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1612 # the include files in INCLUDES and setting the cache variable VAR
1613 # accordingly.
1614 ac_fn_c_check_header_mongrel ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if eval \${$3+:} false; then :
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622 fi
1623 eval ac_res=\$$3
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 $as_echo "$ac_res" >&6; }
1626 else
1627 # Is the header compilable?
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1629 $as_echo_n "checking $2 usability... " >&6; }
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_header_compiler=yes
1637 else
1638 ac_header_compiler=no
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1642 $as_echo "$ac_header_compiler" >&6; }
1643
1644 # Is the header present?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1646 $as_echo_n "checking $2 presence... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_cpp "$LINENO"; then :
1652 ac_header_preproc=yes
1653 else
1654 ac_header_preproc=no
1655 fi
1656 rm -f conftest.err conftest.i conftest.$ac_ext
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1658 $as_echo "$ac_header_preproc" >&6; }
1659
1660 # So? What about this header?
1661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1662 yes:no: )
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1664 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ;;
1668 no:yes:* )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1670 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1672 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1674 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1676 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 ( $as_echo "## -------------------------------------------------- ##
1680 ## Report this to courier-users@lists.sourceforge.net ##
1681 ## -------------------------------------------------- ##"
1682 ) | sed "s/^/$as_me: WARNING: /" >&2
1683 ;;
1684 esac
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 eval "$3=\$ac_header_compiler"
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_mongrel
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=$ac_status
1735 fi
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 $4
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761 else
1762 eval "$3=no"
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_header_compile
1772
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_link ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 test -x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_link
1818
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1835
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1846
1847 #undef $2
1848
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1862
1863 int
1864 main ()
1865 {
1866 return $2 ();
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_func
1885
1886 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1887 # -------------------------------------------
1888 # Tests whether TYPE exists after having included INCLUDES, setting cache
1889 # variable VAR accordingly.
1890 ac_fn_c_check_type ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 eval "$3=no"
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 int
1903 main ()
1904 {
1905 if (sizeof ($2))
1906 return 0;
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 if (sizeof (($2)))
1919 return 0;
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925
1926 else
1927 eval "$3=yes"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_type
1939 cat >config.log <<_ACEOF
1940 This file contains any messages produced by compilers while
1941 running configure, to aid debugging if configure makes a mistake.
1942
1943 It was created by rfc822lib $as_me 0.13, which was
1944 generated by GNU Autoconf 2.69. Invocation command line was
1945
1946 $ $0 $@
1947
1948 _ACEOF
1949 exec 5>>config.log
1950 {
1951 cat <<_ASUNAME
1952 ## --------- ##
1953 ## Platform. ##
1954 ## --------- ##
1955
1956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964
1965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972
1973 _ASUNAME
1974
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 $as_echo "PATH: $as_dir"
1981 done
1982 IFS=$as_save_IFS
1983
1984 } >&5
1985
1986 cat >&5 <<_ACEOF
1987
1988
1989 ## ----------- ##
1990 ## Core tests. ##
1991 ## ----------- ##
1992
1993 _ACEOF
1994
1995
1996 # Keep a trace of the command line.
1997 # Strip out --no-create and --no-recursion so they do not pile up.
1998 # Strip out --silent because we don't want to record it for future runs.
1999 # Also quote any args containing shell meta-characters.
2000 # Make two passes to allow for proper duplicate-argument suppression.
2001 ac_configure_args=
2002 ac_configure_args0=
2003 ac_configure_args1=
2004 ac_must_keep_next=false
2005 for ac_pass in 1 2
2006 do
2007 for ac_arg
2008 do
2009 case $ac_arg in
2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012 | -silent | --silent | --silen | --sile | --sil)
2013 continue ;;
2014 *\'*)
2015 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 esac
2017 case $ac_pass in
2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 2)
2020 as_fn_append ac_configure_args1 " '$ac_arg'"
2021 if test $ac_must_keep_next = true; then
2022 ac_must_keep_next=false # Got value, back to normal.
2023 else
2024 case $ac_arg in
2025 *=* | --config-cache | -C | -disable-* | --disable-* \
2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028 | -with-* | --with-* | -without-* | --without-* | --x)
2029 case "$ac_configure_args0 " in
2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031 esac
2032 ;;
2033 -* ) ac_must_keep_next=true ;;
2034 esac
2035 fi
2036 as_fn_append ac_configure_args " '$ac_arg'"
2037 ;;
2038 esac
2039 done
2040 done
2041 { ac_configure_args0=; unset ac_configure_args0;}
2042 { ac_configure_args1=; unset ac_configure_args1;}
2043
2044 # When interrupted or exit'd, cleanup temporary files, and complete
2045 # config.log. We remove comments because anyway the quotes in there
2046 # would cause problems or look ugly.
2047 # WARNING: Use '\'' to represent an apostrophe within the trap.
2048 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049 trap 'exit_status=$?
2050 # Save into config.log some information that might help in debugging.
2051 {
2052 echo
2053
2054 $as_echo "## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##"
2057 echo
2058 # The following way of writing the cache mishandles newlines in values,
2059 (
2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in #(
2063 *${as_nl}*)
2064 case $ac_var in #(
2065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067 esac
2068 case $ac_var in #(
2069 _ | IFS | as_nl) ;; #(
2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071 *) { eval $ac_var=; unset $ac_var;} ;;
2072 esac ;;
2073 esac
2074 done
2075 (set) 2>&1 |
2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077 *${as_nl}ac_space=\ *)
2078 sed -n \
2079 "s/'\''/'\''\\\\'\'''\''/g;
2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081 ;; #(
2082 *)
2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 ;;
2085 esac |
2086 sort
2087 )
2088 echo
2089
2090 $as_echo "## ----------------- ##
2091 ## Output variables. ##
2092 ## ----------------- ##"
2093 echo
2094 for ac_var in $ac_subst_vars
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103
2104 if test -n "$ac_subst_files"; then
2105 $as_echo "## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##"
2108 echo
2109 for ac_var in $ac_subst_files
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118 fi
2119
2120 if test -s confdefs.h; then
2121 $as_echo "## ----------- ##
2122 ## confdefs.h. ##
2123 ## ----------- ##"
2124 echo
2125 cat confdefs.h
2126 echo
2127 fi
2128 test "$ac_signal" != 0 &&
2129 $as_echo "$as_me: caught signal $ac_signal"
2130 $as_echo "$as_me: exit $exit_status"
2131 } >&5
2132 rm -f core *.core core.conftest.* &&
2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134 exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 $as_echo "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_NAME "$PACKAGE_NAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_STRING "$PACKAGE_STRING"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_URL "$PACKAGE_URL"
2170 _ACEOF
2171
2172
2173 # Let the site file select an alternate cache file if it wants to.
2174 # Prefer an explicitly selected file to automatically selected ones.
2175 ac_site_file1=NONE
2176 ac_site_file2=NONE
2177 if test -n "$CONFIG_SITE"; then
2178 # We do not want a PATH search for config.site.
2179 case $CONFIG_SITE in #((
2180 -*) ac_site_file1=./$CONFIG_SITE;;
2181 */*) ac_site_file1=$CONFIG_SITE;;
2182 *) ac_site_file1=./$CONFIG_SITE;;
2183 esac
2184 elif test "x$prefix" != xNONE; then
2185 ac_site_file1=$prefix/share/config.site
2186 ac_site_file2=$prefix/etc/config.site
2187 else
2188 ac_site_file1=$ac_default_prefix/share/config.site
2189 ac_site_file2=$ac_default_prefix/etc/config.site
2190 fi
2191 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192 do
2193 test "x$ac_site_file" = xNONE && continue
2194 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2196 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197 sed 's/^/| /' "$ac_site_file" >&5
2198 . "$ac_site_file" \
2199 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 as_fn_error $? "failed to load site script $ac_site_file
2202 See \`config.log' for more details" "$LINENO" 5; }
2203 fi
2204 done
2205
2206 if test -r "$cache_file"; then
2207 # Some versions of bash will fail to source /dev/null (special files
2208 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2209 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211 $as_echo "$as_me: loading cache $cache_file" >&6;}
2212 case $cache_file in
2213 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214 *) . "./$cache_file";;
2215 esac
2216 fi
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219 $as_echo "$as_me: creating cache $cache_file" >&6;}
2220 >$cache_file
2221 fi
2222
2223 # Check that the precious variables saved in the cache have kept the same
2224 # value.
2225 ac_cache_corrupted=false
2226 for ac_var in $ac_precious_vars; do
2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228 eval ac_new_set=\$ac_env_${ac_var}_set
2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230 eval ac_new_val=\$ac_env_${ac_var}_value
2231 case $ac_old_set,$ac_new_set in
2232 set,)
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235 ac_cache_corrupted=: ;;
2236 ,set)
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2240 ,);;
2241 *)
2242 if test "x$ac_old_val" != "x$ac_new_val"; then
2243 # differences in whitespace do not lead to failure.
2244 ac_old_val_w=`echo x $ac_old_val`
2245 ac_new_val_w=`echo x $ac_new_val`
2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249 ac_cache_corrupted=:
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253 eval $ac_var=\$ac_old_val
2254 fi
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2256 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2258 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2259 fi;;
2260 esac
2261 # Pass precious variables to config.status.
2262 if test "$ac_new_set" = set; then
2263 case $ac_new_val in
2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 *) ac_arg=$ac_var=$ac_new_val ;;
2266 esac
2267 case " $ac_configure_args " in
2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270 esac
2271 fi
2272 done
2273 if $ac_cache_corrupted; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279 fi
2280 ## -------------------- ##
2281 ## Main body of script. ##
2282 ## -------------------- ##
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291
2292 >confdefs.h # Kill PACKAGE_ macros
2293
2294
2295 ac_aux_dir=
2296 for ac_dir in ../.. "$srcdir"/../..; do
2297 if test -f "$ac_dir/install-sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install-sh -c"
2300 break
2301 elif test -f "$ac_dir/install.sh"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/install.sh -c"
2304 break
2305 elif test -f "$ac_dir/shtool"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/shtool install -c"
2308 break
2309 fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322
2323
2324 am__api_version='1.15'
2325
2326 # Find a good install program. We prefer a C program (faster),
2327 # so one script is as good as another. But avoid the broken or
2328 # incompatible versions:
2329 # SysV /etc/install, /usr/sbin/install
2330 # SunOS /usr/etc/install
2331 # IRIX /sbin/install
2332 # AIX /bin/install
2333 # AmigaOS /C/install, which installs bootblocks on floppy discs
2334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337 # OS/2's system install, which has a completely different semantic
2338 # ./install, which can be erroneously created by make from ./install.sh.
2339 # Reject install programs that cannot install multiple files.
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2342 if test -z "$INSTALL"; then
2343 if ${ac_cv_path_install+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352 case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2384 fi
2385 fi
2386 fi
2387 done
2388 done
2389 ;;
2390 esac
2391
2392 done
2393 IFS=$as_save_IFS
2394
2395 rm -rf conftest.one conftest.two conftest.dir
2396
2397 fi
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2406 fi
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409 $as_echo "$INSTALL" >&6; }
2410
2411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412 # It thinks the first close brace ends the variable substitution.
2413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420 $as_echo_n "checking whether build environment is sane... " >&6; }
2421 # Reject unsafe characters in $srcdir or the absolute working directory
2422 # name. Accept space and tab only in the latter.
2423 am_lf='
2424 '
2425 case `pwd` in
2426 *[\\\"\#\$\&\'\`$am_lf]*)
2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428 esac
2429 case $srcdir in
2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432 esac
2433
2434 # Do 'set' in a subshell so we don't clobber the current shell's
2435 # arguments. Must try -L first in case configure is actually a
2436 # symlink; some systems play weird games with the mod time of symlinks
2437 # (eg FreeBSD returns the mod time of the symlink's containing
2438 # directory).
2439 if (
2440 am_has_slept=no
2441 for am_try in 1 2; do
2442 echo "timestamp, slept: $am_has_slept" > conftest.file
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2447 fi
2448 if test "$*" != "X $srcdir/configure conftest.file" \
2449 && test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451 # If neither matched, then we have a broken ls. This can happen
2452 # if, for instance, CONFIG_SHELL is bash and it inherits a
2453 # broken ls alias from the environment. This has actually
2454 # happened. Such a system could not be considered "sane".
2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2456 alias in your environment" "$LINENO" 5
2457 fi
2458 if test "$2" = conftest.file || test $am_try -eq 2; then
2459 break
2460 fi
2461 # Just in case.
2462 sleep 1
2463 am_has_slept=yes
2464 done
2465 test "$2" = conftest.file
2466 )
2467 then
2468 # Ok.
2469 :
2470 else
2471 as_fn_error $? "newly created file is older than distributed files!
2472 Check your system clock" "$LINENO" 5
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475 $as_echo "yes" >&6; }
2476 # If we didn't sleep, we still need to ensure time stamps of config.status and
2477 # generated files are strictly newer.
2478 am_sleep_pid=
2479 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480 ( sleep 1 ) &
2481 am_sleep_pid=$!
2482 fi
2483
2484 rm -f conftest.file
2485
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496 # Expand $ac_aux_dir to an absolute path.
2497 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2498
2499 if test x"${MISSING+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 *)
2504 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505 esac
2506 fi
2507 # Use eval to expand $SHELL
2508 if eval "$MISSING --is-lightweight"; then
2509 am_missing_run="$MISSING "
2510 else
2511 am_missing_run=
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514 fi
2515
2516 if test x"${install_sh+set}" != xset; then
2517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 *)
2521 install_sh="\${SHELL} $am_aux_dir/install-sh"
2522 esac
2523 fi
2524
2525 # Installed binaries are usually stripped using 'strip' when the user
2526 # run "make install-strip". However 'strip' might not be the right
2527 # tool to use in cross-compilation environments, therefore Automake
2528 # will honor the 'STRIP' environment variable to overrule this program.
2529 if test "$cross_compiling" != no; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}strip; ac_word=$2
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if ${ac_cv_prog_STRIP+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 if test -n "$STRIP"; then
2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552 done
2553 done
2554 IFS=$as_save_IFS
2555
2556 fi
2557 fi
2558 STRIP=$ac_cv_prog_STRIP
2559 if test -n "$STRIP"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2561 $as_echo "$STRIP" >&6; }
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 fi
2566
2567
2568 fi
2569 if test -z "$ac_cv_prog_STRIP"; then
2570 ac_ct_STRIP=$STRIP
2571 # Extract the first word of "strip", so it can be a program name with args.
2572 set dummy strip; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$ac_ct_STRIP"; then
2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_STRIP="strip"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599 if test -n "$ac_ct_STRIP"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2601 $as_echo "$ac_ct_STRIP" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607 if test "x$ac_ct_STRIP" = x; then
2608 STRIP=":"
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616 STRIP=$ac_ct_STRIP
2617 fi
2618 else
2619 STRIP="$ac_cv_prog_STRIP"
2620 fi
2621
2622 fi
2623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2627 if test -z "$MKDIR_P"; then
2628 if ${ac_cv_path_mkdir+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in mkdir gmkdir; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640 'mkdir (GNU coreutils) '* | \
2641 'mkdir (coreutils) '* | \
2642 'mkdir (fileutils) '4.1*)
2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644 break 3;;
2645 esac
2646 done
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652
2653 test -d ./--version && rmdir ./--version
2654 if test "${ac_cv_path_mkdir+set}" = set; then
2655 MKDIR_P="$ac_cv_path_mkdir -p"
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for MKDIR_P within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
2661 MKDIR_P="$ac_install_sh -d"
2662 fi
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2665 $as_echo "$MKDIR_P" >&6; }
2666
2667 for ac_prog in gawk mawk nawk awk
2668 do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_AWK+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 AWK=$ac_cv_prog_AWK
2697 if test -n "$AWK"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699 $as_echo "$AWK" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 fi
2704
2705
2706 test -n "$AWK" && break
2707 done
2708
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2710 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711 set x ${MAKE-make}
2712 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2713 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 cat >conftest.make <<\_ACEOF
2717 SHELL = /bin/sh
2718 all:
2719 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720 _ACEOF
2721 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2722 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 *@@@%%%=?*=@@@%%%*)
2724 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 *)
2726 eval ac_cv_prog_make_${ac_make}_set=no;;
2727 esac
2728 rm -f conftest.make
2729 fi
2730 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 SET_MAKE=
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 SET_MAKE="MAKE=${MAKE-make}"
2738 fi
2739
2740 rm -rf .tst 2>/dev/null
2741 mkdir .tst 2>/dev/null
2742 if test -d .tst; then
2743 am__leading_dot=.
2744 else
2745 am__leading_dot=_
2746 fi
2747 rmdir .tst 2>/dev/null
2748
2749 # Check whether --enable-silent-rules was given.
2750 if test "${enable_silent_rules+set}" = set; then :
2751 enableval=$enable_silent_rules;
2752 fi
2753
2754 case $enable_silent_rules in # (((
2755 yes) AM_DEFAULT_VERBOSITY=0;;
2756 no) AM_DEFAULT_VERBOSITY=1;;
2757 *) AM_DEFAULT_VERBOSITY=1;;
2758 esac
2759 am_make=${MAKE-make}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762 if ${am_cv_make_support_nested_variables+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if $as_echo 'TRUE=$(BAR$(V))
2766 BAR0=false
2767 BAR1=true
2768 V=1
2769 am__doit:
2770 @$(TRUE)
2771 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772 am_cv_make_support_nested_variables=yes
2773 else
2774 am_cv_make_support_nested_variables=no
2775 fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2779 if test $am_cv_make_support_nested_variables = yes; then
2780 AM_V='$(V)'
2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2782 else
2783 AM_V=$AM_DEFAULT_VERBOSITY
2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2785 fi
2786 AM_BACKSLASH='\'
2787
2788 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2790 # is not polluted with repeated "-I."
2791 am__isrc=' -I$(srcdir)'
2792 # test to see if srcdir already configured
2793 if test -f $srcdir/config.status; then
2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2795 fi
2796 fi
2797
2798 # test whether we have cygpath
2799 if test -z "$CYGPATH_W"; then
2800 if (cygpath --version) >/dev/null 2>/dev/null; then
2801 CYGPATH_W='cygpath -w'
2802 else
2803 CYGPATH_W=echo
2804 fi
2805 fi
2806
2807
2808 # Define the identity of the package.
2809 PACKAGE='rfc822lib'
2810 VERSION='0.13'
2811
2812
2813 # Some tools Automake needs.
2814
2815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816
2817
2818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819
2820
2821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822
2823
2824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
2826
2827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828
2829 # For better backward compatibility. To be removed once Automake 1.9.x
2830 # dies out for good. For more background, see:
2831 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2832 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2833 mkdir_p='$(MKDIR_P)'
2834
2835 # We need awk for the "check" target (and possibly the TAP driver). The
2836 # system "awk" is bad on some platforms.
2837 # Always define AMTAR for backward compatibility. Yes, it's still used
2838 # in the wild :-( We should find a proper way to deprecate it ...
2839 AMTAR='$${TAR-tar}'
2840
2841
2842 # We'll loop over all known methods to create a tar archive until one works.
2843 _am_tools='gnutar pax cpio none'
2844
2845 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846
2847
2848
2849
2850
2851
2852 # POSIX will say in a future version that running "rm -f" with no argument
2853 # is OK; and we want to be able to make that assumption in our Makefile
2854 # recipes. So use an aggressive probe to check that the usage we want is
2855 # actually supported "in the wild" to an acceptable degree.
2856 # See automake bug#10828.
2857 # To make any issue more visible, cause the running configure to be aborted
2858 # by default if the 'rm' program in use doesn't match our expectations; the
2859 # user can still override this though.
2860 if rm -f && rm -fr && rm -rf; then : OK; else
2861 cat >&2 <<'END'
2862 Oops!
2863
2864 Your 'rm' program seems unable to run without file operands specified
2865 on the command line, even when the '-f' option is present. This is contrary
2866 to the behaviour of most rm programs out there, and not conforming with
2867 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2868
2869 Please tell bug-automake@gnu.org about your system, including the value
2870 of your $PATH and any error possibly output before this message. This
2871 can help us improve future automake versions.
2872
2873 END
2874 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2875 echo 'Configuration will proceed anyway, since you have set the' >&2
2876 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2877 echo >&2
2878 else
2879 cat >&2 <<'END'
2880 Aborting the configuration process, to ensure you take notice of the issue.
2881
2882 You can download and install GNU coreutils to get an 'rm' implementation
2883 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2884
2885 If you want to complete the configuration process using your problematic
2886 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2887 to "yes", and re-run configure.
2888
2889 END
2890 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2891 fi
2892 fi
2893
2894 ac_config_headers="$ac_config_headers config.h"
2895
2896
2897 DEPDIR="${am__leading_dot}deps"
2898
2899 ac_config_commands="$ac_config_commands depfiles"
2900
2901
2902 am_make=${MAKE-make}
2903 cat > confinc << 'END'
2904 am__doit:
2905 @echo this is the am__doit target
2906 .PHONY: am__doit
2907 END
2908 # If we don't find an include directive, just comment out the code.
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2910 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2911 am__include="#"
2912 am__quote=
2913 _am_result=none
2914 # First try GNU make style include.
2915 echo "include confinc" > confmf
2916 # Ignore all kinds of additional output from 'make'.
2917 case `$am_make -s -f confmf 2> /dev/null` in #(
2918 *the\ am__doit\ target*)
2919 am__include=include
2920 am__quote=
2921 _am_result=GNU
2922 ;;
2923 esac
2924 # Now try BSD make style include.
2925 if test "$am__include" = "#"; then
2926 echo '.include "confinc"' > confmf
2927 case `$am_make -s -f confmf 2> /dev/null` in #(
2928 *the\ am__doit\ target*)
2929 am__include=.include
2930 am__quote="\""
2931 _am_result=BSD
2932 ;;
2933 esac
2934 fi
2935
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2938 $as_echo "$_am_result" >&6; }
2939 rm -f confinc confmf
2940
2941 # Check whether --enable-dependency-tracking was given.
2942 if test "${enable_dependency_tracking+set}" = set; then :
2943 enableval=$enable_dependency_tracking;
2944 fi
2945
2946 if test "x$enable_dependency_tracking" != xno; then
2947 am_depcomp="$ac_aux_dir/depcomp"
2948 AMDEPBACKSLASH='\'
2949 am__nodep='_no'
2950 fi
2951 if test "x$enable_dependency_tracking" != xno; then
2952 AMDEP_TRUE=
2953 AMDEP_FALSE='#'
2954 else
2955 AMDEP_TRUE='#'
2956 AMDEP_FALSE=
2957 fi
2958
2959
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 CC=$ac_ct_CC
3052 fi
3053 else
3054 CC="$ac_cv_prog_CC"
3055 fi
3056
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 fi
3097 fi
3098 if test -z "$CC"; then
3099 # Extract the first word of "cc", so it can be a program name with args.
3100 set dummy cc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 ac_prog_rejected=no
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3118 ac_prog_rejected=yes
3119 continue
3120 fi
3121 ac_cv_prog_CC="cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 fi
3140 fi
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 for ac_prog in cl.exe
3157 do
3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 test -n "$CC" && break
3196 done
3197 fi
3198 if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl.exe
3201 do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230 if test -n "$ac_ct_CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232 $as_echo "$ac_ct_CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 test -n "$ac_ct_CC" && break
3240 done
3241
3242 if test "x$ac_ct_CC" = x; then
3243 CC=""
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251 CC=$ac_ct_CC
3252 fi
3253 fi
3254
3255 fi
3256
3257
3258 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "no acceptable C compiler found in \$PATH
3261 See \`config.log' for more details" "$LINENO" 5; }
3262
3263 # Provide some information about the compiler.
3264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 set X $ac_compile
3266 ac_compiler=$2
3267 for ac_option in --version -v -V -qversion; do
3268 { { ac_try="$ac_compiler $ac_option >&5"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 ac_status=$?
3277 if test -s conftest.err; then
3278 sed '10a\
3279 ... rest of stderr output deleted ...
3280 10q' conftest.err >conftest.er1
3281 cat conftest.er1 >&5
3282 fi
3283 rm -f conftest.er1 conftest.err
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 done
3287
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 ac_clean_files_save=$ac_clean_files
3300 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3301 # Try to create an executable without -o first, disregard a.out.
3302 # It will help us diagnose broken compilers, and finding out an intuition
3303 # of exeext.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3305 $as_echo_n "checking whether the C compiler works... " >&6; }
3306 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307
3308 # The possible output files:
3309 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310
3311 ac_rmfiles=
3312 for ac_file in $ac_files
3313 do
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 esac
3318 done
3319 rm -f $ac_rmfiles
3320
3321 if { { ac_try="$ac_link_default"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link_default") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3336 # Autoconf.
3337 for ac_file in $ac_files ''
3338 do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 ;;
3343 [ab].out )
3344 # We found the default executable, but exeext='' is most
3345 # certainly right.
3346 break;;
3347 *.* )
3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 then :; else
3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 fi
3352 # We set ac_cv_exeext here because the later test for it is not
3353 # safe: cross compilers may not add the suffix if given an `-o'
3354 # argument, so we may need to know it at that point already.
3355 # Even if this section looks crufty: it has the advantage of
3356 # actually working.
3357 break;;
3358 * )
3359 break;;
3360 esac
3361 done
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364 else
3365 ac_file=''
3366 fi
3367 if test -z "$ac_file"; then :
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error 77 "C compiler cannot create executables
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382 $as_echo_n "checking for C compiler default output file name... " >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 ac_exeext=$ac_cv_exeext
3386
3387 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390 $as_echo_n "checking for suffix of executables... " >&6; }
3391 if { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3404 # work properly (i.e., refer to `conftest.exe'), while it won't with
3405 # `rm'.
3406 for ac_file in conftest.exe conftest conftest.*; do
3407 test -f "$ac_file" || continue
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 break;;
3412 * ) break;;
3413 esac
3414 done
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest conftest$ac_cv_exeext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3424
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3427 ac_exeext=$EXEEXT
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 #include <stdio.h>
3431 int
3432 main ()
3433 {
3434 FILE *f = fopen ("conftest.out", "w");
3435 return ferror (f) || fclose (f) != 0;
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files="$ac_clean_files conftest.out"
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 if test "$cross_compiling" != yes; then
3447 { { ac_try="$ac_link"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_link") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 if { ac_try='./conftest$ac_cv_exeext'
3459 { { case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; }; then
3469 cross_compiling=no
3470 else
3471 if test "$cross_compiling" = maybe; then
3472 cross_compiling=yes
3473 else
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "cannot run C compiled programs.
3477 If you meant to cross compile, use \`--host'.
3478 See \`config.log' for more details" "$LINENO" 5; }
3479 fi
3480 fi
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483 $as_echo "$cross_compiling" >&6; }
3484
3485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 $as_echo_n "checking for suffix of object files... " >&6; }
3489 if ${ac_cv_objext+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.o conftest.obj
3504 if { { ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_compile") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 break;;
3521 esac
3522 done
3523 else
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535 $as_echo "$ac_cv_objext" >&6; }
3536 OBJEXT=$ac_cv_objext
3537 ac_objext=$OBJEXT
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540 if ${ac_cv_c_compiler_gnu+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550 choke me
3551 #endif
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_compiler_gnu=yes
3559 else
3560 ac_compiler_gnu=no
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569 GCC=yes
3570 else
3571 GCC=
3572 fi
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if ${ac_cv_prog_cc_g+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 ac_save_c_werror_flag=$ac_c_werror_flag
3581 ac_c_werror_flag=yes
3582 ac_cv_prog_cc_g=no
3583 CFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_g=yes
3597 else
3598 CFLAGS=""
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611
3612 else
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 CFLAGS="-g"
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_cv_prog_cc_g=yes
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 $as_echo "$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3642 CFLAGS="-g -O2"
3643 else
3644 CFLAGS="-g"
3645 fi
3646 else
3647 if test "$GCC" = yes; then
3648 CFLAGS="-O2"
3649 else
3650 CFLAGS=
3651 fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if ${ac_cv_prog_cc_c89+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662 #include <stdarg.h>
3663 #include <stdio.h>
3664 struct stat;
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3669 char **p;
3670 int i;
3671 {
3672 return p[i];
3673 }
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3675 {
3676 char *s;
3677 va_list v;
3678 va_start (v,p);
3679 s = g (p, va_arg (v,int));
3680 va_end (v);
3681 return s;
3682 }
3683
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std. */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692
3693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694 inside strings and character constants. */
3695 #define FOO(x) 'x'
3696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3697
3698 int test (int i, double x);
3699 struct s1 {int (*f) (int a);};
3700 struct s2 {int (*f) (double a);};
3701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 int argc;
3703 char **argv;
3704 int
3705 main ()
3706 {
3707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714 do
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c89=$ac_arg
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3724
3725 fi
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c89" in
3728 x)
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3734 *)
3735 CC="$CC $ac_cv_prog_cc_c89"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738 esac
3739 if test "x$ac_cv_prog_cc_c89" != xno; then :
3740
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3756 if ${am_cv_prog_cc_c_o+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 # Make sure it works both with $CC and with simple cc.
3771 # Following AC_PROG_CC_C_O, we do the test twice because some
3772 # compilers refuse to overwrite an existing .o file with -o,
3773 # though they will create one.
3774 am_cv_prog_cc_c_o=yes
3775 for am_i in 1 2; do
3776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } \
3781 && test -f conftest2.$ac_objext; then
3782 : OK
3783 else
3784 am_cv_prog_cc_c_o=no
3785 break
3786 fi
3787 done
3788 rm -f core conftest*
3789 unset am_i
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3793 if test "$am_cv_prog_cc_c_o" != yes; then
3794 # Losing compiler, so override with the script.
3795 # FIXME: It is wrong to rewrite CC.
3796 # But if we don't then we get into trouble of one sort or another.
3797 # A longer-term fix would be to have automake use am__CC in this case,
3798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3799 CC="$am_aux_dir/compile $CC"
3800 fi
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807
3808 depcc="$CC" am_compiler_list=
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3811 $as_echo_n "checking dependency style of $depcc... " >&6; }
3812 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3816 # We make a subdir and do the tests there. Otherwise we can end up
3817 # making bogus files that we don't know about and never remove. For
3818 # instance it was reported that on HP-UX the gcc test will end up
3819 # making a dummy file named 'D' -- because '-MD' means "put the output
3820 # in D".
3821 rm -rf conftest.dir
3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3834
3835 am_cv_CC_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
3839 am__universal=false
3840 case " $depcc " in #(
3841 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3842 esac
3843
3844 for depmode in $am_compiler_list; do
3845 # Setup a source with many dependencies, because some compilers
3846 # like to wrap large dependency lists on column 80 (with \), and
3847 # we should not choose a depcomp mode which is confused by this.
3848 #
3849 # We need to recreate these files for each test, as the compiler may
3850 # overwrite some of them when testing with obscure command lines.
3851 # This happens at least with the AIX C compiler.
3852 : > sub/conftest.c
3853 for i in 1 2 3 4 5 6; do
3854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3856 # Solaris 10 /bin/sh.
3857 echo '/* dummy */' > sub/conftst$i.h
3858 done
3859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860
3861 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3862 # mode. It turns out that the SunPro C++ compiler does not properly
3863 # handle '-M -o', and we need to detect this. Also, some Intel
3864 # versions had trouble with output in subdirs.
3865 am__obj=sub/conftest.${OBJEXT-o}
3866 am__minus_obj="-o $am__obj"
3867 case $depmode in
3868 gcc)
3869 # This depmode causes a compiler race in universal mode.
3870 test "$am__universal" = false || continue
3871 ;;
3872 nosideeffect)
3873 # After this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested.
3875 if test "x$enable_dependency_tracking" = xyes; then
3876 continue
3877 else
3878 break
3879 fi
3880 ;;
3881 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3882 # This compiler won't grok '-c -o', but also, the minuso test has
3883 # not run yet. These depmodes are late enough in the game, and
3884 # so weak that their functioning should not be impacted.
3885 am__obj=conftest.${OBJEXT-o}
3886 am__minus_obj=
3887 ;;
3888 none) break ;;
3889 esac
3890 if depmode=$depmode \
3891 source=sub/conftest.c object=$am__obj \
3892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894 >/dev/null 2>conftest.err &&
3895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899 # icc doesn't choke on unknown options, it will just issue warnings
3900 # or remarks (even with -Werror). So we grep stderr for any message
3901 # that says an option was ignored or not supported.
3902 # When given -MP, icc 7.0 and 7.1 complain thusly:
3903 # icc: Command line warning: ignoring option '-M'; no argument required
3904 # The diagnosis changed in icc 8.0:
3905 # icc: Command line remark: option '-MP' not supported
3906 if (grep 'ignoring option' conftest.err ||
3907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908 am_cv_CC_dependencies_compiler_type=$depmode
3909 break
3910 fi
3911 fi
3912 done
3913
3914 cd ..
3915 rm -rf conftest.dir
3916 else
3917 am_cv_CC_dependencies_compiler_type=none
3918 fi
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3924
3925 if
3926 test "x$enable_dependency_tracking" != xno \
3927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3928 am__fastdepCC_TRUE=
3929 am__fastdepCC_FALSE='#'
3930 else
3931 am__fastdepCC_TRUE='#'
3932 am__fastdepCC_FALSE=
3933 fi
3934
3935
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3946 CPP=
3947 fi
3948 if test -z "$CPP"; then
3949 if ${ac_cv_prog_CPP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 # Double quotes because CPP needs to be expanded
3953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3954 do
3955 ac_preproc_ok=false
3956 for ac_c_preproc_warn_flag in '' yes
3957 do
3958 # Use a header file that comes with gcc, so configuring glibc
3959 # with a fresh cross-compiler works.
3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961 # <limits.h> exists even on freestanding compilers.
3962 # On the NeXT, cc -E runs the code through the compiler's parser,
3963 # not just through cpp. "Syntax error" is here to catch this case.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #ifdef __STDC__
3967 # include <limits.h>
3968 #else
3969 # include <assert.h>
3970 #endif
3971 Syntax error
3972 _ACEOF
3973 if ac_fn_c_try_cpp "$LINENO"; then :
3974
3975 else
3976 # Broken: fails on valid input.
3977 continue
3978 fi
3979 rm -f conftest.err conftest.i conftest.$ac_ext
3980
3981 # OK, works on sane cases. Now check whether nonexistent headers
3982 # can be detected and how.
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 #include <ac_nonexistent.h>
3986 _ACEOF
3987 if ac_fn_c_try_cpp "$LINENO"; then :
3988 # Broken: success on invalid input.
3989 continue
3990 else
3991 # Passes both tests.
3992 ac_preproc_ok=:
3993 break
3994 fi
3995 rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997 done
3998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999 rm -f conftest.i conftest.err conftest.$ac_ext
4000 if $ac_preproc_ok; then :
4001 break
4002 fi
4003
4004 done
4005 ac_cv_prog_CPP=$CPP
4006
4007 fi
4008 CPP=$ac_cv_prog_CPP
4009 else
4010 ac_cv_prog_CPP=$CPP
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013 $as_echo "$CPP" >&6; }
4014 ac_preproc_ok=false
4015 for ac_c_preproc_warn_flag in '' yes
4016 do
4017 # Use a header file that comes with gcc, so configuring glibc
4018 # with a fresh cross-compiler works.
4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020 # <limits.h> exists even on freestanding compilers.
4021 # On the NeXT, cc -E runs the code through the compiler's parser,
4022 # not just through cpp. "Syntax error" is here to catch this case.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #ifdef __STDC__
4026 # include <limits.h>
4027 #else
4028 # include <assert.h>
4029 #endif
4030 Syntax error
4031 _ACEOF
4032 if ac_fn_c_try_cpp "$LINENO"; then :
4033
4034 else
4035 # Broken: fails on valid input.
4036 continue
4037 fi
4038 rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040 # OK, works on sane cases. Now check whether nonexistent headers
4041 # can be detected and how.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <ac_nonexistent.h>
4045 _ACEOF
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4047 # Broken: success on invalid input.
4048 continue
4049 else
4050 # Passes both tests.
4051 ac_preproc_ok=:
4052 break
4053 fi
4054 rm -f conftest.err conftest.i conftest.$ac_ext
4055
4056 done
4057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058 rm -f conftest.i conftest.err conftest.$ac_ext
4059 if $ac_preproc_ok; then :
4060
4061 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details" "$LINENO" 5; }
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077 if ${ac_cv_path_GREP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -z "$GREP"; then
4081 ac_path_GREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in grep ggrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091 as_fn_executable_p "$ac_path_GREP" || continue
4092 # Check for GNU ac_path_GREP and select it if it is found.
4093 # Check for GNU $ac_path_GREP
4094 case `"$ac_path_GREP" --version 2>&1` in
4095 *GNU*)
4096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097 *)
4098 ac_count=0
4099 $as_echo_n 0123456789 >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo 'GREP' >> "conftest.nl"
4106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_GREP="$ac_path_GREP"
4112 ac_path_GREP_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118 esac
4119
4120 $ac_path_GREP_found && break 3
4121 done
4122 done
4123 done
4124 IFS=$as_save_IFS
4125 if test -z "$ac_cv_path_GREP"; then
4126 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4127 fi
4128 else
4129 ac_cv_path_GREP=$GREP
4130 fi
4131
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134 $as_echo "$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139 $as_echo_n "checking for egrep... " >&6; }
4140 if ${ac_cv_path_EGREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4145 else
4146 if test -z "$EGREP"; then
4147 ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in egrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_EGREP" || continue
4158 # Check for GNU ac_path_EGREP and select it if it is found.
4159 # Check for GNU $ac_path_EGREP
4160 case `"$ac_path_EGREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4163 *)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'EGREP' >> "conftest.nl"
4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_EGREP="$ac_path_EGREP"
4178 ac_path_EGREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186 $ac_path_EGREP_found && break 3
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_EGREP"; then
4192 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194 else
4195 ac_cv_path_EGREP=$EGREP
4196 fi
4197
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201 $as_echo "$ac_cv_path_EGREP" >&6; }
4202 EGREP="$ac_cv_path_EGREP"
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206 $as_echo_n "checking for ANSI C header files... " >&6; }
4207 if ${ac_cv_header_stdc+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 #include <stdlib.h>
4213 #include <stdarg.h>
4214 #include <string.h>
4215 #include <float.h>
4216
4217 int
4218 main ()
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_header_stdc=yes
4227 else
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231
4232 if test $ac_cv_header_stdc = yes; then
4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <string.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then :
4241
4242 else
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdlib.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then :
4258
4259 else
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then :
4269 :
4270 else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ctype.h>
4274 #include <stdlib.h>
4275 #if ((' ' & 0x0FF) == 0x020)
4276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278 #else
4279 # define ISLOWER(c) \
4280 (('a' <= (c) && (c) <= 'i') \
4281 || ('j' <= (c) && (c) <= 'r') \
4282 || ('s' <= (c) && (c) <= 'z'))
4283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4284 #endif
4285
4286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4287 int
4288 main ()
4289 {
4290 int i;
4291 for (i = 0; i < 256; i++)
4292 if (XOR (islower (i), ISLOWER (i))
4293 || toupper (i) != TOUPPER (i))
4294 return 2;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_run "$LINENO"; then :
4299
4300 else
4301 ac_cv_header_stdc=no
4302 fi
4303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304 conftest.$ac_objext conftest.beam conftest.$ac_ext
4305 fi
4306
4307 fi
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310 $as_echo "$ac_cv_header_stdc" >&6; }
4311 if test $ac_cv_header_stdc = yes; then
4312
4313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4314
4315 fi
4316
4317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4320 do :
4321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4323 "
4324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325 cat >>confdefs.h <<_ACEOF
4326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 _ACEOF
4328
4329 fi
4330
4331 done
4332
4333
4334
4335 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4336 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4337 MINIX=yes
4338 else
4339 MINIX=
4340 fi
4341
4342
4343 if test "$MINIX" = yes; then
4344
4345 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4346
4347
4348 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4349
4350
4351 $as_echo "#define _MINIX 1" >>confdefs.h
4352
4353 fi
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4357 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4358 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363
4364 # define __EXTENSIONS__ 1
4365 $ac_includes_default
4366 int
4367 main ()
4368 {
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_safe_to_define___extensions__=yes
4376 else
4377 ac_cv_safe_to_define___extensions__=no
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4382 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4383 test $ac_cv_safe_to_define___extensions__ = yes &&
4384 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4385
4386 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4387
4388 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4389
4390 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4391
4392 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4393
4394
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_CC+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 CC=$ac_cv_prog_CC
4429 if test -n "$CC"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4431 $as_echo "$CC" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 fi
4439 if test -z "$ac_cv_prog_CC"; then
4440 ac_ct_CC=$CC
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442 set dummy gcc; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_CC"; then
4449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_CC="gcc"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4469 if test -n "$ac_ct_CC"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4471 $as_echo "$ac_ct_CC" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477 if test "x$ac_ct_CC" = x; then
4478 CC=""
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CC=$ac_ct_CC
4487 fi
4488 else
4489 CC="$ac_cv_prog_CC"
4490 fi
4491
4492 if test -z "$CC"; then
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}cc; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_CC+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_CC="${ac_tool_prefix}cc"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 CC=$ac_cv_prog_CC
4522 if test -n "$CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4524 $as_echo "$CC" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 fi
4529
4530
4531 fi
4532 fi
4533 if test -z "$CC"; then
4534 # Extract the first word of "cc", so it can be a program name with args.
4535 set dummy cc; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 ac_prog_rejected=no
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553 ac_prog_rejected=yes
4554 continue
4555 fi
4556 ac_cv_prog_CC="cc"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 if test $ac_prog_rejected = yes; then
4565 # We found a bogon in the path, so make sure we never use it.
4566 set dummy $ac_cv_prog_CC
4567 shift
4568 if test $# != 0; then
4569 # We chose a different compiler from the bogus one.
4570 # However, it has the same basename, so the bogon will be chosen
4571 # first if we set CC to just the basename; use the full file name.
4572 shift
4573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4574 fi
4575 fi
4576 fi
4577 fi
4578 CC=$ac_cv_prog_CC
4579 if test -n "$CC"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4581 $as_echo "$CC" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 fi
4589 if test -z "$CC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in cl.exe
4592 do
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 CC=$ac_cv_prog_CC
4621 if test -n "$CC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4623 $as_echo "$CC" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630 test -n "$CC" && break
4631 done
4632 fi
4633 if test -z "$CC"; then
4634 ac_ct_CC=$CC
4635 for ac_prog in cl.exe
4636 do
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CC="$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665 if test -n "$ac_ct_CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667 $as_echo "$ac_ct_CC" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 test -n "$ac_ct_CC" && break
4675 done
4676
4677 if test "x$ac_ct_CC" = x; then
4678 CC=""
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686 CC=$ac_ct_CC
4687 fi
4688 fi
4689
4690 fi
4691
4692
4693 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $? "no acceptable C compiler found in \$PATH
4696 See \`config.log' for more details" "$LINENO" 5; }
4697
4698 # Provide some information about the compiler.
4699 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4700 set X $ac_compile
4701 ac_compiler=$2
4702 for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711 ac_status=$?
4712 if test -s conftest.err; then
4713 sed '10a\
4714 ... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
4717 fi
4718 rm -f conftest.er1 conftest.err
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721 done
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4725 if ${ac_cv_c_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734 #ifndef __GNUC__
4735 choke me
4736 #endif
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744 else
4745 ac_compiler_gnu=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753 if test $ac_compiler_gnu = yes; then
4754 GCC=yes
4755 else
4756 GCC=
4757 fi
4758 ac_test_CFLAGS=${CFLAGS+set}
4759 ac_save_CFLAGS=$CFLAGS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4762 if ${ac_cv_prog_cc_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4767 ac_cv_prog_cc_g=no
4768 CFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771
4772 int
4773 main ()
4774 {
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_prog_cc_g=yes
4782 else
4783 CFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 int
4788 main ()
4789 {
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796
4797 else
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4822 $as_echo "$ac_cv_prog_cc_g" >&6; }
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831 else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4840 if ${ac_cv_prog_cc_c89+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 ac_cv_prog_cc_c89=no
4844 ac_save_CC=$CC
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 #include <stdarg.h>
4848 #include <stdio.h>
4849 struct stat;
4850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4851 struct buf { int x; };
4852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4853 static char *e (p, i)
4854 char **p;
4855 int i;
4856 {
4857 return p[i];
4858 }
4859 static char *f (char * (*g) (char **, int), char **p, ...)
4860 {
4861 char *s;
4862 va_list v;
4863 va_start (v,p);
4864 s = g (p, va_arg (v,int));
4865 va_end (v);
4866 return s;
4867 }
4868
4869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4870 function prototypes and stuff, but not '\xHH' hex character constants.
4871 These don't provoke an error unfortunately, instead are silently treated
4872 as 'x'. The following induces an error, until -std is added to get
4873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4874 array size at least. It's necessary to write '\x00'==0 to get something
4875 that's true only with -std. */
4876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4877
4878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4879 inside strings and character constants. */
4880 #define FOO(x) 'x'
4881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4882
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887 int argc;
4888 char **argv;
4889 int
4890 main ()
4891 {
4892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4899 do
4900 CC="$ac_save_CC $ac_arg"
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_prog_cc_c89=$ac_arg
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext
4905 test "x$ac_cv_prog_cc_c89" != "xno" && break
4906 done
4907 rm -f conftest.$ac_ext
4908 CC=$ac_save_CC
4909
4910 fi
4911 # AC_CACHE_VAL
4912 case "x$ac_cv_prog_cc_c89" in
4913 x)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4915 $as_echo "none needed" >&6; } ;;
4916 xno)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918 $as_echo "unsupported" >&6; } ;;
4919 *)
4920 CC="$CC $ac_cv_prog_cc_c89"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4922 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4923 esac
4924 if test "x$ac_cv_prog_cc_c89" != xno; then :
4925
4926 fi
4927
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933
4934 ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4940 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4941 if ${am_cv_prog_cc_c_o+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 # Make sure it works both with $CC and with simple cc.
4956 # Following AC_PROG_CC_C_O, we do the test twice because some
4957 # compilers refuse to overwrite an existing .o file with -o,
4958 # though they will create one.
4959 am_cv_prog_cc_c_o=yes
4960 for am_i in 1 2; do
4961 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4962 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } \
4966 && test -f conftest2.$ac_objext; then
4967 : OK
4968 else
4969 am_cv_prog_cc_c_o=no
4970 break
4971 fi
4972 done
4973 rm -f core conftest*
4974 unset am_i
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4977 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4978 if test "$am_cv_prog_cc_c_o" != yes; then
4979 # Losing compiler, so override with the script.
4980 # FIXME: It is wrong to rewrite CC.
4981 # But if we don't then we get into trouble of one sort or another.
4982 # A longer-term fix would be to have automake use am__CC in this case,
4983 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4984 CC="$am_aux_dir/compile $CC"
4985 fi
4986 ac_ext=c
4987 ac_cpp='$CPP $CPPFLAGS'
4988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991
4992
4993 depcc="$CC" am_compiler_list=
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4996 $as_echo_n "checking dependency style of $depcc... " >&6; }
4997 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5001 # We make a subdir and do the tests there. Otherwise we can end up
5002 # making bogus files that we don't know about and never remove. For
5003 # instance it was reported that on HP-UX the gcc test will end up
5004 # making a dummy file named 'D' -- because '-MD' means "put the output
5005 # in D".
5006 rm -rf conftest.dir
5007 mkdir conftest.dir
5008 # Copy depcomp to subdir because otherwise we won't find it if we're
5009 # using a relative directory.
5010 cp "$am_depcomp" conftest.dir
5011 cd conftest.dir
5012 # We will build objects and dependencies in a subdirectory because
5013 # it helps to detect inapplicable dependency modes. For instance
5014 # both Tru64's cc and ICC support -MD to output dependencies as a
5015 # side effect of compilation, but ICC will put the dependencies in
5016 # the current directory while Tru64 will put them in the object
5017 # directory.
5018 mkdir sub
5019
5020 am_cv_CC_dependencies_compiler_type=none
5021 if test "$am_compiler_list" = ""; then
5022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5023 fi
5024 am__universal=false
5025 case " $depcc " in #(
5026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5027 esac
5028
5029 for depmode in $am_compiler_list; do
5030 # Setup a source with many dependencies, because some compilers
5031 # like to wrap large dependency lists on column 80 (with \), and
5032 # we should not choose a depcomp mode which is confused by this.
5033 #
5034 # We need to recreate these files for each test, as the compiler may
5035 # overwrite some of them when testing with obscure command lines.
5036 # This happens at least with the AIX C compiler.
5037 : > sub/conftest.c
5038 for i in 1 2 3 4 5 6; do
5039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5041 # Solaris 10 /bin/sh.
5042 echo '/* dummy */' > sub/conftst$i.h
5043 done
5044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5045
5046 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5047 # mode. It turns out that the SunPro C++ compiler does not properly
5048 # handle '-M -o', and we need to detect this. Also, some Intel
5049 # versions had trouble with output in subdirs.
5050 am__obj=sub/conftest.${OBJEXT-o}
5051 am__minus_obj="-o $am__obj"
5052 case $depmode in
5053 gcc)
5054 # This depmode causes a compiler race in universal mode.
5055 test "$am__universal" = false || continue
5056 ;;
5057 nosideeffect)
5058 # After this tag, mechanisms are not by side-effect, so they'll
5059 # only be used when explicitly requested.
5060 if test "x$enable_dependency_tracking" = xyes; then
5061 continue
5062 else
5063 break
5064 fi
5065 ;;
5066 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5067 # This compiler won't grok '-c -o', but also, the minuso test has
5068 # not run yet. These depmodes are late enough in the game, and
5069 # so weak that their functioning should not be impacted.
5070 am__obj=conftest.${OBJEXT-o}
5071 am__minus_obj=
5072 ;;
5073 none) break ;;
5074 esac
5075 if depmode=$depmode \
5076 source=sub/conftest.c object=$am__obj \
5077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5079 >/dev/null 2>conftest.err &&
5080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5084 # icc doesn't choke on unknown options, it will just issue warnings
5085 # or remarks (even with -Werror). So we grep stderr for any message
5086 # that says an option was ignored or not supported.
5087 # When given -MP, icc 7.0 and 7.1 complain thusly:
5088 # icc: Command line warning: ignoring option '-M'; no argument required
5089 # The diagnosis changed in icc 8.0:
5090 # icc: Command line remark: option '-MP' not supported
5091 if (grep 'ignoring option' conftest.err ||
5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5093 am_cv_CC_dependencies_compiler_type=$depmode
5094 break
5095 fi
5096 fi
5097 done
5098
5099 cd ..
5100 rm -rf conftest.dir
5101 else
5102 am_cv_CC_dependencies_compiler_type=none
5103 fi
5104
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5109
5110 if
5111 test "x$enable_dependency_tracking" != xno \
5112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5113 am__fastdepCC_TRUE=
5114 am__fastdepCC_FALSE='#'
5115 else
5116 am__fastdepCC_TRUE='#'
5117 am__fastdepCC_FALSE=
5118 fi
5119
5120
5121 case `pwd` in
5122 *\ * | *\ *)
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5124 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5125 esac
5126
5127
5128
5129 macro_version='2.4.6'
5130 macro_revision='2.4.6'
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 ltmain=$ac_aux_dir/ltmain.sh
5145
5146 # Make sure we can run config.sub.
5147 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5148 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5151 $as_echo_n "checking build system type... " >&6; }
5152 if ${ac_cv_build+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 ac_build_alias=$build_alias
5156 test "x$ac_build_alias" = x &&
5157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5158 test "x$ac_build_alias" = x &&
5159 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5161 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5162
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5165 $as_echo "$ac_cv_build" >&6; }
5166 case $ac_cv_build in
5167 *-*-*) ;;
5168 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5169 esac
5170 build=$ac_cv_build
5171 ac_save_IFS=$IFS; IFS='-'
5172 set x $ac_cv_build
5173 shift
5174 build_cpu=$1
5175 build_vendor=$2
5176 shift; shift
5177 # Remember, the first character of IFS is used to create $*,
5178 # except with old shells:
5179 build_os=$*
5180 IFS=$ac_save_IFS
5181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5185 $as_echo_n "checking host system type... " >&6; }
5186 if ${ac_cv_host+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test "x$host_alias" = x; then
5190 ac_cv_host=$ac_cv_build
5191 else
5192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5193 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5194 fi
5195
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5198 $as_echo "$ac_cv_host" >&6; }
5199 case $ac_cv_host in
5200 *-*-*) ;;
5201 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5202 esac
5203 host=$ac_cv_host
5204 ac_save_IFS=$IFS; IFS='-'
5205 set x $ac_cv_host
5206 shift
5207 host_cpu=$1
5208 host_vendor=$2
5209 shift; shift
5210 # Remember, the first character of IFS is used to create $*,
5211 # except with old shells:
5212 host_os=$*
5213 IFS=$ac_save_IFS
5214 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5215
5216
5217 # Backslashify metacharacters that are still active within
5218 # double-quoted strings.
5219 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5220
5221 # Same as above, but do not quote variable references.
5222 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5223
5224 # Sed substitution to delay expansion of an escaped shell variable in a
5225 # double_quote_subst'ed string.
5226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5227
5228 # Sed substitution to delay expansion of an escaped single quote.
5229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5230
5231 # Sed substitution to avoid accidental globbing in evaled expressions
5232 no_glob_subst='s/\*/\\\*/g'
5233
5234 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5236 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5239 $as_echo_n "checking how to print strings... " >&6; }
5240 # Test print first, because it will be a builtin if present.
5241 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5242 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5243 ECHO='print -r --'
5244 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5245 ECHO='printf %s\n'
5246 else
5247 # Use this function as a fallback that always works.
5248 func_fallback_echo ()
5249 {
5250 eval 'cat <<_LTECHO_EOF
5251 $1
5252 _LTECHO_EOF'
5253 }
5254 ECHO='func_fallback_echo'
5255 fi
5256
5257 # func_echo_all arg...
5258 # Invoke $ECHO with all args, space-separated.
5259 func_echo_all ()
5260 {
5261 $ECHO ""
5262 }
5263
5264 case $ECHO in
5265 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5266 $as_echo "printf" >&6; } ;;
5267 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5268 $as_echo "print -r" >&6; } ;;
5269 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5270 $as_echo "cat" >&6; } ;;
5271 esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5288 if ${ac_cv_path_SED+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292 for ac_i in 1 2 3 4 5 6 7; do
5293 ac_script="$ac_script$as_nl$ac_script"
5294 done
5295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296 { ac_script=; unset ac_script;}
5297 if test -z "$SED"; then
5298 ac_path_SED_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in sed gsed; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5308 as_fn_executable_p "$ac_path_SED" || continue
5309 # Check for GNU ac_path_SED and select it if it is found.
5310 # Check for GNU $ac_path_SED
5311 case `"$ac_path_SED" --version 2>&1` in
5312 *GNU*)
5313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5314 *)
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo '' >> "conftest.nl"
5323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_SED_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_SED="$ac_path_SED"
5329 ac_path_SED_max=$ac_count
5330 fi
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5336
5337 $ac_path_SED_found && break 3
5338 done
5339 done
5340 done
5341 IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_SED"; then
5343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5344 fi
5345 else
5346 ac_cv_path_SED=$SED
5347 fi
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5351 $as_echo "$ac_cv_path_SED" >&6; }
5352 SED="$ac_cv_path_SED"
5353 rm -f conftest.sed
5354
5355 test -z "$SED" && SED=sed
5356 Xsed="$SED -e 1s/^X//"
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5369 $as_echo_n "checking for fgrep... " >&6; }
5370 if ${ac_cv_path_FGREP+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5374 then ac_cv_path_FGREP="$GREP -F"
5375 else
5376 if test -z "$FGREP"; then
5377 ac_path_FGREP_found=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_prog in fgrep; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5387 as_fn_executable_p "$ac_path_FGREP" || continue
5388 # Check for GNU ac_path_FGREP and select it if it is found.
5389 # Check for GNU $ac_path_FGREP
5390 case `"$ac_path_FGREP" --version 2>&1` in
5391 *GNU*)
5392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5393 *)
5394 ac_count=0
5395 $as_echo_n 0123456789 >"conftest.in"
5396 while :
5397 do
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'FGREP' >> "conftest.nl"
5402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_FGREP="$ac_path_FGREP"
5408 ac_path_FGREP_max=$ac_count
5409 fi
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5415
5416 $ac_path_FGREP_found && break 3
5417 done
5418 done
5419 done
5420 IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_FGREP"; then
5422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423 fi
5424 else
5425 ac_cv_path_FGREP=$FGREP
5426 fi
5427
5428 fi
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5431 $as_echo "$ac_cv_path_FGREP" >&6; }
5432 FGREP="$ac_cv_path_FGREP"
5433
5434
5435 test -z "$GREP" && GREP=grep
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 # Check whether --with-gnu-ld was given.
5456 if test "${with_gnu_ld+set}" = set; then :
5457 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5458 else
5459 with_gnu_ld=no
5460 fi
5461
5462 ac_prog=ld
5463 if test yes = "$GCC"; then
5464 # Check if gcc -print-prog-name=ld gives a path.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5466 $as_echo_n "checking for ld used by $CC... " >&6; }
5467 case $host in
5468 *-*-mingw*)
5469 # gcc leaves a trailing carriage return, which upsets mingw
5470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5471 *)
5472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5473 esac
5474 case $ac_prog in
5475 # Accept absolute paths.
5476 [\\/]* | ?:[\\/]*)
5477 re_direlt='/[^/][^/]*/\.\./'
5478 # Canonicalize the pathname of ld
5479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5482 done
5483 test -z "$LD" && LD=$ac_prog
5484 ;;
5485 "")
5486 # If it fails, then pretend we aren't using GCC.
5487 ac_prog=ld
5488 ;;
5489 *)
5490 # If it is relative, then search for the first ld in PATH.
5491 with_gnu_ld=unknown
5492 ;;
5493 esac
5494 elif test yes = "$with_gnu_ld"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5496 $as_echo_n "checking for GNU ld... " >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5499 $as_echo_n "checking for non-GNU ld... " >&6; }
5500 fi
5501 if ${lt_cv_path_LD+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -z "$LD"; then
5505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5506 for ac_dir in $PATH; do
5507 IFS=$lt_save_ifs
5508 test -z "$ac_dir" && ac_dir=.
5509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5510 lt_cv_path_LD=$ac_dir/$ac_prog
5511 # Check to see if the program is GNU ld. I'd rather use --version,
5512 # but apparently some variants of GNU ld only accept -v.
5513 # Break only if it was the GNU/non-GNU ld that we prefer.
5514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5515 *GNU* | *'with BFD'*)
5516 test no != "$with_gnu_ld" && break
5517 ;;
5518 *)
5519 test yes != "$with_gnu_ld" && break
5520 ;;
5521 esac
5522 fi
5523 done
5524 IFS=$lt_save_ifs
5525 else
5526 lt_cv_path_LD=$LD # Let the user override the test with a path.
5527 fi
5528 fi
5529
5530 LD=$lt_cv_path_LD
5531 if test -n "$LD"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5533 $as_echo "$LD" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5541 if ${lt_cv_prog_gnu_ld+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5545 case `$LD -v 2>&1 </dev/null` in
5546 *GNU* | *'with BFD'*)
5547 lt_cv_prog_gnu_ld=yes
5548 ;;
5549 *)
5550 lt_cv_prog_gnu_ld=no
5551 ;;
5552 esac
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5556 with_gnu_ld=$lt_cv_prog_gnu_ld
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5568 if ${lt_cv_path_NM+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$NM"; then
5572 # Let the user override the test.
5573 lt_cv_path_NM=$NM
5574 else
5575 lt_nm_to_check=${ac_tool_prefix}nm
5576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5577 lt_nm_to_check="$lt_nm_to_check nm"
5578 fi
5579 for lt_tmp_nm in $lt_nm_to_check; do
5580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5582 IFS=$lt_save_ifs
5583 test -z "$ac_dir" && ac_dir=.
5584 tmp_nm=$ac_dir/$lt_tmp_nm
5585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5586 # Check to see if the nm accepts a BSD-compat flag.
5587 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5588 # nm: unknown option "B" ignored
5589 # Tru64's nm complains that /dev/null is an invalid object file
5590 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5591 case $build_os in
5592 mingw*) lt_bad_file=conftest.nm/nofile ;;
5593 *) lt_bad_file=/dev/null ;;
5594 esac
5595 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5596 *$lt_bad_file* | *'Invalid file or object type'*)
5597 lt_cv_path_NM="$tmp_nm -B"
5598 break 2
5599 ;;
5600 *)
5601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5602 */dev/null*)
5603 lt_cv_path_NM="$tmp_nm -p"
5604 break 2
5605 ;;
5606 *)
5607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5608 continue # so that we can try to find one that supports BSD flags
5609 ;;
5610 esac
5611 ;;
5612 esac
5613 fi
5614 done
5615 IFS=$lt_save_ifs
5616 done
5617 : ${lt_cv_path_NM=no}
5618 fi
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5621 $as_echo "$lt_cv_path_NM" >&6; }
5622 if test no != "$lt_cv_path_NM"; then
5623 NM=$lt_cv_path_NM
5624 else
5625 # Didn't find any BSD compatible name lister, look for dumpbin.
5626 if test -n "$DUMPBIN"; then :
5627 # Let the user override the test.
5628 else
5629 if test -n "$ac_tool_prefix"; then
5630 for ac_prog in dumpbin "link -dump"
5631 do
5632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_DUMPBIN+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$DUMPBIN"; then
5640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 DUMPBIN=$ac_cv_prog_DUMPBIN
5660 if test -n "$DUMPBIN"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5662 $as_echo "$DUMPBIN" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 test -n "$DUMPBIN" && break
5670 done
5671 fi
5672 if test -z "$DUMPBIN"; then
5673 ac_ct_DUMPBIN=$DUMPBIN
5674 for ac_prog in dumpbin "link -dump"
5675 do
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$ac_ct_DUMPBIN"; then
5684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697 done
5698 done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5704 if test -n "$ac_ct_DUMPBIN"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5706 $as_echo "$ac_ct_DUMPBIN" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 test -n "$ac_ct_DUMPBIN" && break
5714 done
5715
5716 if test "x$ac_ct_DUMPBIN" = x; then
5717 DUMPBIN=":"
5718 else
5719 case $cross_compiling:$ac_tool_warned in
5720 yes:)
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5724 esac
5725 DUMPBIN=$ac_ct_DUMPBIN
5726 fi
5727 fi
5728
5729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5730 *COFF*)
5731 DUMPBIN="$DUMPBIN -symbols -headers"
5732 ;;
5733 *)
5734 DUMPBIN=:
5735 ;;
5736 esac
5737 fi
5738
5739 if test : != "$DUMPBIN"; then
5740 NM=$DUMPBIN
5741 fi
5742 fi
5743 test -z "$NM" && NM=nm
5744
5745
5746
5747
5748
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5751 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5752 if ${lt_cv_nm_interface+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 lt_cv_nm_interface="BSD nm"
5756 echo "int some_variable = 0;" > conftest.$ac_ext
5757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5758 (eval "$ac_compile" 2>conftest.err)
5759 cat conftest.err >&5
5760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5764 cat conftest.out >&5
5765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5766 lt_cv_nm_interface="MS dumpbin"
5767 fi
5768 rm -f conftest*
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5771 $as_echo "$lt_cv_nm_interface" >&6; }
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5774 $as_echo_n "checking whether ln -s works... " >&6; }
5775 LN_S=$as_ln_s
5776 if test "$LN_S" = "ln -s"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5781 $as_echo "no, using $LN_S" >&6; }
5782 fi
5783
5784 # find the maximum length of command line arguments
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5786 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5787 if ${lt_cv_sys_max_cmd_len+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 i=0
5791 teststring=ABCD
5792
5793 case $build_os in
5794 msdosdjgpp*)
5795 # On DJGPP, this test can blow up pretty badly due to problems in libc
5796 # (any single argument exceeding 2000 bytes causes a buffer overrun
5797 # during glob expansion). Even if it were fixed, the result of this
5798 # check would be larger than it should be.
5799 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5800 ;;
5801
5802 gnu*)
5803 # Under GNU Hurd, this test is not required because there is
5804 # no limit to the length of command line arguments.
5805 # Libtool will interpret -1 as no limit whatsoever
5806 lt_cv_sys_max_cmd_len=-1;
5807 ;;
5808
5809 cygwin* | mingw* | cegcc*)
5810 # On Win9x/ME, this test blows up -- it succeeds, but takes
5811 # about 5 minutes as the teststring grows exponentially.
5812 # Worse, since 9x/ME are not pre-emptively multitasking,
5813 # you end up with a "frozen" computer, even though with patience
5814 # the test eventually succeeds (with a max line length of 256k).
5815 # Instead, let's just punt: use the minimum linelength reported by
5816 # all of the supported platforms: 8192 (on NT/2K/XP).
5817 lt_cv_sys_max_cmd_len=8192;
5818 ;;
5819
5820 mint*)
5821 # On MiNT this can take a long time and run out of memory.
5822 lt_cv_sys_max_cmd_len=8192;
5823 ;;
5824
5825 amigaos*)
5826 # On AmigaOS with pdksh, this test takes hours, literally.
5827 # So we just punt and use a minimum line length of 8192.
5828 lt_cv_sys_max_cmd_len=8192;
5829 ;;
5830
5831 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5832 # This has been around since 386BSD, at least. Likely further.
5833 if test -x /sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5835 elif test -x /usr/sbin/sysctl; then
5836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5837 else
5838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5839 fi
5840 # And add a safety zone
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843 ;;
5844
5845 interix*)
5846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5847 lt_cv_sys_max_cmd_len=196608
5848 ;;
5849
5850 os2*)
5851 # The test takes a long time on OS/2.
5852 lt_cv_sys_max_cmd_len=8192
5853 ;;
5854
5855 osf*)
5856 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5857 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5858 # nice to cause kernel panics so lets avoid the loop below.
5859 # First set a reasonable default.
5860 lt_cv_sys_max_cmd_len=16384
5861 #
5862 if test -x /sbin/sysconfig; then
5863 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5864 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5865 esac
5866 fi
5867 ;;
5868 sco3.2v5*)
5869 lt_cv_sys_max_cmd_len=102400
5870 ;;
5871 sysv5* | sco5v6* | sysv4.2uw2*)
5872 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5873 if test -n "$kargmax"; then
5874 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5875 else
5876 lt_cv_sys_max_cmd_len=32768
5877 fi
5878 ;;
5879 *)
5880 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5881 if test -n "$lt_cv_sys_max_cmd_len" && \
5882 test undefined != "$lt_cv_sys_max_cmd_len"; then
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885 else
5886 # Make teststring a little bigger before we do anything with it.
5887 # a 1K string should be a reasonable start.
5888 for i in 1 2 3 4 5 6 7 8; do
5889 teststring=$teststring$teststring
5890 done
5891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892 # If test is not a shell built-in, we'll probably end up computing a
5893 # maximum length that is only half of the actual maximum length, but
5894 # we can't tell.
5895 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5896 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5897 test 17 != "$i" # 1/2 MB should be enough
5898 do
5899 i=`expr $i + 1`
5900 teststring=$teststring$teststring
5901 done
5902 # Only check the string length outside the loop.
5903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904 teststring=
5905 # Add a significant safety factor because C++ compilers can tack on
5906 # massive amounts of additional arguments before passing them to the
5907 # linker. It appears as though 1/2 is a usable value.
5908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909 fi
5910 ;;
5911 esac
5912
5913 fi
5914
5915 if test -n "$lt_cv_sys_max_cmd_len"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5917 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5920 $as_echo "none" >&6; }
5921 fi
5922 max_cmd_len=$lt_cv_sys_max_cmd_len
5923
5924
5925
5926
5927
5928
5929 : ${CP="cp -f"}
5930 : ${MV="mv -f"}
5931 : ${RM="rm -f"}
5932
5933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5934 lt_unset=unset
5935 else
5936 lt_unset=false
5937 fi
5938
5939
5940
5941
5942
5943 # test EBCDIC or ASCII
5944 case `echo X|tr X '\101'` in
5945 A) # ASCII based system
5946 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5947 lt_SP2NL='tr \040 \012'
5948 lt_NL2SP='tr \015\012 \040\040'
5949 ;;
5950 *) # EBCDIC based system
5951 lt_SP2NL='tr \100 \n'
5952 lt_NL2SP='tr \r\n \100\100'
5953 ;;
5954 esac
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5965 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5966 if ${lt_cv_to_host_file_cmd+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 case $host in
5970 *-*-mingw* )
5971 case $build in
5972 *-*-mingw* ) # actually msys
5973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5974 ;;
5975 *-*-cygwin* )
5976 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5977 ;;
5978 * ) # otherwise, assume *nix
5979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5980 ;;
5981 esac
5982 ;;
5983 *-*-cygwin* )
5984 case $build in
5985 *-*-mingw* ) # actually msys
5986 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5987 ;;
5988 *-*-cygwin* )
5989 lt_cv_to_host_file_cmd=func_convert_file_noop
5990 ;;
5991 * ) # otherwise, assume *nix
5992 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5993 ;;
5994 esac
5995 ;;
5996 * ) # unhandled hosts (and "normal" native builds)
5997 lt_cv_to_host_file_cmd=func_convert_file_noop
5998 ;;
5999 esac
6000
6001 fi
6002
6003 to_host_file_cmd=$lt_cv_to_host_file_cmd
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6005 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6012 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6013 if ${lt_cv_to_tool_file_cmd+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 #assume ordinary cross tools, or native build.
6017 lt_cv_to_tool_file_cmd=func_convert_file_noop
6018 case $host in
6019 *-*-mingw* )
6020 case $build in
6021 *-*-mingw* ) # actually msys
6022 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023 ;;
6024 esac
6025 ;;
6026 esac
6027
6028 fi
6029
6030 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6032 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6033
6034
6035
6036
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6039 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6040 if ${lt_cv_ld_reload_flag+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 lt_cv_ld_reload_flag='-r'
6044 fi
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6046 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6047 reload_flag=$lt_cv_ld_reload_flag
6048 case $reload_flag in
6049 "" | " "*) ;;
6050 *) reload_flag=" $reload_flag" ;;
6051 esac
6052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6053 case $host_os in
6054 cygwin* | mingw* | pw32* | cegcc*)
6055 if test yes != "$GCC"; then
6056 reload_cmds=false
6057 fi
6058 ;;
6059 darwin*)
6060 if test yes = "$GCC"; then
6061 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6062 else
6063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6064 fi
6065 ;;
6066 esac
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_OBJDUMP+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -n "$OBJDUMP"; then
6085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 OBJDUMP=$ac_cv_prog_OBJDUMP
6105 if test -n "$OBJDUMP"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6107 $as_echo "$OBJDUMP" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114 fi
6115 if test -z "$ac_cv_prog_OBJDUMP"; then
6116 ac_ct_OBJDUMP=$OBJDUMP
6117 # Extract the first word of "objdump", so it can be a program name with args.
6118 set dummy objdump; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6145 if test -n "$ac_ct_OBJDUMP"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6147 $as_echo "$ac_ct_OBJDUMP" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153 if test "x$ac_ct_OBJDUMP" = x; then
6154 OBJDUMP="false"
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162 OBJDUMP=$ac_ct_OBJDUMP
6163 fi
6164 else
6165 OBJDUMP="$ac_cv_prog_OBJDUMP"
6166 fi
6167
6168 test -z "$OBJDUMP" && OBJDUMP=objdump
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6179 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6180 if ${lt_cv_deplibs_check_method+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 lt_cv_file_magic_cmd='$MAGIC_CMD'
6184 lt_cv_file_magic_test_file=
6185 lt_cv_deplibs_check_method='unknown'
6186 # Need to set the preceding variable on all platforms that support
6187 # interlibrary dependencies.
6188 # 'none' -- dependencies not supported.
6189 # 'unknown' -- same as none, but documents that we really don't know.
6190 # 'pass_all' -- all dependencies passed with no checks.
6191 # 'test_compile' -- check by making test program.
6192 # 'file_magic [[regex]]' -- check by looking for files in library path
6193 # that responds to the $file_magic_cmd with a given extended regex.
6194 # If you have 'file' or equivalent on your system and you're not sure
6195 # whether 'pass_all' will *always* work, you probably want this one.
6196
6197 case $host_os in
6198 aix[4-9]*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202 beos*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206 bsdi[45]*)
6207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6208 lt_cv_file_magic_cmd='/usr/bin/file -L'
6209 lt_cv_file_magic_test_file=/shlib/libc.so
6210 ;;
6211
6212 cygwin*)
6213 # func_win32_libid is a shell function defined in ltmain.sh
6214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6215 lt_cv_file_magic_cmd='func_win32_libid'
6216 ;;
6217
6218 mingw* | pw32*)
6219 # Base MSYS/MinGW do not provide the 'file' command needed by
6220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6221 # unless we find 'file', for example because we are cross-compiling.
6222 if ( file / ) >/dev/null 2>&1; then
6223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224 lt_cv_file_magic_cmd='func_win32_libid'
6225 else
6226 # Keep this pattern in sync with the one in func_win32_libid.
6227 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6228 lt_cv_file_magic_cmd='$OBJDUMP -f'
6229 fi
6230 ;;
6231
6232 cegcc*)
6233 # use the weaker test based on 'objdump'. See mingw*.
6234 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6235 lt_cv_file_magic_cmd='$OBJDUMP -f'
6236 ;;
6237
6238 darwin* | rhapsody*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242 freebsd* | dragonfly*)
6243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6244 case $host_cpu in
6245 i*86 )
6246 # Not sure whether the presence of OpenBSD here was a mistake.
6247 # Let's accept both of them until this is cleared up.
6248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6249 lt_cv_file_magic_cmd=/usr/bin/file
6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6251 ;;
6252 esac
6253 else
6254 lt_cv_deplibs_check_method=pass_all
6255 fi
6256 ;;
6257
6258 haiku*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 hpux10.20* | hpux11*)
6263 lt_cv_file_magic_cmd=/usr/bin/file
6264 case $host_cpu in
6265 ia64*)
6266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6268 ;;
6269 hppa*64*)
6270 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]'
6271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6272 ;;
6273 *)
6274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6276 ;;
6277 esac
6278 ;;
6279
6280 interix[3-9]*)
6281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6283 ;;
6284
6285 irix5* | irix6* | nonstopux*)
6286 case $LD in
6287 *-32|*"-32 ") libmagic=32-bit;;
6288 *-n32|*"-n32 ") libmagic=N32;;
6289 *-64|*"-64 ") libmagic=64-bit;;
6290 *) libmagic=never-match;;
6291 esac
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295 # This must be glibc/ELF.
6296 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300 netbsd*)
6301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6303 else
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6305 fi
6306 ;;
6307
6308 newos6*)
6309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6310 lt_cv_file_magic_cmd=/usr/bin/file
6311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6312 ;;
6313
6314 *nto* | *qnx*)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317
6318 openbsd* | bitrig*)
6319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6321 else
6322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323 fi
6324 ;;
6325
6326 osf3* | osf4* | osf5*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 rdos*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334 solaris*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341
6342 sysv4 | sysv4.3*)
6343 case $host_vendor in
6344 motorola)
6345 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]'
6346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6347 ;;
6348 ncr)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351 sequent)
6352 lt_cv_file_magic_cmd='/bin/file'
6353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6354 ;;
6355 sni)
6356 lt_cv_file_magic_cmd='/bin/file'
6357 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6358 lt_cv_file_magic_test_file=/lib/libc.so
6359 ;;
6360 siemens)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363 pc)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366 esac
6367 ;;
6368
6369 tpf*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372 os2*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375 esac
6376
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6379 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6380
6381 file_magic_glob=
6382 want_nocaseglob=no
6383 if test "$build" = "$host"; then
6384 case $host_os in
6385 mingw* | pw32*)
6386 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6387 want_nocaseglob=yes
6388 else
6389 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6390 fi
6391 ;;
6392 esac
6393 fi
6394
6395 file_magic_cmd=$lt_cv_file_magic_cmd
6396 deplibs_check_method=$lt_cv_deplibs_check_method
6397 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420 if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6422 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$DLLTOOL"; then
6429 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 DLLTOOL=$ac_cv_prog_DLLTOOL
6449 if test -n "$DLLTOOL"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6451 $as_echo "$DLLTOOL" >&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_DLLTOOL"; then
6460 ac_ct_DLLTOOL=$DLLTOOL
6461 # Extract the first word of "dlltool", so it can be a program name with args.
6462 set dummy dlltool; 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_DLLTOOL+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$ac_ct_DLLTOOL"; then
6469 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6489 if test -n "$ac_ct_DLLTOOL"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6491 $as_echo "$ac_ct_DLLTOOL" >&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_DLLTOOL" = x; then
6498 DLLTOOL="false"
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 DLLTOOL=$ac_ct_DLLTOOL
6507 fi
6508 else
6509 DLLTOOL="$ac_cv_prog_DLLTOOL"
6510 fi
6511
6512 test -z "$DLLTOOL" && DLLTOOL=dlltool
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6524 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6525 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 lt_cv_sharedlib_from_linklib_cmd='unknown'
6529
6530 case $host_os in
6531 cygwin* | mingw* | pw32* | cegcc*)
6532 # two different shell functions defined in ltmain.sh;
6533 # decide which one to use based on capabilities of $DLLTOOL
6534 case `$DLLTOOL --help 2>&1` in
6535 *--identify-strict*)
6536 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6537 ;;
6538 *)
6539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6540 ;;
6541 esac
6542 ;;
6543 *)
6544 # fallback: assume linklib IS sharedlib
6545 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6546 ;;
6547 esac
6548
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6551 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6552 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6553 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6554
6555
6556
6557
6558
6559
6560
6561 if test -n "$ac_tool_prefix"; then
6562 for ac_prog in ar
6563 do
6564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_AR+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 AR=$ac_cv_prog_AR
6592 if test -n "$AR"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6594 $as_echo "$AR" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601 test -n "$AR" && break
6602 done
6603 fi
6604 if test -z "$AR"; then
6605 ac_ct_AR=$AR
6606 for ac_prog in ar
6607 do
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_ac_ct_AR="$ac_prog"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638 $as_echo "$ac_ct_AR" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 test -n "$ac_ct_AR" && break
6646 done
6647
6648 if test "x$ac_ct_AR" = x; then
6649 AR="false"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657 AR=$ac_ct_AR
6658 fi
6659 fi
6660
6661 : ${AR=ar}
6662 : ${AR_FLAGS=cru}
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6675 $as_echo_n "checking for archiver @FILE support... " >&6; }
6676 if ${lt_cv_ar_at_file+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 lt_cv_ar_at_file=no
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683 int
6684 main ()
6685 {
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692 echo conftest.$ac_objext > conftest.lst
6693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6695 (eval $lt_ar_try) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; }
6699 if test 0 -eq "$ac_status"; then
6700 # Ensure the archiver fails upon bogus file names.
6701 rm -f conftest.$ac_objext libconftest.a
6702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6703 (eval $lt_ar_try) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }
6707 if test 0 -ne "$ac_status"; then
6708 lt_cv_ar_at_file=@
6709 fi
6710 fi
6711 rm -f conftest.* libconftest.a
6712
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6718 $as_echo "$lt_cv_ar_at_file" >&6; }
6719
6720 if test no = "$lt_cv_ar_at_file"; then
6721 archiver_list_spec=
6722 else
6723 archiver_list_spec=$lt_cv_ar_at_file
6724 fi
6725
6726
6727
6728
6729
6730
6731
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}strip; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_STRIP+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$STRIP"; then
6741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 STRIP=$ac_cv_prog_STRIP
6761 if test -n "$STRIP"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6763 $as_echo "$STRIP" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_STRIP"; then
6772 ac_ct_STRIP=$STRIP
6773 # Extract the first word of "strip", so it can be a program name with args.
6774 set dummy strip; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$ac_ct_STRIP"; then
6781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_STRIP="strip"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6801 if test -n "$ac_ct_STRIP"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6803 $as_echo "$ac_ct_STRIP" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809 if test "x$ac_ct_STRIP" = x; then
6810 STRIP=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818 STRIP=$ac_ct_STRIP
6819 fi
6820 else
6821 STRIP="$ac_cv_prog_STRIP"
6822 fi
6823
6824 test -z "$STRIP" && STRIP=:
6825
6826
6827
6828
6829
6830
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_RANLIB+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$RANLIB"; then
6840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 RANLIB=$ac_cv_prog_RANLIB
6860 if test -n "$RANLIB"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6862 $as_echo "$RANLIB" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868
6869 fi
6870 if test -z "$ac_cv_prog_RANLIB"; then
6871 ac_ct_RANLIB=$RANLIB
6872 # Extract the first word of "ranlib", so it can be a program name with args.
6873 set dummy ranlib; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_RANLIB"; then
6880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_RANLIB="ranlib"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6900 if test -n "$ac_ct_RANLIB"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6902 $as_echo "$ac_ct_RANLIB" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_RANLIB" = x; then
6909 RANLIB=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 RANLIB=$ac_ct_RANLIB
6918 fi
6919 else
6920 RANLIB="$ac_cv_prog_RANLIB"
6921 fi
6922
6923 test -z "$RANLIB" && RANLIB=:
6924
6925
6926
6927
6928
6929
6930 # Determine commands to create old-style static archives.
6931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6932 old_postinstall_cmds='chmod 644 $oldlib'
6933 old_postuninstall_cmds=
6934
6935 if test -n "$RANLIB"; then
6936 case $host_os in
6937 bitrig* | openbsd*)
6938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6939 ;;
6940 *)
6941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6942 ;;
6943 esac
6944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6945 fi
6946
6947 case $host_os in
6948 darwin*)
6949 lock_old_archive_extraction=yes ;;
6950 *)
6951 lock_old_archive_extraction=no ;;
6952 esac
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992 # If no C compiler was specified, use CC.
6993 LTCC=${LTCC-"$CC"}
6994
6995 # If no C compiler flags were specified, use CFLAGS.
6996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6997
6998 # Allow CC to be a program name with arguments.
6999 compiler=$CC
7000
7001
7002 # Check for command to grab the raw symbol name followed by C symbol from nm.
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7004 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7005 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008
7009 # These are sane defaults that work on at least a few old systems.
7010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7011
7012 # Character class describing NM global symbol codes.
7013 symcode='[BCDEGRST]'
7014
7015 # Regexp to match symbols that can be accessed directly from C.
7016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7017
7018 # Define system-specific variables.
7019 case $host_os in
7020 aix*)
7021 symcode='[BCDT]'
7022 ;;
7023 cygwin* | mingw* | pw32* | cegcc*)
7024 symcode='[ABCDGISTW]'
7025 ;;
7026 hpux*)
7027 if test ia64 = "$host_cpu"; then
7028 symcode='[ABCDEGRST]'
7029 fi
7030 ;;
7031 irix* | nonstopux*)
7032 symcode='[BCDEGRST]'
7033 ;;
7034 osf*)
7035 symcode='[BCDEGQRST]'
7036 ;;
7037 solaris*)
7038 symcode='[BDRT]'
7039 ;;
7040 sco3.2v5*)
7041 symcode='[DT]'
7042 ;;
7043 sysv4.2uw2*)
7044 symcode='[DT]'
7045 ;;
7046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7047 symcode='[ABDT]'
7048 ;;
7049 sysv4)
7050 symcode='[DFNSTU]'
7051 ;;
7052 esac
7053
7054 # If we're using GNU nm, then use its standard symbol codes.
7055 case `$NM -V 2>&1` in
7056 *GNU* | *'with BFD'*)
7057 symcode='[ABCDGIRSTW]' ;;
7058 esac
7059
7060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7061 # Gets list of data symbols to import.
7062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7063 # Adjust the below global symbol transforms to fixup imported variables.
7064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7066 lt_c_name_lib_hook="\
7067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7069 else
7070 # Disable hooks by default.
7071 lt_cv_sys_global_symbol_to_import=
7072 lt_cdecl_hook=
7073 lt_c_name_hook=
7074 lt_c_name_lib_hook=
7075 fi
7076
7077 # Transform an extracted symbol line into a proper C declaration.
7078 # Some systems (esp. on ia64) link data and code symbols differently,
7079 # so use this general approach.
7080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7081 $lt_cdecl_hook\
7082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7084
7085 # Transform an extracted symbol line into symbol name and symbol address
7086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7087 $lt_c_name_hook\
7088 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7089 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7090
7091 # Transform an extracted symbol line into symbol name with lib prefix and
7092 # symbol address.
7093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7094 $lt_c_name_lib_hook\
7095 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7098
7099 # Handle CRLF in mingw tool chain
7100 opt_cr=
7101 case $build_os in
7102 mingw*)
7103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7104 ;;
7105 esac
7106
7107 # Try without a prefix underscore, then with it.
7108 for ac_symprfx in "" "_"; do
7109
7110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7111 symxfrm="\\1 $ac_symprfx\\2 \\2"
7112
7113 # Write the raw and C identifiers.
7114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7115 # Fake it for dumpbin and say T for any non-static function,
7116 # D for any global variable and I for any imported variable.
7117 # Also find C++ and __fastcall symbols from MSVC++,
7118 # which start with @ or ?.
7119 lt_cv_sys_global_symbol_pipe="$AWK '"\
7120 " {last_section=section; section=\$ 3};"\
7121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7123 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7124 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7125 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7126 " \$ 0!~/External *\|/{next};"\
7127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7128 " {if(hide[section]) next};"\
7129 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7130 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7131 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7132 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7133 " ' prfx=^$ac_symprfx"
7134 else
7135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7136 fi
7137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7138
7139 # Check to see that the pipe works correctly.
7140 pipe_works=no
7141
7142 rm -f conftest*
7143 cat > conftest.$ac_ext <<_LT_EOF
7144 #ifdef __cplusplus
7145 extern "C" {
7146 #endif
7147 char nm_test_var;
7148 void nm_test_func(void);
7149 void nm_test_func(void){}
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 int main(){nm_test_var='a';nm_test_func();return(0);}
7154 _LT_EOF
7155
7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7157 (eval $ac_compile) 2>&5
7158 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; }; then
7161 # Now try to grab the symbols.
7162 nlist=conftest.nm
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; } && test -s "$nlist"; then
7168 # Try sorting and uniquifying the output.
7169 if sort "$nlist" | uniq > "$nlist"T; then
7170 mv -f "$nlist"T "$nlist"
7171 else
7172 rm -f "$nlist"T
7173 fi
7174
7175 # Make sure that we snagged all the symbols we need.
7176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7178 cat <<_LT_EOF > conftest.$ac_ext
7179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7180 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7181 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7182 relocations are performed -- see ld's documentation on pseudo-relocs. */
7183 # define LT_DLSYM_CONST
7184 #elif defined __osf__
7185 /* This system does not cope well with relocations in const data. */
7186 # define LT_DLSYM_CONST
7187 #else
7188 # define LT_DLSYM_CONST const
7189 #endif
7190
7191 #ifdef __cplusplus
7192 extern "C" {
7193 #endif
7194
7195 _LT_EOF
7196 # Now generate the symbol file.
7197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7198
7199 cat <<_LT_EOF >> conftest.$ac_ext
7200
7201 /* The mapping between symbol names and symbols. */
7202 LT_DLSYM_CONST struct {
7203 const char *name;
7204 void *address;
7205 }
7206 lt__PROGRAM__LTX_preloaded_symbols[] =
7207 {
7208 { "@PROGRAM@", (void *) 0 },
7209 _LT_EOF
7210 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7211 cat <<\_LT_EOF >> conftest.$ac_ext
7212 {0, (void *) 0}
7213 };
7214
7215 /* This works around a problem in FreeBSD linker */
7216 #ifdef FREEBSD_WORKAROUND
7217 static const void *lt_preloaded_setup() {
7218 return lt__PROGRAM__LTX_preloaded_symbols;
7219 }
7220 #endif
7221
7222 #ifdef __cplusplus
7223 }
7224 #endif
7225 _LT_EOF
7226 # Now try linking the two files.
7227 mv conftest.$ac_objext conftstm.$ac_objext
7228 lt_globsym_save_LIBS=$LIBS
7229 lt_globsym_save_CFLAGS=$CFLAGS
7230 LIBS=conftstm.$ac_objext
7231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7233 (eval $ac_link) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7237 pipe_works=yes
7238 fi
7239 LIBS=$lt_globsym_save_LIBS
7240 CFLAGS=$lt_globsym_save_CFLAGS
7241 else
7242 echo "cannot find nm_test_func in $nlist" >&5
7243 fi
7244 else
7245 echo "cannot find nm_test_var in $nlist" >&5
7246 fi
7247 else
7248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7249 fi
7250 else
7251 echo "$progname: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7253 fi
7254 rm -rf conftest* conftst*
7255
7256 # Do not use the global_symbol_pipe unless it works.
7257 if test yes = "$pipe_works"; then
7258 break
7259 else
7260 lt_cv_sys_global_symbol_pipe=
7261 fi
7262 done
7263
7264 fi
7265
7266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7267 lt_cv_sys_global_symbol_to_cdecl=
7268 fi
7269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7271 $as_echo "failed" >&6; }
7272 else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7274 $as_echo "ok" >&6; }
7275 fi
7276
7277 # Response file support.
7278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279 nm_file_list_spec='@'
7280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7281 nm_file_list_spec='@'
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7321 $as_echo_n "checking for sysroot... " >&6; }
7322
7323 # Check whether --with-sysroot was given.
7324 if test "${with_sysroot+set}" = set; then :
7325 withval=$with_sysroot;
7326 else
7327 with_sysroot=no
7328 fi
7329
7330
7331 lt_sysroot=
7332 case $with_sysroot in #(
7333 yes)
7334 if test yes = "$GCC"; then
7335 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7336 fi
7337 ;; #(
7338 /*)
7339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7340 ;; #(
7341 no|'')
7342 ;; #(
7343 *)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7345 $as_echo "$with_sysroot" >&6; }
7346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7347 ;;
7348 esac
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7351 $as_echo "${lt_sysroot:-no}" >&6; }
7352
7353
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7358 $as_echo_n "checking for a working dd... " >&6; }
7359 if ${ac_cv_path_lt_DD+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 printf 0123456789abcdef0123456789abcdef >conftest.i
7363 cat conftest.i conftest.i >conftest2.i
7364 : ${lt_DD:=$DD}
7365 if test -z "$lt_DD"; then
7366 ac_path_lt_DD_found=false
7367 # Loop through the user's path and test for each of PROGNAME-LIST
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_prog in dd; do
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7376 as_fn_executable_p "$ac_path_lt_DD" || continue
7377 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7378 cmp -s conftest.i conftest.out \
7379 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7380 fi
7381 $ac_path_lt_DD_found && break 3
7382 done
7383 done
7384 done
7385 IFS=$as_save_IFS
7386 if test -z "$ac_cv_path_lt_DD"; then
7387 :
7388 fi
7389 else
7390 ac_cv_path_lt_DD=$lt_DD
7391 fi
7392
7393 rm -f conftest.i conftest2.i conftest.out
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7396 $as_echo "$ac_cv_path_lt_DD" >&6; }
7397
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7400 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7401 if ${lt_cv_truncate_bin+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 printf 0123456789abcdef0123456789abcdef >conftest.i
7405 cat conftest.i conftest.i >conftest2.i
7406 lt_cv_truncate_bin=
7407 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7408 cmp -s conftest.i conftest.out \
7409 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7410 fi
7411 rm -f conftest.i conftest2.i conftest.out
7412 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7415 $as_echo "$lt_cv_truncate_bin" >&6; }
7416
7417
7418
7419
7420
7421
7422
7423 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7424 func_cc_basename ()
7425 {
7426 for cc_temp in $*""; do
7427 case $cc_temp in
7428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7430 \-*) ;;
7431 *) break;;
7432 esac
7433 done
7434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7435 }
7436
7437 # Check whether --enable-libtool-lock was given.
7438 if test "${enable_libtool_lock+set}" = set; then :
7439 enableval=$enable_libtool_lock;
7440 fi
7441
7442 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7443
7444 # Some flags need to be propagated to the compiler or linker for good
7445 # libtool support.
7446 case $host in
7447 ia64-*-hpux*)
7448 # Find out what ABI is being produced by ac_compile, and set mode
7449 # options accordingly.
7450 echo 'int i;' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7453 ac_status=$?
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 case `/usr/bin/file conftest.$ac_objext` in
7457 *ELF-32*)
7458 HPUX_IA64_MODE=32
7459 ;;
7460 *ELF-64*)
7461 HPUX_IA64_MODE=64
7462 ;;
7463 esac
7464 fi
7465 rm -rf conftest*
7466 ;;
7467 *-*-irix6*)
7468 # Find out what ABI is being produced by ac_compile, and set linker
7469 # options accordingly.
7470 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7472 (eval $ac_compile) 2>&5
7473 ac_status=$?
7474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475 test $ac_status = 0; }; then
7476 if test yes = "$lt_cv_prog_gnu_ld"; then
7477 case `/usr/bin/file conftest.$ac_objext` in
7478 *32-bit*)
7479 LD="${LD-ld} -melf32bsmip"
7480 ;;
7481 *N32*)
7482 LD="${LD-ld} -melf32bmipn32"
7483 ;;
7484 *64-bit*)
7485 LD="${LD-ld} -melf64bmip"
7486 ;;
7487 esac
7488 else
7489 case `/usr/bin/file conftest.$ac_objext` in
7490 *32-bit*)
7491 LD="${LD-ld} -32"
7492 ;;
7493 *N32*)
7494 LD="${LD-ld} -n32"
7495 ;;
7496 *64-bit*)
7497 LD="${LD-ld} -64"
7498 ;;
7499 esac
7500 fi
7501 fi
7502 rm -rf conftest*
7503 ;;
7504
7505 mips64*-*linux*)
7506 # Find out what ABI is being produced by ac_compile, and set linker
7507 # options accordingly.
7508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 emul=elf
7515 case `/usr/bin/file conftest.$ac_objext` in
7516 *32-bit*)
7517 emul="${emul}32"
7518 ;;
7519 *64-bit*)
7520 emul="${emul}64"
7521 ;;
7522 esac
7523 case `/usr/bin/file conftest.$ac_objext` in
7524 *MSB*)
7525 emul="${emul}btsmip"
7526 ;;
7527 *LSB*)
7528 emul="${emul}ltsmip"
7529 ;;
7530 esac
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *N32*)
7533 emul="${emul}n32"
7534 ;;
7535 esac
7536 LD="${LD-ld} -m $emul"
7537 fi
7538 rm -rf conftest*
7539 ;;
7540
7541 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7542 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7543 # Find out what ABI is being produced by ac_compile, and set linker
7544 # options accordingly. Note that the listed cases only cover the
7545 # situations where additional linker options are needed (such as when
7546 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7547 # vice versa); the common cases where no linker options are needed do
7548 # not appear in the list.
7549 echo 'int i;' > conftest.$ac_ext
7550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7551 (eval $ac_compile) 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; }; then
7555 case `/usr/bin/file conftest.o` in
7556 *32-bit*)
7557 case $host in
7558 x86_64-*kfreebsd*-gnu)
7559 LD="${LD-ld} -m elf_i386_fbsd"
7560 ;;
7561 x86_64-*linux*)
7562 case `/usr/bin/file conftest.o` in
7563 *x86-64*)
7564 LD="${LD-ld} -m elf32_x86_64"
7565 ;;
7566 *)
7567 LD="${LD-ld} -m elf_i386"
7568 ;;
7569 esac
7570 ;;
7571 powerpc64le-*linux*)
7572 LD="${LD-ld} -m elf32lppclinux"
7573 ;;
7574 powerpc64-*linux*)
7575 LD="${LD-ld} -m elf32ppclinux"
7576 ;;
7577 s390x-*linux*)
7578 LD="${LD-ld} -m elf_s390"
7579 ;;
7580 sparc64-*linux*)
7581 LD="${LD-ld} -m elf32_sparc"
7582 ;;
7583 esac
7584 ;;
7585 *64-bit*)
7586 case $host in
7587 x86_64-*kfreebsd*-gnu)
7588 LD="${LD-ld} -m elf_x86_64_fbsd"
7589 ;;
7590 x86_64-*linux*)
7591 LD="${LD-ld} -m elf_x86_64"
7592 ;;
7593 powerpcle-*linux*)
7594 LD="${LD-ld} -m elf64lppc"
7595 ;;
7596 powerpc-*linux*)
7597 LD="${LD-ld} -m elf64ppc"
7598 ;;
7599 s390*-*linux*|s390*-*tpf*)
7600 LD="${LD-ld} -m elf64_s390"
7601 ;;
7602 sparc*-*linux*)
7603 LD="${LD-ld} -m elf64_sparc"
7604 ;;
7605 esac
7606 ;;
7607 esac
7608 fi
7609 rm -rf conftest*
7610 ;;
7611
7612 *-*-sco3.2v5*)
7613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7614 SAVE_CFLAGS=$CFLAGS
7615 CFLAGS="$CFLAGS -belf"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7617 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7618 if ${lt_cv_cc_needs_belf+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 lt_cv_cc_needs_belf=yes
7640 else
7641 lt_cv_cc_needs_belf=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7653 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7654 if test yes != "$lt_cv_cc_needs_belf"; then
7655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7656 CFLAGS=$SAVE_CFLAGS
7657 fi
7658 ;;
7659 *-*solaris*)
7660 # Find out what ABI is being produced by ac_compile, and set linker
7661 # options accordingly.
7662 echo 'int i;' > conftest.$ac_ext
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 case `/usr/bin/file conftest.o` in
7669 *64-bit*)
7670 case $lt_cv_prog_gnu_ld in
7671 yes*)
7672 case $host in
7673 i?86-*-solaris*|x86_64-*-solaris*)
7674 LD="${LD-ld} -m elf_x86_64"
7675 ;;
7676 sparc*-*-solaris*)
7677 LD="${LD-ld} -m elf64_sparc"
7678 ;;
7679 esac
7680 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7681 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7682 LD=${LD-ld}_sol2
7683 fi
7684 ;;
7685 *)
7686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7687 LD="${LD-ld} -64"
7688 fi
7689 ;;
7690 esac
7691 ;;
7692 esac
7693 fi
7694 rm -rf conftest*
7695 ;;
7696 esac
7697
7698 need_locks=$enable_libtool_lock
7699
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}mt; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$MANIFEST_TOOL"; then
7709 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7729 if test -n "$MANIFEST_TOOL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7731 $as_echo "$MANIFEST_TOOL" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7741 # Extract the first word of "mt", so it can be a program name with args.
7742 set dummy mt; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$ac_ct_MANIFEST_TOOL"; then
7749 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7769 if test -n "$ac_ct_MANIFEST_TOOL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7771 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7778 MANIFEST_TOOL=":"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7787 fi
7788 else
7789 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7790 fi
7791
7792 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7794 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7795 if ${lt_cv_path_mainfest_tool+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 lt_cv_path_mainfest_tool=no
7799 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7800 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7801 cat conftest.err >&5
7802 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7803 lt_cv_path_mainfest_tool=yes
7804 fi
7805 rm -f conftest*
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7808 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7809 if test yes != "$lt_cv_path_mainfest_tool"; then
7810 MANIFEST_TOOL=:
7811 fi
7812
7813
7814
7815
7816
7817
7818 case $host_os in
7819 rhapsody* | darwin*)
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 if test -n "$DSYMUTIL"; then
7829 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842 done
7843 done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7849 if test -n "$DSYMUTIL"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7851 $as_echo "$DSYMUTIL" >&6; }
7852 else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856
7857
7858 fi
7859 if test -z "$ac_cv_prog_DSYMUTIL"; then
7860 ac_ct_DSYMUTIL=$DSYMUTIL
7861 # Extract the first word of "dsymutil", so it can be a program name with args.
7862 set dummy dsymutil; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$ac_ct_DSYMUTIL"; then
7869 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7889 if test -n "$ac_ct_DSYMUTIL"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7891 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897 if test "x$ac_ct_DSYMUTIL" = x; then
7898 DSYMUTIL=":"
7899 else
7900 case $cross_compiling:$ac_tool_warned in
7901 yes:)
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7905 esac
7906 DSYMUTIL=$ac_ct_DSYMUTIL
7907 fi
7908 else
7909 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7910 fi
7911
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_NMEDIT+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test -n "$NMEDIT"; then
7921 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938 fi
7939 fi
7940 NMEDIT=$ac_cv_prog_NMEDIT
7941 if test -n "$NMEDIT"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7943 $as_echo "$NMEDIT" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948
7949
7950 fi
7951 if test -z "$ac_cv_prog_NMEDIT"; then
7952 ac_ct_NMEDIT=$NMEDIT
7953 # Extract the first word of "nmedit", so it can be a program name with args.
7954 set dummy nmedit; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$ac_ct_NMEDIT"; then
7961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974 done
7975 done
7976 IFS=$as_save_IFS
7977
7978 fi
7979 fi
7980 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7981 if test -n "$ac_ct_NMEDIT"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7983 $as_echo "$ac_ct_NMEDIT" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989 if test "x$ac_ct_NMEDIT" = x; then
7990 NMEDIT=":"
7991 else
7992 case $cross_compiling:$ac_tool_warned in
7993 yes:)
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996 ac_tool_warned=yes ;;
7997 esac
7998 NMEDIT=$ac_ct_NMEDIT
7999 fi
8000 else
8001 NMEDIT="$ac_cv_prog_NMEDIT"
8002 fi
8003
8004 if test -n "$ac_tool_prefix"; then
8005 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8006 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_prog_LIPO+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 if test -n "$LIPO"; then
8013 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8014 else
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026 done
8027 done
8028 IFS=$as_save_IFS
8029
8030 fi
8031 fi
8032 LIPO=$ac_cv_prog_LIPO
8033 if test -n "$LIPO"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8035 $as_echo "$LIPO" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 fi
8040
8041
8042 fi
8043 if test -z "$ac_cv_prog_LIPO"; then
8044 ac_ct_LIPO=$LIPO
8045 # Extract the first word of "lipo", so it can be a program name with args.
8046 set dummy lipo; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 if test -n "$ac_ct_LIPO"; then
8053 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_ac_ct_LIPO="lipo"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066 done
8067 done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8073 if test -n "$ac_ct_LIPO"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8075 $as_echo "$ac_ct_LIPO" >&6; }
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081 if test "x$ac_ct_LIPO" = x; then
8082 LIPO=":"
8083 else
8084 case $cross_compiling:$ac_tool_warned in
8085 yes:)
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088 ac_tool_warned=yes ;;
8089 esac
8090 LIPO=$ac_ct_LIPO
8091 fi
8092 else
8093 LIPO="$ac_cv_prog_LIPO"
8094 fi
8095
8096 if test -n "$ac_tool_prefix"; then
8097 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8098 set dummy ${ac_tool_prefix}otool; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_OTOOL+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test -n "$OTOOL"; then
8105 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118 done
8119 done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 OTOOL=$ac_cv_prog_OTOOL
8125 if test -n "$OTOOL"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8127 $as_echo "$OTOOL" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133
8134 fi
8135 if test -z "$ac_cv_prog_OTOOL"; then
8136 ac_ct_OTOOL=$OTOOL
8137 # Extract the first word of "otool", so it can be a program name with args.
8138 set dummy otool; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$ac_ct_OTOOL"; then
8145 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_ac_ct_OTOOL="otool"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162 fi
8163 fi
8164 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8165 if test -n "$ac_ct_OTOOL"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8167 $as_echo "$ac_ct_OTOOL" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 fi
8172
8173 if test "x$ac_ct_OTOOL" = x; then
8174 OTOOL=":"
8175 else
8176 case $cross_compiling:$ac_tool_warned in
8177 yes:)
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180 ac_tool_warned=yes ;;
8181 esac
8182 OTOOL=$ac_ct_OTOOL
8183 fi
8184 else
8185 OTOOL="$ac_cv_prog_OTOOL"
8186 fi
8187
8188 if test -n "$ac_tool_prefix"; then
8189 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8190 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_OTOOL64+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 if test -n "$OTOOL64"; then
8197 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210 done
8211 done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 OTOOL64=$ac_cv_prog_OTOOL64
8217 if test -n "$OTOOL64"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8219 $as_echo "$OTOOL64" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225
8226 fi
8227 if test -z "$ac_cv_prog_OTOOL64"; then
8228 ac_ct_OTOOL64=$OTOOL64
8229 # Extract the first word of "otool64", so it can be a program name with args.
8230 set dummy otool64; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$ac_ct_OTOOL64"; then
8237 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_ac_ct_OTOOL64="otool64"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250 done
8251 done
8252 IFS=$as_save_IFS
8253
8254 fi
8255 fi
8256 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8257 if test -n "$ac_ct_OTOOL64"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8259 $as_echo "$ac_ct_OTOOL64" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264
8265 if test "x$ac_ct_OTOOL64" = x; then
8266 OTOOL64=":"
8267 else
8268 case $cross_compiling:$ac_tool_warned in
8269 yes:)
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8272 ac_tool_warned=yes ;;
8273 esac
8274 OTOOL64=$ac_ct_OTOOL64
8275 fi
8276 else
8277 OTOOL64="$ac_cv_prog_OTOOL64"
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8307 $as_echo_n "checking for -single_module linker flag... " >&6; }
8308 if ${lt_cv_apple_cc_single_mod+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 lt_cv_apple_cc_single_mod=no
8312 if test -z "$LT_MULTI_MODULE"; then
8313 # By default we will add the -single_module flag. You can override
8314 # by either setting the environment variable LT_MULTI_MODULE
8315 # non-empty at configure time, or by adding -multi_module to the
8316 # link flags.
8317 rm -rf libconftest.dylib*
8318 echo "int foo(void){return 1;}" > conftest.c
8319 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8320 -dynamiclib -Wl,-single_module conftest.c" >&5
8321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8322 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8323 _lt_result=$?
8324 # If there is a non-empty error log, and "single_module"
8325 # appears in it, assume the flag caused a linker warning
8326 if test -s conftest.err && $GREP single_module conftest.err; then
8327 cat conftest.err >&5
8328 # Otherwise, if the output was created with a 0 exit code from
8329 # the compiler, it worked.
8330 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8331 lt_cv_apple_cc_single_mod=yes
8332 else
8333 cat conftest.err >&5
8334 fi
8335 rm -rf libconftest.dylib*
8336 rm -f conftest.*
8337 fi
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8340 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8343 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8344 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_ld_exported_symbols_list=no
8348 save_LDFLAGS=$LDFLAGS
8349 echo "_main" > conftest.sym
8350 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353
8354 int
8355 main ()
8356 {
8357
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_link "$LINENO"; then :
8363 lt_cv_ld_exported_symbols_list=yes
8364 else
8365 lt_cv_ld_exported_symbols_list=no
8366 fi
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 LDFLAGS=$save_LDFLAGS
8370
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8373 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8376 $as_echo_n "checking for -force_load linker flag... " >&6; }
8377 if ${lt_cv_ld_force_load+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 lt_cv_ld_force_load=no
8381 cat > conftest.c << _LT_EOF
8382 int forced_loaded() { return 2;}
8383 _LT_EOF
8384 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8385 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8386 echo "$AR cru libconftest.a conftest.o" >&5
8387 $AR cru libconftest.a conftest.o 2>&5
8388 echo "$RANLIB libconftest.a" >&5
8389 $RANLIB libconftest.a 2>&5
8390 cat > conftest.c << _LT_EOF
8391 int main() { return 0;}
8392 _LT_EOF
8393 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8394 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8395 _lt_result=$?
8396 if test -s conftest.err && $GREP force_load conftest.err; then
8397 cat conftest.err >&5
8398 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8399 lt_cv_ld_force_load=yes
8400 else
8401 cat conftest.err >&5
8402 fi
8403 rm -f conftest.err libconftest.a conftest conftest.c
8404 rm -rf conftest.dSYM
8405
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8408 $as_echo "$lt_cv_ld_force_load" >&6; }
8409 case $host_os in
8410 rhapsody* | darwin1.[012])
8411 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8412 darwin1.*)
8413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8414 darwin*) # darwin 5.x on
8415 # if running on 10.5 or later, the deployment target defaults
8416 # to the OS version, if on x86, and 10.4, the deployment
8417 # target defaults to 10.4. Don't you love it?
8418 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8419 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8420 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8421 10.[012][,.]*)
8422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8423 10.*)
8424 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8425 esac
8426 ;;
8427 esac
8428 if test yes = "$lt_cv_apple_cc_single_mod"; then
8429 _lt_dar_single_mod='$single_module'
8430 fi
8431 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8432 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8433 else
8434 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8435 fi
8436 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8437 _lt_dsymutil='~$DSYMUTIL $lib || :'
8438 else
8439 _lt_dsymutil=
8440 fi
8441 ;;
8442 esac
8443
8444 # func_munge_path_list VARIABLE PATH
8445 # -----------------------------------
8446 # VARIABLE is name of variable containing _space_ separated list of
8447 # directories to be munged by the contents of PATH, which is string
8448 # having a format:
8449 # "DIR[:DIR]:"
8450 # string "DIR[ DIR]" will be prepended to VARIABLE
8451 # ":DIR[:DIR]"
8452 # string "DIR[ DIR]" will be appended to VARIABLE
8453 # "DIRP[:DIRP]::[DIRA:]DIRA"
8454 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8455 # "DIRA[ DIRA]" will be appended to VARIABLE
8456 # "DIR[:DIR]"
8457 # VARIABLE will be replaced by "DIR[ DIR]"
8458 func_munge_path_list ()
8459 {
8460 case x$2 in
8461 x)
8462 ;;
8463 *:)
8464 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8465 ;;
8466 x:*)
8467 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8468 ;;
8469 *::*)
8470 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8471 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8472 ;;
8473 *)
8474 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8475 ;;
8476 esac
8477 }
8478
8479 for ac_header in dlfcn.h
8480 do :
8481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8482 "
8483 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DLFCN_H 1
8486 _ACEOF
8487
8488 fi
8489
8490 done
8491
8492
8493
8494
8495
8496 # Set options
8497
8498
8499
8500 enable_dlopen=no
8501
8502
8503 enable_win32_dll=no
8504
8505
8506 # Check whether --enable-shared was given.
8507 if test "${enable_shared+set}" = set; then :
8508 enableval=$enable_shared; p=${PACKAGE-default}
8509 case $enableval in
8510 yes) enable_shared=yes ;;
8511 no) enable_shared=no ;;
8512 *)
8513 enable_shared=no
8514 # Look at the argument we got. We use all the common list separators.
8515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8516 for pkg in $enableval; do
8517 IFS=$lt_save_ifs
8518 if test "X$pkg" = "X$p"; then
8519 enable_shared=yes
8520 fi
8521 done
8522 IFS=$lt_save_ifs
8523 ;;
8524 esac
8525 else
8526 enable_shared=yes
8527 fi
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537 # Check whether --enable-static was given.
8538 if test "${enable_static+set}" = set; then :
8539 enableval=$enable_static; p=${PACKAGE-default}
8540 case $enableval in
8541 yes) enable_static=yes ;;
8542 no) enable_static=no ;;
8543 *)
8544 enable_static=no
8545 # Look at the argument we got. We use all the common list separators.
8546 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8547 for pkg in $enableval; do
8548 IFS=$lt_save_ifs
8549 if test "X$pkg" = "X$p"; then
8550 enable_static=yes
8551 fi
8552 done
8553 IFS=$lt_save_ifs
8554 ;;
8555 esac
8556 else
8557 enable_static=yes
8558 fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569 # Check whether --with-pic was given.
8570 if test "${with_pic+set}" = set; then :
8571 withval=$with_pic; lt_p=${PACKAGE-default}
8572 case $withval in
8573 yes|no) pic_mode=$withval ;;
8574 *)
8575 pic_mode=default
8576 # Look at the argument we got. We use all the common list separators.
8577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8578 for lt_pkg in $withval; do
8579 IFS=$lt_save_ifs
8580 if test "X$lt_pkg" = "X$lt_p"; then
8581 pic_mode=yes
8582 fi
8583 done
8584 IFS=$lt_save_ifs
8585 ;;
8586 esac
8587 else
8588 pic_mode=default
8589 fi
8590
8591
8592
8593
8594
8595
8596
8597
8598 # Check whether --enable-fast-install was given.
8599 if test "${enable_fast_install+set}" = set; then :
8600 enableval=$enable_fast_install; p=${PACKAGE-default}
8601 case $enableval in
8602 yes) enable_fast_install=yes ;;
8603 no) enable_fast_install=no ;;
8604 *)
8605 enable_fast_install=no
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8608 for pkg in $enableval; do
8609 IFS=$lt_save_ifs
8610 if test "X$pkg" = "X$p"; then
8611 enable_fast_install=yes
8612 fi
8613 done
8614 IFS=$lt_save_ifs
8615 ;;
8616 esac
8617 else
8618 enable_fast_install=yes
8619 fi
8620
8621
8622
8623
8624
8625
8626
8627
8628 shared_archive_member_spec=
8629 case $host,$enable_shared in
8630 power*-*-aix[5-9]*,yes)
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8632 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8633
8634 # Check whether --with-aix-soname was given.
8635 if test "${with_aix_soname+set}" = set; then :
8636 withval=$with_aix_soname; case $withval in
8637 aix|svr4|both)
8638 ;;
8639 *)
8640 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8641 ;;
8642 esac
8643 lt_cv_with_aix_soname=$with_aix_soname
8644 else
8645 if ${lt_cv_with_aix_soname+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_with_aix_soname=aix
8649 fi
8650
8651 with_aix_soname=$lt_cv_with_aix_soname
8652 fi
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8655 $as_echo "$with_aix_soname" >&6; }
8656 if test aix != "$with_aix_soname"; then
8657 # For the AIX way of multilib, we name the shared archive member
8658 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8659 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8660 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8661 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8662 if test 64 = "${OBJECT_MODE-32}"; then
8663 shared_archive_member_spec=shr_64
8664 else
8665 shared_archive_member_spec=shr
8666 fi
8667 fi
8668 ;;
8669 *)
8670 with_aix_soname=aix
8671 ;;
8672 esac
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 # This can be used to rebuild libtool when needed
8684 LIBTOOL_DEPS=$ltmain
8685
8686 # Always use our own libtool.
8687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 test -z "$LN_S" && LN_S="ln -s"
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 if test -n "${ZSH_VERSION+set}"; then
8734 setopt NO_GLOB_SUBST
8735 fi
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8738 $as_echo_n "checking for objdir... " >&6; }
8739 if ${lt_cv_objdir+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 rm -f .libs 2>/dev/null
8743 mkdir .libs 2>/dev/null
8744 if test -d .libs; then
8745 lt_cv_objdir=.libs
8746 else
8747 # MS-DOS does not allow filenames that begin with a dot.
8748 lt_cv_objdir=_libs
8749 fi
8750 rmdir .libs 2>/dev/null
8751 fi
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8753 $as_echo "$lt_cv_objdir" >&6; }
8754 objdir=$lt_cv_objdir
8755
8756
8757
8758
8759
8760 cat >>confdefs.h <<_ACEOF
8761 #define LT_OBJDIR "$lt_cv_objdir/"
8762 _ACEOF
8763
8764
8765
8766
8767 case $host_os in
8768 aix3*)
8769 # AIX sometimes has problems with the GCC collect2 program. For some
8770 # reason, if we set the COLLECT_NAMES environment variable, the problems
8771 # vanish in a puff of smoke.
8772 if test set != "${COLLECT_NAMES+set}"; then
8773 COLLECT_NAMES=
8774 export COLLECT_NAMES
8775 fi
8776 ;;
8777 esac
8778
8779 # Global variables:
8780 ofile=libtool
8781 can_build_shared=yes
8782
8783 # All known linkers require a '.a' archive for static linking (except MSVC,
8784 # which needs '.lib').
8785 libext=a
8786
8787 with_gnu_ld=$lt_cv_prog_gnu_ld
8788
8789 old_CC=$CC
8790 old_CFLAGS=$CFLAGS
8791
8792 # Set sane defaults for various variables
8793 test -z "$CC" && CC=cc
8794 test -z "$LTCC" && LTCC=$CC
8795 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8796 test -z "$LD" && LD=ld
8797 test -z "$ac_objext" && ac_objext=o
8798
8799 func_cc_basename $compiler
8800 cc_basename=$func_cc_basename_result
8801
8802
8803 # Only perform the check for file, if the check method requires it
8804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8805 case $deplibs_check_method in
8806 file_magic*)
8807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8809 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 case $MAGIC_CMD in
8814 [\\/*] | ?:[\\/]*)
8815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8816 ;;
8817 *)
8818 lt_save_MAGIC_CMD=$MAGIC_CMD
8819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8821 for ac_dir in $ac_dummy; do
8822 IFS=$lt_save_ifs
8823 test -z "$ac_dir" && ac_dir=.
8824 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8825 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8826 if test -n "$file_magic_test_file"; then
8827 case $deplibs_check_method in
8828 "file_magic "*)
8829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8832 $EGREP "$file_magic_regex" > /dev/null; then
8833 :
8834 else
8835 cat <<_LT_EOF 1>&2
8836
8837 *** Warning: the command libtool uses to detect shared libraries,
8838 *** $file_magic_cmd, produces output that libtool cannot recognize.
8839 *** The result is that libtool may fail to recognize shared libraries
8840 *** as such. This will affect the creation of libtool libraries that
8841 *** depend on shared libraries, but programs linked with such libtool
8842 *** libraries will work regardless of this problem. Nevertheless, you
8843 *** may want to report the problem to your system manager and/or to
8844 *** bug-libtool@gnu.org
8845
8846 _LT_EOF
8847 fi ;;
8848 esac
8849 fi
8850 break
8851 fi
8852 done
8853 IFS=$lt_save_ifs
8854 MAGIC_CMD=$lt_save_MAGIC_CMD
8855 ;;
8856 esac
8857 fi
8858
8859 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8860 if test -n "$MAGIC_CMD"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8862 $as_echo "$MAGIC_CMD" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869
8870
8871
8872 if test -z "$lt_cv_path_MAGIC_CMD"; then
8873 if test -n "$ac_tool_prefix"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8875 $as_echo_n "checking for file... " >&6; }
8876 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 case $MAGIC_CMD in
8880 [\\/*] | ?:[\\/]*)
8881 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8882 ;;
8883 *)
8884 lt_save_MAGIC_CMD=$MAGIC_CMD
8885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8887 for ac_dir in $ac_dummy; do
8888 IFS=$lt_save_ifs
8889 test -z "$ac_dir" && ac_dir=.
8890 if test -f "$ac_dir/file"; then
8891 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8892 if test -n "$file_magic_test_file"; then
8893 case $deplibs_check_method in
8894 "file_magic "*)
8895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8898 $EGREP "$file_magic_regex" > /dev/null; then
8899 :
8900 else
8901 cat <<_LT_EOF 1>&2
8902
8903 *** Warning: the command libtool uses to detect shared libraries,
8904 *** $file_magic_cmd, produces output that libtool cannot recognize.
8905 *** The result is that libtool may fail to recognize shared libraries
8906 *** as such. This will affect the creation of libtool libraries that
8907 *** depend on shared libraries, but programs linked with such libtool
8908 *** libraries will work regardless of this problem. Nevertheless, you
8909 *** may want to report the problem to your system manager and/or to
8910 *** bug-libtool@gnu.org
8911
8912 _LT_EOF
8913 fi ;;
8914 esac
8915 fi
8916 break
8917 fi
8918 done
8919 IFS=$lt_save_ifs
8920 MAGIC_CMD=$lt_save_MAGIC_CMD
8921 ;;
8922 esac
8923 fi
8924
8925 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8926 if test -n "$MAGIC_CMD"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8928 $as_echo "$MAGIC_CMD" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934
8935 else
8936 MAGIC_CMD=:
8937 fi
8938 fi
8939
8940 fi
8941 ;;
8942 esac
8943
8944 # Use C for the default configuration in the libtool script
8945
8946 lt_save_CC=$CC
8947 ac_ext=c
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953
8954 # Source file extension for C test sources.
8955 ac_ext=c
8956
8957 # Object file extension for compiled C test sources.
8958 objext=o
8959 objext=$objext
8960
8961 # Code to be used in simple compile tests
8962 lt_simple_compile_test_code="int some_variable = 0;"
8963
8964 # Code to be used in simple link tests
8965 lt_simple_link_test_code='int main(){return(0);}'
8966
8967
8968
8969
8970
8971
8972
8973 # If no C compiler was specified, use CC.
8974 LTCC=${LTCC-"$CC"}
8975
8976 # If no C compiler flags were specified, use CFLAGS.
8977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8978
8979 # Allow CC to be a program name with arguments.
8980 compiler=$CC
8981
8982 # Save the default compiler, since it gets overwritten when the other
8983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8984 compiler_DEFAULT=$CC
8985
8986 # save warnings/boilerplate of simple test code
8987 ac_outfile=conftest.$ac_objext
8988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8990 _lt_compiler_boilerplate=`cat conftest.err`
8991 $RM conftest*
8992
8993 ac_outfile=conftest.$ac_objext
8994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8996 _lt_linker_boilerplate=`cat conftest.err`
8997 $RM -r conftest*
8998
8999
9000 if test -n "$compiler"; then
9001
9002 lt_prog_compiler_no_builtin_flag=
9003
9004 if test yes = "$GCC"; then
9005 case $cc_basename in
9006 nvcc*)
9007 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9008 *)
9009 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9010 esac
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9013 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9014 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 lt_cv_prog_compiler_rtti_exceptions=no
9018 ac_outfile=conftest.$ac_objext
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 # The option is referenced via a variable to avoid confusing sed.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>conftest.err)
9032 ac_status=$?
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s "$ac_outfile"; then
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings other than the usual output.
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_rtti_exceptions=yes
9042 fi
9043 fi
9044 $RM conftest*
9045
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9048 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9049
9050 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9052 else
9053 :
9054 fi
9055
9056 fi
9057
9058
9059
9060
9061
9062
9063 lt_prog_compiler_wl=
9064 lt_prog_compiler_pic=
9065 lt_prog_compiler_static=
9066
9067
9068 if test yes = "$GCC"; then
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_static='-static'
9071
9072 case $host_os in
9073 aix*)
9074 # All AIX code is PIC.
9075 if test ia64 = "$host_cpu"; then
9076 # AIX 5 now supports IA64 processor
9077 lt_prog_compiler_static='-Bstatic'
9078 fi
9079 lt_prog_compiler_pic='-fPIC'
9080 ;;
9081
9082 amigaos*)
9083 case $host_cpu in
9084 powerpc)
9085 # see comment about AmigaOS4 .so support
9086 lt_prog_compiler_pic='-fPIC'
9087 ;;
9088 m68k)
9089 # FIXME: we need at least 68020 code to build shared libraries, but
9090 # adding the '-m68020' flag to GCC prevents building anything better,
9091 # like '-m68040'.
9092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9093 ;;
9094 esac
9095 ;;
9096
9097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9098 # PIC is the default for these OSes.
9099 ;;
9100
9101 mingw* | cygwin* | pw32* | os2* | cegcc*)
9102 # This hack is so that the source file can tell whether it is being
9103 # built for inclusion in a dll (and should export symbols for example).
9104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9105 # (--disable-auto-import) libraries
9106 lt_prog_compiler_pic='-DDLL_EXPORT'
9107 case $host_os in
9108 os2*)
9109 lt_prog_compiler_static='$wl-static'
9110 ;;
9111 esac
9112 ;;
9113
9114 darwin* | rhapsody*)
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 lt_prog_compiler_pic='-fno-common'
9118 ;;
9119
9120 haiku*)
9121 # PIC is the default for Haiku.
9122 # The "-static" flag exists, but is broken.
9123 lt_prog_compiler_static=
9124 ;;
9125
9126 hpux*)
9127 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9128 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9129 # sets the default TLS model and affects inlining.
9130 case $host_cpu in
9131 hppa*64*)
9132 # +Z the default
9133 ;;
9134 *)
9135 lt_prog_compiler_pic='-fPIC'
9136 ;;
9137 esac
9138 ;;
9139
9140 interix[3-9]*)
9141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9142 # Instead, we relocate shared libraries at runtime.
9143 ;;
9144
9145 msdosdjgpp*)
9146 # Just because we use GCC doesn't mean we suddenly get shared libraries
9147 # on systems that don't support them.
9148 lt_prog_compiler_can_build_shared=no
9149 enable_shared=no
9150 ;;
9151
9152 *nto* | *qnx*)
9153 # QNX uses GNU C++, but need to define -shared option too, otherwise
9154 # it will coredump.
9155 lt_prog_compiler_pic='-fPIC -shared'
9156 ;;
9157
9158 sysv4*MP*)
9159 if test -d /usr/nec; then
9160 lt_prog_compiler_pic=-Kconform_pic
9161 fi
9162 ;;
9163
9164 *)
9165 lt_prog_compiler_pic='-fPIC'
9166 ;;
9167 esac
9168
9169 case $cc_basename in
9170 nvcc*) # Cuda Compiler Driver 2.2
9171 lt_prog_compiler_wl='-Xlinker '
9172 if test -n "$lt_prog_compiler_pic"; then
9173 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9174 fi
9175 ;;
9176 esac
9177 else
9178 # PORTME Check for flag to pass linker flags through the system compiler.
9179 case $host_os in
9180 aix*)
9181 lt_prog_compiler_wl='-Wl,'
9182 if test ia64 = "$host_cpu"; then
9183 # AIX 5 now supports IA64 processor
9184 lt_prog_compiler_static='-Bstatic'
9185 else
9186 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9187 fi
9188 ;;
9189
9190 darwin* | rhapsody*)
9191 # PIC is the default on this platform
9192 # Common symbols not allowed in MH_DYLIB files
9193 lt_prog_compiler_pic='-fno-common'
9194 case $cc_basename in
9195 nagfor*)
9196 # NAG Fortran compiler
9197 lt_prog_compiler_wl='-Wl,-Wl,,'
9198 lt_prog_compiler_pic='-PIC'
9199 lt_prog_compiler_static='-Bstatic'
9200 ;;
9201 esac
9202 ;;
9203
9204 mingw* | cygwin* | pw32* | os2* | cegcc*)
9205 # This hack is so that the source file can tell whether it is being
9206 # built for inclusion in a dll (and should export symbols for example).
9207 lt_prog_compiler_pic='-DDLL_EXPORT'
9208 case $host_os in
9209 os2*)
9210 lt_prog_compiler_static='$wl-static'
9211 ;;
9212 esac
9213 ;;
9214
9215 hpux9* | hpux10* | hpux11*)
9216 lt_prog_compiler_wl='-Wl,'
9217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9218 # not for PA HP-UX.
9219 case $host_cpu in
9220 hppa*64*|ia64*)
9221 # +Z the default
9222 ;;
9223 *)
9224 lt_prog_compiler_pic='+Z'
9225 ;;
9226 esac
9227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9228 lt_prog_compiler_static='$wl-a ${wl}archive'
9229 ;;
9230
9231 irix5* | irix6* | nonstopux*)
9232 lt_prog_compiler_wl='-Wl,'
9233 # PIC (with -KPIC) is the default.
9234 lt_prog_compiler_static='-non_shared'
9235 ;;
9236
9237 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9238 case $cc_basename in
9239 # old Intel for x86_64, which still supported -KPIC.
9240 ecc*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-static'
9244 ;;
9245 # icc used to be incompatible with GCC.
9246 # ICC 10 doesn't accept -KPIC any more.
9247 icc* | ifort*)
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-fPIC'
9250 lt_prog_compiler_static='-static'
9251 ;;
9252 # Lahey Fortran 8.1.
9253 lf95*)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='--shared'
9256 lt_prog_compiler_static='--static'
9257 ;;
9258 nagfor*)
9259 # NAG Fortran compiler
9260 lt_prog_compiler_wl='-Wl,-Wl,,'
9261 lt_prog_compiler_pic='-PIC'
9262 lt_prog_compiler_static='-Bstatic'
9263 ;;
9264 tcc*)
9265 # Fabrice Bellard et al's Tiny C Compiler
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-fPIC'
9268 lt_prog_compiler_static='-static'
9269 ;;
9270 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9271 # Portland Group compilers (*not* the Pentium gcc compiler,
9272 # which looks to be a dead project)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fpic'
9275 lt_prog_compiler_static='-Bstatic'
9276 ;;
9277 ccc*)
9278 lt_prog_compiler_wl='-Wl,'
9279 # All Alpha code is PIC.
9280 lt_prog_compiler_static='-non_shared'
9281 ;;
9282 xl* | bgxl* | bgf* | mpixl*)
9283 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-qpic'
9286 lt_prog_compiler_static='-qstaticlink'
9287 ;;
9288 *)
9289 case `$CC -V 2>&1 | sed 5q` in
9290 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9291 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 lt_prog_compiler_wl=''
9295 ;;
9296 *Sun\ F* | *Sun*Fortran*)
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 lt_prog_compiler_wl='-Qoption ld '
9300 ;;
9301 *Sun\ C*)
9302 # Sun C 5.9
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 lt_prog_compiler_wl='-Wl,'
9306 ;;
9307 *Intel*\ [CF]*Compiler*)
9308 lt_prog_compiler_wl='-Wl,'
9309 lt_prog_compiler_pic='-fPIC'
9310 lt_prog_compiler_static='-static'
9311 ;;
9312 *Portland\ Group*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-fpic'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317 esac
9318 ;;
9319 esac
9320 ;;
9321
9322 newsos6)
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 ;;
9326
9327 *nto* | *qnx*)
9328 # QNX uses GNU C++, but need to define -shared option too, otherwise
9329 # it will coredump.
9330 lt_prog_compiler_pic='-fPIC -shared'
9331 ;;
9332
9333 osf3* | osf4* | osf5*)
9334 lt_prog_compiler_wl='-Wl,'
9335 # All OSF/1 code is PIC.
9336 lt_prog_compiler_static='-non_shared'
9337 ;;
9338
9339 rdos*)
9340 lt_prog_compiler_static='-non_shared'
9341 ;;
9342
9343 solaris*)
9344 lt_prog_compiler_pic='-KPIC'
9345 lt_prog_compiler_static='-Bstatic'
9346 case $cc_basename in
9347 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9348 lt_prog_compiler_wl='-Qoption ld ';;
9349 *)
9350 lt_prog_compiler_wl='-Wl,';;
9351 esac
9352 ;;
9353
9354 sunos4*)
9355 lt_prog_compiler_wl='-Qoption ld '
9356 lt_prog_compiler_pic='-PIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359
9360 sysv4 | sysv4.2uw2* | sysv4.3*)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 ;;
9365
9366 sysv4*MP*)
9367 if test -d /usr/nec; then
9368 lt_prog_compiler_pic='-Kconform_pic'
9369 lt_prog_compiler_static='-Bstatic'
9370 fi
9371 ;;
9372
9373 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 ;;
9378
9379 unicos*)
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_can_build_shared=no
9382 ;;
9383
9384 uts4*)
9385 lt_prog_compiler_pic='-pic'
9386 lt_prog_compiler_static='-Bstatic'
9387 ;;
9388
9389 *)
9390 lt_prog_compiler_can_build_shared=no
9391 ;;
9392 esac
9393 fi
9394
9395 case $host_os in
9396 # For platforms that do not support PIC, -DPIC is meaningless:
9397 *djgpp*)
9398 lt_prog_compiler_pic=
9399 ;;
9400 *)
9401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9402 ;;
9403 esac
9404
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9406 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9407 if ${lt_cv_prog_compiler_pic+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9413 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9414 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9415
9416 #
9417 # Check to make sure the PIC flag actually works.
9418 #
9419 if test -n "$lt_prog_compiler_pic"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9421 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9422 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler_pic_works=no
9426 ac_outfile=conftest.$ac_objext
9427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9429 # Insert the option either (1) after the last *FLAGS variable, or
9430 # (2) before a word containing "conftest.", or (3) at the end.
9431 # Note that $ac_compile itself does not contain backslashes and begins
9432 # with a dollar sign (not a hyphen), so the echo should work correctly.
9433 # The option is referenced via a variable to avoid confusing sed.
9434 lt_compile=`echo "$ac_compile" | $SED \
9435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9437 -e 's:$: $lt_compiler_flag:'`
9438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9439 (eval "$lt_compile" 2>conftest.err)
9440 ac_status=$?
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 if (exit $ac_status) && test -s "$ac_outfile"; then
9444 # The compiler can only warn and ignore the option if not recognized
9445 # So say no if there are warnings other than the usual output.
9446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler_pic_works=yes
9450 fi
9451 fi
9452 $RM conftest*
9453
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9456 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9457
9458 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9459 case $lt_prog_compiler_pic in
9460 "" | " "*) ;;
9461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9462 esac
9463 else
9464 lt_prog_compiler_pic=
9465 lt_prog_compiler_can_build_shared=no
9466 fi
9467
9468 fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480 #
9481 # Check to make sure the static flag actually works.
9482 #
9483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9485 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9486 if ${lt_cv_prog_compiler_static_works+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_prog_compiler_static_works=no
9490 save_LDFLAGS=$LDFLAGS
9491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9494 # The linker can only warn and ignore the option if not recognized
9495 # So say no if there are warnings
9496 if test -s conftest.err; then
9497 # Append any errors to the config.log.
9498 cat conftest.err 1>&5
9499 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501 if diff conftest.exp conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_static_works=yes
9503 fi
9504 else
9505 lt_cv_prog_compiler_static_works=yes
9506 fi
9507 fi
9508 $RM -r conftest*
9509 LDFLAGS=$save_LDFLAGS
9510
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9513 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9514
9515 if test yes = "$lt_cv_prog_compiler_static_works"; then
9516 :
9517 else
9518 lt_prog_compiler_static=
9519 fi
9520
9521
9522
9523
9524
9525
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9528 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9529 if ${lt_cv_prog_compiler_c_o+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 lt_cv_prog_compiler_c_o=no
9533 $RM -r conftest 2>/dev/null
9534 mkdir conftest
9535 cd conftest
9536 mkdir out
9537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538
9539 lt_compiler_flag="-o out/conftest2.$ac_objext"
9540 # Insert the option either (1) after the last *FLAGS variable, or
9541 # (2) before a word containing "conftest.", or (3) at the end.
9542 # Note that $ac_compile itself does not contain backslashes and begins
9543 # with a dollar sign (not a hyphen), so the echo should work correctly.
9544 lt_compile=`echo "$ac_compile" | $SED \
9545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9547 -e 's:$: $lt_compiler_flag:'`
9548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9549 (eval "$lt_compile" 2>out/conftest.err)
9550 ac_status=$?
9551 cat out/conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9554 then
9555 # The compiler can only warn and ignore the option if not recognized
9556 # So say no if there are warnings
9557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9560 lt_cv_prog_compiler_c_o=yes
9561 fi
9562 fi
9563 chmod u+w . 2>&5
9564 $RM conftest*
9565 # SGI C++ compiler will create directory out/ii_files/ for
9566 # template instantiation
9567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9568 $RM out/* && rmdir out
9569 cd ..
9570 $RM -r conftest
9571 $RM conftest*
9572
9573 fi
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9575 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9576
9577
9578
9579
9580
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9584 if ${lt_cv_prog_compiler_c_o+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 lt_cv_prog_compiler_c_o=no
9588 $RM -r conftest 2>/dev/null
9589 mkdir conftest
9590 cd conftest
9591 mkdir out
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594 lt_compiler_flag="-o out/conftest2.$ac_objext"
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 lt_compile=`echo "$ac_compile" | $SED \
9600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602 -e 's:$: $lt_compiler_flag:'`
9603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9604 (eval "$lt_compile" 2>out/conftest.err)
9605 ac_status=$?
9606 cat out/conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609 then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings
9612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_c_o=yes
9616 fi
9617 fi
9618 chmod u+w . 2>&5
9619 $RM conftest*
9620 # SGI C++ compiler will create directory out/ii_files/ for
9621 # template instantiation
9622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9623 $RM out/* && rmdir out
9624 cd ..
9625 $RM -r conftest
9626 $RM conftest*
9627
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9631
9632
9633
9634
9635 hard_links=nottested
9636 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9637 # do not overwrite the value of need_locks provided by the user
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9639 $as_echo_n "checking if we can lock with hard links... " >&6; }
9640 hard_links=yes
9641 $RM conftest*
9642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9643 touch conftest.a
9644 ln conftest.a conftest.b 2>&5 || hard_links=no
9645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9647 $as_echo "$hard_links" >&6; }
9648 if test no = "$hard_links"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9650 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9651 need_locks=warn
9652 fi
9653 else
9654 need_locks=no
9655 fi
9656
9657
9658
9659
9660
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9663 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9664
9665 runpath_var=
9666 allow_undefined_flag=
9667 always_export_symbols=no
9668 archive_cmds=
9669 archive_expsym_cmds=
9670 compiler_needs_object=no
9671 enable_shared_with_static_runtimes=no
9672 export_dynamic_flag_spec=
9673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9674 hardcode_automatic=no
9675 hardcode_direct=no
9676 hardcode_direct_absolute=no
9677 hardcode_libdir_flag_spec=
9678 hardcode_libdir_separator=
9679 hardcode_minus_L=no
9680 hardcode_shlibpath_var=unsupported
9681 inherit_rpath=no
9682 link_all_deplibs=unknown
9683 module_cmds=
9684 module_expsym_cmds=
9685 old_archive_from_new_cmds=
9686 old_archive_from_expsyms_cmds=
9687 thread_safe_flag_spec=
9688 whole_archive_flag_spec=
9689 # include_expsyms should be a list of space-separated symbols to be *always*
9690 # included in the symbol list
9691 include_expsyms=
9692 # exclude_expsyms can be an extended regexp of symbols to exclude
9693 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9694 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9695 # as well as any symbol that contains 'd'.
9696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9698 # platforms (ab)use it in PIC code, but their linkers get confused if
9699 # the symbol is explicitly referenced. Since portable code cannot
9700 # rely on this symbol name, it's probably fine to never include it in
9701 # preloaded symbol tables.
9702 # Exclude shared library initialization/finalization symbols.
9703 extract_expsyms_cmds=
9704
9705 case $host_os in
9706 cygwin* | mingw* | pw32* | cegcc*)
9707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9708 # When not using gcc, we currently assume that we are using
9709 # Microsoft Visual C++.
9710 if test yes != "$GCC"; then
9711 with_gnu_ld=no
9712 fi
9713 ;;
9714 interix*)
9715 # we just hope/assume this is gcc and not c89 (= MSVC++)
9716 with_gnu_ld=yes
9717 ;;
9718 openbsd* | bitrig*)
9719 with_gnu_ld=no
9720 ;;
9721 esac
9722
9723 ld_shlibs=yes
9724
9725 # On some targets, GNU ld is compatible enough with the native linker
9726 # that we're better off using the native interface for both.
9727 lt_use_gnu_ld_interface=no
9728 if test yes = "$with_gnu_ld"; then
9729 case $host_os in
9730 aix*)
9731 # The AIX port of GNU ld has always aspired to compatibility
9732 # with the native linker. However, as the warning in the GNU ld
9733 # block says, versions before 2.19.5* couldn't really create working
9734 # shared libraries, regardless of the interface used.
9735 case `$LD -v 2>&1` in
9736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9738 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9739 *)
9740 lt_use_gnu_ld_interface=yes
9741 ;;
9742 esac
9743 ;;
9744 *)
9745 lt_use_gnu_ld_interface=yes
9746 ;;
9747 esac
9748 fi
9749
9750 if test yes = "$lt_use_gnu_ld_interface"; then
9751 # If archive_cmds runs LD, not CC, wlarc should be empty
9752 wlarc='$wl'
9753
9754 # Set some defaults for GNU ld with shared library support. These
9755 # are reset later if shared libraries are not supported. Putting them
9756 # here allows them to be overridden if necessary.
9757 runpath_var=LD_RUN_PATH
9758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9759 export_dynamic_flag_spec='$wl--export-dynamic'
9760 # ancient GNU ld didn't support --whole-archive et. al.
9761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9762 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9763 else
9764 whole_archive_flag_spec=
9765 fi
9766 supports_anon_versioning=no
9767 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9768 *GNU\ gold*) supports_anon_versioning=yes ;;
9769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9772 *\ 2.11.*) ;; # other 2.11 versions
9773 *) supports_anon_versioning=yes ;;
9774 esac
9775
9776 # See if GNU ld supports shared libraries.
9777 case $host_os in
9778 aix[3-9]*)
9779 # On AIX/PPC, the GNU linker is very broken
9780 if test ia64 != "$host_cpu"; then
9781 ld_shlibs=no
9782 cat <<_LT_EOF 1>&2
9783
9784 *** Warning: the GNU linker, at least up to release 2.19, is reported
9785 *** to be unable to reliably create shared libraries on AIX.
9786 *** Therefore, libtool is disabling shared libraries support. If you
9787 *** really care for shared libraries, you may want to install binutils
9788 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9789 *** You will then need to restart the configuration process.
9790
9791 _LT_EOF
9792 fi
9793 ;;
9794
9795 amigaos*)
9796 case $host_cpu in
9797 powerpc)
9798 # see comment about AmigaOS4 .so support
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 archive_expsym_cmds=''
9801 ;;
9802 m68k)
9803 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)'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_minus_L=yes
9806 ;;
9807 esac
9808 ;;
9809
9810 beos*)
9811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9812 allow_undefined_flag=unsupported
9813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9814 # support --undefined. This deserves some investigation. FIXME
9815 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9816 else
9817 ld_shlibs=no
9818 fi
9819 ;;
9820
9821 cygwin* | mingw* | pw32* | cegcc*)
9822 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9823 # as there is no search path for DLLs.
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 export_dynamic_flag_spec='$wl--export-all-symbols'
9826 allow_undefined_flag=unsupported
9827 always_export_symbols=no
9828 enable_shared_with_static_runtimes=yes
9829 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'
9830 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9831
9832 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9834 # If the export-symbols file already is a .def file, use it as
9835 # is; otherwise, prepend EXPORTS...
9836 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9837 cp $export_symbols $output_objdir/$soname.def;
9838 else
9839 echo EXPORTS > $output_objdir/$soname.def;
9840 cat $export_symbols >> $output_objdir/$soname.def;
9841 fi~
9842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9843 else
9844 ld_shlibs=no
9845 fi
9846 ;;
9847
9848 haiku*)
9849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9850 link_all_deplibs=yes
9851 ;;
9852
9853 os2*)
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_minus_L=yes
9856 allow_undefined_flag=unsupported
9857 shrext_cmds=.dll
9858 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9861 $ECHO EXPORTS >> $output_objdir/$libname.def~
9862 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9864 emximp -o $lib $output_objdir/$libname.def'
9865 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9868 $ECHO EXPORTS >> $output_objdir/$libname.def~
9869 prefix_cmds="$SED"~
9870 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9871 prefix_cmds="$prefix_cmds -e 1d";
9872 fi~
9873 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9874 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9876 emximp -o $lib $output_objdir/$libname.def'
9877 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9878 enable_shared_with_static_runtimes=yes
9879 ;;
9880
9881 interix[3-9]*)
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9885 export_dynamic_flag_spec='$wl-E'
9886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9887 # Instead, shared libraries are loaded at an image base (0x10000000 by
9888 # default) and relocated if they conflict, which is a slow very memory
9889 # consuming and fragmenting process. To avoid this, we pick a random,
9890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9893 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'
9894 ;;
9895
9896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9897 tmp_diet=no
9898 if test linux-dietlibc = "$host_os"; then
9899 case $cc_basename in
9900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9901 esac
9902 fi
9903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9904 && test no = "$tmp_diet"
9905 then
9906 tmp_addflag=' $pic_flag'
9907 tmp_sharedflag='-shared'
9908 case $cc_basename,$host_cpu in
9909 pgcc*) # Portland Group C compiler
9910 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'
9911 tmp_addflag=' $pic_flag'
9912 ;;
9913 pgf77* | pgf90* | pgf95* | pgfortran*)
9914 # Portland Group f77 and f90 compilers
9915 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'
9916 tmp_addflag=' $pic_flag -Mnomain' ;;
9917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9918 tmp_addflag=' -i_dynamic' ;;
9919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9920 tmp_addflag=' -i_dynamic -nofor_main' ;;
9921 ifc* | ifort*) # Intel Fortran compiler
9922 tmp_addflag=' -nofor_main' ;;
9923 lf95*) # Lahey Fortran 8.1
9924 whole_archive_flag_spec=
9925 tmp_sharedflag='--shared' ;;
9926 nagfor*) # NAGFOR 5.3
9927 tmp_sharedflag='-Wl,-shared' ;;
9928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9929 tmp_sharedflag='-qmkshrobj'
9930 tmp_addflag= ;;
9931 nvcc*) # Cuda Compiler Driver 2.2
9932 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'
9933 compiler_needs_object=yes
9934 ;;
9935 esac
9936 case `$CC -V 2>&1 | sed 5q` in
9937 *Sun\ C*) # Sun C 5.9
9938 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'
9939 compiler_needs_object=yes
9940 tmp_sharedflag='-G' ;;
9941 *Sun\ F*) # Sun Fortran 8.3
9942 tmp_sharedflag='-G' ;;
9943 esac
9944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9945
9946 if test yes = "$supports_anon_versioning"; then
9947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9949 echo "local: *; };" >> $output_objdir/$libname.ver~
9950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9951 fi
9952
9953 case $cc_basename in
9954 tcc*)
9955 export_dynamic_flag_spec='-rdynamic'
9956 ;;
9957 xlf* | bgf* | bgxlf* | mpixlf*)
9958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9961 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9962 if test yes = "$supports_anon_versioning"; then
9963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9965 echo "local: *; };" >> $output_objdir/$libname.ver~
9966 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9967 fi
9968 ;;
9969 esac
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974
9975 netbsd*)
9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9978 wlarc=
9979 else
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9982 fi
9983 ;;
9984
9985 solaris*)
9986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9987 ld_shlibs=no
9988 cat <<_LT_EOF 1>&2
9989
9990 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9991 *** create shared libraries on Solaris systems. Therefore, libtool
9992 *** is disabling shared libraries support. We urge you to upgrade GNU
9993 *** binutils to release 2.9.1 or newer. Another option is to modify
9994 *** your PATH or compiler configuration so that the native linker is
9995 *** used, and then restart.
9996
9997 _LT_EOF
9998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005
10006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10007 case `$LD -v 2>&1` in
10008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10009 ld_shlibs=no
10010 cat <<_LT_EOF 1>&2
10011
10012 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10013 *** reliably create shared libraries on SCO systems. Therefore, libtool
10014 *** is disabling shared libraries support. We urge you to upgrade GNU
10015 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10016 *** your PATH or compiler configuration so that the native linker is
10017 *** used, and then restart.
10018
10019 _LT_EOF
10020 ;;
10021 *)
10022 # For security reasons, it is highly recommended that you always
10023 # use absolute paths for naming shared libraries, and exclude the
10024 # DT_RUNPATH tag from executables and libraries. But doing so
10025 # requires that you compile everything twice, which is a pain.
10026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034 esac
10035 ;;
10036
10037 sunos4*)
10038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 wlarc=
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 *)
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10047 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10048 else
10049 ld_shlibs=no
10050 fi
10051 ;;
10052 esac
10053
10054 if test no = "$ld_shlibs"; then
10055 runpath_var=
10056 hardcode_libdir_flag_spec=
10057 export_dynamic_flag_spec=
10058 whole_archive_flag_spec=
10059 fi
10060 else
10061 # PORTME fill in a description of your system's linker (not GNU ld)
10062 case $host_os in
10063 aix3*)
10064 allow_undefined_flag=unsupported
10065 always_export_symbols=yes
10066 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'
10067 # Note: this linker hardcodes the directories in LIBPATH if there
10068 # are no directories specified by -L.
10069 hardcode_minus_L=yes
10070 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10071 # Neither direct hardcoding nor static linking is supported with a
10072 # broken collect2.
10073 hardcode_direct=unsupported
10074 fi
10075 ;;
10076
10077 aix[4-9]*)
10078 if test ia64 = "$host_cpu"; then
10079 # On IA64, the linker does run time linking by default, so we don't
10080 # have to do anything special.
10081 aix_use_runtimelinking=no
10082 exp_sym_flag='-Bexport'
10083 no_entry_flag=
10084 else
10085 # If we're using GNU nm, then we don't want the "-C" option.
10086 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10087 # Without the "-l" option, or with the "-B" option, AIX nm treats
10088 # weak defined symbols like other global defined symbols, whereas
10089 # GNU nm marks them as "W".
10090 # While the 'weak' keyword is ignored in the Export File, we need
10091 # it in the Import File for the 'aix-soname' feature, so we have
10092 # to replace the "-B" option with "-P" for AIX nm.
10093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10094 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10095 else
10096 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10097 fi
10098 aix_use_runtimelinking=no
10099
10100 # Test if we are trying to use run time linking or normal
10101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10102 # have runtime linking enabled, and use it for executables.
10103 # For shared libraries, we enable/disable runtime linking
10104 # depending on the kind of the shared library created -
10105 # when "with_aix_soname,aix_use_runtimelinking" is:
10106 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10107 # "aix,yes" lib.so shared, rtl:yes, for executables
10108 # lib.a static archive
10109 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10110 # lib.a(lib.so.V) shared, rtl:no, for executables
10111 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10112 # lib.a(lib.so.V) shared, rtl:no
10113 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10114 # lib.a static archive
10115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10116 for ld_flag in $LDFLAGS; do
10117 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10118 aix_use_runtimelinking=yes
10119 break
10120 fi
10121 done
10122 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10123 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10124 # so we don't have lib.a shared libs to link our executables.
10125 # We have to force runtime linking in this case.
10126 aix_use_runtimelinking=yes
10127 LDFLAGS="$LDFLAGS -Wl,-brtl"
10128 fi
10129 ;;
10130 esac
10131
10132 exp_sym_flag='-bexport'
10133 no_entry_flag='-bnoentry'
10134 fi
10135
10136 # When large executables or shared objects are built, AIX ld can
10137 # have problems creating the table of contents. If linking a library
10138 # or program results in "error TOC overflow" add -mminimal-toc to
10139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10141
10142 archive_cmds=''
10143 hardcode_direct=yes
10144 hardcode_direct_absolute=yes
10145 hardcode_libdir_separator=':'
10146 link_all_deplibs=yes
10147 file_list_spec='$wl-f,'
10148 case $with_aix_soname,$aix_use_runtimelinking in
10149 aix,*) ;; # traditional, no import file
10150 svr4,* | *,yes) # use import file
10151 # The Import File defines what to hardcode.
10152 hardcode_direct=no
10153 hardcode_direct_absolute=no
10154 ;;
10155 esac
10156
10157 if test yes = "$GCC"; then
10158 case $host_os in aix4.[012]|aix4.[012].*)
10159 # We only want to do this on AIX 4.2 and lower, the check
10160 # below for broken collect2 doesn't work under 4.3+
10161 collect2name=`$CC -print-prog-name=collect2`
10162 if test -f "$collect2name" &&
10163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10164 then
10165 # We have reworked collect2
10166 :
10167 else
10168 # We have old collect2
10169 hardcode_direct=unsupported
10170 # It fails to find uninstalled libraries when the uninstalled
10171 # path is not listed in the libpath. Setting hardcode_minus_L
10172 # to unsupported forces relinking
10173 hardcode_minus_L=yes
10174 hardcode_libdir_flag_spec='-L$libdir'
10175 hardcode_libdir_separator=
10176 fi
10177 ;;
10178 esac
10179 shared_flag='-shared'
10180 if test yes = "$aix_use_runtimelinking"; then
10181 shared_flag="$shared_flag "'$wl-G'
10182 fi
10183 # Need to ensure runtime linking is disabled for the traditional
10184 # shared library, or the linker may eventually find shared libraries
10185 # /with/ Import File - we do not want to mix them.
10186 shared_flag_aix='-shared'
10187 shared_flag_svr4='-shared $wl-G'
10188 else
10189 # not using gcc
10190 if test ia64 = "$host_cpu"; then
10191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10192 # chokes on -Wl,-G. The following line is correct:
10193 shared_flag='-G'
10194 else
10195 if test yes = "$aix_use_runtimelinking"; then
10196 shared_flag='$wl-G'
10197 else
10198 shared_flag='$wl-bM:SRE'
10199 fi
10200 shared_flag_aix='$wl-bM:SRE'
10201 shared_flag_svr4='$wl-G'
10202 fi
10203 fi
10204
10205 export_dynamic_flag_spec='$wl-bexpall'
10206 # It seems that -bexpall does not export symbols beginning with
10207 # underscore (_), so it is better to generate a list of symbols to export.
10208 always_export_symbols=yes
10209 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10210 # Warning - without using the other runtime loading flags (-brtl),
10211 # -berok will link without error, but may produce a broken library.
10212 allow_undefined_flag='-berok'
10213 # Determine the default libpath from the value encoded in an
10214 # empty executable.
10215 if test set = "${lt_cv_aix_libpath+set}"; then
10216 aix_libpath=$lt_cv_aix_libpath
10217 else
10218 if ${lt_cv_aix_libpath_+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223
10224 int
10225 main ()
10226 {
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233
10234 lt_aix_libpath_sed='
10235 /Import File Strings/,/^$/ {
10236 /^0/ {
10237 s/^0 *\([^ ]*\) *$/\1/
10238 p
10239 }
10240 }'
10241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 # Check for a 64-bit object if we didn't find anything.
10243 if test -z "$lt_cv_aix_libpath_"; then
10244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10245 fi
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 if test -z "$lt_cv_aix_libpath_"; then
10250 lt_cv_aix_libpath_=/usr/lib:/lib
10251 fi
10252
10253 fi
10254
10255 aix_libpath=$lt_cv_aix_libpath_
10256 fi
10257
10258 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10259 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10260 else
10261 if test ia64 = "$host_cpu"; then
10262 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10263 allow_undefined_flag="-z nodefs"
10264 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"
10265 else
10266 # Determine the default libpath from the value encoded in an
10267 # empty executable.
10268 if test set = "${lt_cv_aix_libpath+set}"; then
10269 aix_libpath=$lt_cv_aix_libpath
10270 else
10271 if ${lt_cv_aix_libpath_+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276
10277 int
10278 main ()
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286
10287 lt_aix_libpath_sed='
10288 /Import File Strings/,/^$/ {
10289 /^0/ {
10290 s/^0 *\([^ ]*\) *$/\1/
10291 p
10292 }
10293 }'
10294 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10295 # Check for a 64-bit object if we didn't find anything.
10296 if test -z "$lt_cv_aix_libpath_"; then
10297 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10298 fi
10299 fi
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 if test -z "$lt_cv_aix_libpath_"; then
10303 lt_cv_aix_libpath_=/usr/lib:/lib
10304 fi
10305
10306 fi
10307
10308 aix_libpath=$lt_cv_aix_libpath_
10309 fi
10310
10311 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10312 # Warning - without using the other run time loading flags,
10313 # -berok will link without error, but may produce a broken library.
10314 no_undefined_flag=' $wl-bernotok'
10315 allow_undefined_flag=' $wl-berok'
10316 if test yes = "$with_gnu_ld"; then
10317 # We only use this code for GNU lds that support --whole-archive.
10318 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10319 else
10320 # Exported symbols can be pulled into shared objects from archives
10321 whole_archive_flag_spec='$convenience'
10322 fi
10323 archive_cmds_need_lc=yes
10324 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10325 # -brtl affects multiple linker settings, -berok does not and is overridden later
10326 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10327 if test svr4 != "$with_aix_soname"; then
10328 # This is similar to how AIX traditionally builds its shared libraries.
10329 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10330 fi
10331 if test aix != "$with_aix_soname"; then
10332 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10333 else
10334 # used by -dlpreopen to get the symbols
10335 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10336 fi
10337 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10338 fi
10339 fi
10340 ;;
10341
10342 amigaos*)
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 bsdi[45]*)
10358 export_dynamic_flag_spec=-rdynamic
10359 ;;
10360
10361 cygwin* | mingw* | pw32* | cegcc*)
10362 # When not using gcc, we currently assume that we are using
10363 # Microsoft Visual C++.
10364 # hardcode_libdir_flag_spec is actually meaningless, as there is
10365 # no search path for DLLs.
10366 case $cc_basename in
10367 cl*)
10368 # Native MSVC
10369 hardcode_libdir_flag_spec=' '
10370 allow_undefined_flag=unsupported
10371 always_export_symbols=yes
10372 file_list_spec='@'
10373 # Tell ltmain to make .lib files, not .a files.
10374 libext=lib
10375 # Tell ltmain to make .dll files, not .so files.
10376 shrext_cmds=.dll
10377 # FIXME: Setting linknames here is a bad hack.
10378 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10380 cp "$export_symbols" "$output_objdir/$soname.def";
10381 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10382 else
10383 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10384 fi~
10385 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10386 linknames='
10387 # The linker will not automatically build a static lib if we build a DLL.
10388 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10389 enable_shared_with_static_runtimes=yes
10390 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10392 # Don't use ranlib
10393 old_postinstall_cmds='chmod 644 $oldlib'
10394 postlink_cmds='lt_outputfile="@OUTPUT@"~
10395 lt_tool_outputfile="@TOOL_OUTPUT@"~
10396 case $lt_outputfile in
10397 *.exe|*.EXE) ;;
10398 *)
10399 lt_outputfile=$lt_outputfile.exe
10400 lt_tool_outputfile=$lt_tool_outputfile.exe
10401 ;;
10402 esac~
10403 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10404 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10405 $RM "$lt_outputfile.manifest";
10406 fi'
10407 ;;
10408 *)
10409 # Assume MSVC wrapper
10410 hardcode_libdir_flag_spec=' '
10411 allow_undefined_flag=unsupported
10412 # Tell ltmain to make .lib files, not .a files.
10413 libext=lib
10414 # Tell ltmain to make .dll files, not .so files.
10415 shrext_cmds=.dll
10416 # FIXME: Setting linknames here is a bad hack.
10417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10418 # The linker will automatically build a .lib file if we build a DLL.
10419 old_archive_from_new_cmds='true'
10420 # FIXME: Should let the user specify the lib program.
10421 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10422 enable_shared_with_static_runtimes=yes
10423 ;;
10424 esac
10425 ;;
10426
10427 darwin* | rhapsody*)
10428
10429
10430 archive_cmds_need_lc=no
10431 hardcode_direct=no
10432 hardcode_automatic=yes
10433 hardcode_shlibpath_var=unsupported
10434 if test yes = "$lt_cv_ld_force_load"; then
10435 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\"`'
10436
10437 else
10438 whole_archive_flag_spec=''
10439 fi
10440 link_all_deplibs=yes
10441 allow_undefined_flag=$_lt_dar_allow_undefined
10442 case $cc_basename in
10443 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10444 *) _lt_dar_can_shared=$GCC ;;
10445 esac
10446 if test yes = "$_lt_dar_can_shared"; then
10447 output_verbose_link_cmd=func_echo_all
10448 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10449 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10450 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"
10451 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"
10452
10453 else
10454 ld_shlibs=no
10455 fi
10456
10457 ;;
10458
10459 dgux*)
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_shlibpath_var=no
10463 ;;
10464
10465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10466 # support. Future versions do this automatically, but an explicit c++rt0.o
10467 # does not break anything, and helps significantly (at the cost of a little
10468 # extra space).
10469 freebsd2.2*)
10470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10471 hardcode_libdir_flag_spec='-R$libdir'
10472 hardcode_direct=yes
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10477 freebsd2.*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_minus_L=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10485 freebsd* | dragonfly*)
10486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 hpux9*)
10493 if test yes = "$GCC"; then
10494 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10495 else
10496 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10497 fi
10498 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10499 hardcode_libdir_separator=:
10500 hardcode_direct=yes
10501
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L=yes
10505 export_dynamic_flag_spec='$wl-E'
10506 ;;
10507
10508 hpux10*)
10509 if test yes,no = "$GCC,$with_gnu_ld"; then
10510 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10511 else
10512 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10513 fi
10514 if test no = "$with_gnu_ld"; then
10515 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_direct=yes
10518 hardcode_direct_absolute=yes
10519 export_dynamic_flag_spec='$wl-E'
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10523 fi
10524 ;;
10525
10526 hpux11*)
10527 if test yes,no = "$GCC,$with_gnu_ld"; then
10528 case $host_cpu in
10529 hppa*64*)
10530 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 ;;
10532 ia64*)
10533 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10534 ;;
10535 *)
10536 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10537 ;;
10538 esac
10539 else
10540 case $host_cpu in
10541 hppa*64*)
10542 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 ;;
10544 ia64*)
10545 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10546 ;;
10547 *)
10548
10549 # Older versions of the 11.00 compiler do not understand -b yet
10550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10552 $as_echo_n "checking if $CC understands -b... " >&6; }
10553 if ${lt_cv_prog_compiler__b+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 lt_cv_prog_compiler__b=no
10557 save_LDFLAGS=$LDFLAGS
10558 LDFLAGS="$LDFLAGS -b"
10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10561 # The linker can only warn and ignore the option if not recognized
10562 # So say no if there are warnings
10563 if test -s conftest.err; then
10564 # Append any errors to the config.log.
10565 cat conftest.err 1>&5
10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10568 if diff conftest.exp conftest.er2 >/dev/null; then
10569 lt_cv_prog_compiler__b=yes
10570 fi
10571 else
10572 lt_cv_prog_compiler__b=yes
10573 fi
10574 fi
10575 $RM -r conftest*
10576 LDFLAGS=$save_LDFLAGS
10577
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10580 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10581
10582 if test yes = "$lt_cv_prog_compiler__b"; then
10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584 else
10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10586 fi
10587
10588 ;;
10589 esac
10590 fi
10591 if test no = "$with_gnu_ld"; then
10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10593 hardcode_libdir_separator=:
10594
10595 case $host_cpu in
10596 hppa*64*|ia64*)
10597 hardcode_direct=no
10598 hardcode_shlibpath_var=no
10599 ;;
10600 *)
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='$wl-E'
10604
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10608 ;;
10609 esac
10610 fi
10611 ;;
10612
10613 irix5* | irix6* | nonstopux*)
10614 if test yes = "$GCC"; then
10615 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'
10616 # Try to use the -exported_symbol ld option, if it does not
10617 # work, assume that -exports_file does not work either and
10618 # implicitly export all symbols.
10619 # This should be the same for all languages, so no per-tag cache variable.
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10621 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10622 if ${lt_cv_irix_exported_symbol+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 save_LDFLAGS=$LDFLAGS
10626 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 int foo (void) { return 0; }
10630 _ACEOF
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 lt_cv_irix_exported_symbol=yes
10633 else
10634 lt_cv_irix_exported_symbol=no
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LDFLAGS=$save_LDFLAGS
10639 fi
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10641 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10642 if test yes = "$lt_cv_irix_exported_symbol"; then
10643 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'
10644 fi
10645 else
10646 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'
10647 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'
10648 fi
10649 archive_cmds_need_lc='no'
10650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10651 hardcode_libdir_separator=:
10652 inherit_rpath=yes
10653 link_all_deplibs=yes
10654 ;;
10655
10656 linux*)
10657 case $cc_basename in
10658 tcc*)
10659 # Fabrice Bellard et al's Tiny C Compiler
10660 ld_shlibs=yes
10661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10662 ;;
10663 esac
10664 ;;
10665
10666 netbsd*)
10667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10669 else
10670 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10671 fi
10672 hardcode_libdir_flag_spec='-R$libdir'
10673 hardcode_direct=yes
10674 hardcode_shlibpath_var=no
10675 ;;
10676
10677 newsos6)
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_direct=yes
10680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681 hardcode_libdir_separator=:
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 *nto* | *qnx*)
10686 ;;
10687
10688 openbsd* | bitrig*)
10689 if test -f /usr/libexec/ld.so; then
10690 hardcode_direct=yes
10691 hardcode_shlibpath_var=no
10692 hardcode_direct_absolute=yes
10693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10696 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10697 export_dynamic_flag_spec='$wl-E'
10698 else
10699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10701 fi
10702 else
10703 ld_shlibs=no
10704 fi
10705 ;;
10706
10707 os2*)
10708 hardcode_libdir_flag_spec='-L$libdir'
10709 hardcode_minus_L=yes
10710 allow_undefined_flag=unsupported
10711 shrext_cmds=.dll
10712 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10715 $ECHO EXPORTS >> $output_objdir/$libname.def~
10716 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10718 emximp -o $lib $output_objdir/$libname.def'
10719 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10722 $ECHO EXPORTS >> $output_objdir/$libname.def~
10723 prefix_cmds="$SED"~
10724 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10725 prefix_cmds="$prefix_cmds -e 1d";
10726 fi~
10727 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10728 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10730 emximp -o $lib $output_objdir/$libname.def'
10731 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10732 enable_shared_with_static_runtimes=yes
10733 ;;
10734
10735 osf3*)
10736 if test yes = "$GCC"; then
10737 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10738 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'
10739 else
10740 allow_undefined_flag=' -expect_unresolved \*'
10741 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'
10742 fi
10743 archive_cmds_need_lc='no'
10744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10745 hardcode_libdir_separator=:
10746 ;;
10747
10748 osf4* | osf5*) # as osf3* with the addition of -msym flag
10749 if test yes = "$GCC"; then
10750 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10751 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'
10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753 else
10754 allow_undefined_flag=' -expect_unresolved \*'
10755 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'
10756 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~
10757 $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'
10758
10759 # Both c and cxx compiler support -rpath directly
10760 hardcode_libdir_flag_spec='-rpath $libdir'
10761 fi
10762 archive_cmds_need_lc='no'
10763 hardcode_libdir_separator=:
10764 ;;
10765
10766 solaris*)
10767 no_undefined_flag=' -z defs'
10768 if test yes = "$GCC"; then
10769 wlarc='$wl'
10770 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10772 $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'
10773 else
10774 case `$CC -V 2>&1` in
10775 *"Compilers 5.0"*)
10776 wlarc=''
10777 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10779 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10780 ;;
10781 *)
10782 wlarc='$wl'
10783 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10785 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10786 ;;
10787 esac
10788 fi
10789 hardcode_libdir_flag_spec='-R$libdir'
10790 hardcode_shlibpath_var=no
10791 case $host_os in
10792 solaris2.[0-5] | solaris2.[0-5].*) ;;
10793 *)
10794 # The compiler driver will combine and reorder linker options,
10795 # but understands '-z linker_flag'. GCC discards it without '$wl',
10796 # but is careful enough not to reorder.
10797 # Supported since Solaris 2.6 (maybe 2.5.1?)
10798 if test yes = "$GCC"; then
10799 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10800 else
10801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10802 fi
10803 ;;
10804 esac
10805 link_all_deplibs=yes
10806 ;;
10807
10808 sunos4*)
10809 if test sequent = "$host_vendor"; then
10810 # Use $CC to link under sequent, because it throws in some extra .o
10811 # files that make .init and .fini sections work.
10812 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10813 else
10814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10815 fi
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_direct=yes
10818 hardcode_minus_L=yes
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 sysv4)
10823 case $host_vendor in
10824 sni)
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=yes # is this really true???
10827 ;;
10828 siemens)
10829 ## LD is ld it makes a PLAMLIB
10830 ## CC just makes a GrossModule.
10831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10832 reload_cmds='$CC -r -o $output$reload_objs'
10833 hardcode_direct=no
10834 ;;
10835 motorola)
10836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10838 ;;
10839 esac
10840 runpath_var='LD_RUN_PATH'
10841 hardcode_shlibpath_var=no
10842 ;;
10843
10844 sysv4.3*)
10845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846 hardcode_shlibpath_var=no
10847 export_dynamic_flag_spec='-Bexport'
10848 ;;
10849
10850 sysv4*MP*)
10851 if test -d /usr/nec; then
10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 hardcode_shlibpath_var=no
10854 runpath_var=LD_RUN_PATH
10855 hardcode_runpath_var=yes
10856 ld_shlibs=yes
10857 fi
10858 ;;
10859
10860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10861 no_undefined_flag='$wl-z,text'
10862 archive_cmds_need_lc=no
10863 hardcode_shlibpath_var=no
10864 runpath_var='LD_RUN_PATH'
10865
10866 if test yes = "$GCC"; then
10867 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10868 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 else
10870 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 fi
10873 ;;
10874
10875 sysv5* | sco3.2v5* | sco5v6*)
10876 # Note: We CANNOT use -z defs as we might desire, because we do not
10877 # link with -lc, and that would cause any symbols used from libc to
10878 # always be unresolved, which means just about no library would
10879 # ever link correctly. If we're not using GNU ld we use -z text
10880 # though, which does catch some bad symbols but isn't as heavy-handed
10881 # as -z defs.
10882 no_undefined_flag='$wl-z,text'
10883 allow_undefined_flag='$wl-z,nodefs'
10884 archive_cmds_need_lc=no
10885 hardcode_shlibpath_var=no
10886 hardcode_libdir_flag_spec='$wl-R,$libdir'
10887 hardcode_libdir_separator=':'
10888 link_all_deplibs=yes
10889 export_dynamic_flag_spec='$wl-Bexport'
10890 runpath_var='LD_RUN_PATH'
10891
10892 if test yes = "$GCC"; then
10893 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 else
10896 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 fi
10899 ;;
10900
10901 uts4*)
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_shlibpath_var=no
10905 ;;
10906
10907 *)
10908 ld_shlibs=no
10909 ;;
10910 esac
10911
10912 if test sni = "$host_vendor"; then
10913 case $host in
10914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10915 export_dynamic_flag_spec='$wl-Blargedynsym'
10916 ;;
10917 esac
10918 fi
10919 fi
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10922 $as_echo "$ld_shlibs" >&6; }
10923 test no = "$ld_shlibs" && can_build_shared=no
10924
10925 with_gnu_ld=$with_gnu_ld
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 #
10942 # Do we need to explicitly link libc?
10943 #
10944 case "x$archive_cmds_need_lc" in
10945 x|xyes)
10946 # Assume -lc should be added
10947 archive_cmds_need_lc=yes
10948
10949 if test yes,yes = "$GCC,$enable_shared"; then
10950 case $archive_cmds in
10951 *'~'*)
10952 # FIXME: we may have to deal with multi-command sequences.
10953 ;;
10954 '$CC '*)
10955 # Test whether the compiler implicitly links with -lc since on some
10956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10957 # to ld, don't add -lc before -lgcc.
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10959 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10960 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 $RM conftest*
10964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10967 (eval $ac_compile) 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; } 2>conftest.err; then
10971 soname=conftest
10972 lib=conftest
10973 libobjs=conftest.$ac_objext
10974 deplibs=
10975 wl=$lt_prog_compiler_wl
10976 pic_flag=$lt_prog_compiler_pic
10977 compiler_flags=-v
10978 linker_flags=-v
10979 verstring=
10980 output_objdir=.
10981 libname=conftest
10982 lt_save_allow_undefined_flag=$allow_undefined_flag
10983 allow_undefined_flag=
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10985 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986 ac_status=$?
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; }
10989 then
10990 lt_cv_archive_cmds_need_lc=no
10991 else
10992 lt_cv_archive_cmds_need_lc=yes
10993 fi
10994 allow_undefined_flag=$lt_save_allow_undefined_flag
10995 else
10996 cat conftest.err 1>&5
10997 fi
10998 $RM conftest*
10999
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11002 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11003 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11004 ;;
11005 esac
11006 fi
11007 ;;
11008 esac
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11163
11164 if test yes = "$GCC"; then
11165 case $host_os in
11166 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11167 *) lt_awk_arg='/^libraries:/' ;;
11168 esac
11169 case $host_os in
11170 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11171 *) lt_sed_strip_eq='s|=/|/|g' ;;
11172 esac
11173 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11174 case $lt_search_path_spec in
11175 *\;*)
11176 # if the path contains ";" then we assume it to be the separator
11177 # otherwise default to the standard path separator (i.e. ":") - it is
11178 # assumed that no part of a normal pathname contains ";" but that should
11179 # okay in the real world where ";" in dirpaths is itself problematic.
11180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11181 ;;
11182 *)
11183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11184 ;;
11185 esac
11186 # Ok, now we have the path, separated by spaces, we can step through it
11187 # and add multilib dir if necessary...
11188 lt_tmp_lt_search_path_spec=
11189 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11190 # ...but if some path component already ends with the multilib dir we assume
11191 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11192 case "$lt_multi_os_dir; $lt_search_path_spec " in
11193 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11194 lt_multi_os_dir=
11195 ;;
11196 esac
11197 for lt_sys_path in $lt_search_path_spec; do
11198 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11199 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11200 elif test -n "$lt_multi_os_dir"; then
11201 test -d "$lt_sys_path" && \
11202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11203 fi
11204 done
11205 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11206 BEGIN {RS = " "; FS = "/|\n";} {
11207 lt_foo = "";
11208 lt_count = 0;
11209 for (lt_i = NF; lt_i > 0; lt_i--) {
11210 if ($lt_i != "" && $lt_i != ".") {
11211 if ($lt_i == "..") {
11212 lt_count++;
11213 } else {
11214 if (lt_count == 0) {
11215 lt_foo = "/" $lt_i lt_foo;
11216 } else {
11217 lt_count--;
11218 }
11219 }
11220 }
11221 }
11222 if (lt_foo != "") { lt_freq[lt_foo]++; }
11223 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11224 }'`
11225 # AWK program above erroneously prepends '/' to C:/dos/paths
11226 # for these hosts.
11227 case $host_os in
11228 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11229 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11230 esac
11231 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11232 else
11233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11234 fi
11235 library_names_spec=
11236 libname_spec='lib$name'
11237 soname_spec=
11238 shrext_cmds=.so
11239 postinstall_cmds=
11240 postuninstall_cmds=
11241 finish_cmds=
11242 finish_eval=
11243 shlibpath_var=
11244 shlibpath_overrides_runpath=unknown
11245 version_type=none
11246 dynamic_linker="$host_os ld.so"
11247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11248 need_lib_prefix=unknown
11249 hardcode_into_libs=no
11250
11251 # when you set need_version to no, make sure it does not cause -set_version
11252 # flags to be left without arguments
11253 need_version=unknown
11254
11255
11256
11257 case $host_os in
11258 aix3*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11261 shlibpath_var=LIBPATH
11262
11263 # AIX 3 has no versioning support, so we append a major version to the name.
11264 soname_spec='$libname$release$shared_ext$major'
11265 ;;
11266
11267 aix[4-9]*)
11268 version_type=linux # correct to gnu/linux during the next big refactor
11269 need_lib_prefix=no
11270 need_version=no
11271 hardcode_into_libs=yes
11272 if test ia64 = "$host_cpu"; then
11273 # AIX 5 supports IA64
11274 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 else
11277 # With GCC up to 2.95.x, collect2 would create an import file
11278 # for dependence libraries. The import file would start with
11279 # the line '#! .'. This would cause the generated library to
11280 # depend on '.', always an invalid library. This was fixed in
11281 # development snapshots of GCC prior to 3.0.
11282 case $host_os in
11283 aix4 | aix4.[01] | aix4.[01].*)
11284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11285 echo ' yes '
11286 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11287 :
11288 else
11289 can_build_shared=no
11290 fi
11291 ;;
11292 esac
11293 # Using Import Files as archive members, it is possible to support
11294 # filename-based versioning of shared library archives on AIX. While
11295 # this would work for both with and without runtime linking, it will
11296 # prevent static linking of such archives. So we do filename-based
11297 # shared library versioning with .so extension only, which is used
11298 # when both runtime linking and shared linking is enabled.
11299 # Unfortunately, runtime linking may impact performance, so we do
11300 # not want this to be the default eventually. Also, we use the
11301 # versioned .so libs for executables only if there is the -brtl
11302 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11303 # To allow for filename-based versioning support, we need to create
11304 # libNAME.so.V as an archive file, containing:
11305 # *) an Import File, referring to the versioned filename of the
11306 # archive as well as the shared archive member, telling the
11307 # bitwidth (32 or 64) of that shared object, and providing the
11308 # list of exported symbols of that shared object, eventually
11309 # decorated with the 'weak' keyword
11310 # *) the shared object with the F_LOADONLY flag set, to really avoid
11311 # it being seen by the linker.
11312 # At run time we better use the real file rather than another symlink,
11313 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11314
11315 case $with_aix_soname,$aix_use_runtimelinking in
11316 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 aix,yes) # traditional libtool
11320 dynamic_linker='AIX unversionable lib.so'
11321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322 # instead of lib<name>.a to let people know that these are not
11323 # typical AIX shared libraries.
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 ;;
11326 aix,no) # traditional AIX only
11327 dynamic_linker='AIX lib.a(lib.so.V)'
11328 # We preserve .a as extension for shared libraries through AIX4.2
11329 # and later when we are not doing run time linking.
11330 library_names_spec='$libname$release.a $libname.a'
11331 soname_spec='$libname$release$shared_ext$major'
11332 ;;
11333 svr4,*) # full svr4 only
11334 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11335 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11336 # We do not specify a path in Import Files, so LIBPATH fires.
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 *,yes) # both, prefer svr4
11340 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11341 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11342 # unpreferred sharedlib libNAME.a needs extra handling
11343 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11344 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11345 # We do not specify a path in Import Files, so LIBPATH fires.
11346 shlibpath_overrides_runpath=yes
11347 ;;
11348 *,no) # both, prefer aix
11349 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11350 library_names_spec='$libname$release.a $libname.a'
11351 soname_spec='$libname$release$shared_ext$major'
11352 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11353 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11354 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11355 ;;
11356 esac
11357 shlibpath_var=LIBPATH
11358 fi
11359 ;;
11360
11361 amigaos*)
11362 case $host_cpu in
11363 powerpc)
11364 # Since July 2007 AmigaOS4 officially supports .so libraries.
11365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 ;;
11368 m68k)
11369 library_names_spec='$libname.ixlibrary $libname.a'
11370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11371 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11372 ;;
11373 esac
11374 ;;
11375
11376 beos*)
11377 library_names_spec='$libname$shared_ext'
11378 dynamic_linker="$host_os ld.so"
11379 shlibpath_var=LIBRARY_PATH
11380 ;;
11381
11382 bsdi[45]*)
11383 version_type=linux # correct to gnu/linux during the next big refactor
11384 need_version=no
11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386 soname_spec='$libname$release$shared_ext$major'
11387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391 # the default ld.so.conf also contains /usr/contrib/lib and
11392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393 # libtool to hard-code these into programs
11394 ;;
11395
11396 cygwin* | mingw* | pw32* | cegcc*)
11397 version_type=windows
11398 shrext_cmds=.dll
11399 need_version=no
11400 need_lib_prefix=no
11401
11402 case $GCC,$cc_basename in
11403 yes,*)
11404 # gcc
11405 library_names_spec='$libname.dll.a'
11406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11407 postinstall_cmds='base_file=`basename \$file`~
11408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11409 dldir=$destdir/`dirname \$dlpath`~
11410 test -d \$dldir || mkdir -p \$dldir~
11411 $install_prog $dir/$dlname \$dldir/$dlname~
11412 chmod a+x \$dldir/$dlname~
11413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11415 fi'
11416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11417 dlpath=$dir/\$dldll~
11418 $RM \$dlpath'
11419 shlibpath_overrides_runpath=yes
11420
11421 case $host_os in
11422 cygwin*)
11423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11424 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11425
11426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11427 ;;
11428 mingw* | cegcc*)
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11431 ;;
11432 pw32*)
11433 # pw32 DLLs use 'pw' prefix rather than 'lib'
11434 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11435 ;;
11436 esac
11437 dynamic_linker='Win32 ld.exe'
11438 ;;
11439
11440 *,cl*)
11441 # Native MSVC
11442 libname_spec='$name'
11443 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11444 library_names_spec='$libname.dll.lib'
11445
11446 case $build_os in
11447 mingw*)
11448 sys_lib_search_path_spec=
11449 lt_save_ifs=$IFS
11450 IFS=';'
11451 for lt_path in $LIB
11452 do
11453 IFS=$lt_save_ifs
11454 # Let DOS variable expansion print the short 8.3 style file name.
11455 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11456 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11457 done
11458 IFS=$lt_save_ifs
11459 # Convert to MSYS style.
11460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11461 ;;
11462 cygwin*)
11463 # Convert to unix form, then to dos form, then back to unix form
11464 # but this time dos style (no spaces!) so that the unix form looks
11465 # like /cygdrive/c/PROGRA~1:/cygdr...
11466 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11467 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11468 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11469 ;;
11470 *)
11471 sys_lib_search_path_spec=$LIB
11472 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11473 # It is most probably a Windows format PATH.
11474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11475 else
11476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 fi
11478 # FIXME: find the short name or the path components, as spaces are
11479 # common. (e.g. "Program Files" -> "PROGRA~1")
11480 ;;
11481 esac
11482
11483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484 postinstall_cmds='base_file=`basename \$file`~
11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11486 dldir=$destdir/`dirname \$dlpath`~
11487 test -d \$dldir || mkdir -p \$dldir~
11488 $install_prog $dir/$dlname \$dldir/$dlname'
11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490 dlpath=$dir/\$dldll~
11491 $RM \$dlpath'
11492 shlibpath_overrides_runpath=yes
11493 dynamic_linker='Win32 link.exe'
11494 ;;
11495
11496 *)
11497 # Assume MSVC wrapper
11498 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11499 dynamic_linker='Win32 ld.exe'
11500 ;;
11501 esac
11502 # FIXME: first we should search . and the directory the executable is in
11503 shlibpath_var=PATH
11504 ;;
11505
11506 darwin* | rhapsody*)
11507 dynamic_linker="$host_os dyld"
11508 version_type=darwin
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11512 soname_spec='$libname$release$major$shared_ext'
11513 shlibpath_overrides_runpath=yes
11514 shlibpath_var=DYLD_LIBRARY_PATH
11515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11516
11517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11519 ;;
11520
11521 dgux*)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 ;;
11529
11530 freebsd* | dragonfly*)
11531 # DragonFly does not have aout. When/if they implement a new
11532 # versioning mechanism, adjust this.
11533 if test -x /usr/bin/objformat; then
11534 objformat=`/usr/bin/objformat`
11535 else
11536 case $host_os in
11537 freebsd[23].*) objformat=aout ;;
11538 *) objformat=elf ;;
11539 esac
11540 fi
11541 version_type=freebsd-$objformat
11542 case $version_type in
11543 freebsd-elf*)
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 soname_spec='$libname$release$shared_ext$major'
11546 need_version=no
11547 need_lib_prefix=no
11548 ;;
11549 freebsd-*)
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11551 need_version=yes
11552 ;;
11553 esac
11554 shlibpath_var=LD_LIBRARY_PATH
11555 case $host_os in
11556 freebsd2.*)
11557 shlibpath_overrides_runpath=yes
11558 ;;
11559 freebsd3.[01]* | freebsdelf3.[01]*)
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11562 ;;
11563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11565 shlibpath_overrides_runpath=no
11566 hardcode_into_libs=yes
11567 ;;
11568 *) # from 4.6 on, and DragonFly
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11571 ;;
11572 esac
11573 ;;
11574
11575 haiku*)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 need_lib_prefix=no
11578 need_version=no
11579 dynamic_linker="$host_os runtime_loader"
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 soname_spec='$libname$release$shared_ext$major'
11582 shlibpath_var=LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11585 hardcode_into_libs=yes
11586 ;;
11587
11588 hpux9* | hpux10* | hpux11*)
11589 # Give a soname corresponding to the major version so that dld.sl refuses to
11590 # link against other versions.
11591 version_type=sunos
11592 need_lib_prefix=no
11593 need_version=no
11594 case $host_cpu in
11595 ia64*)
11596 shrext_cmds='.so'
11597 hardcode_into_libs=yes
11598 dynamic_linker="$host_os dld.so"
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602 soname_spec='$libname$release$shared_ext$major'
11603 if test 32 = "$HPUX_IA64_MODE"; then
11604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11605 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11606 else
11607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11609 fi
11610 ;;
11611 hppa*64*)
11612 shrext_cmds='.sl'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 ;;
11622 *)
11623 shrext_cmds='.sl'
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=SHLIB_PATH
11626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628 soname_spec='$libname$release$shared_ext$major'
11629 ;;
11630 esac
11631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11632 postinstall_cmds='chmod 555 $lib'
11633 # or fails outright, so override atomically:
11634 install_override_mode=555
11635 ;;
11636
11637 interix[3-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 soname_spec='$libname$release$shared_ext$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 ;;
11648
11649 irix5* | irix6* | nonstopux*)
11650 case $host_os in
11651 nonstopux*) version_type=nonstopux ;;
11652 *)
11653 if test yes = "$lt_cv_prog_gnu_ld"; then
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 else
11656 version_type=irix
11657 fi ;;
11658 esac
11659 need_lib_prefix=no
11660 need_version=no
11661 soname_spec='$libname$release$shared_ext$major'
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11663 case $host_os in
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11666 ;;
11667 *)
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11676 esac
11677 ;;
11678 esac
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11682 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11683 hardcode_into_libs=yes
11684 ;;
11685
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11688 dynamic_linker=no
11689 ;;
11690
11691 linux*android*)
11692 version_type=none # Android doesn't support versioned libraries.
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='$libname$release$shared_ext'
11696 soname_spec='$libname$release$shared_ext'
11697 finish_cmds=
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11700
11701 # This implies no fast_install, which is unacceptable.
11702 # Some rework will be needed to allow for fast_install
11703 # before this can be enabled.
11704 hardcode_into_libs=yes
11705
11706 dynamic_linker='Android linker'
11707 # Don't embed -rpath directories since the linker doesn't support them.
11708 hardcode_libdir_flag_spec='-L$libdir'
11709 ;;
11710
11711 # This must be glibc/ELF.
11712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11713 version_type=linux # correct to gnu/linux during the next big refactor
11714 need_lib_prefix=no
11715 need_version=no
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717 soname_spec='$libname$release$shared_ext$major'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721
11722 # Some binutils ld are patched to set DT_RUNPATH
11723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 lt_cv_shlibpath_overrides_runpath=no
11727 save_LDFLAGS=$LDFLAGS
11728 save_libdir=$libdir
11729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733
11734 int
11735 main ()
11736 {
11737
11738 ;
11739 return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"; then :
11743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11744 lt_cv_shlibpath_overrides_runpath=yes
11745 fi
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LDFLAGS=$save_LDFLAGS
11750 libdir=$save_libdir
11751
11752 fi
11753
11754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11755
11756 # This implies no fast_install, which is unacceptable.
11757 # Some rework will be needed to allow for fast_install
11758 # before this can be enabled.
11759 hardcode_into_libs=yes
11760
11761 # Add ABI-specific directories to the system library path.
11762 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11763
11764 # Ideally, we could use ldconfig to report *all* directores which are
11765 # searched for libraries, however this is still not possible. Aside from not
11766 # being certain /sbin/ldconfig is available, command
11767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11768 # even though it is searched at run-time. Try to do the best guess by
11769 # appending ld.so.conf contents (and includes) to the search path.
11770 if test -f /etc/ld.so.conf; then
11771 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' ' '`
11772 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11773 fi
11774
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11782 ;;
11783
11784 netbsd*)
11785 version_type=sunos
11786 need_lib_prefix=no
11787 need_version=no
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11792 else
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11796 fi
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 ;;
11801
11802 newsos6)
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 ;;
11808
11809 *nto* | *qnx*)
11810 version_type=qnx
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11819 ;;
11820
11821 openbsd* | bitrig*)
11822 version_type=sunos
11823 sys_lib_dlsearch_path_spec=/usr/lib
11824 need_lib_prefix=no
11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11826 need_version=no
11827 else
11828 need_version=yes
11829 fi
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 ;;
11835
11836 os2*)
11837 libname_spec='$name'
11838 version_type=windows
11839 shrext_cmds=.dll
11840 need_version=no
11841 need_lib_prefix=no
11842 # OS/2 can only load a DLL with a base name of 8 characters or less.
11843 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11844 v=$($ECHO $release$versuffix | tr -d .-);
11845 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11846 $ECHO $n$v`$shared_ext'
11847 library_names_spec='${libname}_dll.$libext'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=BEGINLIBPATH
11850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11852 postinstall_cmds='base_file=`basename \$file`~
11853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11854 dldir=$destdir/`dirname \$dlpath`~
11855 test -d \$dldir || mkdir -p \$dldir~
11856 $install_prog $dir/$dlname \$dldir/$dlname~
11857 chmod a+x \$dldir/$dlname~
11858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11859 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 fi'
11861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11862 dlpath=$dir/\$dldll~
11863 $RM \$dlpath'
11864 ;;
11865
11866 osf3* | osf4* | osf5*)
11867 version_type=osf
11868 need_lib_prefix=no
11869 need_version=no
11870 soname_spec='$libname$release$shared_ext$major'
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11875 ;;
11876
11877 rdos*)
11878 dynamic_linker=no
11879 ;;
11880
11881 solaris*)
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 need_lib_prefix=no
11884 need_version=no
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11890 # ldd complains unless libraries are executable
11891 postinstall_cmds='chmod +x $lib'
11892 ;;
11893
11894 sunos4*)
11895 version_type=sunos
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=yes
11900 if test yes = "$with_gnu_ld"; then
11901 need_lib_prefix=no
11902 fi
11903 need_version=yes
11904 ;;
11905
11906 sysv4 | sysv4.3*)
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909 soname_spec='$libname$release$shared_ext$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 case $host_vendor in
11912 sni)
11913 shlibpath_overrides_runpath=no
11914 need_lib_prefix=no
11915 runpath_var=LD_RUN_PATH
11916 ;;
11917 siemens)
11918 need_lib_prefix=no
11919 ;;
11920 motorola)
11921 need_lib_prefix=no
11922 need_version=no
11923 shlibpath_overrides_runpath=no
11924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 ;;
11926 esac
11927 ;;
11928
11929 sysv4*MP*)
11930 if test -d /usr/nec; then
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11933 soname_spec='$libname$shared_ext.$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 fi
11936 ;;
11937
11938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11939 version_type=sco
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11943 soname_spec='$libname$release$shared_ext$major'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=yes
11946 hardcode_into_libs=yes
11947 if test yes = "$with_gnu_ld"; then
11948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11949 else
11950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11951 case $host_os in
11952 sco3.2v5*)
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11954 ;;
11955 esac
11956 fi
11957 sys_lib_dlsearch_path_spec='/usr/lib'
11958 ;;
11959
11960 tpf*)
11961 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11962 version_type=linux # correct to gnu/linux during the next big refactor
11963 need_lib_prefix=no
11964 need_version=no
11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=no
11968 hardcode_into_libs=yes
11969 ;;
11970
11971 uts4*)
11972 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 ;;
11977
11978 *)
11979 dynamic_linker=no
11980 ;;
11981 esac
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11983 $as_echo "$dynamic_linker" >&6; }
11984 test no = "$dynamic_linker" && can_build_shared=no
11985
11986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11987 if test yes = "$GCC"; then
11988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11989 fi
11990
11991 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11992 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11993 fi
11994
11995 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11996 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11997 fi
11998
11999 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12000 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12001
12002 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12003 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12004
12005 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12006 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12106 hardcode_action=
12107 if test -n "$hardcode_libdir_flag_spec" ||
12108 test -n "$runpath_var" ||
12109 test yes = "$hardcode_automatic"; then
12110
12111 # We can hardcode non-existent directories.
12112 if test no != "$hardcode_direct" &&
12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114 # have to relink, otherwise we might link with an installed library
12115 # when we should be linking with a yet-to-be-installed one
12116 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12117 test no != "$hardcode_minus_L"; then
12118 # Linking always hardcodes the temporary library directory.
12119 hardcode_action=relink
12120 else
12121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122 hardcode_action=immediate
12123 fi
12124 else
12125 # We cannot hardcode anything, or else we can only hardcode existing
12126 # directories.
12127 hardcode_action=unsupported
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130 $as_echo "$hardcode_action" >&6; }
12131
12132 if test relink = "$hardcode_action" ||
12133 test yes = "$inherit_rpath"; then
12134 # Fast installation is not supported
12135 enable_fast_install=no
12136 elif test yes = "$shlibpath_overrides_runpath" ||
12137 test no = "$enable_shared"; then
12138 # Fast installation is not necessary
12139 enable_fast_install=needless
12140 fi
12141
12142
12143
12144
12145
12146
12147 if test yes != "$enable_dlopen"; then
12148 enable_dlopen=unknown
12149 enable_dlopen_self=unknown
12150 enable_dlopen_self_static=unknown
12151 else
12152 lt_cv_dlopen=no
12153 lt_cv_dlopen_libs=
12154
12155 case $host_os in
12156 beos*)
12157 lt_cv_dlopen=load_add_on
12158 lt_cv_dlopen_libs=
12159 lt_cv_dlopen_self=yes
12160 ;;
12161
12162 mingw* | pw32* | cegcc*)
12163 lt_cv_dlopen=LoadLibrary
12164 lt_cv_dlopen_libs=
12165 ;;
12166
12167 cygwin*)
12168 lt_cv_dlopen=dlopen
12169 lt_cv_dlopen_libs=
12170 ;;
12171
12172 darwin*)
12173 # if libdl is installed we need to link against it
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12176 if ${ac_cv_lib_dl_dlopen+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldl $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char dlopen ();
12191 int
12192 main ()
12193 {
12194 return dlopen ();
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dl_dlopen=yes
12201 else
12202 ac_cv_lib_dl_dlopen=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12210 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12212 else
12213
12214 lt_cv_dlopen=dyld
12215 lt_cv_dlopen_libs=
12216 lt_cv_dlopen_self=yes
12217
12218 fi
12219
12220 ;;
12221
12222 tpf*)
12223 # Don't try to run any link tests for TPF. We know it's impossible
12224 # because TPF is a cross-compiler, and we know how we open DSOs.
12225 lt_cv_dlopen=dlopen
12226 lt_cv_dlopen_libs=
12227 lt_cv_dlopen_self=no
12228 ;;
12229
12230 *)
12231 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12232 if test "x$ac_cv_func_shl_load" = xyes; then :
12233 lt_cv_dlopen=shl_load
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12236 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12237 if ${ac_cv_lib_dld_shl_load+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-ldld $LIBS"
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char shl_load ();
12252 int
12253 main ()
12254 {
12255 return shl_load ();
12256 ;
12257 return 0;
12258 }
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_lib_dld_shl_load=yes
12262 else
12263 ac_cv_lib_dld_shl_load=no
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12270 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12271 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12272 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12273 else
12274 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12275 if test "x$ac_cv_func_dlopen" = xyes; then :
12276 lt_cv_dlopen=dlopen
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12280 if ${ac_cv_lib_dl_dlopen+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-ldl $LIBS"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char dlopen ();
12295 int
12296 main ()
12297 {
12298 return dlopen ();
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_dl_dlopen=yes
12305 else
12306 ac_cv_lib_dl_dlopen=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12314 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12315 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12318 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12319 if ${ac_cv_lib_svld_dlopen+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-lsvld $LIBS"
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char dlopen ();
12334 int
12335 main ()
12336 {
12337 return dlopen ();
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"; then :
12343 ac_cv_lib_svld_dlopen=yes
12344 else
12345 ac_cv_lib_svld_dlopen=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12352 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12353 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12354 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12357 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12358 if ${ac_cv_lib_dld_dld_link+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-ldld $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char dld_link ();
12373 int
12374 main ()
12375 {
12376 return dld_link ();
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_dld_dld_link=yes
12383 else
12384 ac_cv_lib_dld_dld_link=no
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12391 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12392 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12393 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12394 fi
12395
12396
12397 fi
12398
12399
12400 fi
12401
12402
12403 fi
12404
12405
12406 fi
12407
12408
12409 fi
12410
12411 ;;
12412 esac
12413
12414 if test no = "$lt_cv_dlopen"; then
12415 enable_dlopen=no
12416 else
12417 enable_dlopen=yes
12418 fi
12419
12420 case $lt_cv_dlopen in
12421 dlopen)
12422 save_CPPFLAGS=$CPPFLAGS
12423 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12424
12425 save_LDFLAGS=$LDFLAGS
12426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12427
12428 save_LIBS=$LIBS
12429 LIBS="$lt_cv_dlopen_libs $LIBS"
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12432 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12433 if ${lt_cv_dlopen_self+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test yes = "$cross_compiling"; then :
12437 lt_cv_dlopen_self=cross
12438 else
12439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12440 lt_status=$lt_dlunknown
12441 cat > conftest.$ac_ext <<_LT_EOF
12442 #line $LINENO "configure"
12443 #include "confdefs.h"
12444
12445 #if HAVE_DLFCN_H
12446 #include <dlfcn.h>
12447 #endif
12448
12449 #include <stdio.h>
12450
12451 #ifdef RTLD_GLOBAL
12452 # define LT_DLGLOBAL RTLD_GLOBAL
12453 #else
12454 # ifdef DL_GLOBAL
12455 # define LT_DLGLOBAL DL_GLOBAL
12456 # else
12457 # define LT_DLGLOBAL 0
12458 # endif
12459 #endif
12460
12461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12462 find out it does not work in some platform. */
12463 #ifndef LT_DLLAZY_OR_NOW
12464 # ifdef RTLD_LAZY
12465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12466 # else
12467 # ifdef DL_LAZY
12468 # define LT_DLLAZY_OR_NOW DL_LAZY
12469 # else
12470 # ifdef RTLD_NOW
12471 # define LT_DLLAZY_OR_NOW RTLD_NOW
12472 # else
12473 # ifdef DL_NOW
12474 # define LT_DLLAZY_OR_NOW DL_NOW
12475 # else
12476 # define LT_DLLAZY_OR_NOW 0
12477 # endif
12478 # endif
12479 # endif
12480 # endif
12481 #endif
12482
12483 /* When -fvisibility=hidden is used, assume the code has been annotated
12484 correspondingly for the symbols needed. */
12485 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12486 int fnord () __attribute__((visibility("default")));
12487 #endif
12488
12489 int fnord () { return 42; }
12490 int main ()
12491 {
12492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12493 int status = $lt_dlunknown;
12494
12495 if (self)
12496 {
12497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12498 else
12499 {
12500 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12501 else puts (dlerror ());
12502 }
12503 /* dlclose (self); */
12504 }
12505 else
12506 puts (dlerror ());
12507
12508 return status;
12509 }
12510 _LT_EOF
12511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12512 (eval $ac_link) 2>&5
12513 ac_status=$?
12514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12516 (./conftest; exit; ) >&5 2>/dev/null
12517 lt_status=$?
12518 case x$lt_status in
12519 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12520 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12521 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12522 esac
12523 else :
12524 # compilation failed
12525 lt_cv_dlopen_self=no
12526 fi
12527 fi
12528 rm -fr conftest*
12529
12530
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12533 $as_echo "$lt_cv_dlopen_self" >&6; }
12534
12535 if test yes = "$lt_cv_dlopen_self"; then
12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12538 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12539 if ${lt_cv_dlopen_self_static+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 if test yes = "$cross_compiling"; then :
12543 lt_cv_dlopen_self_static=cross
12544 else
12545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12546 lt_status=$lt_dlunknown
12547 cat > conftest.$ac_ext <<_LT_EOF
12548 #line $LINENO "configure"
12549 #include "confdefs.h"
12550
12551 #if HAVE_DLFCN_H
12552 #include <dlfcn.h>
12553 #endif
12554
12555 #include <stdio.h>
12556
12557 #ifdef RTLD_GLOBAL
12558 # define LT_DLGLOBAL RTLD_GLOBAL
12559 #else
12560 # ifdef DL_GLOBAL
12561 # define LT_DLGLOBAL DL_GLOBAL
12562 # else
12563 # define LT_DLGLOBAL 0
12564 # endif
12565 #endif
12566
12567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12568 find out it does not work in some platform. */
12569 #ifndef LT_DLLAZY_OR_NOW
12570 # ifdef RTLD_LAZY
12571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12572 # else
12573 # ifdef DL_LAZY
12574 # define LT_DLLAZY_OR_NOW DL_LAZY
12575 # else
12576 # ifdef RTLD_NOW
12577 # define LT_DLLAZY_OR_NOW RTLD_NOW
12578 # else
12579 # ifdef DL_NOW
12580 # define LT_DLLAZY_OR_NOW DL_NOW
12581 # else
12582 # define LT_DLLAZY_OR_NOW 0
12583 # endif
12584 # endif
12585 # endif
12586 # endif
12587 #endif
12588
12589 /* When -fvisibility=hidden is used, assume the code has been annotated
12590 correspondingly for the symbols needed. */
12591 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12592 int fnord () __attribute__((visibility("default")));
12593 #endif
12594
12595 int fnord () { return 42; }
12596 int main ()
12597 {
12598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12599 int status = $lt_dlunknown;
12600
12601 if (self)
12602 {
12603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12604 else
12605 {
12606 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12607 else puts (dlerror ());
12608 }
12609 /* dlclose (self); */
12610 }
12611 else
12612 puts (dlerror ());
12613
12614 return status;
12615 }
12616 _LT_EOF
12617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12622 (./conftest; exit; ) >&5 2>/dev/null
12623 lt_status=$?
12624 case x$lt_status in
12625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12628 esac
12629 else :
12630 # compilation failed
12631 lt_cv_dlopen_self_static=no
12632 fi
12633 fi
12634 rm -fr conftest*
12635
12636
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12639 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12640 fi
12641
12642 CPPFLAGS=$save_CPPFLAGS
12643 LDFLAGS=$save_LDFLAGS
12644 LIBS=$save_LIBS
12645 ;;
12646 esac
12647
12648 case $lt_cv_dlopen_self in
12649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12650 *) enable_dlopen_self=unknown ;;
12651 esac
12652
12653 case $lt_cv_dlopen_self_static in
12654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12655 *) enable_dlopen_self_static=unknown ;;
12656 esac
12657 fi
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675 striplib=
12676 old_striplib=
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12678 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12679 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12681 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12683 $as_echo "yes" >&6; }
12684 else
12685 # FIXME - insert some real tests, host_os isn't really good enough
12686 case $host_os in
12687 darwin*)
12688 if test -n "$STRIP"; then
12689 striplib="$STRIP -x"
12690 old_striplib="$STRIP -S"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692 $as_echo "yes" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696 fi
12697 ;;
12698 *)
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 ;;
12702 esac
12703 fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 # Report what library types will actually be built
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12718 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12720 $as_echo "$can_build_shared" >&6; }
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12723 $as_echo_n "checking whether to build shared libraries... " >&6; }
12724 test no = "$can_build_shared" && enable_shared=no
12725
12726 # On AIX, shared libraries and static libraries use the same namespace, and
12727 # are all built from PIC.
12728 case $host_os in
12729 aix3*)
12730 test yes = "$enable_shared" && enable_static=no
12731 if test -n "$RANLIB"; then
12732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12733 postinstall_cmds='$RANLIB $lib'
12734 fi
12735 ;;
12736
12737 aix[4-9]*)
12738 if test ia64 != "$host_cpu"; then
12739 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12740 yes,aix,yes) ;; # shared object as lib.so file only
12741 yes,svr4,*) ;; # shared object as lib.so archive member only
12742 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12743 esac
12744 fi
12745 ;;
12746 esac
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12748 $as_echo "$enable_shared" >&6; }
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12751 $as_echo_n "checking whether to build static libraries... " >&6; }
12752 # Make sure either enable_shared or enable_static is yes.
12753 test yes = "$enable_shared" || enable_static=yes
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12755 $as_echo "$enable_static" >&6; }
12756
12757
12758
12759
12760 fi
12761 ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766
12767 CC=$lt_save_CC
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 ac_config_commands="$ac_config_commands libtool"
12784
12785
12786
12787
12788 # Only expand once:
12789
12790
12791
12792 if test "$GCC" = yes ; then
12793 CXXFLAGS="$CXXFLAGS -Wall"
12794 CFLAGS="$CFLAGS -Wall"
12795 fi
12796
12797 CFLAGS="$CFLAGS -I.. -I$srcdir/.."
12798
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12801 $as_echo_n "checking for ANSI C header files... " >&6; }
12802 if ${ac_cv_header_stdc+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 #include <stdlib.h>
12808 #include <stdarg.h>
12809 #include <string.h>
12810 #include <float.h>
12811
12812 int
12813 main ()
12814 {
12815
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821 ac_cv_header_stdc=yes
12822 else
12823 ac_cv_header_stdc=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826
12827 if test $ac_cv_header_stdc = yes; then
12828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 #include <string.h>
12832
12833 _ACEOF
12834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12835 $EGREP "memchr" >/dev/null 2>&1; then :
12836
12837 else
12838 ac_cv_header_stdc=no
12839 fi
12840 rm -f conftest*
12841
12842 fi
12843
12844 if test $ac_cv_header_stdc = yes; then
12845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include <stdlib.h>
12849
12850 _ACEOF
12851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12852 $EGREP "free" >/dev/null 2>&1; then :
12853
12854 else
12855 ac_cv_header_stdc=no
12856 fi
12857 rm -f conftest*
12858
12859 fi
12860
12861 if test $ac_cv_header_stdc = yes; then
12862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12863 if test "$cross_compiling" = yes; then :
12864 :
12865 else
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <ctype.h>
12869 #include <stdlib.h>
12870 #if ((' ' & 0x0FF) == 0x020)
12871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12873 #else
12874 # define ISLOWER(c) \
12875 (('a' <= (c) && (c) <= 'i') \
12876 || ('j' <= (c) && (c) <= 'r') \
12877 || ('s' <= (c) && (c) <= 'z'))
12878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12879 #endif
12880
12881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12882 int
12883 main ()
12884 {
12885 int i;
12886 for (i = 0; i < 256; i++)
12887 if (XOR (islower (i), ISLOWER (i))
12888 || toupper (i) != TOUPPER (i))
12889 return 2;
12890 return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_run "$LINENO"; then :
12894
12895 else
12896 ac_cv_header_stdc=no
12897 fi
12898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12899 conftest.$ac_objext conftest.beam conftest.$ac_ext
12900 fi
12901
12902 fi
12903 fi
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12905 $as_echo "$ac_cv_header_stdc" >&6; }
12906 if test $ac_cv_header_stdc = yes; then
12907
12908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12909
12910 fi
12911
12912 for ac_header in locale.h
12913 do :
12914 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12915 if test "x$ac_cv_header_locale_h" = xyes; then :
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_LOCALE_H 1
12918 _ACEOF
12919
12920 fi
12921
12922 done
12923
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12926 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12927 if ${ac_cv_c_const+:} false; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12932
12933 int
12934 main ()
12935 {
12936
12937 #ifndef __cplusplus
12938 /* Ultrix mips cc rejects this sort of thing. */
12939 typedef int charset[2];
12940 const charset cs = { 0, 0 };
12941 /* SunOS 4.1.1 cc rejects this. */
12942 char const *const *pcpcc;
12943 char **ppc;
12944 /* NEC SVR4.0.2 mips cc rejects this. */
12945 struct point {int x, y;};
12946 static struct point const zero = {0,0};
12947 /* AIX XL C 1.02.0.0 rejects this.
12948 It does not let you subtract one const X* pointer from another in
12949 an arm of an if-expression whose if-part is not a constant
12950 expression */
12951 const char *g = "string";
12952 pcpcc = &g + (g ? g-g : 0);
12953 /* HPUX 7.0 cc rejects these. */
12954 ++pcpcc;
12955 ppc = (char**) pcpcc;
12956 pcpcc = (char const *const *) ppc;
12957 { /* SCO 3.2v4 cc rejects this sort of thing. */
12958 char tx;
12959 char *t = &tx;
12960 char const *s = 0 ? (char *) 0 : (char const *) 0;
12961
12962 *t++ = 0;
12963 if (s) return 0;
12964 }
12965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12966 int x[] = {25, 17};
12967 const int *foo = &x[0];
12968 ++foo;
12969 }
12970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12971 typedef const int *iptr;
12972 iptr p = 0;
12973 ++p;
12974 }
12975 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12977 struct s { int j; const int *ap[3]; } bx;
12978 struct s *b = &bx; b->j = 5;
12979 }
12980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12981 const int foo = 10;
12982 if (!foo) return 0;
12983 }
12984 return !cs[0] && !zero.x;
12985 #endif
12986
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 ac_cv_c_const=yes
12993 else
12994 ac_cv_c_const=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12999 $as_echo "$ac_cv_c_const" >&6; }
13000 if test $ac_cv_c_const = no; then
13001
13002 $as_echo "#define const /**/" >>confdefs.h
13003
13004 fi
13005
13006 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13007 if test "x$ac_cv_type_size_t" = xyes; then :
13008
13009 else
13010
13011 cat >>confdefs.h <<_ACEOF
13012 #define size_t unsigned int
13013 _ACEOF
13014
13015 fi
13016
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13018 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13019 if ${ac_cv_struct_tm+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 #include <sys/types.h>
13025 #include <time.h>
13026
13027 int
13028 main ()
13029 {
13030 struct tm tm;
13031 int *p = &tm.tm_sec;
13032 return !p;
13033 ;
13034 return 0;
13035 }
13036 _ACEOF
13037 if ac_fn_c_try_compile "$LINENO"; then :
13038 ac_cv_struct_tm=time.h
13039 else
13040 ac_cv_struct_tm=sys/time.h
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13045 $as_echo "$ac_cv_struct_tm" >&6; }
13046 if test $ac_cv_struct_tm = sys/time.h; then
13047
13048 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13049
13050 fi
13051
13052 # Check whether --enable-largefile was given.
13053 if test "${enable_largefile+set}" = set; then :
13054 enableval=$enable_largefile;
13055 fi
13056
13057 if test "$enable_largefile" != no; then
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13060 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13061 if ${ac_cv_sys_largefile_CC+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_cv_sys_largefile_CC=no
13065 if test "$GCC" != yes; then
13066 ac_save_CC=$CC
13067 while :; do
13068 # IRIX 6.2 and later do not support large files by default,
13069 # so use the C compiler's -n32 option if that helps.
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072 #include <sys/types.h>
13073 /* Check that off_t can represent 2**63 - 1 correctly.
13074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13075 since some C++ compilers masquerading as C compilers
13076 incorrectly reject 9223372036854775807. */
13077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13079 && LARGE_OFF_T % 2147483647 == 1)
13080 ? 1 : -1];
13081 int
13082 main ()
13083 {
13084
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 if ac_fn_c_try_compile "$LINENO"; then :
13090 break
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext
13093 CC="$CC -n32"
13094 if ac_fn_c_try_compile "$LINENO"; then :
13095 ac_cv_sys_largefile_CC=' -n32'; break
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext
13098 break
13099 done
13100 CC=$ac_save_CC
13101 rm -f conftest.$ac_ext
13102 fi
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13105 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13106 if test "$ac_cv_sys_largefile_CC" != no; then
13107 CC=$CC$ac_cv_sys_largefile_CC
13108 fi
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13111 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13112 if ${ac_cv_sys_file_offset_bits+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 while :; do
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 #include <sys/types.h>
13119 /* Check that off_t can represent 2**63 - 1 correctly.
13120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13121 since some C++ compilers masquerading as C compilers
13122 incorrectly reject 9223372036854775807. */
13123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13125 && LARGE_OFF_T % 2147483647 == 1)
13126 ? 1 : -1];
13127 int
13128 main ()
13129 {
13130
13131 ;
13132 return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_compile "$LINENO"; then :
13136 ac_cv_sys_file_offset_bits=no; break
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 #define _FILE_OFFSET_BITS 64
13142 #include <sys/types.h>
13143 /* Check that off_t can represent 2**63 - 1 correctly.
13144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13145 since some C++ compilers masquerading as C compilers
13146 incorrectly reject 9223372036854775807. */
13147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13149 && LARGE_OFF_T % 2147483647 == 1)
13150 ? 1 : -1];
13151 int
13152 main ()
13153 {
13154
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 ac_cv_sys_file_offset_bits=64; break
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 ac_cv_sys_file_offset_bits=unknown
13164 break
13165 done
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13168 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13169 case $ac_cv_sys_file_offset_bits in #(
13170 no | unknown) ;;
13171 *)
13172 cat >>confdefs.h <<_ACEOF
13173 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13174 _ACEOF
13175 ;;
13176 esac
13177 rm -rf conftest*
13178 if test $ac_cv_sys_file_offset_bits = unknown; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13180 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13181 if ${ac_cv_sys_large_files+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 while :; do
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 #include <sys/types.h>
13188 /* Check that off_t can represent 2**63 - 1 correctly.
13189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13190 since some C++ compilers masquerading as C compilers
13191 incorrectly reject 9223372036854775807. */
13192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13194 && LARGE_OFF_T % 2147483647 == 1)
13195 ? 1 : -1];
13196 int
13197 main ()
13198 {
13199
13200 ;
13201 return 0;
13202 }
13203 _ACEOF
13204 if ac_fn_c_try_compile "$LINENO"; then :
13205 ac_cv_sys_large_files=no; break
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #define _LARGE_FILES 1
13211 #include <sys/types.h>
13212 /* Check that off_t can represent 2**63 - 1 correctly.
13213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13214 since some C++ compilers masquerading as C compilers
13215 incorrectly reject 9223372036854775807. */
13216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13218 && LARGE_OFF_T % 2147483647 == 1)
13219 ? 1 : -1];
13220 int
13221 main ()
13222 {
13223
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_compile "$LINENO"; then :
13229 ac_cv_sys_large_files=1; break
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 ac_cv_sys_large_files=unknown
13233 break
13234 done
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13237 $as_echo "$ac_cv_sys_large_files" >&6; }
13238 case $ac_cv_sys_large_files in #(
13239 no | unknown) ;;
13240 *)
13241 cat >>confdefs.h <<_ACEOF
13242 #define _LARGE_FILES $ac_cv_sys_large_files
13243 _ACEOF
13244 ;;
13245 esac
13246 rm -rf conftest*
13247 fi
13248
13249
13250 fi
13251
13252
13253
13254
13255 # Check whether --with-libidn was given.
13256 if test "${with_libidn+set}" = set; then :
13257 withval=$with_libidn; libidn=$withval
13258 else
13259 libidn=yes
13260 fi
13261
13262
13263 if test "$libidn" != "no"
13264 then
13265
13266
13267
13268
13269
13270
13271
13272 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 case $PKG_CONFIG in
13282 [\\/]* | ?:[\\/]*)
13283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13284 ;;
13285 *)
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297 done
13298 done
13299 IFS=$as_save_IFS
13300
13301 ;;
13302 esac
13303 fi
13304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13305 if test -n "$PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13307 $as_echo "$PKG_CONFIG" >&6; }
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13311 fi
13312
13313
13314 fi
13315 if test -z "$ac_cv_path_PKG_CONFIG"; then
13316 ac_pt_PKG_CONFIG=$PKG_CONFIG
13317 # Extract the first word of "pkg-config", so it can be a program name with args.
13318 set dummy pkg-config; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 case $ac_pt_PKG_CONFIG in
13325 [\\/]* | ?:[\\/]*)
13326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13327 ;;
13328 *)
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13339 fi
13340 done
13341 done
13342 IFS=$as_save_IFS
13343
13344 ;;
13345 esac
13346 fi
13347 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13348 if test -n "$ac_pt_PKG_CONFIG"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13350 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355
13356 if test "x$ac_pt_PKG_CONFIG" = x; then
13357 PKG_CONFIG=""
13358 else
13359 case $cross_compiling:$ac_tool_warned in
13360 yes:)
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13363 ac_tool_warned=yes ;;
13364 esac
13365 PKG_CONFIG=$ac_pt_PKG_CONFIG
13366 fi
13367 else
13368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13369 fi
13370
13371 fi
13372 if test -n "$PKG_CONFIG"; then
13373 _pkg_min_version=0.9.0
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13375 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378 $as_echo "yes" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 PKG_CONFIG=""
13383 fi
13384 fi
13385
13386 pkg_failed=no
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
13388 $as_echo_n "checking for LIBIDN... " >&6; }
13389
13390 if test -n "$LIBIDN_CFLAGS"; then
13391 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
13392 elif test -n "$PKG_CONFIG"; then
13393 if test -n "$PKG_CONFIG" && \
13394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
13395 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
13396 ac_status=$?
13397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13398 test $ac_status = 0; }; then
13399 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
13400 test "x$?" != "x0" && pkg_failed=yes
13401 else
13402 pkg_failed=yes
13403 fi
13404 else
13405 pkg_failed=untried
13406 fi
13407 if test -n "$LIBIDN_LIBS"; then
13408 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
13409 elif test -n "$PKG_CONFIG"; then
13410 if test -n "$PKG_CONFIG" && \
13411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
13412 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
13413 ac_status=$?
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13415 test $ac_status = 0; }; then
13416 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
13417 test "x$?" != "x0" && pkg_failed=yes
13418 else
13419 pkg_failed=yes
13420 fi
13421 else
13422 pkg_failed=untried
13423 fi
13424
13425
13426
13427 if test $pkg_failed = yes; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430
13431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13432 _pkg_short_errors_supported=yes
13433 else
13434 _pkg_short_errors_supported=no
13435 fi
13436 if test $_pkg_short_errors_supported = yes; then
13437 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
13438 else
13439 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
13440 fi
13441 # Put the nasty error message in config.log where it belongs
13442 echo "$LIBIDN_PKG_ERRORS" >&5
13443
13444 libidn=no
13445 elif test $pkg_failed = untried; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13448 libidn=no
13449 else
13450 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
13451 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454 libidn=yes
13455 fi
13456 if test "$libidn" != "yes"
13457 then
13458 libidn=no
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found" >&5
13460 $as_echo "$as_me: WARNING: Libidn not found" >&2;}
13461 else
13462 libidn=yes
13463
13464 $as_echo "#define LIBIDN 1" >>confdefs.h
13465
13466 fi
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Libidn should be used" >&5
13469 $as_echo_n "checking if Libidn should be used... " >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libidn" >&5
13471 $as_echo "$libidn" >&6; }
13472
13473 for ac_func in strcasecmp strncasecmp setlocale
13474 do :
13475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480 _ACEOF
13481
13482 fi
13483 done
13484
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to calculate alternate timezone" >&5
13487 $as_echo_n "checking how to calculate alternate timezone... " >&6; }
13488 if ${librfc822_cv_SYS_TIMEZONE+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493
13494 #include <time.h>
13495
13496 int
13497 main ()
13498 {
13499
13500 time_t t=altzone;
13501
13502 ;
13503 return 0;
13504 }
13505 _ACEOF
13506 if ac_fn_c_try_compile "$LINENO"; then :
13507 librfc822_cv_SYS_TIMEZONE=altzone
13508 else
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511
13512 #include <time.h>
13513
13514 int
13515 main ()
13516 {
13517
13518 int n=daylight;
13519
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525 librfc822_cv_SYS_TIMEZONE=daylight
13526 else
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529
13530 #include <time.h>
13531
13532 extern struct tm dummy;
13533
13534 int
13535 main ()
13536 {
13537
13538 long n=dummy.tm_gmtoff;
13539
13540 ;
13541 return 0;
13542 }
13543 _ACEOF
13544 if ac_fn_c_try_compile "$LINENO"; then :
13545 librfc822_cv_SYS_TIMEZONE=tm_gmtoff
13546 else
13547 librfc822_cv_SYS_TIMEZONE=unknown
13548
13549 fi
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $librfc822_cv_SYS_TIMEZONE" >&5
13560 $as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; }
13561
13562 case $librfc822_cv_SYS_TIMEZONE in
13563 tm_gmtoff)
13564
13565 cat >>confdefs.h <<_ACEOF
13566 #define USE_TIME_GMTOFF 1
13567 _ACEOF
13568
13569 ;;
13570 altzone)
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define USE_TIME_ALTZONE 1
13574 _ACEOF
13575
13576 ;;
13577 daylight)
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define USE_TIME_DAYLIGHT 1
13581 _ACEOF
13582
13583 ;;
13584 *)
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5
13586 $as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;}
13587 ;;
13588 esac
13589
13590 if test -d ${srcdir}/../docbook; then
13591 HAVE_SGML_TRUE=
13592 HAVE_SGML_FALSE='#'
13593 else
13594 HAVE_SGML_TRUE='#'
13595 HAVE_SGML_FALSE=
13596 fi
13597
13598
13599 echo "libidn=$libidn" >rfc822.config
13600 ac_config_files="$ac_config_files Makefile"
13601
13602 cat >confcache <<\_ACEOF
13603 # This file is a shell script that caches the results of configure
13604 # tests run on this system so they can be shared between configure
13605 # scripts and configure runs, see configure's option --config-cache.
13606 # It is not useful on other systems. If it contains results you don't
13607 # want to keep, you may remove or edit it.
13608 #
13609 # config.status only pays attention to the cache file if you give it
13610 # the --recheck option to rerun configure.
13611 #
13612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13614 # following values.
13615
13616 _ACEOF
13617
13618 # The following way of writing the cache mishandles newlines in values,
13619 # but we know of no workaround that is simple, portable, and efficient.
13620 # So, we kill variables containing newlines.
13621 # Ultrix sh set writes to stderr and can't be redirected directly,
13622 # and sets the high bit in the cache file unless we assign to the vars.
13623 (
13624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13625 eval ac_val=\$$ac_var
13626 case $ac_val in #(
13627 *${as_nl}*)
13628 case $ac_var in #(
13629 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13631 esac
13632 case $ac_var in #(
13633 _ | IFS | as_nl) ;; #(
13634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13635 *) { eval $ac_var=; unset $ac_var;} ;;
13636 esac ;;
13637 esac
13638 done
13639
13640 (set) 2>&1 |
13641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13642 *${as_nl}ac_space=\ *)
13643 # `set' does not quote correctly, so add quotes: double-quote
13644 # substitution turns \\\\ into \\, and sed turns \\ into \.
13645 sed -n \
13646 "s/'/'\\\\''/g;
13647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13648 ;; #(
13649 *)
13650 # `set' quotes correctly as required by POSIX, so do not add quotes.
13651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13652 ;;
13653 esac |
13654 sort
13655 ) |
13656 sed '
13657 /^ac_cv_env_/b end
13658 t clear
13659 :clear
13660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13661 t end
13662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13663 :end' >>confcache
13664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13665 if test -w "$cache_file"; then
13666 if test "x$cache_file" != "x/dev/null"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13668 $as_echo "$as_me: updating cache $cache_file" >&6;}
13669 if test ! -f "$cache_file" || test -h "$cache_file"; then
13670 cat confcache >"$cache_file"
13671 else
13672 case $cache_file in #(
13673 */* | ?:*)
13674 mv -f confcache "$cache_file"$$ &&
13675 mv -f "$cache_file"$$ "$cache_file" ;; #(
13676 *)
13677 mv -f confcache "$cache_file" ;;
13678 esac
13679 fi
13680 fi
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13683 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13684 fi
13685 fi
13686 rm -f confcache
13687
13688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13689 # Let make expand exec_prefix.
13690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13691
13692 DEFS=-DHAVE_CONFIG_H
13693
13694 ac_libobjs=
13695 ac_ltlibobjs=
13696 U=
13697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13698 # 1. Remove the extension, and $U if already installed.
13699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13700 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13702 # will be set to the directory where LIBOBJS objects are built.
13703 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13704 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13705 done
13706 LIBOBJS=$ac_libobjs
13707
13708 LTLIBOBJS=$ac_ltlibobjs
13709
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13712 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13713 if test -n "$am_sleep_pid"; then
13714 # Hide warnings about reused PIDs.
13715 wait $am_sleep_pid 2>/dev/null
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13718 $as_echo "done" >&6; }
13719 if test -n "$EXEEXT"; then
13720 am__EXEEXT_TRUE=
13721 am__EXEEXT_FALSE='#'
13722 else
13723 am__EXEEXT_TRUE='#'
13724 am__EXEEXT_FALSE=
13725 fi
13726
13727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13728 as_fn_error $? "conditional \"AMDEP\" was never defined.
13729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13730 fi
13731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13734 fi
13735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13738 fi
13739 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13740 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
13741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13742 fi
13743
13744 : "${CONFIG_STATUS=./config.status}"
13745 ac_write_fail=0
13746 ac_clean_files_save=$ac_clean_files
13747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13750 as_write_fail=0
13751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13752 #! $SHELL
13753 # Generated by $as_me.
13754 # Run this file to recreate the current configuration.
13755 # Compiler output produced by configure, useful for debugging
13756 # configure, is in config.log if it exists.
13757
13758 debug=false
13759 ac_cs_recheck=false
13760 ac_cs_silent=false
13761
13762 SHELL=\${CONFIG_SHELL-$SHELL}
13763 export SHELL
13764 _ASEOF
13765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13766 ## -------------------- ##
13767 ## M4sh Initialization. ##
13768 ## -------------------- ##
13769
13770 # Be more Bourne compatible
13771 DUALCASE=1; export DUALCASE # for MKS sh
13772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13773 emulate sh
13774 NULLCMD=:
13775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13776 # is contrary to our usage. Disable this feature.
13777 alias -g '${1+"$@"}'='"$@"'
13778 setopt NO_GLOB_SUBST
13779 else
13780 case `(set -o) 2>/dev/null` in #(
13781 *posix*) :
13782 set -o posix ;; #(
13783 *) :
13784 ;;
13785 esac
13786 fi
13787
13788
13789 as_nl='
13790 '
13791 export as_nl
13792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13796 # Prefer a ksh shell builtin over an external printf program on Solaris,
13797 # but without wasting forks for bash or zsh.
13798 if test -z "$BASH_VERSION$ZSH_VERSION" \
13799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13800 as_echo='print -r --'
13801 as_echo_n='print -rn --'
13802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13803 as_echo='printf %s\n'
13804 as_echo_n='printf %s'
13805 else
13806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13808 as_echo_n='/usr/ucb/echo -n'
13809 else
13810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13811 as_echo_n_body='eval
13812 arg=$1;
13813 case $arg in #(
13814 *"$as_nl"*)
13815 expr "X$arg" : "X\\(.*\\)$as_nl";
13816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13817 esac;
13818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13819 '
13820 export as_echo_n_body
13821 as_echo_n='sh -c $as_echo_n_body as_echo'
13822 fi
13823 export as_echo_body
13824 as_echo='sh -c $as_echo_body as_echo'
13825 fi
13826
13827 # The user is always right.
13828 if test "${PATH_SEPARATOR+set}" != set; then
13829 PATH_SEPARATOR=:
13830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13832 PATH_SEPARATOR=';'
13833 }
13834 fi
13835
13836
13837 # IFS
13838 # We need space, tab and new line, in precisely that order. Quoting is
13839 # there to prevent editors from complaining about space-tab.
13840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13841 # splitting by setting IFS to empty value.)
13842 IFS=" "" $as_nl"
13843
13844 # Find who we are. Look in the path if we contain no directory separator.
13845 as_myself=
13846 case $0 in #((
13847 *[\\/]* ) as_myself=$0 ;;
13848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
13853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13854 done
13855 IFS=$as_save_IFS
13856
13857 ;;
13858 esac
13859 # We did not find ourselves, most probably we were run as `sh COMMAND'
13860 # in which case we are not to be found in the path.
13861 if test "x$as_myself" = x; then
13862 as_myself=$0
13863 fi
13864 if test ! -f "$as_myself"; then
13865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13866 exit 1
13867 fi
13868
13869 # Unset variables that we do not need and which cause bugs (e.g. in
13870 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13871 # suppresses any "Segmentation fault" message there. '((' could
13872 # trigger a bug in pdksh 5.2.14.
13873 for as_var in BASH_ENV ENV MAIL MAILPATH
13874 do eval test x\${$as_var+set} = xset \
13875 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13876 done
13877 PS1='$ '
13878 PS2='> '
13879 PS4='+ '
13880
13881 # NLS nuisances.
13882 LC_ALL=C
13883 export LC_ALL
13884 LANGUAGE=C
13885 export LANGUAGE
13886
13887 # CDPATH.
13888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13889
13890
13891 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13892 # ----------------------------------------
13893 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13894 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13895 # script with STATUS, using 1 if that was 0.
13896 as_fn_error ()
13897 {
13898 as_status=$1; test $as_status -eq 0 && as_status=1
13899 if test "$4"; then
13900 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13901 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13902 fi
13903 $as_echo "$as_me: error: $2" >&2
13904 as_fn_exit $as_status
13905 } # as_fn_error
13906
13907
13908 # as_fn_set_status STATUS
13909 # -----------------------
13910 # Set $? to STATUS, without forking.
13911 as_fn_set_status ()
13912 {
13913 return $1
13914 } # as_fn_set_status
13915
13916 # as_fn_exit STATUS
13917 # -----------------
13918 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13919 as_fn_exit ()
13920 {
13921 set +e
13922 as_fn_set_status $1
13923 exit $1
13924 } # as_fn_exit
13925
13926 # as_fn_unset VAR
13927 # ---------------
13928 # Portably unset VAR.
13929 as_fn_unset ()
13930 {
13931 { eval $1=; unset $1;}
13932 }
13933 as_unset=as_fn_unset
13934 # as_fn_append VAR VALUE
13935 # ----------------------
13936 # Append the text in VALUE to the end of the definition contained in VAR. Take
13937 # advantage of any shell optimizations that allow amortized linear growth over
13938 # repeated appends, instead of the typical quadratic growth present in naive
13939 # implementations.
13940 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13941 eval 'as_fn_append ()
13942 {
13943 eval $1+=\$2
13944 }'
13945 else
13946 as_fn_append ()
13947 {
13948 eval $1=\$$1\$2
13949 }
13950 fi # as_fn_append
13951
13952 # as_fn_arith ARG...
13953 # ------------------
13954 # Perform arithmetic evaluation on the ARGs, and store the result in the
13955 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13956 # must be portable across $(()) and expr.
13957 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13958 eval 'as_fn_arith ()
13959 {
13960 as_val=$(( $* ))
13961 }'
13962 else
13963 as_fn_arith ()
13964 {
13965 as_val=`expr "$@" || test $? -eq 1`
13966 }
13967 fi # as_fn_arith
13968
13969
13970 if expr a : '\(a\)' >/dev/null 2>&1 &&
13971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13972 as_expr=expr
13973 else
13974 as_expr=false
13975 fi
13976
13977 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13978 as_basename=basename
13979 else
13980 as_basename=false
13981 fi
13982
13983 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13984 as_dirname=dirname
13985 else
13986 as_dirname=false
13987 fi
13988
13989 as_me=`$as_basename -- "$0" ||
13990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13991 X"$0" : 'X\(//\)$' \| \
13992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13993 $as_echo X/"$0" |
13994 sed '/^.*\/\([^/][^/]*\)\/*$/{
13995 s//\1/
13996 q
13997 }
13998 /^X\/\(\/\/\)$/{
13999 s//\1/
14000 q
14001 }
14002 /^X\/\(\/\).*/{
14003 s//\1/
14004 q
14005 }
14006 s/.*/./; q'`
14007
14008 # Avoid depending upon Character Ranges.
14009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14012 as_cr_digits='0123456789'
14013 as_cr_alnum=$as_cr_Letters$as_cr_digits
14014
14015 ECHO_C= ECHO_N= ECHO_T=
14016 case `echo -n x` in #(((((
14017 -n*)
14018 case `echo 'xy\c'` in
14019 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14020 xy) ECHO_C='\c';;
14021 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14022 ECHO_T=' ';;
14023 esac;;
14024 *)
14025 ECHO_N='-n';;
14026 esac
14027
14028 rm -f conf$$ conf$$.exe conf$$.file
14029 if test -d conf$$.dir; then
14030 rm -f conf$$.dir/conf$$.file
14031 else
14032 rm -f conf$$.dir
14033 mkdir conf$$.dir 2>/dev/null
14034 fi
14035 if (echo >conf$$.file) 2>/dev/null; then
14036 if ln -s conf$$.file conf$$ 2>/dev/null; then
14037 as_ln_s='ln -s'
14038 # ... but there are two gotchas:
14039 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14040 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14041 # In both cases, we have to default to `cp -pR'.
14042 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14043 as_ln_s='cp -pR'
14044 elif ln conf$$.file conf$$ 2>/dev/null; then
14045 as_ln_s=ln
14046 else
14047 as_ln_s='cp -pR'
14048 fi
14049 else
14050 as_ln_s='cp -pR'
14051 fi
14052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14053 rmdir conf$$.dir 2>/dev/null
14054
14055
14056 # as_fn_mkdir_p
14057 # -------------
14058 # Create "$as_dir" as a directory, including parents if necessary.
14059 as_fn_mkdir_p ()
14060 {
14061
14062 case $as_dir in #(
14063 -*) as_dir=./$as_dir;;
14064 esac
14065 test -d "$as_dir" || eval $as_mkdir_p || {
14066 as_dirs=
14067 while :; do
14068 case $as_dir in #(
14069 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14070 *) as_qdir=$as_dir;;
14071 esac
14072 as_dirs="'$as_qdir' $as_dirs"
14073 as_dir=`$as_dirname -- "$as_dir" ||
14074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$as_dir" : 'X\(//\)[^/]' \| \
14076 X"$as_dir" : 'X\(//\)$' \| \
14077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14078 $as_echo X"$as_dir" |
14079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)[^/].*/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\/\)$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\).*/{
14092 s//\1/
14093 q
14094 }
14095 s/.*/./; q'`
14096 test -d "$as_dir" && break
14097 done
14098 test -z "$as_dirs" || eval "mkdir $as_dirs"
14099 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14100
14101
14102 } # as_fn_mkdir_p
14103 if mkdir -p . 2>/dev/null; then
14104 as_mkdir_p='mkdir -p "$as_dir"'
14105 else
14106 test -d ./-p && rmdir ./-p
14107 as_mkdir_p=false
14108 fi
14109
14110
14111 # as_fn_executable_p FILE
14112 # -----------------------
14113 # Test if FILE is an executable regular file.
14114 as_fn_executable_p ()
14115 {
14116 test -f "$1" && test -x "$1"
14117 } # as_fn_executable_p
14118 as_test_x='test -x'
14119 as_executable_p=as_fn_executable_p
14120
14121 # Sed expression to map a string onto a valid CPP name.
14122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14123
14124 # Sed expression to map a string onto a valid variable name.
14125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14126
14127
14128 exec 6>&1
14129 ## ----------------------------------- ##
14130 ## Main body of $CONFIG_STATUS script. ##
14131 ## ----------------------------------- ##
14132 _ASEOF
14133 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14134
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136 # Save the log message, to keep $0 and so on meaningful, and to
14137 # report actual input values of CONFIG_FILES etc. instead of their
14138 # values after options handling.
14139 ac_log="
14140 This file was extended by rfc822lib $as_me 0.13, which was
14141 generated by GNU Autoconf 2.69. Invocation command line was
14142
14143 CONFIG_FILES = $CONFIG_FILES
14144 CONFIG_HEADERS = $CONFIG_HEADERS
14145 CONFIG_LINKS = $CONFIG_LINKS
14146 CONFIG_COMMANDS = $CONFIG_COMMANDS
14147 $ $0 $@
14148
14149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14150 "
14151
14152 _ACEOF
14153
14154 case $ac_config_files in *"
14155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14156 esac
14157
14158 case $ac_config_headers in *"
14159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14160 esac
14161
14162
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 # Files that config.status was made for.
14165 config_files="$ac_config_files"
14166 config_headers="$ac_config_headers"
14167 config_commands="$ac_config_commands"
14168
14169 _ACEOF
14170
14171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14172 ac_cs_usage="\
14173 \`$as_me' instantiates files and other configuration actions
14174 from templates according to the current configuration. Unless the files
14175 and actions are specified as TAGs, all are instantiated by default.
14176
14177 Usage: $0 [OPTION]... [TAG]...
14178
14179 -h, --help print this help, then exit
14180 -V, --version print version number and configuration settings, then exit
14181 --config print configuration, then exit
14182 -q, --quiet, --silent
14183 do not print progress messages
14184 -d, --debug don't remove temporary files
14185 --recheck update $as_me by reconfiguring in the same conditions
14186 --file=FILE[:TEMPLATE]
14187 instantiate the configuration file FILE
14188 --header=FILE[:TEMPLATE]
14189 instantiate the configuration header FILE
14190
14191 Configuration files:
14192 $config_files
14193
14194 Configuration headers:
14195 $config_headers
14196
14197 Configuration commands:
14198 $config_commands
14199
14200 Report bugs to <courier-users@lists.sourceforge.net>."
14201
14202 _ACEOF
14203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14205 ac_cs_version="\\
14206 rfc822lib config.status 0.13
14207 configured by $0, generated by GNU Autoconf 2.69,
14208 with options \\"\$ac_cs_config\\"
14209
14210 Copyright (C) 2012 Free Software Foundation, Inc.
14211 This config.status script is free software; the Free Software Foundation
14212 gives unlimited permission to copy, distribute and modify it."
14213
14214 ac_pwd='$ac_pwd'
14215 srcdir='$srcdir'
14216 INSTALL='$INSTALL'
14217 MKDIR_P='$MKDIR_P'
14218 AWK='$AWK'
14219 test -n "\$AWK" || AWK=awk
14220 _ACEOF
14221
14222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14223 # The default lists apply if the user does not specify any file.
14224 ac_need_defaults=:
14225 while test $# != 0
14226 do
14227 case $1 in
14228 --*=?*)
14229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14231 ac_shift=:
14232 ;;
14233 --*=)
14234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14235 ac_optarg=
14236 ac_shift=:
14237 ;;
14238 *)
14239 ac_option=$1
14240 ac_optarg=$2
14241 ac_shift=shift
14242 ;;
14243 esac
14244
14245 case $ac_option in
14246 # Handling of the options.
14247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14248 ac_cs_recheck=: ;;
14249 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14250 $as_echo "$ac_cs_version"; exit ;;
14251 --config | --confi | --conf | --con | --co | --c )
14252 $as_echo "$ac_cs_config"; exit ;;
14253 --debug | --debu | --deb | --de | --d | -d )
14254 debug=: ;;
14255 --file | --fil | --fi | --f )
14256 $ac_shift
14257 case $ac_optarg in
14258 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14259 '') as_fn_error $? "missing file argument" ;;
14260 esac
14261 as_fn_append CONFIG_FILES " '$ac_optarg'"
14262 ac_need_defaults=false;;
14263 --header | --heade | --head | --hea )
14264 $ac_shift
14265 case $ac_optarg in
14266 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14267 esac
14268 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14269 ac_need_defaults=false;;
14270 --he | --h)
14271 # Conflict between --help and --header
14272 as_fn_error $? "ambiguous option: \`$1'
14273 Try \`$0 --help' for more information.";;
14274 --help | --hel | -h )
14275 $as_echo "$ac_cs_usage"; exit ;;
14276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14278 ac_cs_silent=: ;;
14279
14280 # This is an error.
14281 -*) as_fn_error $? "unrecognized option: \`$1'
14282 Try \`$0 --help' for more information." ;;
14283
14284 *) as_fn_append ac_config_targets " $1"
14285 ac_need_defaults=false ;;
14286
14287 esac
14288 shift
14289 done
14290
14291 ac_configure_extra_args=
14292
14293 if $ac_cs_silent; then
14294 exec 6>/dev/null
14295 ac_configure_extra_args="$ac_configure_extra_args --silent"
14296 fi
14297
14298 _ACEOF
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 if \$ac_cs_recheck; then
14301 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14302 shift
14303 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14304 CONFIG_SHELL='$SHELL'
14305 export CONFIG_SHELL
14306 exec "\$@"
14307 fi
14308
14309 _ACEOF
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311 exec 5>>config.log
14312 {
14313 echo
14314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14315 ## Running $as_me. ##
14316 _ASBOX
14317 $as_echo "$ac_log"
14318 } >&5
14319
14320 _ACEOF
14321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14322 #
14323 # INIT-COMMANDS
14324 #
14325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14326
14327
14328 # The HP-UX ksh and POSIX shell print the target directory to stdout
14329 # if CDPATH is set.
14330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14331
14332 sed_quote_subst='$sed_quote_subst'
14333 double_quote_subst='$double_quote_subst'
14334 delay_variable_subst='$delay_variable_subst'
14335 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14336 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14337 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14338 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14339 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14340 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14341 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14342 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14343 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14344 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14345 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14346 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14347 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14348 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14349 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14350 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14351 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14352 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14353 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14354 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14355 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14356 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14357 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14358 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14359 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14360 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14361 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14362 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14363 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14364 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14365 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14366 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14367 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14368 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14369 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14370 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14371 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14372 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14373 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14374 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14375 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14376 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14377 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14378 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14379 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14380 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14381 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14382 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14383 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14384 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14385 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14386 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14387 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14388 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14389 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14390 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14391 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14392 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14393 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"`'
14394 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14395 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14396 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14397 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14398 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14399 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14400 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14401 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14402 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14403 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14404 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14405 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14406 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14407 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14408 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14409 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14410 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14411 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14412 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14413 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14414 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14415 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14416 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14417 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14418 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14419 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14420 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14421 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14422 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14423 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14424 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14425 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14426 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14427 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14428 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14429 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14430 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14431 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14432 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14433 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14434 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14435 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14436 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14437 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14438 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14439 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14440 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14441 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14442 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14443 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14444 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14445 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14446 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14447 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14448 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14449 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14450 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14451 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14452 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14453 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14454 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14455 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14456 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14457 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14458 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14459 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14460 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14461 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14462 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14463 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14464 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14465 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14466 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14467 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14468 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14469 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14470
14471 LTCC='$LTCC'
14472 LTCFLAGS='$LTCFLAGS'
14473 compiler='$compiler_DEFAULT'
14474
14475 # A function that is used when there is no print builtin or printf.
14476 func_fallback_echo ()
14477 {
14478 eval 'cat <<_LTECHO_EOF
14479 \$1
14480 _LTECHO_EOF'
14481 }
14482
14483 # Quote evaled strings.
14484 for var in SHELL \
14485 ECHO \
14486 PATH_SEPARATOR \
14487 SED \
14488 GREP \
14489 EGREP \
14490 FGREP \
14491 LD \
14492 NM \
14493 LN_S \
14494 lt_SP2NL \
14495 lt_NL2SP \
14496 reload_flag \
14497 OBJDUMP \
14498 deplibs_check_method \
14499 file_magic_cmd \
14500 file_magic_glob \
14501 want_nocaseglob \
14502 DLLTOOL \
14503 sharedlib_from_linklib_cmd \
14504 AR \
14505 AR_FLAGS \
14506 archiver_list_spec \
14507 STRIP \
14508 RANLIB \
14509 CC \
14510 CFLAGS \
14511 compiler \
14512 lt_cv_sys_global_symbol_pipe \
14513 lt_cv_sys_global_symbol_to_cdecl \
14514 lt_cv_sys_global_symbol_to_import \
14515 lt_cv_sys_global_symbol_to_c_name_address \
14516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14517 lt_cv_nm_interface \
14518 nm_file_list_spec \
14519 lt_cv_truncate_bin \
14520 lt_prog_compiler_no_builtin_flag \
14521 lt_prog_compiler_pic \
14522 lt_prog_compiler_wl \
14523 lt_prog_compiler_static \
14524 lt_cv_prog_compiler_c_o \
14525 need_locks \
14526 MANIFEST_TOOL \
14527 DSYMUTIL \
14528 NMEDIT \
14529 LIPO \
14530 OTOOL \
14531 OTOOL64 \
14532 shrext_cmds \
14533 export_dynamic_flag_spec \
14534 whole_archive_flag_spec \
14535 compiler_needs_object \
14536 with_gnu_ld \
14537 allow_undefined_flag \
14538 no_undefined_flag \
14539 hardcode_libdir_flag_spec \
14540 hardcode_libdir_separator \
14541 exclude_expsyms \
14542 include_expsyms \
14543 file_list_spec \
14544 variables_saved_for_relink \
14545 libname_spec \
14546 library_names_spec \
14547 soname_spec \
14548 install_override_mode \
14549 finish_eval \
14550 old_striplib \
14551 striplib; do
14552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14553 *[\\\\\\\`\\"\\\$]*)
14554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14555 ;;
14556 *)
14557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14558 ;;
14559 esac
14560 done
14561
14562 # Double-quote double-evaled strings.
14563 for var in reload_cmds \
14564 old_postinstall_cmds \
14565 old_postuninstall_cmds \
14566 old_archive_cmds \
14567 extract_expsyms_cmds \
14568 old_archive_from_new_cmds \
14569 old_archive_from_expsyms_cmds \
14570 archive_cmds \
14571 archive_expsym_cmds \
14572 module_cmds \
14573 module_expsym_cmds \
14574 export_symbols_cmds \
14575 prelink_cmds \
14576 postlink_cmds \
14577 postinstall_cmds \
14578 postuninstall_cmds \
14579 finish_cmds \
14580 sys_lib_search_path_spec \
14581 configure_time_dlsearch_path \
14582 configure_time_lt_sys_library_path; do
14583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14584 *[\\\\\\\`\\"\\\$]*)
14585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14586 ;;
14587 *)
14588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14589 ;;
14590 esac
14591 done
14592
14593 ac_aux_dir='$ac_aux_dir'
14594
14595 # See if we are running on zsh, and set the options that allow our
14596 # commands through without removal of \ escapes INIT.
14597 if test -n "\${ZSH_VERSION+set}"; then
14598 setopt NO_GLOB_SUBST
14599 fi
14600
14601
14602 PACKAGE='$PACKAGE'
14603 VERSION='$VERSION'
14604 RM='$RM'
14605 ofile='$ofile'
14606
14607
14608
14609
14610 _ACEOF
14611
14612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14613
14614 # Handling of arguments.
14615 for ac_config_target in $ac_config_targets
14616 do
14617 case $ac_config_target in
14618 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14622
14623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14624 esac
14625 done
14626
14627
14628 # If the user did not use the arguments to specify the items to instantiate,
14629 # then the envvar interface is used. Set only those that are not.
14630 # We use the long form for the default assignment because of an extremely
14631 # bizarre bug on SunOS 4.1.3.
14632 if $ac_need_defaults; then
14633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14636 fi
14637
14638 # Have a temporary directory for convenience. Make it in the build tree
14639 # simply because there is no reason against having it here, and in addition,
14640 # creating and moving files from /tmp can sometimes cause problems.
14641 # Hook for its removal unless debugging.
14642 # Note that there is a small window in which the directory will not be cleaned:
14643 # after its creation but before its name has been assigned to `$tmp'.
14644 $debug ||
14645 {
14646 tmp= ac_tmp=
14647 trap 'exit_status=$?
14648 : "${ac_tmp:=$tmp}"
14649 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14650 ' 0
14651 trap 'as_fn_exit 1' 1 2 13 15
14652 }
14653 # Create a (secure) tmp directory for tmp files.
14654
14655 {
14656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14657 test -d "$tmp"
14658 } ||
14659 {
14660 tmp=./conf$$-$RANDOM
14661 (umask 077 && mkdir "$tmp")
14662 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14663 ac_tmp=$tmp
14664
14665 # Set up the scripts for CONFIG_FILES section.
14666 # No need to generate them if there are no CONFIG_FILES.
14667 # This happens for instance with `./config.status config.h'.
14668 if test -n "$CONFIG_FILES"; then
14669
14670
14671 ac_cr=`echo X | tr X '\015'`
14672 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14673 # But we know of no other shell where ac_cr would be empty at this
14674 # point, so we can use a bashism as a fallback.
14675 if test "x$ac_cr" = x; then
14676 eval ac_cr=\$\'\\r\'
14677 fi
14678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14680 ac_cs_awk_cr='\\r'
14681 else
14682 ac_cs_awk_cr=$ac_cr
14683 fi
14684
14685 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14686 _ACEOF
14687
14688
14689 {
14690 echo "cat >conf$$subs.awk <<_ACEOF" &&
14691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14692 echo "_ACEOF"
14693 } >conf$$subs.sh ||
14694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14695 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14696 ac_delim='%!_!# '
14697 for ac_last_try in false false false false false :; do
14698 . ./conf$$subs.sh ||
14699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14700
14701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14702 if test $ac_delim_n = $ac_delim_num; then
14703 break
14704 elif $ac_last_try; then
14705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14706 else
14707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708 fi
14709 done
14710 rm -f conf$$subs.sh
14711
14712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14713 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14714 _ACEOF
14715 sed -n '
14716 h
14717 s/^/S["/; s/!.*/"]=/
14718 p
14719 g
14720 s/^[^!]*!//
14721 :repl
14722 t repl
14723 s/'"$ac_delim"'$//
14724 t delim
14725 :nl
14726 h
14727 s/\(.\{148\}\)..*/\1/
14728 t more1
14729 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14730 p
14731 n
14732 b repl
14733 :more1
14734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14735 p
14736 g
14737 s/.\{148\}//
14738 t nl
14739 :delim
14740 h
14741 s/\(.\{148\}\)..*/\1/
14742 t more2
14743 s/["\\]/\\&/g; s/^/"/; s/$/"/
14744 p
14745 b
14746 :more2
14747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14748 p
14749 g
14750 s/.\{148\}//
14751 t delim
14752 ' <conf$$subs.awk | sed '
14753 /^[^""]/{
14754 N
14755 s/\n//
14756 }
14757 ' >>$CONFIG_STATUS || ac_write_fail=1
14758 rm -f conf$$subs.awk
14759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14760 _ACAWK
14761 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14762 for (key in S) S_is_set[key] = 1
14763 FS = "\a"
14764
14765 }
14766 {
14767 line = $ 0
14768 nfields = split(line, field, "@")
14769 substed = 0
14770 len = length(field[1])
14771 for (i = 2; i < nfields; i++) {
14772 key = field[i]
14773 keylen = length(key)
14774 if (S_is_set[key]) {
14775 value = S[key]
14776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14777 len += length(value) + length(field[++i])
14778 substed = 1
14779 } else
14780 len += 1 + keylen
14781 }
14782
14783 print line
14784 }
14785
14786 _ACAWK
14787 _ACEOF
14788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14789 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14791 else
14792 cat
14793 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14794 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14795 _ACEOF
14796
14797 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14798 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14799 # trailing colons and then remove the whole line if VPATH becomes empty
14800 # (actually we leave an empty line to preserve line numbers).
14801 if test "x$srcdir" = x.; then
14802 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14803 h
14804 s///
14805 s/^/:/
14806 s/[ ]*$/:/
14807 s/:\$(srcdir):/:/g
14808 s/:\${srcdir}:/:/g
14809 s/:@srcdir@:/:/g
14810 s/^:*//
14811 s/:*$//
14812 x
14813 s/\(=[ ]*\).*/\1/
14814 G
14815 s/\n//
14816 s/^[^=]*=[ ]*$//
14817 }'
14818 fi
14819
14820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14821 fi # test -n "$CONFIG_FILES"
14822
14823 # Set up the scripts for CONFIG_HEADERS section.
14824 # No need to generate them if there are no CONFIG_HEADERS.
14825 # This happens for instance with `./config.status Makefile'.
14826 if test -n "$CONFIG_HEADERS"; then
14827 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14828 BEGIN {
14829 _ACEOF
14830
14831 # Transform confdefs.h into an awk script `defines.awk', embedded as
14832 # here-document in config.status, that substitutes the proper values into
14833 # config.h.in to produce config.h.
14834
14835 # Create a delimiter string that does not exist in confdefs.h, to ease
14836 # handling of long lines.
14837 ac_delim='%!_!# '
14838 for ac_last_try in false false :; do
14839 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14840 if test -z "$ac_tt"; then
14841 break
14842 elif $ac_last_try; then
14843 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14844 else
14845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14846 fi
14847 done
14848
14849 # For the awk script, D is an array of macro values keyed by name,
14850 # likewise P contains macro parameters if any. Preserve backslash
14851 # newline sequences.
14852
14853 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14854 sed -n '
14855 s/.\{148\}/&'"$ac_delim"'/g
14856 t rset
14857 :rset
14858 s/^[ ]*#[ ]*define[ ][ ]*/ /
14859 t def
14860 d
14861 :def
14862 s/\\$//
14863 t bsnl
14864 s/["\\]/\\&/g
14865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14866 D["\1"]=" \3"/p
14867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14868 d
14869 :bsnl
14870 s/["\\]/\\&/g
14871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14872 D["\1"]=" \3\\\\\\n"\\/p
14873 t cont
14874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14875 t cont
14876 d
14877 :cont
14878 n
14879 s/.\{148\}/&'"$ac_delim"'/g
14880 t clear
14881 :clear
14882 s/\\$//
14883 t bsnlc
14884 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14885 d
14886 :bsnlc
14887 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14888 b cont
14889 ' <confdefs.h | sed '
14890 s/'"$ac_delim"'/"\\\
14891 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14892
14893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14894 for (key in D) D_is_set[key] = 1
14895 FS = "\a"
14896 }
14897 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14898 line = \$ 0
14899 split(line, arg, " ")
14900 if (arg[1] == "#") {
14901 defundef = arg[2]
14902 mac1 = arg[3]
14903 } else {
14904 defundef = substr(arg[1], 2)
14905 mac1 = arg[2]
14906 }
14907 split(mac1, mac2, "(") #)
14908 macro = mac2[1]
14909 prefix = substr(line, 1, index(line, defundef) - 1)
14910 if (D_is_set[macro]) {
14911 # Preserve the white space surrounding the "#".
14912 print prefix "define", macro P[macro] D[macro]
14913 next
14914 } else {
14915 # Replace #undef with comments. This is necessary, for example,
14916 # in the case of _POSIX_SOURCE, which is predefined and required
14917 # on some systems where configure will not decide to define it.
14918 if (defundef == "undef") {
14919 print "/*", prefix defundef, macro, "*/"
14920 next
14921 }
14922 }
14923 }
14924 { print }
14925 _ACAWK
14926 _ACEOF
14927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14929 fi # test -n "$CONFIG_HEADERS"
14930
14931
14932 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14933 shift
14934 for ac_tag
14935 do
14936 case $ac_tag in
14937 :[FHLC]) ac_mode=$ac_tag; continue;;
14938 esac
14939 case $ac_mode$ac_tag in
14940 :[FHL]*:*);;
14941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14942 :[FH]-) ac_tag=-:-;;
14943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14944 esac
14945 ac_save_IFS=$IFS
14946 IFS=:
14947 set x $ac_tag
14948 IFS=$ac_save_IFS
14949 shift
14950 ac_file=$1
14951 shift
14952
14953 case $ac_mode in
14954 :L) ac_source=$1;;
14955 :[FH])
14956 ac_file_inputs=
14957 for ac_f
14958 do
14959 case $ac_f in
14960 -) ac_f="$ac_tmp/stdin";;
14961 *) # Look for the file first in the build tree, then in the source tree
14962 # (if the path is not absolute). The absolute path cannot be DOS-style,
14963 # because $ac_f cannot contain `:'.
14964 test -f "$ac_f" ||
14965 case $ac_f in
14966 [\\/$]*) false;;
14967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14968 esac ||
14969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14970 esac
14971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14972 as_fn_append ac_file_inputs " '$ac_f'"
14973 done
14974
14975 # Let's still pretend it is `configure' which instantiates (i.e., don't
14976 # use $as_me), people would be surprised to read:
14977 # /* config.h. Generated by config.status. */
14978 configure_input='Generated from '`
14979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14980 `' by configure.'
14981 if test x"$ac_file" != x-; then
14982 configure_input="$ac_file. $configure_input"
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14984 $as_echo "$as_me: creating $ac_file" >&6;}
14985 fi
14986 # Neutralize special characters interpreted by sed in replacement strings.
14987 case $configure_input in #(
14988 *\&* | *\|* | *\\* )
14989 ac_sed_conf_input=`$as_echo "$configure_input" |
14990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14991 *) ac_sed_conf_input=$configure_input;;
14992 esac
14993
14994 case $ac_tag in
14995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14997 esac
14998 ;;
14999 esac
15000
15001 ac_dir=`$as_dirname -- "$ac_file" ||
15002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15003 X"$ac_file" : 'X\(//\)[^/]' \| \
15004 X"$ac_file" : 'X\(//\)$' \| \
15005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15006 $as_echo X"$ac_file" |
15007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15008 s//\1/
15009 q
15010 }
15011 /^X\(\/\/\)[^/].*/{
15012 s//\1/
15013 q
15014 }
15015 /^X\(\/\/\)$/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\).*/{
15020 s//\1/
15021 q
15022 }
15023 s/.*/./; q'`
15024 as_dir="$ac_dir"; as_fn_mkdir_p
15025 ac_builddir=.
15026
15027 case "$ac_dir" in
15028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15029 *)
15030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15031 # A ".." for each directory in $ac_dir_suffix.
15032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15033 case $ac_top_builddir_sub in
15034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15036 esac ;;
15037 esac
15038 ac_abs_top_builddir=$ac_pwd
15039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15040 # for backward compatibility:
15041 ac_top_builddir=$ac_top_build_prefix
15042
15043 case $srcdir in
15044 .) # We are building in place.
15045 ac_srcdir=.
15046 ac_top_srcdir=$ac_top_builddir_sub
15047 ac_abs_top_srcdir=$ac_pwd ;;
15048 [\\/]* | ?:[\\/]* ) # Absolute name.
15049 ac_srcdir=$srcdir$ac_dir_suffix;
15050 ac_top_srcdir=$srcdir
15051 ac_abs_top_srcdir=$srcdir ;;
15052 *) # Relative name.
15053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15054 ac_top_srcdir=$ac_top_build_prefix$srcdir
15055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15056 esac
15057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15058
15059
15060 case $ac_mode in
15061 :F)
15062 #
15063 # CONFIG_FILE
15064 #
15065
15066 case $INSTALL in
15067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15069 esac
15070 ac_MKDIR_P=$MKDIR_P
15071 case $MKDIR_P in
15072 [\\/$]* | ?:[\\/]* ) ;;
15073 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15074 esac
15075 _ACEOF
15076
15077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15078 # If the template does not know about datarootdir, expand it.
15079 # FIXME: This hack should be removed a few years after 2.60.
15080 ac_datarootdir_hack=; ac_datarootdir_seen=
15081 ac_sed_dataroot='
15082 /datarootdir/ {
15083 p
15084 q
15085 }
15086 /@datadir@/p
15087 /@docdir@/p
15088 /@infodir@/p
15089 /@localedir@/p
15090 /@mandir@/p'
15091 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15092 *datarootdir*) ac_datarootdir_seen=yes;;
15093 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15095 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15096 _ACEOF
15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098 ac_datarootdir_hack='
15099 s&@datadir@&$datadir&g
15100 s&@docdir@&$docdir&g
15101 s&@infodir@&$infodir&g
15102 s&@localedir@&$localedir&g
15103 s&@mandir@&$mandir&g
15104 s&\\\${datarootdir}&$datarootdir&g' ;;
15105 esac
15106 _ACEOF
15107
15108 # Neutralize VPATH when `$srcdir' = `.'.
15109 # Shell code in configure.ac might set extrasub.
15110 # FIXME: do we really want to maintain this feature?
15111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112 ac_sed_extra="$ac_vpsub
15113 $extrasub
15114 _ACEOF
15115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15116 :t
15117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15118 s|@configure_input@|$ac_sed_conf_input|;t t
15119 s&@top_builddir@&$ac_top_builddir_sub&;t t
15120 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15121 s&@srcdir@&$ac_srcdir&;t t
15122 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15123 s&@top_srcdir@&$ac_top_srcdir&;t t
15124 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15125 s&@builddir@&$ac_builddir&;t t
15126 s&@abs_builddir@&$ac_abs_builddir&;t t
15127 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15128 s&@INSTALL@&$ac_INSTALL&;t t
15129 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15130 $ac_datarootdir_hack
15131 "
15132 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15133 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15134
15135 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15136 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15138 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15140 which seems to be undefined. Please make sure it is defined" >&5
15141 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15142 which seems to be undefined. Please make sure it is defined" >&2;}
15143
15144 rm -f "$ac_tmp/stdin"
15145 case $ac_file in
15146 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15147 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15148 esac \
15149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15150 ;;
15151 :H)
15152 #
15153 # CONFIG_HEADER
15154 #
15155 if test x"$ac_file" != x-; then
15156 {
15157 $as_echo "/* $configure_input */" \
15158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15159 } >"$ac_tmp/config.h" \
15160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15161 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15163 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15164 else
15165 rm -f "$ac_file"
15166 mv "$ac_tmp/config.h" "$ac_file" \
15167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15168 fi
15169 else
15170 $as_echo "/* $configure_input */" \
15171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15172 || as_fn_error $? "could not create -" "$LINENO" 5
15173 fi
15174 # Compute "$ac_file"'s index in $config_headers.
15175 _am_arg="$ac_file"
15176 _am_stamp_count=1
15177 for _am_header in $config_headers :; do
15178 case $_am_header in
15179 $_am_arg | $_am_arg:* )
15180 break ;;
15181 * )
15182 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15183 esac
15184 done
15185 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15186 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15187 X"$_am_arg" : 'X\(//\)[^/]' \| \
15188 X"$_am_arg" : 'X\(//\)$' \| \
15189 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15190 $as_echo X"$_am_arg" |
15191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15192 s//\1/
15193 q
15194 }
15195 /^X\(\/\/\)[^/].*/{
15196 s//\1/
15197 q
15198 }
15199 /^X\(\/\/\)$/{
15200 s//\1/
15201 q
15202 }
15203 /^X\(\/\).*/{
15204 s//\1/
15205 q
15206 }
15207 s/.*/./; q'`/stamp-h$_am_stamp_count
15208 ;;
15209
15210 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15211 $as_echo "$as_me: executing $ac_file commands" >&6;}
15212 ;;
15213 esac
15214
15215
15216 case $ac_file$ac_mode in
15217 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15218 # Older Autoconf quotes --file arguments for eval, but not when files
15219 # are listed without --file. Let's play safe and only enable the eval
15220 # if we detect the quoting.
15221 case $CONFIG_FILES in
15222 *\'*) eval set x "$CONFIG_FILES" ;;
15223 *) set x $CONFIG_FILES ;;
15224 esac
15225 shift
15226 for mf
15227 do
15228 # Strip MF so we end up with the name of the file.
15229 mf=`echo "$mf" | sed -e 's/:.*$//'`
15230 # Check whether this is an Automake generated Makefile or not.
15231 # We used to match only the files named 'Makefile.in', but
15232 # some people rename them; so instead we look at the file content.
15233 # Grep'ing the first line is not enough: some people post-process
15234 # each Makefile.in and add a new line on top of each file to say so.
15235 # Grep'ing the whole file is not good either: AIX grep has a line
15236 # limit of 2048, but all sed's we know have understand at least 4000.
15237 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15238 dirpart=`$as_dirname -- "$mf" ||
15239 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15240 X"$mf" : 'X\(//\)[^/]' \| \
15241 X"$mf" : 'X\(//\)$' \| \
15242 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15243 $as_echo X"$mf" |
15244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\/\)[^/].*/{
15249 s//\1/
15250 q
15251 }
15252 /^X\(\/\/\)$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\(\/\).*/{
15257 s//\1/
15258 q
15259 }
15260 s/.*/./; q'`
15261 else
15262 continue
15263 fi
15264 # Extract the definition of DEPDIR, am__include, and am__quote
15265 # from the Makefile without running 'make'.
15266 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15267 test -z "$DEPDIR" && continue
15268 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15269 test -z "$am__include" && continue
15270 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15271 # Find all dependency output files, they are included files with
15272 # $(DEPDIR) in their names. We invoke sed twice because it is the
15273 # simplest approach to changing $(DEPDIR) to its actual value in the
15274 # expansion.
15275 for file in `sed -n "
15276 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15277 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15278 # Make sure the directory exists.
15279 test -f "$dirpart/$file" && continue
15280 fdir=`$as_dirname -- "$file" ||
15281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282 X"$file" : 'X\(//\)[^/]' \| \
15283 X"$file" : 'X\(//\)$' \| \
15284 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15285 $as_echo X"$file" |
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15287 s//\1/
15288 q
15289 }
15290 /^X\(\/\/\)[^/].*/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\/\)$/{
15295 s//\1/
15296 q
15297 }
15298 /^X\(\/\).*/{
15299 s//\1/
15300 q
15301 }
15302 s/.*/./; q'`
15303 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15304 # echo "creating $dirpart/$file"
15305 echo '# dummy' > "$dirpart/$file"
15306 done
15307 done
15308 }
15309 ;;
15310 "libtool":C)
15311
15312 # See if we are running on zsh, and set the options that allow our
15313 # commands through without removal of \ escapes.
15314 if test -n "${ZSH_VERSION+set}"; then
15315 setopt NO_GLOB_SUBST
15316 fi
15317
15318 cfgfile=${ofile}T
15319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15320 $RM "$cfgfile"
15321
15322 cat <<_LT_EOF >> "$cfgfile"
15323 #! $SHELL
15324 # Generated automatically by $as_me ($PACKAGE) $VERSION
15325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15327
15328 # Provide generalized library-building support services.
15329 # Written by Gordon Matzigkeit, 1996
15330
15331 # Copyright (C) 2014 Free Software Foundation, Inc.
15332 # This is free software; see the source for copying conditions. There is NO
15333 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15334
15335 # GNU Libtool is free software; you can redistribute it and/or modify
15336 # it under the terms of the GNU General Public License as published by
15337 # the Free Software Foundation; either version 2 of of the License, or
15338 # (at your option) any later version.
15339 #
15340 # As a special exception to the GNU General Public License, if you
15341 # distribute this file as part of a program or library that is built
15342 # using GNU Libtool, you may include this file under the same
15343 # distribution terms that you use for the rest of that program.
15344 #
15345 # GNU Libtool is distributed in the hope that it will be useful, but
15346 # WITHOUT ANY WARRANTY; without even the implied warranty of
15347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15348 # GNU General Public License for more details.
15349 #
15350 # You should have received a copy of the GNU General Public License
15351 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15352
15353
15354 # The names of the tagged configurations supported by this script.
15355 available_tags=''
15356
15357 # Configured defaults for sys_lib_dlsearch_path munging.
15358 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15359
15360 # ### BEGIN LIBTOOL CONFIG
15361
15362 # Which release of libtool.m4 was used?
15363 macro_version=$macro_version
15364 macro_revision=$macro_revision
15365
15366 # Whether or not to build shared libraries.
15367 build_libtool_libs=$enable_shared
15368
15369 # Whether or not to build static libraries.
15370 build_old_libs=$enable_static
15371
15372 # What type of objects to build.
15373 pic_mode=$pic_mode
15374
15375 # Whether or not to optimize for fast installation.
15376 fast_install=$enable_fast_install
15377
15378 # Shared archive member basename,for filename based shared library versioning on AIX.
15379 shared_archive_member_spec=$shared_archive_member_spec
15380
15381 # Shell to use when invoking shell scripts.
15382 SHELL=$lt_SHELL
15383
15384 # An echo program that protects backslashes.
15385 ECHO=$lt_ECHO
15386
15387 # The PATH separator for the build system.
15388 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15389
15390 # The host system.
15391 host_alias=$host_alias
15392 host=$host
15393 host_os=$host_os
15394
15395 # The build system.
15396 build_alias=$build_alias
15397 build=$build
15398 build_os=$build_os
15399
15400 # A sed program that does not truncate output.
15401 SED=$lt_SED
15402
15403 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15404 Xsed="\$SED -e 1s/^X//"
15405
15406 # A grep program that handles long lines.
15407 GREP=$lt_GREP
15408
15409 # An ERE matcher.
15410 EGREP=$lt_EGREP
15411
15412 # A literal string matcher.
15413 FGREP=$lt_FGREP
15414
15415 # A BSD- or MS-compatible name lister.
15416 NM=$lt_NM
15417
15418 # Whether we need soft or hard links.
15419 LN_S=$lt_LN_S
15420
15421 # What is the maximum length of a command?
15422 max_cmd_len=$max_cmd_len
15423
15424 # Object file suffix (normally "o").
15425 objext=$ac_objext
15426
15427 # Executable file suffix (normally "").
15428 exeext=$exeext
15429
15430 # whether the shell understands "unset".
15431 lt_unset=$lt_unset
15432
15433 # turn spaces into newlines.
15434 SP2NL=$lt_lt_SP2NL
15435
15436 # turn newlines into spaces.
15437 NL2SP=$lt_lt_NL2SP
15438
15439 # convert \$build file names to \$host format.
15440 to_host_file_cmd=$lt_cv_to_host_file_cmd
15441
15442 # convert \$build files to toolchain format.
15443 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15444
15445 # An object symbol dumper.
15446 OBJDUMP=$lt_OBJDUMP
15447
15448 # Method to check whether dependent libraries are shared objects.
15449 deplibs_check_method=$lt_deplibs_check_method
15450
15451 # Command to use when deplibs_check_method = "file_magic".
15452 file_magic_cmd=$lt_file_magic_cmd
15453
15454 # How to find potential files when deplibs_check_method = "file_magic".
15455 file_magic_glob=$lt_file_magic_glob
15456
15457 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15458 want_nocaseglob=$lt_want_nocaseglob
15459
15460 # DLL creation program.
15461 DLLTOOL=$lt_DLLTOOL
15462
15463 # Command to associate shared and link libraries.
15464 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15465
15466 # The archiver.
15467 AR=$lt_AR
15468
15469 # Flags to create an archive.
15470 AR_FLAGS=$lt_AR_FLAGS
15471
15472 # How to feed a file listing to the archiver.
15473 archiver_list_spec=$lt_archiver_list_spec
15474
15475 # A symbol stripping program.
15476 STRIP=$lt_STRIP
15477
15478 # Commands used to install an old-style archive.
15479 RANLIB=$lt_RANLIB
15480 old_postinstall_cmds=$lt_old_postinstall_cmds
15481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15482
15483 # Whether to use a lock for old archive extraction.
15484 lock_old_archive_extraction=$lock_old_archive_extraction
15485
15486 # A C compiler.
15487 LTCC=$lt_CC
15488
15489 # LTCC compiler flags.
15490 LTCFLAGS=$lt_CFLAGS
15491
15492 # Take the output of nm and produce a listing of raw symbols and C names.
15493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15494
15495 # Transform the output of nm in a proper C declaration.
15496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15497
15498 # Transform the output of nm into a list of symbols to manually relocate.
15499 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15500
15501 # Transform the output of nm in a C name address pair.
15502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15503
15504 # Transform the output of nm in a C name address pair when lib prefix is needed.
15505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15506
15507 # The name lister interface.
15508 nm_interface=$lt_lt_cv_nm_interface
15509
15510 # Specify filename containing input files for \$NM.
15511 nm_file_list_spec=$lt_nm_file_list_spec
15512
15513 # The root where to search for dependent libraries,and where our libraries should be installed.
15514 lt_sysroot=$lt_sysroot
15515
15516 # Command to truncate a binary pipe.
15517 lt_truncate_bin=$lt_lt_cv_truncate_bin
15518
15519 # The name of the directory that contains temporary libtool files.
15520 objdir=$objdir
15521
15522 # Used to examine libraries when file_magic_cmd begins with "file".
15523 MAGIC_CMD=$MAGIC_CMD
15524
15525 # Must we lock files when doing compilation?
15526 need_locks=$lt_need_locks
15527
15528 # Manifest tool.
15529 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15530
15531 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15532 DSYMUTIL=$lt_DSYMUTIL
15533
15534 # Tool to change global to local symbols on Mac OS X.
15535 NMEDIT=$lt_NMEDIT
15536
15537 # Tool to manipulate fat objects and archives on Mac OS X.
15538 LIPO=$lt_LIPO
15539
15540 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15541 OTOOL=$lt_OTOOL
15542
15543 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15544 OTOOL64=$lt_OTOOL64
15545
15546 # Old archive suffix (normally "a").
15547 libext=$libext
15548
15549 # Shared library suffix (normally ".so").
15550 shrext_cmds=$lt_shrext_cmds
15551
15552 # The commands to extract the exported symbol list from a shared archive.
15553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15554
15555 # Variables whose values should be saved in libtool wrapper scripts and
15556 # restored at link time.
15557 variables_saved_for_relink=$lt_variables_saved_for_relink
15558
15559 # Do we need the "lib" prefix for modules?
15560 need_lib_prefix=$need_lib_prefix
15561
15562 # Do we need a version for libraries?
15563 need_version=$need_version
15564
15565 # Library versioning type.
15566 version_type=$version_type
15567
15568 # Shared library runtime path variable.
15569 runpath_var=$runpath_var
15570
15571 # Shared library path variable.
15572 shlibpath_var=$shlibpath_var
15573
15574 # Is shlibpath searched before the hard-coded library search path?
15575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15576
15577 # Format of library name prefix.
15578 libname_spec=$lt_libname_spec
15579
15580 # List of archive names. First name is the real one, the rest are links.
15581 # The last name is the one that the linker finds with -lNAME
15582 library_names_spec=$lt_library_names_spec
15583
15584 # The coded name of the library, if different from the real name.
15585 soname_spec=$lt_soname_spec
15586
15587 # Permission mode override for installation of shared libraries.
15588 install_override_mode=$lt_install_override_mode
15589
15590 # Command to use after installation of a shared archive.
15591 postinstall_cmds=$lt_postinstall_cmds
15592
15593 # Command to use after uninstallation of a shared archive.
15594 postuninstall_cmds=$lt_postuninstall_cmds
15595
15596 # Commands used to finish a libtool library installation in a directory.
15597 finish_cmds=$lt_finish_cmds
15598
15599 # As "finish_cmds", except a single script fragment to be evaled but
15600 # not shown.
15601 finish_eval=$lt_finish_eval
15602
15603 # Whether we should hardcode library paths into libraries.
15604 hardcode_into_libs=$hardcode_into_libs
15605
15606 # Compile-time system search path for libraries.
15607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15608
15609 # Detected run-time system search path for libraries.
15610 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15611
15612 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15613 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15614
15615 # Whether dlopen is supported.
15616 dlopen_support=$enable_dlopen
15617
15618 # Whether dlopen of programs is supported.
15619 dlopen_self=$enable_dlopen_self
15620
15621 # Whether dlopen of statically linked programs is supported.
15622 dlopen_self_static=$enable_dlopen_self_static
15623
15624 # Commands to strip libraries.
15625 old_striplib=$lt_old_striplib
15626 striplib=$lt_striplib
15627
15628
15629 # The linker used to build libraries.
15630 LD=$lt_LD
15631
15632 # How to create reloadable object files.
15633 reload_flag=$lt_reload_flag
15634 reload_cmds=$lt_reload_cmds
15635
15636 # Commands used to build an old-style archive.
15637 old_archive_cmds=$lt_old_archive_cmds
15638
15639 # A language specific compiler.
15640 CC=$lt_compiler
15641
15642 # Is the compiler the GNU compiler?
15643 with_gcc=$GCC
15644
15645 # Compiler flag to turn off builtin functions.
15646 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15647
15648 # Additional compiler flags for building library objects.
15649 pic_flag=$lt_lt_prog_compiler_pic
15650
15651 # How to pass a linker flag through the compiler.
15652 wl=$lt_lt_prog_compiler_wl
15653
15654 # Compiler flag to prevent dynamic linking.
15655 link_static_flag=$lt_lt_prog_compiler_static
15656
15657 # Does compiler simultaneously support -c and -o options?
15658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15659
15660 # Whether or not to add -lc for building shared libraries.
15661 build_libtool_need_lc=$archive_cmds_need_lc
15662
15663 # Whether or not to disallow shared libs when runtime libs are static.
15664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15665
15666 # Compiler flag to allow reflexive dlopens.
15667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15668
15669 # Compiler flag to generate shared objects directly from archives.
15670 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15671
15672 # Whether the compiler copes with passing no objects directly.
15673 compiler_needs_object=$lt_compiler_needs_object
15674
15675 # Create an old-style archive from a shared archive.
15676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15677
15678 # Create a temporary old-style archive to link instead of a shared archive.
15679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15680
15681 # Commands used to build a shared archive.
15682 archive_cmds=$lt_archive_cmds
15683 archive_expsym_cmds=$lt_archive_expsym_cmds
15684
15685 # Commands used to build a loadable module if different from building
15686 # a shared archive.
15687 module_cmds=$lt_module_cmds
15688 module_expsym_cmds=$lt_module_expsym_cmds
15689
15690 # Whether we are building with GNU ld or not.
15691 with_gnu_ld=$lt_with_gnu_ld
15692
15693 # Flag that allows shared libraries with undefined symbols to be built.
15694 allow_undefined_flag=$lt_allow_undefined_flag
15695
15696 # Flag that enforces no undefined symbols.
15697 no_undefined_flag=$lt_no_undefined_flag
15698
15699 # Flag to hardcode \$libdir into a binary during linking.
15700 # This must work even if \$libdir does not exist
15701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15702
15703 # Whether we need a single "-rpath" flag with a separated argument.
15704 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15705
15706 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15707 # DIR into the resulting binary.
15708 hardcode_direct=$hardcode_direct
15709
15710 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15711 # DIR into the resulting binary and the resulting library dependency is
15712 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15713 # library is relocated.
15714 hardcode_direct_absolute=$hardcode_direct_absolute
15715
15716 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15717 # into the resulting binary.
15718 hardcode_minus_L=$hardcode_minus_L
15719
15720 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15721 # into the resulting binary.
15722 hardcode_shlibpath_var=$hardcode_shlibpath_var
15723
15724 # Set to "yes" if building a shared library automatically hardcodes DIR
15725 # into the library and all subsequent libraries and executables linked
15726 # against it.
15727 hardcode_automatic=$hardcode_automatic
15728
15729 # Set to yes if linker adds runtime paths of dependent libraries
15730 # to runtime path list.
15731 inherit_rpath=$inherit_rpath
15732
15733 # Whether libtool must link a program against all its dependency libraries.
15734 link_all_deplibs=$link_all_deplibs
15735
15736 # Set to "yes" if exported symbols are required.
15737 always_export_symbols=$always_export_symbols
15738
15739 # The commands to list exported symbols.
15740 export_symbols_cmds=$lt_export_symbols_cmds
15741
15742 # Symbols that should not be listed in the preloaded symbols.
15743 exclude_expsyms=$lt_exclude_expsyms
15744
15745 # Symbols that must always be exported.
15746 include_expsyms=$lt_include_expsyms
15747
15748 # Commands necessary for linking programs (against libraries) with templates.
15749 prelink_cmds=$lt_prelink_cmds
15750
15751 # Commands necessary for finishing linking programs.
15752 postlink_cmds=$lt_postlink_cmds
15753
15754 # Specify filename containing input files.
15755 file_list_spec=$lt_file_list_spec
15756
15757 # How to hardcode a shared library path into an executable.
15758 hardcode_action=$hardcode_action
15759
15760 # ### END LIBTOOL CONFIG
15761
15762 _LT_EOF
15763
15764 cat <<'_LT_EOF' >> "$cfgfile"
15765
15766 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15767
15768 # func_munge_path_list VARIABLE PATH
15769 # -----------------------------------
15770 # VARIABLE is name of variable containing _space_ separated list of
15771 # directories to be munged by the contents of PATH, which is string
15772 # having a format:
15773 # "DIR[:DIR]:"
15774 # string "DIR[ DIR]" will be prepended to VARIABLE
15775 # ":DIR[:DIR]"
15776 # string "DIR[ DIR]" will be appended to VARIABLE
15777 # "DIRP[:DIRP]::[DIRA:]DIRA"
15778 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15779 # "DIRA[ DIRA]" will be appended to VARIABLE
15780 # "DIR[:DIR]"
15781 # VARIABLE will be replaced by "DIR[ DIR]"
15782 func_munge_path_list ()
15783 {
15784 case x$2 in
15785 x)
15786 ;;
15787 *:)
15788 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15789 ;;
15790 x:*)
15791 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15792 ;;
15793 *::*)
15794 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15795 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15796 ;;
15797 *)
15798 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15799 ;;
15800 esac
15801 }
15802
15803
15804 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15805 func_cc_basename ()
15806 {
15807 for cc_temp in $*""; do
15808 case $cc_temp in
15809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15811 \-*) ;;
15812 *) break;;
15813 esac
15814 done
15815 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15816 }
15817
15818
15819 # ### END FUNCTIONS SHARED WITH CONFIGURE
15820
15821 _LT_EOF
15822
15823 case $host_os in
15824 aix3*)
15825 cat <<\_LT_EOF >> "$cfgfile"
15826 # AIX sometimes has problems with the GCC collect2 program. For some
15827 # reason, if we set the COLLECT_NAMES environment variable, the problems
15828 # vanish in a puff of smoke.
15829 if test set != "${COLLECT_NAMES+set}"; then
15830 COLLECT_NAMES=
15831 export COLLECT_NAMES
15832 fi
15833 _LT_EOF
15834 ;;
15835 esac
15836
15837
15838 ltmain=$ac_aux_dir/ltmain.sh
15839
15840
15841 # We use sed instead of cat because bash on DJGPP gets confused if
15842 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15843 # text mode, it properly converts lines to CR/LF. This bash problem
15844 # is reportedly fixed, but why not run on old versions too?
15845 sed '$q' "$ltmain" >> "$cfgfile" \
15846 || (rm -f "$cfgfile"; exit 1)
15847
15848 mv -f "$cfgfile" "$ofile" ||
15849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15850 chmod +x "$ofile"
15851
15852 ;;
15853
15854 esac
15855 done # for ac_tag
15856
15857
15858 as_fn_exit 0
15859 _ACEOF
15860 ac_clean_files=$ac_clean_files_save
15861
15862 test $ac_write_fail = 0 ||
15863 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15864
15865
15866 # configure is writing to config.log, and then calls config.status.
15867 # config.status does its own redirection, appending to config.log.
15868 # Unfortunately, on DOS this fails, as config.log is still kept open
15869 # by configure, so config.status won't be able to write to it; its
15870 # output is simply discarded. So we exec the FD to /dev/null,
15871 # effectively closing config.log, so it can be properly (re)opened and
15872 # appended to by config.status. When coming back to configure, we
15873 # need to make the FD available again.
15874 if test "$no_create" != yes; then
15875 ac_cs_success=:
15876 ac_config_status_args=
15877 test "$silent" = yes &&
15878 ac_config_status_args="$ac_config_status_args --quiet"
15879 exec 5>/dev/null
15880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15881 exec 5>>config.log
15882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15883 # would make configure fail if this is the last instruction.
15884 $ac_cs_success || as_fn_exit 1
15885 fi
15886 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15888 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15889 fi
15890