Debian Codegraph @

extra/tirpc/libtirpc-1.3.5/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libtirpc 1.3.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='libtirpc'
620 PACKAGE_TARNAME='libtirpc'
621 PACKAGE_VERSION='1.3.5'
622 PACKAGE_STRING='libtirpc 1.3.5'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="src/auth_des.c"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 ac_default_prefix=/usr
660 ac_subst_vars='am__EXEEXT_FALSE
661 am__EXEEXT_TRUE
662 LTLIBOBJS
663 LIBOBJS
664 PTHREAD_CFLAGS
665 PTHREAD_LIBS
666 PTHREAD_CXX
667 PTHREAD_CC
668 ax_pthread_config
669 CPP
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 FILECMD
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 LIBTOOL
697 LDFLAG_NOUNDEFINED
698 build_os
699 build_vendor
700 build_cpu
701 build
702 SYMVERS_FALSE
703 SYMVERS_TRUE
704 INET6_FALSE
705 INET6_TRUE
706 AUTHDES_FALSE
707 AUTHDES_TRUE
708 GSSAPI_LIBS
709 GSSAPI_CFLAGS
710 KRB5_CONFIG
711 GSS_FALSE
712 GSS_TRUE
713 LT_VERSION_INFO
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 CSCOPE
735 ETAGS
736 CTAGS
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 runstatedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL
799 am__quote'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_silent_rules
804 enable_dependency_tracking
805 enable_gssapi
806 enable_authdes
807 enable_ipv6
808 enable_symvers
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_aix_soname
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 LT_SYS_LIBRARY_PATH
827 CPP'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: \`$ac_useropt'"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -runstatedir | --runstatedir | --runstatedi | --runstated \
1118 | --runstate | --runstat | --runsta | --runst | --runs \
1119 | --run | --ru | --r)
1120 ac_prev=runstatedir ;;
1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1123 | --run=* | --ru=* | --r=*)
1124 runstatedir=$ac_optarg ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: \`$ac_useropt'"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 ;;
1242
1243 esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir runstatedir
1264 do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 printf "%s\n" X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341 else
1342 ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures libtirpc 1.3.5 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libtirpc]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1431
1432 cat <<\_ACEOF
1433
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of libtirpc 1.3.5:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --disable-gssapi Disable GSSAPI support [default=no]
1462 --enable-authdes Enable AUTH_DES support [default=no]
1463 --disable-ipv6 Disable IPv6 support [default=no]
1464 --disable-symvers Disable symbol versioning [default=no]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1481 compiler's sysroot if not specified).
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 LT_SYS_LIBRARY_PATH
1492 User-defined run-time library search path.
1493 CPP C preprocessor
1494
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to the package provider.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for configure.gnu first; this name is used for a wrapper for
1545 # Metaconfig's "Configure" on case-insensitive file systems.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 libtirpc configure 1.3.5
1563 generated by GNU Autoconf 2.71
1564
1565 Copyright (C) 2021 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569 exit
1570 fi
1571
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1575
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest.beam
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 printf "%s\n" "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext
1602 then :
1603 ac_retval=0
1604 else $as_nop
1605 printf "%s\n" "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 printf %s "checking for $2... " >&6; }
1624 if eval test \${$3+y}
1625 then :
1626 printf %s "(cached) " >&6
1627 else $as_nop
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 $4
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"
1634 then :
1635 eval "$3=yes"
1636 else $as_nop
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 printf "%s\n" "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_link ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 printf "%s\n" "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1676 }
1677 then :
1678 ac_retval=0
1679 else $as_nop
1680 printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_link
1694
1695 # ac_fn_c_check_func LINENO FUNC VAR
1696 # ----------------------------------
1697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1698 ac_fn_c_check_func ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 printf %s "checking for $2... " >&6; }
1703 if eval test \${$3+y}
1704 then :
1705 printf %s "(cached) " >&6
1706 else $as_nop
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1711 #define $2 innocuous_$2
1712
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $2 (); below. */
1715
1716 #include <limits.h>
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720 Use char because int might match the return type of a GCC
1721 builtin and then its argument prototype would still apply. */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 ();
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main (void)
1735 {
1736 return $2 ();
1737 ;
1738 return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else $as_nop
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1748 conftest$ac_exeext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 printf "%s\n" "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_func
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 }
1782 then :
1783 ac_retval=0
1784 else $as_nop
1785 printf "%s\n" "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789 fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794 ac_configure_args_raw=
1795 for ac_arg
1796 do
1797 case $ac_arg in
1798 *\'*)
1799 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800 esac
1801 as_fn_append ac_configure_args_raw " '$ac_arg'"
1802 done
1803
1804 case $ac_configure_args_raw in
1805 *$as_nl*)
1806 ac_safe_unquote= ;;
1807 *)
1808 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1809 ac_unsafe_a="$ac_unsafe_z#~"
1810 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1811 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1812 esac
1813
1814 cat >config.log <<_ACEOF
1815 This file contains any messages produced by compilers while
1816 running configure, to aid debugging if configure makes a mistake.
1817
1818 It was created by libtirpc $as_me 1.3.5, which was
1819 generated by GNU Autoconf 2.71. Invocation command line was
1820
1821 $ $0$ac_configure_args_raw
1822
1823 _ACEOF
1824 exec 5>>config.log
1825 {
1826 cat <<_ASUNAME
1827 ## --------- ##
1828 ## Platform. ##
1829 ## --------- ##
1830
1831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1836
1837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1838 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1839
1840 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1841 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1843 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1844 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1845 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1846 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1847
1848 _ASUNAME
1849
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 case $as_dir in #(((
1855 '') as_dir=./ ;;
1856 */) ;;
1857 *) as_dir=$as_dir/ ;;
1858 esac
1859 printf "%s\n" "PATH: $as_dir"
1860 done
1861 IFS=$as_save_IFS
1862
1863 } >&5
1864
1865 cat >&5 <<_ACEOF
1866
1867
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1871
1872 _ACEOF
1873
1874
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1885 do
1886 for ac_arg
1887 do
1888 case $ac_arg in
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1892 continue ;;
1893 *\'*)
1894 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 esac
1896 case $ac_pass in
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898 2)
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1902 else
1903 case $ac_arg in
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910 esac
1911 ;;
1912 -* ) ac_must_keep_next=true ;;
1913 esac
1914 fi
1915 as_fn_append ac_configure_args " '$ac_arg'"
1916 ;;
1917 esac
1918 done
1919 done
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1922
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Sanitize IFS.
1930 IFS=" "" $as_nl"
1931 # Save into config.log some information that might help in debugging.
1932 {
1933 echo
1934
1935 printf "%s\n" "## ---------------- ##
1936 ## Cache variables. ##
1937 ## ---------------- ##"
1938 echo
1939 # The following way of writing the cache mishandles newlines in values,
1940 (
1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in #(
1944 *${as_nl}*)
1945 case $ac_var in #(
1946 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1947 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 esac
1949 case $ac_var in #(
1950 _ | IFS | as_nl) ;; #(
1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952 *) { eval $ac_var=; unset $ac_var;} ;;
1953 esac ;;
1954 esac
1955 done
1956 (set) 2>&1 |
1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958 *${as_nl}ac_space=\ *)
1959 sed -n \
1960 "s/'\''/'\''\\\\'\'''\''/g;
1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 ;; #(
1963 *)
1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965 ;;
1966 esac |
1967 sort
1968 )
1969 echo
1970
1971 printf "%s\n" "## ----------------- ##
1972 ## Output variables. ##
1973 ## ----------------- ##"
1974 echo
1975 for ac_var in $ac_subst_vars
1976 do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 printf "%s\n" "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1984
1985 if test -n "$ac_subst_files"; then
1986 printf "%s\n" "## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##"
1989 echo
1990 for ac_var in $ac_subst_files
1991 do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 printf "%s\n" "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
1999 fi
2000
2001 if test -s confdefs.h; then
2002 printf "%s\n" "## ----------- ##
2003 ## confdefs.h. ##
2004 ## ----------- ##"
2005 echo
2006 cat confdefs.h
2007 echo
2008 fi
2009 test "$ac_signal" != 0 &&
2010 printf "%s\n" "$as_me: caught signal $ac_signal"
2011 printf "%s\n" "$as_me: exit $exit_status"
2012 } >&5
2013 rm -f core *.core core.conftest.* &&
2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015 exit $exit_status
2016 ' 0
2017 for ac_signal in 1 2 13 15; do
2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2019 done
2020 ac_signal=0
2021
2022 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2023 rm -f -r conftest* confdefs.h
2024
2025 printf "%s\n" "/* confdefs.h */" > confdefs.h
2026
2027 # Predefined preprocessor variables.
2028
2029 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2030
2031 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2032
2033 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2034
2035 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2036
2037 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2038
2039 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2040
2041
2042 # Let the site file select an alternate cache file if it wants to.
2043 # Prefer an explicitly selected file to automatically selected ones.
2044 if test -n "$CONFIG_SITE"; then
2045 ac_site_files="$CONFIG_SITE"
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2048 else
2049 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2050 fi
2051
2052 for ac_site_file in $ac_site_files
2053 do
2054 case $ac_site_file in #(
2055 */*) :
2056 ;; #(
2057 *) :
2058 ac_site_file=./$ac_site_file ;;
2059 esac
2060 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file" \
2065 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2067 as_fn_error $? "failed to load site script $ac_site_file
2068 See \`config.log' for more details" "$LINENO" 5; }
2069 fi
2070 done
2071
2072 if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2078 case $cache_file in
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2081 esac
2082 fi
2083 else
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2086 >$cache_file
2087 fi
2088
2089 # Test code for whether the C compiler supports C89 (global declarations)
2090 ac_c_conftest_c89_globals='
2091 /* Does the compiler advertise C89 conformance?
2092 Do not test the value of __STDC__, because some compilers set it to 0
2093 while being otherwise adequately conformant. */
2094 #if !defined __STDC__
2095 # error "Compiler does not advertise C89 conformance"
2096 #endif
2097
2098 #include <stddef.h>
2099 #include <stdarg.h>
2100 struct stat;
2101 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2102 struct buf { int x; };
2103 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2104 static char *e (p, i)
2105 char **p;
2106 int i;
2107 {
2108 return p[i];
2109 }
2110 static char *f (char * (*g) (char **, int), char **p, ...)
2111 {
2112 char *s;
2113 va_list v;
2114 va_start (v,p);
2115 s = g (p, va_arg (v,int));
2116 va_end (v);
2117 return s;
2118 }
2119
2120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2121 function prototypes and stuff, but not \xHH hex character constants.
2122 These do not provoke an error unfortunately, instead are silently treated
2123 as an "x". The following induces an error, until -std is added to get
2124 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2125 array size at least. It is necessary to write \x00 == 0 to get something
2126 that is true only with -std. */
2127 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2128
2129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2130 inside strings and character constants. */
2131 #define FOO(x) '\''x'\''
2132 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2133
2134 int test (int i, double x);
2135 struct s1 {int (*f) (int a);};
2136 struct s2 {int (*f) (double a);};
2137 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2138 int, int);'
2139
2140 # Test code for whether the C compiler supports C89 (body of main).
2141 ac_c_conftest_c89_main='
2142 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2143 '
2144
2145 # Test code for whether the C compiler supports C99 (global declarations)
2146 ac_c_conftest_c99_globals='
2147 // Does the compiler advertise C99 conformance?
2148 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2149 # error "Compiler does not advertise C99 conformance"
2150 #endif
2151
2152 #include <stdbool.h>
2153 extern int puts (const char *);
2154 extern int printf (const char *, ...);
2155 extern int dprintf (int, const char *, ...);
2156 extern void *malloc (size_t);
2157
2158 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2159 // dprintf is used instead of fprintf to avoid needing to declare
2160 // FILE and stderr.
2161 #define debug(...) dprintf (2, __VA_ARGS__)
2162 #define showlist(...) puts (#__VA_ARGS__)
2163 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2164 static void
2165 test_varargs_macros (void)
2166 {
2167 int x = 1234;
2168 int y = 5678;
2169 debug ("Flag");
2170 debug ("X = %d\n", x);
2171 showlist (The first, second, and third items.);
2172 report (x>y, "x is %d but y is %d", x, y);
2173 }
2174
2175 // Check long long types.
2176 #define BIG64 18446744073709551615ull
2177 #define BIG32 4294967295ul
2178 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2179 #if !BIG_OK
2180 #error "your preprocessor is broken"
2181 #endif
2182 #if BIG_OK
2183 #else
2184 #error "your preprocessor is broken"
2185 #endif
2186 static long long int bignum = -9223372036854775807LL;
2187 static unsigned long long int ubignum = BIG64;
2188
2189 struct incomplete_array
2190 {
2191 int datasize;
2192 double data[];
2193 };
2194
2195 struct named_init {
2196 int number;
2197 const wchar_t *name;
2198 double average;
2199 };
2200
2201 typedef const char *ccp;
2202
2203 static inline int
2204 test_restrict (ccp restrict text)
2205 {
2206 // See if C++-style comments work.
2207 // Iterate through items via the restricted pointer.
2208 // Also check for declarations in for loops.
2209 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2210 continue;
2211 return 0;
2212 }
2213
2214 // Check varargs and va_copy.
2215 static bool
2216 test_varargs (const char *format, ...)
2217 {
2218 va_list args;
2219 va_start (args, format);
2220 va_list args_copy;
2221 va_copy (args_copy, args);
2222
2223 const char *str = "";
2224 int number = 0;
2225 float fnumber = 0;
2226
2227 while (*format)
2228 {
2229 switch (*format++)
2230 {
2231 case '\''s'\'': // string
2232 str = va_arg (args_copy, const char *);
2233 break;
2234 case '\''d'\'': // int
2235 number = va_arg (args_copy, int);
2236 break;
2237 case '\''f'\'': // float
2238 fnumber = va_arg (args_copy, double);
2239 break;
2240 default:
2241 break;
2242 }
2243 }
2244 va_end (args_copy);
2245 va_end (args);
2246
2247 return *str && number && fnumber;
2248 }
2249 '
2250
2251 # Test code for whether the C compiler supports C99 (body of main).
2252 ac_c_conftest_c99_main='
2253 // Check bool.
2254 _Bool success = false;
2255 success |= (argc != 0);
2256
2257 // Check restrict.
2258 if (test_restrict ("String literal") == 0)
2259 success = true;
2260 char *restrict newvar = "Another string";
2261
2262 // Check varargs.
2263 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2264 test_varargs_macros ();
2265
2266 // Check flexible array members.
2267 struct incomplete_array *ia =
2268 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2269 ia->datasize = 10;
2270 for (int i = 0; i < ia->datasize; ++i)
2271 ia->data[i] = i * 1.234;
2272
2273 // Check named initializers.
2274 struct named_init ni = {
2275 .number = 34,
2276 .name = L"Test wide string",
2277 .average = 543.34343,
2278 };
2279
2280 ni.number = 58;
2281
2282 int dynamic_array[ni.number];
2283 dynamic_array[0] = argv[0][0];
2284 dynamic_array[ni.number - 1] = 543;
2285
2286 // work around unused variable warnings
2287 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2288 || dynamic_array[ni.number - 1] != 543);
2289 '
2290
2291 # Test code for whether the C compiler supports C11 (global declarations)
2292 ac_c_conftest_c11_globals='
2293 // Does the compiler advertise C11 conformance?
2294 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2295 # error "Compiler does not advertise C11 conformance"
2296 #endif
2297
2298 // Check _Alignas.
2299 char _Alignas (double) aligned_as_double;
2300 char _Alignas (0) no_special_alignment;
2301 extern char aligned_as_int;
2302 char _Alignas (0) _Alignas (int) aligned_as_int;
2303
2304 // Check _Alignof.
2305 enum
2306 {
2307 int_alignment = _Alignof (int),
2308 int_array_alignment = _Alignof (int[100]),
2309 char_alignment = _Alignof (char)
2310 };
2311 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2312
2313 // Check _Noreturn.
2314 int _Noreturn does_not_return (void) { for (;;) continue; }
2315
2316 // Check _Static_assert.
2317 struct test_static_assert
2318 {
2319 int x;
2320 _Static_assert (sizeof (int) <= sizeof (long int),
2321 "_Static_assert does not work in struct");
2322 long int y;
2323 };
2324
2325 // Check UTF-8 literals.
2326 #define u8 syntax error!
2327 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2328
2329 // Check duplicate typedefs.
2330 typedef long *long_ptr;
2331 typedef long int *long_ptr;
2332 typedef long_ptr long_ptr;
2333
2334 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2335 struct anonymous
2336 {
2337 union {
2338 struct { int i; int j; };
2339 struct { int k; long int l; } w;
2340 };
2341 int m;
2342 } v1;
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (body of main).
2346 ac_c_conftest_c11_main='
2347 _Static_assert ((offsetof (struct anonymous, i)
2348 == offsetof (struct anonymous, w.k)),
2349 "Anonymous union alignment botch");
2350 v1.i = 2;
2351 v1.w.k = 5;
2352 ok |= v1.i != 5;
2353 '
2354
2355 # Test code for whether the C compiler supports C11 (complete).
2356 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2357 ${ac_c_conftest_c99_globals}
2358 ${ac_c_conftest_c11_globals}
2359
2360 int
2361 main (int argc, char **argv)
2362 {
2363 int ok = 0;
2364 ${ac_c_conftest_c89_main}
2365 ${ac_c_conftest_c99_main}
2366 ${ac_c_conftest_c11_main}
2367 return ok;
2368 }
2369 "
2370
2371 # Test code for whether the C compiler supports C99 (complete).
2372 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2373 ${ac_c_conftest_c99_globals}
2374
2375 int
2376 main (int argc, char **argv)
2377 {
2378 int ok = 0;
2379 ${ac_c_conftest_c89_main}
2380 ${ac_c_conftest_c99_main}
2381 return ok;
2382 }
2383 "
2384
2385 # Test code for whether the C compiler supports C89 (complete).
2386 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2387
2388 int
2389 main (int argc, char **argv)
2390 {
2391 int ok = 0;
2392 ${ac_c_conftest_c89_main}
2393 return ok;
2394 }
2395 "
2396
2397 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2398 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2399 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2400 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2401 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2402 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2403 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2404 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2405 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2406
2407 # Auxiliary files required by this configure script.
2408 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2409
2410 # Locations in which to look for auxiliary files.
2411 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2412
2413 # Search for a directory containing all of the required auxiliary files,
2414 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2415 # If we don't find one directory that contains all the files we need,
2416 # we report the set of missing files from the *first* directory in
2417 # $ac_aux_dir_candidates and give up.
2418 ac_missing_aux_files=""
2419 ac_first_candidate=:
2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 as_found=false
2423 for as_dir in $ac_aux_dir_candidates
2424 do
2425 IFS=$as_save_IFS
2426 case $as_dir in #(((
2427 '') as_dir=./ ;;
2428 */) ;;
2429 *) as_dir=$as_dir/ ;;
2430 esac
2431 as_found=:
2432
2433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2434 ac_aux_dir_found=yes
2435 ac_install_sh=
2436 for ac_aux in $ac_aux_files
2437 do
2438 # As a special case, if "install-sh" is required, that requirement
2439 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2440 # and $ac_install_sh is set appropriately for whichever one is found.
2441 if test x"$ac_aux" = x"install-sh"
2442 then
2443 if test -f "${as_dir}install-sh"; then
2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2445 ac_install_sh="${as_dir}install-sh -c"
2446 elif test -f "${as_dir}install.sh"; then
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2448 ac_install_sh="${as_dir}install.sh -c"
2449 elif test -f "${as_dir}shtool"; then
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2451 ac_install_sh="${as_dir}shtool install -c"
2452 else
2453 ac_aux_dir_found=no
2454 if $ac_first_candidate; then
2455 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2456 else
2457 break
2458 fi
2459 fi
2460 else
2461 if test -f "${as_dir}${ac_aux}"; then
2462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2463 else
2464 ac_aux_dir_found=no
2465 if $ac_first_candidate; then
2466 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2467 else
2468 break
2469 fi
2470 fi
2471 fi
2472 done
2473 if test "$ac_aux_dir_found" = yes; then
2474 ac_aux_dir="$as_dir"
2475 break
2476 fi
2477 ac_first_candidate=false
2478
2479 as_found=false
2480 done
2481 IFS=$as_save_IFS
2482 if $as_found
2483 then :
2484
2485 else $as_nop
2486 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2487 fi
2488
2489
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 if test -f "${ac_aux_dir}config.guess"; then
2495 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2496 fi
2497 if test -f "${ac_aux_dir}config.sub"; then
2498 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2499 fi
2500 if test -f "$ac_aux_dir/configure"; then
2501 ac_configure="$SHELL ${ac_aux_dir}configure"
2502 fi
2503
2504 # Check that the precious variables saved in the cache have kept the same
2505 # value.
2506 ac_cache_corrupted=false
2507 for ac_var in $ac_precious_vars; do
2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2509 eval ac_new_set=\$ac_env_${ac_var}_set
2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2511 eval ac_new_val=\$ac_env_${ac_var}_value
2512 case $ac_old_set,$ac_new_set in
2513 set,)
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2515 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2517 ,set)
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2519 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2521 ,);;
2522 *)
2523 if test "x$ac_old_val" != "x$ac_new_val"; then
2524 # differences in whitespace do not lead to failure.
2525 ac_old_val_w=`echo x $ac_old_val`
2526 ac_new_val_w=`echo x $ac_new_val`
2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2529 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2530 ac_cache_corrupted=:
2531 else
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2533 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2534 eval $ac_var=\$ac_old_val
2535 fi
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2537 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2539 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2540 fi;;
2541 esac
2542 # Pass precious variables to config.status.
2543 if test "$ac_new_set" = set; then
2544 case $ac_new_val in
2545 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2546 *) ac_arg=$ac_var=$ac_new_val ;;
2547 esac
2548 case " $ac_configure_args " in
2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2551 esac
2552 fi
2553 done
2554 if $ac_cache_corrupted; then
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2558 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2559 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2560 and start over" "$LINENO" 5
2561 fi
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573 am__api_version='1.16'
2574
2575
2576
2577 # Find a good install program. We prefer a C program (faster),
2578 # so one script is as good as another. But avoid the broken or
2579 # incompatible versions:
2580 # SysV /etc/install, /usr/sbin/install
2581 # SunOS /usr/etc/install
2582 # IRIX /sbin/install
2583 # AIX /bin/install
2584 # AmigaOS /C/install, which installs bootblocks on floppy discs
2585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588 # OS/2's system install, which has a completely different semantic
2589 # ./install, which can be erroneously created by make from ./install.sh.
2590 # Reject install programs that cannot install multiple files.
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592 printf %s "checking for a BSD-compatible install... " >&6; }
2593 if test -z "$INSTALL"; then
2594 if test ${ac_cv_path_install+y}
2595 then :
2596 printf %s "(cached) " >&6
2597 else $as_nop
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 case $as_dir in #(((
2603 '') as_dir=./ ;;
2604 */) ;;
2605 *) as_dir=$as_dir/ ;;
2606 esac
2607 # Account for fact that we put trailing slashes in our PATH walk.
2608 case $as_dir in #((
2609 ./ | /[cC]/* | \
2610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2611 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2612 /usr/ucb/* ) ;;
2613 *)
2614 # OSF1 and SCO ODT 3.0 have their own names for install.
2615 # Don't use installbsd from OSF since it installs stuff as root
2616 # by default.
2617 for ac_prog in ginstall scoinst install; do
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2620 if test $ac_prog = install &&
2621 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622 # AIX install. It has an incompatible calling convention.
2623 :
2624 elif test $ac_prog = install &&
2625 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2626 # program-specific install script used by HP pwplus--don't use.
2627 :
2628 else
2629 rm -rf conftest.one conftest.two conftest.dir
2630 echo one > conftest.one
2631 echo two > conftest.two
2632 mkdir conftest.dir
2633 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2634 test -s conftest.one && test -s conftest.two &&
2635 test -s conftest.dir/conftest.one &&
2636 test -s conftest.dir/conftest.two
2637 then
2638 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2639 break 3
2640 fi
2641 fi
2642 fi
2643 done
2644 done
2645 ;;
2646 esac
2647
2648 done
2649 IFS=$as_save_IFS
2650
2651 rm -rf conftest.one conftest.two conftest.dir
2652
2653 fi
2654 if test ${ac_cv_path_install+y}; then
2655 INSTALL=$ac_cv_path_install
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for INSTALL 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 INSTALL=$ac_install_sh
2662 fi
2663 fi
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2665 printf "%s\n" "$INSTALL" >&6; }
2666
2667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2668 # It thinks the first close brace ends the variable substitution.
2669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2670
2671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2672
2673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2674
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2676 printf %s "checking whether build environment is sane... " >&6; }
2677 # Reject unsafe characters in $srcdir or the absolute working directory
2678 # name. Accept space and tab only in the latter.
2679 am_lf='
2680 '
2681 case `pwd` in
2682 *[\\\"\#\$\&\'\`$am_lf]*)
2683 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2684 esac
2685 case $srcdir in
2686 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2687 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2688 esac
2689
2690 # Do 'set' in a subshell so we don't clobber the current shell's
2691 # arguments. Must try -L first in case configure is actually a
2692 # symlink; some systems play weird games with the mod time of symlinks
2693 # (eg FreeBSD returns the mod time of the symlink's containing
2694 # directory).
2695 if (
2696 am_has_slept=no
2697 for am_try in 1 2; do
2698 echo "timestamp, slept: $am_has_slept" > conftest.file
2699 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2700 if test "$*" = "X"; then
2701 # -L didn't work.
2702 set X `ls -t "$srcdir/configure" conftest.file`
2703 fi
2704 if test "$*" != "X $srcdir/configure conftest.file" \
2705 && test "$*" != "X conftest.file $srcdir/configure"; then
2706
2707 # If neither matched, then we have a broken ls. This can happen
2708 # if, for instance, CONFIG_SHELL is bash and it inherits a
2709 # broken ls alias from the environment. This has actually
2710 # happened. Such a system could not be considered "sane".
2711 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2712 alias in your environment" "$LINENO" 5
2713 fi
2714 if test "$2" = conftest.file || test $am_try -eq 2; then
2715 break
2716 fi
2717 # Just in case.
2718 sleep 1
2719 am_has_slept=yes
2720 done
2721 test "$2" = conftest.file
2722 )
2723 then
2724 # Ok.
2725 :
2726 else
2727 as_fn_error $? "newly created file is older than distributed files!
2728 Check your system clock" "$LINENO" 5
2729 fi
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 printf "%s\n" "yes" >&6; }
2732 # If we didn't sleep, we still need to ensure time stamps of config.status and
2733 # generated files are strictly newer.
2734 am_sleep_pid=
2735 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2736 ( sleep 1 ) &
2737 am_sleep_pid=$!
2738 fi
2739
2740 rm -f conftest.file
2741
2742 test "$program_prefix" != NONE &&
2743 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2744 # Use a double $ so make ignores it.
2745 test "$program_suffix" != NONE &&
2746 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2747 # Double any \ or $.
2748 # By default was `s,x,x', remove it if useless.
2749 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2750 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2751
2752
2753 # Expand $ac_aux_dir to an absolute path.
2754 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2755
2756
2757 if test x"${MISSING+set}" != xset; then
2758 MISSING="\${SHELL} '$am_aux_dir/missing'"
2759 fi
2760 # Use eval to expand $SHELL
2761 if eval "$MISSING --is-lightweight"; then
2762 am_missing_run="$MISSING "
2763 else
2764 am_missing_run=
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2766 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2767 fi
2768
2769 if test x"${install_sh+set}" != xset; then
2770 case $am_aux_dir in
2771 *\ * | *\ *)
2772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2773 *)
2774 install_sh="\${SHELL} $am_aux_dir/install-sh"
2775 esac
2776 fi
2777
2778 # Installed binaries are usually stripped using 'strip' when the user
2779 # run "make install-strip". However 'strip' might not be the right
2780 # tool to use in cross-compilation environments, therefore Automake
2781 # will honor the 'STRIP' environment variable to overrule this program.
2782 if test "$cross_compiling" != no; then
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}strip; ac_word=$2
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 printf %s "checking for $ac_word... " >&6; }
2788 if test ${ac_cv_prog_STRIP+y}
2789 then :
2790 printf %s "(cached) " >&6
2791 else $as_nop
2792 if test -n "$STRIP"; then
2793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 case $as_dir in #(((
2800 '') as_dir=./ ;;
2801 */) ;;
2802 *) as_dir=$as_dir/ ;;
2803 esac
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 STRIP=$ac_cv_prog_STRIP
2817 if test -n "$STRIP"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819 printf "%s\n" "$STRIP" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_STRIP"; then
2828 ac_ct_STRIP=$STRIP
2829 # Extract the first word of "strip", so it can be a program name with args.
2830 set dummy strip; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_ac_ct_STRIP+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else $as_nop
2837 if test -n "$ac_ct_STRIP"; then
2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 case $as_dir in #(((
2845 '') as_dir=./ ;;
2846 */) ;;
2847 *) as_dir=$as_dir/ ;;
2848 esac
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_STRIP="strip"
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 printf "%s\n" "$ac_ct_STRIP" >&6; }
2865 else
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 printf "%s\n" "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_STRIP" = x; then
2871 STRIP=":"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 STRIP=$ac_ct_STRIP
2880 fi
2881 else
2882 STRIP="$ac_cv_prog_STRIP"
2883 fi
2884
2885 fi
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887
2888
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2890 printf %s "checking for a race-free mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if test ${ac_cv_path_mkdir+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else $as_nop
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_prog in mkdir gmkdir; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2908 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909 'mkdir ('*'coreutils) '* | \
2910 'BusyBox '* | \
2911 'mkdir (fileutils) '4.1*)
2912 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2913 break 3;;
2914 esac
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921
2922 test -d ./--version && rmdir ./--version
2923 if test ${ac_cv_path_mkdir+y}; then
2924 MKDIR_P="$ac_cv_path_mkdir -p"
2925 else
2926 # As a last resort, use the slow shell script. Don't cache a
2927 # value for MKDIR_P within a source directory, because that will
2928 # break other packages using the cache if that directory is
2929 # removed, or if the value is a relative name.
2930 MKDIR_P="$ac_install_sh -d"
2931 fi
2932 fi
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2934 printf "%s\n" "$MKDIR_P" >&6; }
2935
2936 for ac_prog in gawk mawk nawk awk
2937 do
2938 # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 printf %s "checking for $ac_word... " >&6; }
2942 if test ${ac_cv_prog_AWK+y}
2943 then :
2944 printf %s "(cached) " >&6
2945 else $as_nop
2946 if test -n "$AWK"; then
2947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 case $as_dir in #(((
2954 '') as_dir=./ ;;
2955 */) ;;
2956 *) as_dir=$as_dir/ ;;
2957 esac
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 printf "%s\n" "$AWK" >&6; }
2974 else
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf "%s\n" "no" >&6; }
2977 fi
2978
2979
2980 test -n "$AWK" && break
2981 done
2982
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2988 then :
2989 printf %s "(cached) " >&6
2990 else $as_nop
2991 cat >conftest.make <<\_ACEOF
2992 SHELL = /bin/sh
2993 all:
2994 @echo '@@@%%%=$(MAKE)=@@@%%%'
2995 _ACEOF
2996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 *@@@%%%=?*=@@@%%%*)
2999 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 *)
3001 eval ac_cv_prog_make_${ac_make}_set=no;;
3002 esac
3003 rm -f conftest.make
3004 fi
3005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 printf "%s\n" "yes" >&6; }
3008 SET_MAKE=
3009 else
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 printf "%s\n" "no" >&6; }
3012 SET_MAKE="MAKE=${MAKE-make}"
3013 fi
3014
3015 rm -rf .tst 2>/dev/null
3016 mkdir .tst 2>/dev/null
3017 if test -d .tst; then
3018 am__leading_dot=.
3019 else
3020 am__leading_dot=_
3021 fi
3022 rmdir .tst 2>/dev/null
3023
3024 # Check whether --enable-silent-rules was given.
3025 if test ${enable_silent_rules+y}
3026 then :
3027 enableval=$enable_silent_rules;
3028 fi
3029
3030 case $enable_silent_rules in # (((
3031 yes) AM_DEFAULT_VERBOSITY=0;;
3032 no) AM_DEFAULT_VERBOSITY=1;;
3033 *) AM_DEFAULT_VERBOSITY=1;;
3034 esac
3035 am_make=${MAKE-make}
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3037 printf %s "checking whether $am_make supports nested variables... " >&6; }
3038 if test ${am_cv_make_support_nested_variables+y}
3039 then :
3040 printf %s "(cached) " >&6
3041 else $as_nop
3042 if printf "%s\n" 'TRUE=$(BAR$(V))
3043 BAR0=false
3044 BAR1=true
3045 V=1
3046 am__doit:
3047 @$(TRUE)
3048 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3049 am_cv_make_support_nested_variables=yes
3050 else
3051 am_cv_make_support_nested_variables=no
3052 fi
3053 fi
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3055 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3056 if test $am_cv_make_support_nested_variables = yes; then
3057 AM_V='$(V)'
3058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3059 else
3060 AM_V=$AM_DEFAULT_VERBOSITY
3061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3062 fi
3063 AM_BACKSLASH='\'
3064
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067 # is not polluted with repeated "-I."
3068 am__isrc=' -I$(srcdir)'
3069 # test to see if srcdir already configured
3070 if test -f $srcdir/config.status; then
3071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3072 fi
3073 fi
3074
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077 if (cygpath --version) >/dev/null 2>/dev/null; then
3078 CYGPATH_W='cygpath -w'
3079 else
3080 CYGPATH_W=echo
3081 fi
3082 fi
3083
3084
3085 # Define the identity of the package.
3086 PACKAGE='libtirpc'
3087 VERSION='1.3.5'
3088
3089
3090 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3091
3092
3093 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3094
3095 # Some tools Automake needs.
3096
3097 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3098
3099
3100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3101
3102
3103 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3104
3105
3106 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3107
3108
3109 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3110
3111 # For better backward compatibility. To be removed once Automake 1.9.x
3112 # dies out for good. For more background, see:
3113 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3114 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3115 mkdir_p='$(MKDIR_P)'
3116
3117 # We need awk for the "check" target (and possibly the TAP driver). The
3118 # system "awk" is bad on some platforms.
3119 # Always define AMTAR for backward compatibility. Yes, it's still used
3120 # in the wild :-( We should find a proper way to deprecate it ...
3121 AMTAR='$${TAR-tar}'
3122
3123
3124 # We'll loop over all known methods to create a tar archive until one works.
3125 _am_tools='gnutar pax cpio none'
3126
3127 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3128
3129
3130
3131
3132
3133 # Variables for tags utilities; see am/tags.am
3134 if test -z "$CTAGS"; then
3135 CTAGS=ctags
3136 fi
3137
3138 if test -z "$ETAGS"; then
3139 ETAGS=etags
3140 fi
3141
3142 if test -z "$CSCOPE"; then
3143 CSCOPE=cscope
3144 fi
3145
3146
3147
3148 # POSIX will say in a future version that running "rm -f" with no argument
3149 # is OK; and we want to be able to make that assumption in our Makefile
3150 # recipes. So use an aggressive probe to check that the usage we want is
3151 # actually supported "in the wild" to an acceptable degree.
3152 # See automake bug#10828.
3153 # To make any issue more visible, cause the running configure to be aborted
3154 # by default if the 'rm' program in use doesn't match our expectations; the
3155 # user can still override this though.
3156 if rm -f && rm -fr && rm -rf; then : OK; else
3157 cat >&2 <<'END'
3158 Oops!
3159
3160 Your 'rm' program seems unable to run without file operands specified
3161 on the command line, even when the '-f' option is present. This is contrary
3162 to the behaviour of most rm programs out there, and not conforming with
3163 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165 Please tell [email protected] about your system, including the value
3166 of your $PATH and any error possibly output before this message. This
3167 can help us improve future automake versions.
3168
3169 END
3170 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171 echo 'Configuration will proceed anyway, since you have set the' >&2
3172 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173 echo >&2
3174 else
3175 cat >&2 <<'END'
3176 Aborting the configuration process, to ensure you take notice of the issue.
3177
3178 You can download and install GNU coreutils to get an 'rm' implementation
3179 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3180
3181 If you want to complete the configuration process using your problematic
3182 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183 to "yes", and re-run configure.
3184
3185 END
3186 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187 fi
3188 fi
3189
3190 # Check whether --enable-silent-rules was given.
3191 if test ${enable_silent_rules+y}
3192 then :
3193 enableval=$enable_silent_rules;
3194 fi
3195
3196 case $enable_silent_rules in # (((
3197 yes) AM_DEFAULT_VERBOSITY=0;;
3198 no) AM_DEFAULT_VERBOSITY=1;;
3199 *) AM_DEFAULT_VERBOSITY=0;;
3200 esac
3201 am_make=${MAKE-make}
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3203 printf %s "checking whether $am_make supports nested variables... " >&6; }
3204 if test ${am_cv_make_support_nested_variables+y}
3205 then :
3206 printf %s "(cached) " >&6
3207 else $as_nop
3208 if printf "%s\n" 'TRUE=$(BAR$(V))
3209 BAR0=false
3210 BAR1=true
3211 V=1
3212 am__doit:
3213 @$(TRUE)
3214 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3215 am_cv_make_support_nested_variables=yes
3216 else
3217 am_cv_make_support_nested_variables=no
3218 fi
3219 fi
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3221 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3222 if test $am_cv_make_support_nested_variables = yes; then
3223 AM_V='$(V)'
3224 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3225 else
3226 AM_V=$AM_DEFAULT_VERBOSITY
3227 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3228 fi
3229 AM_BACKSLASH='\'
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 printf %s "checking for $ac_word... " >&6; }
3252 if test ${ac_cv_prog_CC+y}
3253 then :
3254 printf %s "(cached) " >&6
3255 else $as_nop
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 case $as_dir in #(((
3264 '') as_dir=./ ;;
3265 */) ;;
3266 *) as_dir=$as_dir/ ;;
3267 esac
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 printf "%s\n" "$CC" >&6; }
3284 else
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 printf "%s\n" "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 if test -z "$ac_cv_prog_CC"; then
3292 ac_ct_CC=$CC
3293 # Extract the first word of "gcc", so it can be a program name with args.
3294 set dummy gcc; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_ac_ct_CC+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else $as_nop
3301 if test -n "$ac_ct_CC"; then
3302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 case $as_dir in #(((
3309 '') as_dir=./ ;;
3310 */) ;;
3311 *) as_dir=$as_dir/ ;;
3312 esac
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CC="gcc"
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 printf "%s\n" "$ac_ct_CC" >&6; }
3329 else
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 fi
3333
3334 if test "x$ac_ct_CC" = x; then
3335 CC=""
3336 else
3337 case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343 CC=$ac_ct_CC
3344 fi
3345 else
3346 CC="$ac_cv_prog_CC"
3347 fi
3348
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 printf %s "checking for $ac_word... " >&6; }
3355 if test ${ac_cv_prog_CC+y}
3356 then :
3357 printf %s "(cached) " >&6
3358 else $as_nop
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 case $as_dir in #(((
3367 '') as_dir=./ ;;
3368 */) ;;
3369 *) as_dir=$as_dir/ ;;
3370 esac
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 printf "%s\n" "$CC" >&6; }
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 fi
3395 if test -z "$CC"; then
3396 # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 printf %s "checking for $ac_word... " >&6; }
3400 if test ${ac_cv_prog_CC+y}
3401 then :
3402 printf %s "(cached) " >&6
3403 else $as_nop
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 case $as_dir in #(((
3413 '') as_dir=./ ;;
3414 */) ;;
3415 *) as_dir=$as_dir/ ;;
3416 esac
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3419 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3420 ac_prog_rejected=yes
3421 continue
3422 fi
3423 ac_cv_prog_CC="cc"
3424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 if test $ac_prog_rejected = yes; then
3432 # We found a bogon in the path, so make sure we never use it.
3433 set dummy $ac_cv_prog_CC
3434 shift
3435 if test $# != 0; then
3436 # We chose a different compiler from the bogus one.
3437 # However, it has the same basename, so the bogon will be chosen
3438 # first if we set CC to just the basename; use the full file name.
3439 shift
3440 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3441 fi
3442 fi
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 printf "%s\n" "$CC" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454
3455 fi
3456 if test -z "$CC"; then
3457 if test -n "$ac_tool_prefix"; then
3458 for ac_prog in cl.exe
3459 do
3460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488 IFS=$as_save_IFS
3489
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501
3502 test -n "$CC" && break
3503 done
3504 fi
3505 if test -z "$CC"; then
3506 ac_ct_CC=$CC
3507 for ac_prog in cl.exe
3508 do
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 printf %s "checking for $ac_word... " >&6; }
3513 if test ${ac_cv_prog_ac_ct_CC+y}
3514 then :
3515 printf %s "(cached) " >&6
3516 else $as_nop
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 case $as_dir in #(((
3525 '') as_dir=./ ;;
3526 */) ;;
3527 *) as_dir=$as_dir/ ;;
3528 esac
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_CC="$ac_prog"
3532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535 done
3536 done
3537 IFS=$as_save_IFS
3538
3539 fi
3540 fi
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 printf "%s\n" "$ac_ct_CC" >&6; }
3545 else
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 printf "%s\n" "no" >&6; }
3548 fi
3549
3550
3551 test -n "$ac_ct_CC" && break
3552 done
3553
3554 if test "x$ac_ct_CC" = x; then
3555 CC=""
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 CC=$ac_ct_CC
3564 fi
3565 fi
3566
3567 fi
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3571 set dummy ${ac_tool_prefix}clang; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_CC+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}clang"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 printf "%s\n" "$CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614 ac_ct_CC=$CC
3615 # Extract the first word of "clang", so it can be a program name with args.
3616 set dummy clang; ac_word=$2
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 printf %s "checking for $ac_word... " >&6; }
3619 if test ${ac_cv_prog_ac_ct_CC+y}
3620 then :
3621 printf %s "(cached) " >&6
3622 else $as_nop
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 case $as_dir in #(((
3631 '') as_dir=./ ;;
3632 */) ;;
3633 *) as_dir=$as_dir/ ;;
3634 esac
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_ac_ct_CC="clang"
3638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3648 if test -n "$ac_ct_CC"; then
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3650 printf "%s\n" "$ac_ct_CC" >&6; }
3651 else
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 printf "%s\n" "no" >&6; }
3654 fi
3655
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 CC=$ac_ct_CC
3666 fi
3667 else
3668 CC="$ac_cv_prog_CC"
3669 fi
3670
3671 fi
3672
3673
3674 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $? "no acceptable C compiler found in \$PATH
3677 See \`config.log' for more details" "$LINENO" 5; }
3678
3679 # Provide some information about the compiler.
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3681 set X $ac_compile
3682 ac_compiler=$2
3683 for ac_option in --version -v -V -qversion -version; do
3684 { { ac_try="$ac_compiler $ac_option >&5"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 printf "%s\n" "$ac_try_echo"; } >&5
3691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3692 ac_status=$?
3693 if test -s conftest.err; then
3694 sed '10a\
3695 ... rest of stderr output deleted ...
3696 10q' conftest.err >conftest.er1
3697 cat conftest.er1 >&5
3698 fi
3699 rm -f conftest.er1 conftest.err
3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }
3702 done
3703
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main (void)
3709 {
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 ac_clean_files_save=$ac_clean_files
3716 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3717 # Try to create an executable without -o first, disregard a.out.
3718 # It will help us diagnose broken compilers, and finding out an intuition
3719 # of exeext.
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3721 printf %s "checking whether the C compiler works... " >&6; }
3722 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3723
3724 # The possible output files:
3725 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726
3727 ac_rmfiles=
3728 for ac_file in $ac_files
3729 do
3730 case $ac_file in
3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3732 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3733 esac
3734 done
3735 rm -f $ac_rmfiles
3736
3737 if { { ac_try="$ac_link_default"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 printf "%s\n" "$ac_try_echo"; } >&5
3744 (eval "$ac_link_default") 2>&5
3745 ac_status=$?
3746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 then :
3749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3752 # so that the user can short-circuit this test for compilers unknown to
3753 # Autoconf.
3754 for ac_file in $ac_files ''
3755 do
3756 test -f "$ac_file" || continue
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3759 ;;
3760 [ab].out )
3761 # We found the default executable, but exeext='' is most
3762 # certainly right.
3763 break;;
3764 *.* )
3765 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3766 then :; else
3767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3768 fi
3769 # We set ac_cv_exeext here because the later test for it is not
3770 # safe: cross compilers may not add the suffix if given an `-o'
3771 # argument, so we may need to know it at that point already.
3772 # Even if this section looks crufty: it has the advantage of
3773 # actually working.
3774 break;;
3775 * )
3776 break;;
3777 esac
3778 done
3779 test "$ac_cv_exeext" = no && ac_cv_exeext=
3780
3781 else $as_nop
3782 ac_file=''
3783 fi
3784 if test -z "$ac_file"
3785 then :
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 printf "%s\n" "no" >&6; }
3788 printf "%s\n" "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error 77 "C compiler cannot create executables
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 else $as_nop
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3797 printf "%s\n" "yes" >&6; }
3798 fi
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3800 printf %s "checking for C compiler default output file name... " >&6; }
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3802 printf "%s\n" "$ac_file" >&6; }
3803 ac_exeext=$ac_cv_exeext
3804
3805 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3808 printf %s "checking for suffix of executables... " >&6; }
3809 if { { ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 printf "%s\n" "$ac_try_echo"; } >&5
3816 (eval "$ac_link") 2>&5
3817 ac_status=$?
3818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820 then :
3821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3823 # work properly (i.e., refer to `conftest.exe'), while it won't with
3824 # `rm'.
3825 for ac_file in conftest.exe conftest conftest.*; do
3826 test -f "$ac_file" || continue
3827 case $ac_file in
3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 break;;
3831 * ) break;;
3832 esac
3833 done
3834 else $as_nop
3835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3838 See \`config.log' for more details" "$LINENO" 5; }
3839 fi
3840 rm -f conftest conftest$ac_cv_exeext
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3842 printf "%s\n" "$ac_cv_exeext" >&6; }
3843
3844 rm -f conftest.$ac_ext
3845 EXEEXT=$ac_cv_exeext
3846 ac_exeext=$EXEEXT
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <stdio.h>
3850 int
3851 main (void)
3852 {
3853 FILE *f = fopen ("conftest.out", "w");
3854 return ferror (f) || fclose (f) != 0;
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 ac_clean_files="$ac_clean_files conftest.out"
3861 # Check that the compiler produces executables we can run. If not, either
3862 # the compiler is broken, or we cross compile.
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3864 printf %s "checking whether we are cross compiling... " >&6; }
3865 if test "$cross_compiling" != yes; then
3866 { { ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 printf "%s\n" "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877 if { ac_try='./conftest$ac_cv_exeext'
3878 { { case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 printf "%s\n" "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3885 ac_status=$?
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3888 cross_compiling=no
3889 else
3890 if test "$cross_compiling" = maybe; then
3891 cross_compiling=yes
3892 else
3893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error 77 "cannot run C compiled programs.
3896 If you meant to cross compile, use \`--host'.
3897 See \`config.log' for more details" "$LINENO" 5; }
3898 fi
3899 fi
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3902 printf "%s\n" "$cross_compiling" >&6; }
3903
3904 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3905 ac_clean_files=$ac_clean_files_save
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3907 printf %s "checking for suffix of object files... " >&6; }
3908 if test ${ac_cv_objext+y}
3909 then :
3910 printf %s "(cached) " >&6
3911 else $as_nop
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914
3915 int
3916 main (void)
3917 {
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.o conftest.obj
3924 if { { ac_try="$ac_compile"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 printf "%s\n" "$ac_try_echo"; } >&5
3931 (eval "$ac_compile") 2>&5
3932 ac_status=$?
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }
3935 then :
3936 for ac_file in conftest.o conftest.obj conftest.*; do
3937 test -f "$ac_file" || continue;
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3941 break;;
3942 esac
3943 done
3944 else $as_nop
3945 printf "%s\n" "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "cannot compute suffix of object files: cannot compile
3951 See \`config.log' for more details" "$LINENO" 5; }
3952 fi
3953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3954 fi
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3956 printf "%s\n" "$ac_cv_objext" >&6; }
3957 OBJEXT=$ac_cv_objext
3958 ac_objext=$OBJEXT
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3960 printf %s "checking whether the compiler supports GNU C... " >&6; }
3961 if test ${ac_cv_c_compiler_gnu+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967
3968 int
3969 main (void)
3970 {
3971 #ifndef __GNUC__
3972 choke me
3973 #endif
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"
3980 then :
3981 ac_compiler_gnu=yes
3982 else $as_nop
3983 ac_compiler_gnu=no
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3987
3988 fi
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3990 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993 if test $ac_compiler_gnu = yes; then
3994 GCC=yes
3995 else
3996 GCC=
3997 fi
3998 ac_test_CFLAGS=${CFLAGS+y}
3999 ac_save_CFLAGS=$CFLAGS
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 printf %s "checking whether $CC accepts -g... " >&6; }
4002 if test ${ac_cv_prog_cc_g+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else $as_nop
4006 ac_save_c_werror_flag=$ac_c_werror_flag
4007 ac_c_werror_flag=yes
4008 ac_cv_prog_cc_g=no
4009 CFLAGS="-g"
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main (void)
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"
4022 then :
4023 ac_cv_prog_cc_g=yes
4024 else $as_nop
4025 CFLAGS=""
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"
4038 then :
4039
4040 else $as_nop
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main (void)
4048 {
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"
4055 then :
4056 ac_cv_prog_cc_g=yes
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064 fi
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4067 if test $ac_test_CFLAGS; then
4068 CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4071 CFLAGS="-g -O2"
4072 else
4073 CFLAGS="-g"
4074 fi
4075 else
4076 if test "$GCC" = yes; then
4077 CFLAGS="-O2"
4078 else
4079 CFLAGS=
4080 fi
4081 fi
4082 ac_prog_cc_stdc=no
4083 if test x$ac_prog_cc_stdc = xno
4084 then :
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4086 printf %s "checking for $CC option to enable C11 features... " >&6; }
4087 if test ${ac_cv_prog_cc_c11+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else $as_nop
4091 ac_cv_prog_cc_c11=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 $ac_c_conftest_c11_program
4096 _ACEOF
4097 for ac_arg in '' -std=gnu11
4098 do
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"
4101 then :
4102 ac_cv_prog_cc_c11=$ac_arg
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam
4105 test "x$ac_cv_prog_cc_c11" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4109 fi
4110
4111 if test "x$ac_cv_prog_cc_c11" = xno
4112 then :
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 printf "%s\n" "unsupported" >&6; }
4115 else $as_nop
4116 if test "x$ac_cv_prog_cc_c11" = x
4117 then :
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119 printf "%s\n" "none needed" >&6; }
4120 else $as_nop
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4122 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4123 CC="$CC $ac_cv_prog_cc_c11"
4124 fi
4125 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4126 ac_prog_cc_stdc=c11
4127 fi
4128 fi
4129 if test x$ac_prog_cc_stdc = xno
4130 then :
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4132 printf %s "checking for $CC option to enable C99 features... " >&6; }
4133 if test ${ac_cv_prog_cc_c99+y}
4134 then :
4135 printf %s "(cached) " >&6
4136 else $as_nop
4137 ac_cv_prog_cc_c99=no
4138 ac_save_CC=$CC
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 $ac_c_conftest_c99_program
4142 _ACEOF
4143 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"
4147 then :
4148 ac_cv_prog_cc_c99=$ac_arg
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam
4151 test "x$ac_cv_prog_cc_c99" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC
4155 fi
4156
4157 if test "x$ac_cv_prog_cc_c99" = xno
4158 then :
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160 printf "%s\n" "unsupported" >&6; }
4161 else $as_nop
4162 if test "x$ac_cv_prog_cc_c99" = x
4163 then :
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165 printf "%s\n" "none needed" >&6; }
4166 else $as_nop
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4168 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4169 CC="$CC $ac_cv_prog_cc_c99"
4170 fi
4171 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4172 ac_prog_cc_stdc=c99
4173 fi
4174 fi
4175 if test x$ac_prog_cc_stdc = xno
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4178 printf %s "checking for $CC option to enable C89 features... " >&6; }
4179 if test ${ac_cv_prog_cc_c89+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else $as_nop
4183 ac_cv_prog_cc_c89=no
4184 ac_save_CC=$CC
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 $ac_c_conftest_c89_program
4188 _ACEOF
4189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190 do
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"
4193 then :
4194 ac_cv_prog_cc_c89=$ac_arg
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.beam
4197 test "x$ac_cv_prog_cc_c89" != "xno" && break
4198 done
4199 rm -f conftest.$ac_ext
4200 CC=$ac_save_CC
4201 fi
4202
4203 if test "x$ac_cv_prog_cc_c89" = xno
4204 then :
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4206 printf "%s\n" "unsupported" >&6; }
4207 else $as_nop
4208 if test "x$ac_cv_prog_cc_c89" = x
4209 then :
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 printf "%s\n" "none needed" >&6; }
4212 else $as_nop
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4214 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4215 CC="$CC $ac_cv_prog_cc_c89"
4216 fi
4217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4218 ac_prog_cc_stdc=c89
4219 fi
4220 fi
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4235 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4236 if test ${am_cv_prog_cc_c_o+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242
4243 int
4244 main (void)
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 # Make sure it works both with $CC and with simple cc.
4252 # Following AC_PROG_CC_C_O, we do the test twice because some
4253 # compilers refuse to overwrite an existing .o file with -o,
4254 # though they will create one.
4255 am_cv_prog_cc_c_o=yes
4256 for am_i in 1 2; do
4257 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4258 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } \
4262 && test -f conftest2.$ac_objext; then
4263 : OK
4264 else
4265 am_cv_prog_cc_c_o=no
4266 break
4267 fi
4268 done
4269 rm -f core conftest*
4270 unset am_i
4271 fi
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4273 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4274 if test "$am_cv_prog_cc_c_o" != yes; then
4275 # Losing compiler, so override with the script.
4276 # FIXME: It is wrong to rewrite CC.
4277 # But if we don't then we get into trouble of one sort or another.
4278 # A longer-term fix would be to have automake use am__CC in this case,
4279 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4280 CC="$am_aux_dir/compile $CC"
4281 fi
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288 DEPDIR="${am__leading_dot}deps"
4289
4290 ac_config_commands="$ac_config_commands depfiles"
4291
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4293 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4294 cat > confinc.mk << 'END'
4295 am__doit:
4296 @echo this is the am__doit target >confinc.out
4297 .PHONY: am__doit
4298 END
4299 am__include="#"
4300 am__quote=
4301 # BSD make does it like this.
4302 echo '.include "confinc.mk" # ignored' > confmf.BSD
4303 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4304 echo 'include confinc.mk # ignored' > confmf.GNU
4305 _am_result=no
4306 for s in GNU BSD; do
4307 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4308 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }
4312 case $?:`cat confinc.out 2>/dev/null` in #(
4313 '0:this is the am__doit target') :
4314 case $s in #(
4315 BSD) :
4316 am__include='.include' am__quote='"' ;; #(
4317 *) :
4318 am__include='include' am__quote='' ;;
4319 esac ;; #(
4320 *) :
4321 ;;
4322 esac
4323 if test "$am__include" != "#"; then
4324 _am_result="yes ($s style)"
4325 break
4326 fi
4327 done
4328 rm -f confinc.* confmf.*
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4330 printf "%s\n" "${_am_result}" >&6; }
4331
4332 # Check whether --enable-dependency-tracking was given.
4333 if test ${enable_dependency_tracking+y}
4334 then :
4335 enableval=$enable_dependency_tracking;
4336 fi
4337
4338 if test "x$enable_dependency_tracking" != xno; then
4339 am_depcomp="$ac_aux_dir/depcomp"
4340 AMDEPBACKSLASH='\'
4341 am__nodep='_no'
4342 fi
4343 if test "x$enable_dependency_tracking" != xno; then
4344 AMDEP_TRUE=
4345 AMDEP_FALSE='#'
4346 else
4347 AMDEP_TRUE='#'
4348 AMDEP_FALSE=
4349 fi
4350
4351
4352
4353 depcc="$CC" am_compiler_list=
4354
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 printf %s "checking dependency style of $depcc... " >&6; }
4357 if test ${am_cv_CC_dependencies_compiler_type+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named 'D' -- because '-MD' means "put the output
4366 # in D".
4367 rm -rf conftest.dir
4368 mkdir conftest.dir
4369 # Copy depcomp to subdir because otherwise we won't find it if we're
4370 # using a relative directory.
4371 cp "$am_depcomp" conftest.dir
4372 cd conftest.dir
4373 # We will build objects and dependencies in a subdirectory because
4374 # it helps to detect inapplicable dependency modes. For instance
4375 # both Tru64's cc and ICC support -MD to output dependencies as a
4376 # side effect of compilation, but ICC will put the dependencies in
4377 # the current directory while Tru64 will put them in the object
4378 # directory.
4379 mkdir sub
4380
4381 am_cv_CC_dependencies_compiler_type=none
4382 if test "$am_compiler_list" = ""; then
4383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 fi
4385 am__universal=false
4386 case " $depcc " in #(
4387 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4388 esac
4389
4390 for depmode in $am_compiler_list; do
4391 # Setup a source with many dependencies, because some compilers
4392 # like to wrap large dependency lists on column 80 (with \), and
4393 # we should not choose a depcomp mode which is confused by this.
4394 #
4395 # We need to recreate these files for each test, as the compiler may
4396 # overwrite some of them when testing with obscure command lines.
4397 # This happens at least with the AIX C compiler.
4398 : > sub/conftest.c
4399 for i in 1 2 3 4 5 6; do
4400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4402 # Solaris 10 /bin/sh.
4403 echo '/* dummy */' > sub/conftst$i.h
4404 done
4405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4406
4407 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4408 # mode. It turns out that the SunPro C++ compiler does not properly
4409 # handle '-M -o', and we need to detect this. Also, some Intel
4410 # versions had trouble with output in subdirs.
4411 am__obj=sub/conftest.${OBJEXT-o}
4412 am__minus_obj="-o $am__obj"
4413 case $depmode in
4414 gcc)
4415 # This depmode causes a compiler race in universal mode.
4416 test "$am__universal" = false || continue
4417 ;;
4418 nosideeffect)
4419 # After this tag, mechanisms are not by side-effect, so they'll
4420 # only be used when explicitly requested.
4421 if test "x$enable_dependency_tracking" = xyes; then
4422 continue
4423 else
4424 break
4425 fi
4426 ;;
4427 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4428 # This compiler won't grok '-c -o', but also, the minuso test has
4429 # not run yet. These depmodes are late enough in the game, and
4430 # so weak that their functioning should not be impacted.
4431 am__obj=conftest.${OBJEXT-o}
4432 am__minus_obj=
4433 ;;
4434 none) break ;;
4435 esac
4436 if depmode=$depmode \
4437 source=sub/conftest.c object=$am__obj \
4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4440 >/dev/null 2>conftest.err &&
4441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4445 # icc doesn't choke on unknown options, it will just issue warnings
4446 # or remarks (even with -Werror). So we grep stderr for any message
4447 # that says an option was ignored or not supported.
4448 # When given -MP, icc 7.0 and 7.1 complain thusly:
4449 # icc: Command line warning: ignoring option '-M'; no argument required
4450 # The diagnosis changed in icc 8.0:
4451 # icc: Command line remark: option '-MP' not supported
4452 if (grep 'ignoring option' conftest.err ||
4453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4454 am_cv_CC_dependencies_compiler_type=$depmode
4455 break
4456 fi
4457 fi
4458 done
4459
4460 cd ..
4461 rm -rf conftest.dir
4462 else
4463 am_cv_CC_dependencies_compiler_type=none
4464 fi
4465
4466 fi
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4468 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4470
4471 if
4472 test "x$enable_dependency_tracking" != xno \
4473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4474 am__fastdepCC_TRUE=
4475 am__fastdepCC_FALSE='#'
4476 else
4477 am__fastdepCC_TRUE='#'
4478 am__fastdepCC_FALSE=
4479 fi
4480
4481
4482
4483 # LT_VERSION_INFO="current:revision:age"
4484 #
4485 # From the libtool manual:
4486 #
4487 # 1. Start with version information of 0:0:0 for each libtool library.
4488 # 2. Update the version information only immediately before a public
4489 # release of your software. More frequent updates are unnecessary,
4490 # and only guarantee that the current interface number gets larger faster.
4491 # 3. If the library source code has changed at all since the last update,
4492 # then increment revision (c:r:a becomes c:r+1:a).
4493 # 4. If any interfaces have been added, removed, or changed since the last
4494 # update, increment current, and set revision to 0.
4495 # 5. If any interfaces have been added since the last public release,
4496 # then increment age.
4497 # 6. If any interfaces have been removed since the last public release,
4498 # then set age to 0.
4499 #
4500 # _Never_ try to set the interface numbers so that they correspond to the
4501 # release number of your package. This is an abuse that only fosters
4502 # misunderstanding of the purpose of library versions.
4503 #
4504 # In addition to these rules, symbol versioning is now in effect. soname
4505 # changes should be avoided.
4506 #
4507 LT_VERSION_INFO="3:0:0"
4508
4509
4510
4511 ac_header= ac_cache=
4512 for ac_item in $ac_header_c_list
4513 do
4514 if test $ac_cache; then
4515 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4516 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4517 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4518 fi
4519 ac_header= ac_cache=
4520 elif test $ac_header; then
4521 ac_cache=$ac_item
4522 else
4523 ac_header=$ac_item
4524 fi
4525 done
4526
4527
4528
4529
4530
4531
4532
4533
4534 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4535 then :
4536
4537 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4538
4539 fi
4540 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
4541 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
4542 then :
4543 HAVE_GSSAPI_H=yes
4544 else $as_nop
4545 HAVE_GSSAPI_H=no
4546 fi
4547
4548
4549 # Check whether --enable-gssapi was given.
4550 if test ${enable_gssapi+y}
4551 then :
4552 enableval=$enable_gssapi;
4553 else $as_nop
4554 enable_gssapi=yes
4555 fi
4556
4557 if test "x$enable_gssapi" = xyes; then
4558 GSS_TRUE=
4559 GSS_FALSE='#'
4560 else
4561 GSS_TRUE='#'
4562 GSS_FALSE=
4563 fi
4564
4565
4566 if test "x$enable_gssapi" = xyes; then
4567 if test "x$HAVE_GSSAPI_H" = xno; then
4568 as_fn_error $? "gssapi.h not found. Use --disable-gssapi, or install GSS-API." "$LINENO" 5
4569 fi
4570 if test -n "$ac_tool_prefix"; then
4571 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
4572 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 printf %s "checking for $ac_word... " >&6; }
4575 if test ${ac_cv_prog_KRB5_CONFIG+y}
4576 then :
4577 printf %s "(cached) " >&6
4578 else $as_nop
4579 if test -n "$KRB5_CONFIG"; then
4580 ac_cv_prog_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 case $as_dir in #(((
4587 '') as_dir=./ ;;
4588 */) ;;
4589 *) as_dir=$as_dir/ ;;
4590 esac
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_KRB5_CONFIG="${ac_tool_prefix}krb5-config"
4594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 KRB5_CONFIG=$ac_cv_prog_KRB5_CONFIG
4604 if test -n "$KRB5_CONFIG"; then
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
4606 printf "%s\n" "$KRB5_CONFIG" >&6; }
4607 else
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 printf "%s\n" "no" >&6; }
4610 fi
4611
4612
4613 fi
4614 if test -z "$ac_cv_prog_KRB5_CONFIG"; then
4615 ac_ct_KRB5_CONFIG=$KRB5_CONFIG
4616 # Extract the first word of "krb5-config", so it can be a program name with args.
4617 set dummy krb5-config; ac_word=$2
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 printf %s "checking for $ac_word... " >&6; }
4620 if test ${ac_cv_prog_ac_ct_KRB5_CONFIG+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else $as_nop
4624 if test -n "$ac_ct_KRB5_CONFIG"; then
4625 ac_cv_prog_ac_ct_KRB5_CONFIG="$ac_ct_KRB5_CONFIG" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 case $as_dir in #(((
4632 '') as_dir=./ ;;
4633 */) ;;
4634 *) as_dir=$as_dir/ ;;
4635 esac
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_ac_ct_KRB5_CONFIG="krb5-config"
4639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 ac_ct_KRB5_CONFIG=$ac_cv_prog_ac_ct_KRB5_CONFIG
4649 if test -n "$ac_ct_KRB5_CONFIG"; then
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_KRB5_CONFIG" >&5
4651 printf "%s\n" "$ac_ct_KRB5_CONFIG" >&6; }
4652 else
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 printf "%s\n" "no" >&6; }
4655 fi
4656
4657 if test "x$ac_ct_KRB5_CONFIG" = x; then
4658 KRB5_CONFIG="no"
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 KRB5_CONFIG=$ac_ct_KRB5_CONFIG
4667 fi
4668 else
4669 KRB5_CONFIG="$ac_cv_prog_KRB5_CONFIG"
4670 fi
4671
4672 if test "x$KRB5_CONFIG" = xno; then
4673 as_fn_error $? "krb5-config tool not found. Use --disable-gssapi, or install Kerberos." "$LINENO" 5
4674 fi
4675 GSSAPI_CFLAGS=`${KRB5_CONFIG} --cflags gssapi`
4676 GSSAPI_LIBS=`${KRB5_CONFIG} --libs gssapi`
4677
4678
4679 fi
4680
4681 # Check whether --enable-authdes was given.
4682 if test ${enable_authdes+y}
4683 then :
4684 enableval=$enable_authdes;
4685 else $as_nop
4686 enable_authdes=no
4687 fi
4688
4689 if test "x$enable_authdes" = xyes; then
4690 AUTHDES_TRUE=
4691 AUTHDES_FALSE='#'
4692 else
4693 AUTHDES_TRUE='#'
4694 AUTHDES_FALSE=
4695 fi
4696
4697 if test "x$enable_authdes" != xno; then
4698
4699 printf "%s\n" "#define AUTHDES_SUPPORT 1" >>confdefs.h
4700
4701 fi
4702
4703 # Check whether --enable-ipv6 was given.
4704 if test ${enable_ipv6+y}
4705 then :
4706 enableval=$enable_ipv6;
4707 else $as_nop
4708 enable_ipv6=yes
4709 fi
4710
4711 if test "x$enable_ipv6" != xno; then
4712 INET6_TRUE=
4713 INET6_FALSE='#'
4714 else
4715 INET6_TRUE='#'
4716 INET6_FALSE=
4717 fi
4718
4719 if test "x$enable_ipv6" != xno; then
4720
4721 printf "%s\n" "#define INET6 1" >>confdefs.h
4722
4723 fi
4724
4725 # Check whether --enable-symvers was given.
4726 if test ${enable_symvers+y}
4727 then :
4728 enableval=$enable_symvers;
4729 else $as_nop
4730 enable_symvers=yes
4731 fi
4732
4733 if test "x$enable_symvers" = xyes; then
4734 SYMVERS_TRUE=
4735 SYMVERS_FALSE='#'
4736 else
4737 SYMVERS_TRUE='#'
4738 SYMVERS_FALSE=
4739 fi
4740
4741
4742
4743
4744 # Make sure we can run config.sub.
4745 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4746 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4747
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4749 printf %s "checking build system type... " >&6; }
4750 if test ${ac_cv_build+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 ac_build_alias=$build_alias
4755 test "x$ac_build_alias" = x &&
4756 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4757 test "x$ac_build_alias" = x &&
4758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4760 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4761
4762 fi
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764 printf "%s\n" "$ac_cv_build" >&6; }
4765 case $ac_cv_build in
4766 *-*-*) ;;
4767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4768 esac
4769 build=$ac_cv_build
4770 ac_save_IFS=$IFS; IFS='-'
4771 set x $ac_cv_build
4772 shift
4773 build_cpu=$1
4774 build_vendor=$2
4775 shift; shift
4776 # Remember, the first character of IFS is used to create $*,
4777 # except with old shells:
4778 build_os=$*
4779 IFS=$ac_save_IFS
4780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4781
4782
4783 # Check for which host we are on and setup a few things
4784 # specifically based on the host
4785 case $build_os in
4786 linux*)
4787 # Do something specific for linux
4788 LDFLAG_NOUNDEFINED="-Wl,--no-undefined"
4789
4790 ;;
4791 *)
4792 #Default Case
4793 ;;
4794 esac
4795
4796
4797 ac_config_headers="$ac_config_headers config.h"
4798
4799 case `pwd` in
4800 *\ * | *\ *)
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4802 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4803 esac
4804
4805
4806
4807 macro_version='2.4.7'
4808 macro_revision='2.4.7'
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 ltmain=$ac_aux_dir/ltmain.sh
4824
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4826 printf %s "checking host system type... " >&6; }
4827 if test ${ac_cv_host+y}
4828 then :
4829 printf %s "(cached) " >&6
4830 else $as_nop
4831 if test "x$host_alias" = x; then
4832 ac_cv_host=$ac_cv_build
4833 else
4834 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4835 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4836 fi
4837
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4840 printf "%s\n" "$ac_cv_host" >&6; }
4841 case $ac_cv_host in
4842 *-*-*) ;;
4843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4844 esac
4845 host=$ac_cv_host
4846 ac_save_IFS=$IFS; IFS='-'
4847 set x $ac_cv_host
4848 shift
4849 host_cpu=$1
4850 host_vendor=$2
4851 shift; shift
4852 # Remember, the first character of IFS is used to create $*,
4853 # except with old shells:
4854 host_os=$*
4855 IFS=$ac_save_IFS
4856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4857
4858
4859 # Backslashify metacharacters that are still active within
4860 # double-quoted strings.
4861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4862
4863 # Same as above, but do not quote variable references.
4864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4865
4866 # Sed substitution to delay expansion of an escaped shell variable in a
4867 # double_quote_subst'ed string.
4868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4869
4870 # Sed substitution to delay expansion of an escaped single quote.
4871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4872
4873 # Sed substitution to avoid accidental globbing in evaled expressions
4874 no_glob_subst='s/\*/\\\*/g'
4875
4876 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4878 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4879
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4881 printf %s "checking how to print strings... " >&6; }
4882 # Test print first, because it will be a builtin if present.
4883 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4884 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4885 ECHO='print -r --'
4886 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4887 ECHO='printf %s\n'
4888 else
4889 # Use this function as a fallback that always works.
4890 func_fallback_echo ()
4891 {
4892 eval 'cat <<_LTECHO_EOF
4893 $1
4894 _LTECHO_EOF'
4895 }
4896 ECHO='func_fallback_echo'
4897 fi
4898
4899 # func_echo_all arg...
4900 # Invoke $ECHO with all args, space-separated.
4901 func_echo_all ()
4902 {
4903 $ECHO ""
4904 }
4905
4906 case $ECHO in
4907 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4908 printf "%s\n" "printf" >&6; } ;;
4909 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4910 printf "%s\n" "print -r" >&6; } ;;
4911 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4912 printf "%s\n" "cat" >&6; } ;;
4913 esac
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4929 printf %s "checking for a sed that does not truncate output... " >&6; }
4930 if test ${ac_cv_path_SED+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else $as_nop
4934 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4935 for ac_i in 1 2 3 4 5 6 7; do
4936 ac_script="$ac_script$as_nl$ac_script"
4937 done
4938 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4939 { ac_script=; unset ac_script;}
4940 if test -z "$SED"; then
4941 ac_path_SED_found=false
4942 # Loop through the user's path and test for each of PROGNAME-LIST
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 case $as_dir in #(((
4948 '') as_dir=./ ;;
4949 */) ;;
4950 *) as_dir=$as_dir/ ;;
4951 esac
4952 for ac_prog in sed gsed
4953 do
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4956 as_fn_executable_p "$ac_path_SED" || continue
4957 # Check for GNU ac_path_SED and select it if it is found.
4958 # Check for GNU $ac_path_SED
4959 case `"$ac_path_SED" --version 2>&1` in
4960 *GNU*)
4961 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4962 *)
4963 ac_count=0
4964 printf %s 0123456789 >"conftest.in"
4965 while :
4966 do
4967 cat "conftest.in" "conftest.in" >"conftest.tmp"
4968 mv "conftest.tmp" "conftest.in"
4969 cp "conftest.in" "conftest.nl"
4970 printf "%s\n" '' >> "conftest.nl"
4971 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973 as_fn_arith $ac_count + 1 && ac_count=$as_val
4974 if test $ac_count -gt ${ac_path_SED_max-0}; then
4975 # Best one so far, save it but keep looking for a better one
4976 ac_cv_path_SED="$ac_path_SED"
4977 ac_path_SED_max=$ac_count
4978 fi
4979 # 10*(2^10) chars as input seems more than enough
4980 test $ac_count -gt 10 && break
4981 done
4982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983 esac
4984
4985 $ac_path_SED_found && break 3
4986 done
4987 done
4988 done
4989 IFS=$as_save_IFS
4990 if test -z "$ac_cv_path_SED"; then
4991 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4992 fi
4993 else
4994 ac_cv_path_SED=$SED
4995 fi
4996
4997 fi
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4999 printf "%s\n" "$ac_cv_path_SED" >&6; }
5000 SED="$ac_cv_path_SED"
5001 rm -f conftest.sed
5002
5003 test -z "$SED" && SED=sed
5004 Xsed="$SED -e 1s/^X//"
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5017 printf %s "checking for grep that handles long lines and -e... " >&6; }
5018 if test ${ac_cv_path_GREP+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 if test -z "$GREP"; then
5023 ac_path_GREP_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027 do
5028 IFS=$as_save_IFS
5029 case $as_dir in #(((
5030 '') as_dir=./ ;;
5031 */) ;;
5032 *) as_dir=$as_dir/ ;;
5033 esac
5034 for ac_prog in grep ggrep
5035 do
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5038 as_fn_executable_p "$ac_path_GREP" || continue
5039 # Check for GNU ac_path_GREP and select it if it is found.
5040 # Check for GNU $ac_path_GREP
5041 case `"$ac_path_GREP" --version 2>&1` in
5042 *GNU*)
5043 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5044 *)
5045 ac_count=0
5046 printf %s 0123456789 >"conftest.in"
5047 while :
5048 do
5049 cat "conftest.in" "conftest.in" >"conftest.tmp"
5050 mv "conftest.tmp" "conftest.in"
5051 cp "conftest.in" "conftest.nl"
5052 printf "%s\n" 'GREP' >> "conftest.nl"
5053 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5055 as_fn_arith $ac_count + 1 && ac_count=$as_val
5056 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5057 # Best one so far, save it but keep looking for a better one
5058 ac_cv_path_GREP="$ac_path_GREP"
5059 ac_path_GREP_max=$ac_count
5060 fi
5061 # 10*(2^10) chars as input seems more than enough
5062 test $ac_count -gt 10 && break
5063 done
5064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 esac
5066
5067 $ac_path_GREP_found && break 3
5068 done
5069 done
5070 done
5071 IFS=$as_save_IFS
5072 if test -z "$ac_cv_path_GREP"; then
5073 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074 fi
5075 else
5076 ac_cv_path_GREP=$GREP
5077 fi
5078
5079 fi
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5081 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5082 GREP="$ac_cv_path_GREP"
5083
5084
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5086 printf %s "checking for egrep... " >&6; }
5087 if test ${ac_cv_path_EGREP+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else $as_nop
5091 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5092 then ac_cv_path_EGREP="$GREP -E"
5093 else
5094 if test -z "$EGREP"; then
5095 ac_path_EGREP_found=false
5096 # Loop through the user's path and test for each of PROGNAME-LIST
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5099 do
5100 IFS=$as_save_IFS
5101 case $as_dir in #(((
5102 '') as_dir=./ ;;
5103 */) ;;
5104 *) as_dir=$as_dir/ ;;
5105 esac
5106 for ac_prog in egrep
5107 do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_EGREP" || continue
5111 # Check for GNU ac_path_EGREP and select it if it is found.
5112 # Check for GNU $ac_path_EGREP
5113 case `"$ac_path_EGREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 *)
5117 ac_count=0
5118 printf %s 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 printf "%s\n" 'EGREP' >> "conftest.nl"
5125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_EGREP="$ac_path_EGREP"
5131 ac_path_EGREP_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_EGREP_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_EGREP"; then
5145 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_EGREP=$EGREP
5149 fi
5150
5151 fi
5152 fi
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5154 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5155 EGREP="$ac_cv_path_EGREP"
5156
5157
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5159 printf %s "checking for fgrep... " >&6; }
5160 if test ${ac_cv_path_FGREP+y}
5161 then :
5162 printf %s "(cached) " >&6
5163 else $as_nop
5164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5165 then ac_cv_path_FGREP="$GREP -F"
5166 else
5167 if test -z "$FGREP"; then
5168 ac_path_FGREP_found=false
5169 # Loop through the user's path and test for each of PROGNAME-LIST
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 do
5173 IFS=$as_save_IFS
5174 case $as_dir in #(((
5175 '') as_dir=./ ;;
5176 */) ;;
5177 *) as_dir=$as_dir/ ;;
5178 esac
5179 for ac_prog in fgrep
5180 do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_FGREP" || continue
5184 # Check for GNU ac_path_FGREP and select it if it is found.
5185 # Check for GNU $ac_path_FGREP
5186 case `"$ac_path_FGREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5189 *)
5190 ac_count=0
5191 printf %s 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 printf "%s\n" 'FGREP' >> "conftest.nl"
5198 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_FGREP="$ac_path_FGREP"
5204 ac_path_FGREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212 $ac_path_FGREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_FGREP"; then
5218 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 fi
5220 else
5221 ac_cv_path_FGREP=$FGREP
5222 fi
5223
5224 fi
5225 fi
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5227 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5228 FGREP="$ac_cv_path_FGREP"
5229
5230
5231 test -z "$GREP" && GREP=grep
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 # Check whether --with-gnu-ld was given.
5252 if test ${with_gnu_ld+y}
5253 then :
5254 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5255 else $as_nop
5256 with_gnu_ld=no
5257 fi
5258
5259 ac_prog=ld
5260 if test yes = "$GCC"; then
5261 # Check if gcc -print-prog-name=ld gives a path.
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5263 printf %s "checking for ld used by $CC... " >&6; }
5264 case $host in
5265 *-*-mingw*)
5266 # gcc leaves a trailing carriage return, which upsets mingw
5267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5268 *)
5269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5270 esac
5271 case $ac_prog in
5272 # Accept absolute paths.
5273 [\\/]* | ?:[\\/]*)
5274 re_direlt='/[^/][^/]*/\.\./'
5275 # Canonicalize the pathname of ld
5276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5279 done
5280 test -z "$LD" && LD=$ac_prog
5281 ;;
5282 "")
5283 # If it fails, then pretend we aren't using GCC.
5284 ac_prog=ld
5285 ;;
5286 *)
5287 # If it is relative, then search for the first ld in PATH.
5288 with_gnu_ld=unknown
5289 ;;
5290 esac
5291 elif test yes = "$with_gnu_ld"; then
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5293 printf %s "checking for GNU ld... " >&6; }
5294 else
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5296 printf %s "checking for non-GNU ld... " >&6; }
5297 fi
5298 if test ${lt_cv_path_LD+y}
5299 then :
5300 printf %s "(cached) " >&6
5301 else $as_nop
5302 if test -z "$LD"; then
5303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5304 for ac_dir in $PATH; do
5305 IFS=$lt_save_ifs
5306 test -z "$ac_dir" && ac_dir=.
5307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5308 lt_cv_path_LD=$ac_dir/$ac_prog
5309 # Check to see if the program is GNU ld. I'd rather use --version,
5310 # but apparently some variants of GNU ld only accept -v.
5311 # Break only if it was the GNU/non-GNU ld that we prefer.
5312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5313 *GNU* | *'with BFD'*)
5314 test no != "$with_gnu_ld" && break
5315 ;;
5316 *)
5317 test yes != "$with_gnu_ld" && break
5318 ;;
5319 esac
5320 fi
5321 done
5322 IFS=$lt_save_ifs
5323 else
5324 lt_cv_path_LD=$LD # Let the user override the test with a path.
5325 fi
5326 fi
5327
5328 LD=$lt_cv_path_LD
5329 if test -n "$LD"; then
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5331 printf "%s\n" "$LD" >&6; }
5332 else
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 printf "%s\n" "no" >&6; }
5335 fi
5336 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5338 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5339 if test ${lt_cv_prog_gnu_ld+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else $as_nop
5343 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5344 case `$LD -v 2>&1 </dev/null` in
5345 *GNU* | *'with BFD'*)
5346 lt_cv_prog_gnu_ld=yes
5347 ;;
5348 *)
5349 lt_cv_prog_gnu_ld=no
5350 ;;
5351 esac
5352 fi
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5354 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5355 with_gnu_ld=$lt_cv_prog_gnu_ld
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5366 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5367 if test ${lt_cv_path_NM+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 if test -n "$NM"; then
5372 # Let the user override the test.
5373 lt_cv_path_NM=$NM
5374 else
5375 lt_nm_to_check=${ac_tool_prefix}nm
5376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5377 lt_nm_to_check="$lt_nm_to_check nm"
5378 fi
5379 for lt_tmp_nm in $lt_nm_to_check; do
5380 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5382 IFS=$lt_save_ifs
5383 test -z "$ac_dir" && ac_dir=.
5384 tmp_nm=$ac_dir/$lt_tmp_nm
5385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5386 # Check to see if the nm accepts a BSD-compat flag.
5387 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5388 # nm: unknown option "B" ignored
5389 # Tru64's nm complains that /dev/null is an invalid object file
5390 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5391 case $build_os in
5392 mingw*) lt_bad_file=conftest.nm/nofile ;;
5393 *) lt_bad_file=/dev/null ;;
5394 esac
5395 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5396 *$lt_bad_file* | *'Invalid file or object type'*)
5397 lt_cv_path_NM="$tmp_nm -B"
5398 break 2
5399 ;;
5400 *)
5401 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5402 */dev/null*)
5403 lt_cv_path_NM="$tmp_nm -p"
5404 break 2
5405 ;;
5406 *)
5407 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408 continue # so that we can try to find one that supports BSD flags
5409 ;;
5410 esac
5411 ;;
5412 esac
5413 fi
5414 done
5415 IFS=$lt_save_ifs
5416 done
5417 : ${lt_cv_path_NM=no}
5418 fi
5419 fi
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5421 printf "%s\n" "$lt_cv_path_NM" >&6; }
5422 if test no != "$lt_cv_path_NM"; then
5423 NM=$lt_cv_path_NM
5424 else
5425 # Didn't find any BSD compatible name lister, look for dumpbin.
5426 if test -n "$DUMPBIN"; then :
5427 # Let the user override the test.
5428 else
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in dumpbin "link -dump"
5431 do
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 printf %s "checking for $ac_word... " >&6; }
5436 if test ${ac_cv_prog_DUMPBIN+y}
5437 then :
5438 printf %s "(cached) " >&6
5439 else $as_nop
5440 if test -n "$DUMPBIN"; then
5441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446 IFS=$as_save_IFS
5447 case $as_dir in #(((
5448 '') as_dir=./ ;;
5449 */) ;;
5450 *) as_dir=$as_dir/ ;;
5451 esac
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 DUMPBIN=$ac_cv_prog_DUMPBIN
5465 if test -n "$DUMPBIN"; then
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5467 printf "%s\n" "$DUMPBIN" >&6; }
5468 else
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 printf "%s\n" "no" >&6; }
5471 fi
5472
5473
5474 test -n "$DUMPBIN" && break
5475 done
5476 fi
5477 if test -z "$DUMPBIN"; then
5478 ac_ct_DUMPBIN=$DUMPBIN
5479 for ac_prog in dumpbin "link -dump"
5480 do
5481 # Extract the first word of "$ac_prog", so it can be a program name with args.
5482 set dummy $ac_prog; ac_word=$2
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 printf %s "checking for $ac_word... " >&6; }
5485 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else $as_nop
5489 if test -n "$ac_ct_DUMPBIN"; then
5490 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 case $as_dir in #(((
5497 '') as_dir=./ ;;
5498 */) ;;
5499 *) as_dir=$as_dir/ ;;
5500 esac
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5514 if test -n "$ac_ct_DUMPBIN"; then
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5516 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5517 else
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 printf "%s\n" "no" >&6; }
5520 fi
5521
5522
5523 test -n "$ac_ct_DUMPBIN" && break
5524 done
5525
5526 if test "x$ac_ct_DUMPBIN" = x; then
5527 DUMPBIN=":"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 DUMPBIN=$ac_ct_DUMPBIN
5536 fi
5537 fi
5538
5539 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5540 *COFF*)
5541 DUMPBIN="$DUMPBIN -symbols -headers"
5542 ;;
5543 *)
5544 DUMPBIN=:
5545 ;;
5546 esac
5547 fi
5548
5549 if test : != "$DUMPBIN"; then
5550 NM=$DUMPBIN
5551 fi
5552 fi
5553 test -z "$NM" && NM=nm
5554
5555
5556
5557
5558
5559
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5561 printf %s "checking the name lister ($NM) interface... " >&6; }
5562 if test ${lt_cv_nm_interface+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else $as_nop
5566 lt_cv_nm_interface="BSD nm"
5567 echo "int some_variable = 0;" > conftest.$ac_ext
5568 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5569 (eval "$ac_compile" 2>conftest.err)
5570 cat conftest.err >&5
5571 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5572 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5573 cat conftest.err >&5
5574 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5575 cat conftest.out >&5
5576 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5577 lt_cv_nm_interface="MS dumpbin"
5578 fi
5579 rm -f conftest*
5580 fi
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5582 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5583
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5585 printf %s "checking whether ln -s works... " >&6; }
5586 LN_S=$as_ln_s
5587 if test "$LN_S" = "ln -s"; then
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5589 printf "%s\n" "yes" >&6; }
5590 else
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5592 printf "%s\n" "no, using $LN_S" >&6; }
5593 fi
5594
5595 # find the maximum length of command line arguments
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5597 printf %s "checking the maximum length of command line arguments... " >&6; }
5598 if test ${lt_cv_sys_max_cmd_len+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else $as_nop
5602 i=0
5603 teststring=ABCD
5604
5605 case $build_os in
5606 msdosdjgpp*)
5607 # On DJGPP, this test can blow up pretty badly due to problems in libc
5608 # (any single argument exceeding 2000 bytes causes a buffer overrun
5609 # during glob expansion). Even if it were fixed, the result of this
5610 # check would be larger than it should be.
5611 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5612 ;;
5613
5614 gnu*)
5615 # Under GNU Hurd, this test is not required because there is
5616 # no limit to the length of command line arguments.
5617 # Libtool will interpret -1 as no limit whatsoever
5618 lt_cv_sys_max_cmd_len=-1;
5619 ;;
5620
5621 cygwin* | mingw* | cegcc*)
5622 # On Win9x/ME, this test blows up -- it succeeds, but takes
5623 # about 5 minutes as the teststring grows exponentially.
5624 # Worse, since 9x/ME are not pre-emptively multitasking,
5625 # you end up with a "frozen" computer, even though with patience
5626 # the test eventually succeeds (with a max line length of 256k).
5627 # Instead, let's just punt: use the minimum linelength reported by
5628 # all of the supported platforms: 8192 (on NT/2K/XP).
5629 lt_cv_sys_max_cmd_len=8192;
5630 ;;
5631
5632 mint*)
5633 # On MiNT this can take a long time and run out of memory.
5634 lt_cv_sys_max_cmd_len=8192;
5635 ;;
5636
5637 amigaos*)
5638 # On AmigaOS with pdksh, this test takes hours, literally.
5639 # So we just punt and use a minimum line length of 8192.
5640 lt_cv_sys_max_cmd_len=8192;
5641 ;;
5642
5643 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5644 # This has been around since 386BSD, at least. Likely further.
5645 if test -x /sbin/sysctl; then
5646 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5647 elif test -x /usr/sbin/sysctl; then
5648 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5649 else
5650 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5651 fi
5652 # And add a safety zone
5653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5655 ;;
5656
5657 interix*)
5658 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5659 lt_cv_sys_max_cmd_len=196608
5660 ;;
5661
5662 os2*)
5663 # The test takes a long time on OS/2.
5664 lt_cv_sys_max_cmd_len=8192
5665 ;;
5666
5667 osf*)
5668 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5669 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5670 # nice to cause kernel panics so lets avoid the loop below.
5671 # First set a reasonable default.
5672 lt_cv_sys_max_cmd_len=16384
5673 #
5674 if test -x /sbin/sysconfig; then
5675 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5676 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5677 esac
5678 fi
5679 ;;
5680 sco3.2v5*)
5681 lt_cv_sys_max_cmd_len=102400
5682 ;;
5683 sysv5* | sco5v6* | sysv4.2uw2*)
5684 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5685 if test -n "$kargmax"; then
5686 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5687 else
5688 lt_cv_sys_max_cmd_len=32768
5689 fi
5690 ;;
5691 *)
5692 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5693 if test -n "$lt_cv_sys_max_cmd_len" && \
5694 test undefined != "$lt_cv_sys_max_cmd_len"; then
5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5697 else
5698 # Make teststring a little bigger before we do anything with it.
5699 # a 1K string should be a reasonable start.
5700 for i in 1 2 3 4 5 6 7 8; do
5701 teststring=$teststring$teststring
5702 done
5703 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5704 # If test is not a shell built-in, we'll probably end up computing a
5705 # maximum length that is only half of the actual maximum length, but
5706 # we can't tell.
5707 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5708 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5709 test 17 != "$i" # 1/2 MB should be enough
5710 do
5711 i=`expr $i + 1`
5712 teststring=$teststring$teststring
5713 done
5714 # Only check the string length outside the loop.
5715 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5716 teststring=
5717 # Add a significant safety factor because C++ compilers can tack on
5718 # massive amounts of additional arguments before passing them to the
5719 # linker. It appears as though 1/2 is a usable value.
5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5721 fi
5722 ;;
5723 esac
5724
5725 fi
5726
5727 if test -n "$lt_cv_sys_max_cmd_len"; then
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5729 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5730 else
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5732 printf "%s\n" "none" >&6; }
5733 fi
5734 max_cmd_len=$lt_cv_sys_max_cmd_len
5735
5736
5737
5738
5739
5740
5741 : ${CP="cp -f"}
5742 : ${MV="mv -f"}
5743 : ${RM="rm -f"}
5744
5745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5746 lt_unset=unset
5747 else
5748 lt_unset=false
5749 fi
5750
5751
5752
5753
5754
5755 # test EBCDIC or ASCII
5756 case `echo X|tr X '\101'` in
5757 A) # ASCII based system
5758 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5759 lt_SP2NL='tr \040 \012'
5760 lt_NL2SP='tr \015\012 \040\040'
5761 ;;
5762 *) # EBCDIC based system
5763 lt_SP2NL='tr \100 \n'
5764 lt_NL2SP='tr \r\n \100\100'
5765 ;;
5766 esac
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5777 printf %s "checking how to convert $build file names to $host format... " >&6; }
5778 if test ${lt_cv_to_host_file_cmd+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else $as_nop
5782 case $host in
5783 *-*-mingw* )
5784 case $build in
5785 *-*-mingw* ) # actually msys
5786 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5787 ;;
5788 *-*-cygwin* )
5789 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5790 ;;
5791 * ) # otherwise, assume *nix
5792 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5793 ;;
5794 esac
5795 ;;
5796 *-*-cygwin* )
5797 case $build in
5798 *-*-mingw* ) # actually msys
5799 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5800 ;;
5801 *-*-cygwin* )
5802 lt_cv_to_host_file_cmd=func_convert_file_noop
5803 ;;
5804 * ) # otherwise, assume *nix
5805 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5806 ;;
5807 esac
5808 ;;
5809 * ) # unhandled hosts (and "normal" native builds)
5810 lt_cv_to_host_file_cmd=func_convert_file_noop
5811 ;;
5812 esac
5813
5814 fi
5815
5816 to_host_file_cmd=$lt_cv_to_host_file_cmd
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5818 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5819
5820
5821
5822
5823
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5825 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5826 if test ${lt_cv_to_tool_file_cmd+y}
5827 then :
5828 printf %s "(cached) " >&6
5829 else $as_nop
5830 #assume ordinary cross tools, or native build.
5831 lt_cv_to_tool_file_cmd=func_convert_file_noop
5832 case $host in
5833 *-*-mingw* )
5834 case $build in
5835 *-*-mingw* ) # actually msys
5836 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5837 ;;
5838 esac
5839 ;;
5840 esac
5841
5842 fi
5843
5844 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5846 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5847
5848
5849
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5853 printf %s "checking for $LD option to reload object files... " >&6; }
5854 if test ${lt_cv_ld_reload_flag+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 lt_cv_ld_reload_flag='-r'
5859 fi
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5861 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5862 reload_flag=$lt_cv_ld_reload_flag
5863 case $reload_flag in
5864 "" | " "*) ;;
5865 *) reload_flag=" $reload_flag" ;;
5866 esac
5867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5868 case $host_os in
5869 cygwin* | mingw* | pw32* | cegcc*)
5870 if test yes != "$GCC"; then
5871 reload_cmds=false
5872 fi
5873 ;;
5874 darwin*)
5875 if test yes = "$GCC"; then
5876 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5877 else
5878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5879 fi
5880 ;;
5881 esac
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}file; ac_word=$2
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 printf %s "checking for $ac_word... " >&6; }
5896 if test ${ac_cv_prog_FILECMD+y}
5897 then :
5898 printf %s "(cached) " >&6
5899 else $as_nop
5900 if test -n "$FILECMD"; then
5901 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 case $as_dir in #(((
5908 '') as_dir=./ ;;
5909 */) ;;
5910 *) as_dir=$as_dir/ ;;
5911 esac
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 FILECMD=$ac_cv_prog_FILECMD
5925 if test -n "$FILECMD"; then
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5927 printf "%s\n" "$FILECMD" >&6; }
5928 else
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 printf "%s\n" "no" >&6; }
5931 fi
5932
5933
5934 fi
5935 if test -z "$ac_cv_prog_FILECMD"; then
5936 ac_ct_FILECMD=$FILECMD
5937 # Extract the first word of "file", so it can be a program name with args.
5938 set dummy file; ac_word=$2
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 printf %s "checking for $ac_word... " >&6; }
5941 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 if test -n "$ac_ct_FILECMD"; then
5946 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 case $as_dir in #(((
5953 '') as_dir=./ ;;
5954 */) ;;
5955 *) as_dir=$as_dir/ ;;
5956 esac
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_FILECMD="file"
5960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5970 if test -n "$ac_ct_FILECMD"; then
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5972 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5973 else
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 printf "%s\n" "no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_FILECMD" = x; then
5979 FILECMD=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 FILECMD=$ac_ct_FILECMD
5988 fi
5989 else
5990 FILECMD="$ac_cv_prog_FILECMD"
5991 fi
5992
5993
5994
5995
5996
5997
5998
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 printf %s "checking for $ac_word... " >&6; }
6004 if test ${ac_cv_prog_OBJDUMP+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 if test -n "$OBJDUMP"; then
6009 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 case $as_dir in #(((
6016 '') as_dir=./ ;;
6017 */) ;;
6018 *) as_dir=$as_dir/ ;;
6019 esac
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 OBJDUMP=$ac_cv_prog_OBJDUMP
6033 if test -n "$OBJDUMP"; then
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6035 printf "%s\n" "$OBJDUMP" >&6; }
6036 else
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 printf "%s\n" "no" >&6; }
6039 fi
6040
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 printf %s "checking for $ac_word... " >&6; }
6049 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6050 then :
6051 printf %s "(cached) " >&6
6052 else $as_nop
6053 if test -n "$ac_ct_OBJDUMP"; then
6054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059 IFS=$as_save_IFS
6060 case $as_dir in #(((
6061 '') as_dir=./ ;;
6062 */) ;;
6063 *) as_dir=$as_dir/ ;;
6064 esac
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6078 if test -n "$ac_ct_OBJDUMP"; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6080 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6081 else
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 printf "%s\n" "no" >&6; }
6084 fi
6085
6086 if test "x$ac_ct_OBJDUMP" = x; then
6087 OBJDUMP="false"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095 OBJDUMP=$ac_ct_OBJDUMP
6096 fi
6097 else
6098 OBJDUMP="$ac_cv_prog_OBJDUMP"
6099 fi
6100
6101 test -z "$OBJDUMP" && OBJDUMP=objdump
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6112 printf %s "checking how to recognize dependent libraries... " >&6; }
6113 if test ${lt_cv_deplibs_check_method+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else $as_nop
6117 lt_cv_file_magic_cmd='$MAGIC_CMD'
6118 lt_cv_file_magic_test_file=
6119 lt_cv_deplibs_check_method='unknown'
6120 # Need to set the preceding variable on all platforms that support
6121 # interlibrary dependencies.
6122 # 'none' -- dependencies not supported.
6123 # 'unknown' -- same as none, but documents that we really don't know.
6124 # 'pass_all' -- all dependencies passed with no checks.
6125 # 'test_compile' -- check by making test program.
6126 # 'file_magic [[regex]]' -- check by looking for files in library path
6127 # that responds to the $file_magic_cmd with a given extended regex.
6128 # If you have 'file' or equivalent on your system and you're not sure
6129 # whether 'pass_all' will *always* work, you probably want this one.
6130
6131 case $host_os in
6132 aix[4-9]*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135
6136 beos*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140 bsdi[45]*)
6141 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6142 lt_cv_file_magic_cmd='$FILECMD -L'
6143 lt_cv_file_magic_test_file=/shlib/libc.so
6144 ;;
6145
6146 cygwin*)
6147 # func_win32_libid is a shell function defined in ltmain.sh
6148 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149 lt_cv_file_magic_cmd='func_win32_libid'
6150 ;;
6151
6152 mingw* | pw32*)
6153 # Base MSYS/MinGW do not provide the 'file' command needed by
6154 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6155 # unless we find 'file', for example because we are cross-compiling.
6156 if ( file / ) >/dev/null 2>&1; then
6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158 lt_cv_file_magic_cmd='func_win32_libid'
6159 else
6160 # Keep this pattern in sync with the one in func_win32_libid.
6161 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6162 lt_cv_file_magic_cmd='$OBJDUMP -f'
6163 fi
6164 ;;
6165
6166 cegcc*)
6167 # use the weaker test based on 'objdump'. See mingw*.
6168 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6169 lt_cv_file_magic_cmd='$OBJDUMP -f'
6170 ;;
6171
6172 darwin* | rhapsody*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 freebsd* | dragonfly* | midnightbsd*)
6177 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6178 case $host_cpu in
6179 i*86 )
6180 # Not sure whether the presence of OpenBSD here was a mistake.
6181 # Let's accept both of them until this is cleared up.
6182 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6183 lt_cv_file_magic_cmd=$FILECMD
6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6185 ;;
6186 esac
6187 else
6188 lt_cv_deplibs_check_method=pass_all
6189 fi
6190 ;;
6191
6192 haiku*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 hpux10.20* | hpux11*)
6197 lt_cv_file_magic_cmd=$FILECMD
6198 case $host_cpu in
6199 ia64*)
6200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6201 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6202 ;;
6203 hppa*64*)
6204 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]'
6205 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6206 ;;
6207 *)
6208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6209 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6210 ;;
6211 esac
6212 ;;
6213
6214 interix[3-9]*)
6215 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6217 ;;
6218
6219 irix5* | irix6* | nonstopux*)
6220 case $LD in
6221 *-32|*"-32 ") libmagic=32-bit;;
6222 *-n32|*"-n32 ") libmagic=N32;;
6223 *-64|*"-64 ") libmagic=64-bit;;
6224 *) libmagic=never-match;;
6225 esac
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 # This must be glibc/ELF.
6230 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234 netbsd*)
6235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237 else
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6239 fi
6240 ;;
6241
6242 newos6*)
6243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6244 lt_cv_file_magic_cmd=$FILECMD
6245 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6246 ;;
6247
6248 *nto* | *qnx*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251
6252 openbsd* | bitrig*)
6253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6255 else
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257 fi
6258 ;;
6259
6260 osf3* | osf4* | osf5*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264 rdos*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 solaris*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 sysv4 | sysv4.3*)
6277 case $host_vendor in
6278 motorola)
6279 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]'
6280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6281 ;;
6282 ncr)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285 sequent)
6286 lt_cv_file_magic_cmd='/bin/file'
6287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6288 ;;
6289 sni)
6290 lt_cv_file_magic_cmd='/bin/file'
6291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6292 lt_cv_file_magic_test_file=/lib/libc.so
6293 ;;
6294 siemens)
6295 lt_cv_deplibs_check_method=pass_all
6296 ;;
6297 pc)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300 esac
6301 ;;
6302
6303 tpf*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306 os2*)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309 esac
6310
6311 fi
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6313 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6314
6315 file_magic_glob=
6316 want_nocaseglob=no
6317 if test "$build" = "$host"; then
6318 case $host_os in
6319 mingw* | pw32*)
6320 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6321 want_nocaseglob=yes
6322 else
6323 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6324 fi
6325 ;;
6326 esac
6327 fi
6328
6329 file_magic_cmd=$lt_cv_file_magic_cmd
6330 deplibs_check_method=$lt_cv_deplibs_check_method
6331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 printf %s "checking for $ac_word... " >&6; }
6359 if test ${ac_cv_prog_DLLTOOL+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else $as_nop
6363 if test -n "$DLLTOOL"; then
6364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369 IFS=$as_save_IFS
6370 case $as_dir in #(((
6371 '') as_dir=./ ;;
6372 */) ;;
6373 *) as_dir=$as_dir/ ;;
6374 esac
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385 fi
6386 fi
6387 DLLTOOL=$ac_cv_prog_DLLTOOL
6388 if test -n "$DLLTOOL"; then
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6390 printf "%s\n" "$DLLTOOL" >&6; }
6391 else
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 printf "%s\n" "no" >&6; }
6394 fi
6395
6396
6397 fi
6398 if test -z "$ac_cv_prog_DLLTOOL"; then
6399 ac_ct_DLLTOOL=$DLLTOOL
6400 # Extract the first word of "dlltool", so it can be a program name with args.
6401 set dummy dlltool; ac_word=$2
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 printf %s "checking for $ac_word... " >&6; }
6404 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6405 then :
6406 printf %s "(cached) " >&6
6407 else $as_nop
6408 if test -n "$ac_ct_DLLTOOL"; then
6409 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414 IFS=$as_save_IFS
6415 case $as_dir in #(((
6416 '') as_dir=./ ;;
6417 */) ;;
6418 *) as_dir=$as_dir/ ;;
6419 esac
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6433 if test -n "$ac_ct_DLLTOOL"; then
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6435 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6436 else
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 printf "%s\n" "no" >&6; }
6439 fi
6440
6441 if test "x$ac_ct_DLLTOOL" = x; then
6442 DLLTOOL="false"
6443 else
6444 case $cross_compiling:$ac_tool_warned in
6445 yes:)
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6448 ac_tool_warned=yes ;;
6449 esac
6450 DLLTOOL=$ac_ct_DLLTOOL
6451 fi
6452 else
6453 DLLTOOL="$ac_cv_prog_DLLTOOL"
6454 fi
6455
6456 test -z "$DLLTOOL" && DLLTOOL=dlltool
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6468 printf %s "checking how to associate runtime and link libraries... " >&6; }
6469 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6470 then :
6471 printf %s "(cached) " >&6
6472 else $as_nop
6473 lt_cv_sharedlib_from_linklib_cmd='unknown'
6474
6475 case $host_os in
6476 cygwin* | mingw* | pw32* | cegcc*)
6477 # two different shell functions defined in ltmain.sh;
6478 # decide which one to use based on capabilities of $DLLTOOL
6479 case `$DLLTOOL --help 2>&1` in
6480 *--identify-strict*)
6481 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6482 ;;
6483 *)
6484 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6485 ;;
6486 esac
6487 ;;
6488 *)
6489 # fallback: assume linklib IS sharedlib
6490 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6491 ;;
6492 esac
6493
6494 fi
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6496 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6497 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6498 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6499
6500
6501
6502
6503
6504
6505
6506 if test -n "$ac_tool_prefix"; then
6507 for ac_prog in ar
6508 do
6509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 printf %s "checking for $ac_word... " >&6; }
6513 if test ${ac_cv_prog_AR+y}
6514 then :
6515 printf %s "(cached) " >&6
6516 else $as_nop
6517 if test -n "$AR"; then
6518 ac_cv_prog_AR="$AR" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 case $as_dir in #(((
6525 '') as_dir=./ ;;
6526 */) ;;
6527 *) as_dir=$as_dir/ ;;
6528 esac
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 AR=$ac_cv_prog_AR
6542 if test -n "$AR"; then
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6544 printf "%s\n" "$AR" >&6; }
6545 else
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 printf "%s\n" "no" >&6; }
6548 fi
6549
6550
6551 test -n "$AR" && break
6552 done
6553 fi
6554 if test -z "$AR"; then
6555 ac_ct_AR=$AR
6556 for ac_prog in ar
6557 do
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy $ac_prog; ac_word=$2
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 printf %s "checking for $ac_word... " >&6; }
6562 if test ${ac_cv_prog_ac_ct_AR+y}
6563 then :
6564 printf %s "(cached) " >&6
6565 else $as_nop
6566 if test -n "$ac_ct_AR"; then
6567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 case $as_dir in #(((
6574 '') as_dir=./ ;;
6575 */) ;;
6576 *) as_dir=$as_dir/ ;;
6577 esac
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6580 ac_cv_prog_ac_ct_AR="$ac_prog"
6581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6591 if test -n "$ac_ct_AR"; then
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6593 printf "%s\n" "$ac_ct_AR" >&6; }
6594 else
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 printf "%s\n" "no" >&6; }
6597 fi
6598
6599
6600 test -n "$ac_ct_AR" && break
6601 done
6602
6603 if test "x$ac_ct_AR" = x; then
6604 AR="false"
6605 else
6606 case $cross_compiling:$ac_tool_warned in
6607 yes:)
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610 ac_tool_warned=yes ;;
6611 esac
6612 AR=$ac_ct_AR
6613 fi
6614 fi
6615
6616 : ${AR=ar}
6617
6618
6619
6620
6621
6622
6623 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6624 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6625 # higher priority because thats what people were doing historically (setting
6626 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6627 # variable obsoleted/removed.
6628
6629 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6630 lt_ar_flags=$AR_FLAGS
6631
6632
6633
6634
6635
6636
6637 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6638 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6639
6640
6641
6642
6643
6644
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6646 printf %s "checking for archiver @FILE support... " >&6; }
6647 if test ${lt_cv_ar_at_file+y}
6648 then :
6649 printf %s "(cached) " >&6
6650 else $as_nop
6651 lt_cv_ar_at_file=no
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 int
6656 main (void)
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"
6664 then :
6665 echo conftest.$ac_objext > conftest.lst
6666 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6668 (eval $lt_ar_try) 2>&5
6669 ac_status=$?
6670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; }
6672 if test 0 -eq "$ac_status"; then
6673 # Ensure the archiver fails upon bogus file names.
6674 rm -f conftest.$ac_objext libconftest.a
6675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6676 (eval $lt_ar_try) 2>&5
6677 ac_status=$?
6678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679 test $ac_status = 0; }
6680 if test 0 -ne "$ac_status"; then
6681 lt_cv_ar_at_file=@
6682 fi
6683 fi
6684 rm -f conftest.* libconftest.a
6685
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6688
6689 fi
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6691 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6692
6693 if test no = "$lt_cv_ar_at_file"; then
6694 archiver_list_spec=
6695 else
6696 archiver_list_spec=$lt_cv_ar_at_file
6697 fi
6698
6699
6700
6701
6702
6703
6704
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}strip; ac_word=$2
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 printf %s "checking for $ac_word... " >&6; }
6710 if test ${ac_cv_prog_STRIP+y}
6711 then :
6712 printf %s "(cached) " >&6
6713 else $as_nop
6714 if test -n "$STRIP"; then
6715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 case $as_dir in #(((
6722 '') as_dir=./ ;;
6723 */) ;;
6724 *) as_dir=$as_dir/ ;;
6725 esac
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 STRIP=$ac_cv_prog_STRIP
6739 if test -n "$STRIP"; then
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6741 printf "%s\n" "$STRIP" >&6; }
6742 else
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 printf "%s\n" "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_STRIP"; then
6750 ac_ct_STRIP=$STRIP
6751 # Extract the first word of "strip", so it can be a program name with args.
6752 set dummy strip; ac_word=$2
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 printf %s "checking for $ac_word... " >&6; }
6755 if test ${ac_cv_prog_ac_ct_STRIP+y}
6756 then :
6757 printf %s "(cached) " >&6
6758 else $as_nop
6759 if test -n "$ac_ct_STRIP"; then
6760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 case $as_dir in #(((
6767 '') as_dir=./ ;;
6768 */) ;;
6769 *) as_dir=$as_dir/ ;;
6770 esac
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_STRIP="strip"
6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6784 if test -n "$ac_ct_STRIP"; then
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6786 printf "%s\n" "$ac_ct_STRIP" >&6; }
6787 else
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 printf "%s\n" "no" >&6; }
6790 fi
6791
6792 if test "x$ac_ct_STRIP" = x; then
6793 STRIP=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801 STRIP=$ac_ct_STRIP
6802 fi
6803 else
6804 STRIP="$ac_cv_prog_STRIP"
6805 fi
6806
6807 test -z "$STRIP" && STRIP=:
6808
6809
6810
6811
6812
6813
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 printf %s "checking for $ac_word... " >&6; }
6819 if test ${ac_cv_prog_RANLIB+y}
6820 then :
6821 printf %s "(cached) " >&6
6822 else $as_nop
6823 if test -n "$RANLIB"; then
6824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 case $as_dir in #(((
6831 '') as_dir=./ ;;
6832 */) ;;
6833 *) as_dir=$as_dir/ ;;
6834 esac
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 RANLIB=$ac_cv_prog_RANLIB
6848 if test -n "$RANLIB"; then
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6850 printf "%s\n" "$RANLIB" >&6; }
6851 else
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 printf "%s\n" "no" >&6; }
6854 fi
6855
6856
6857 fi
6858 if test -z "$ac_cv_prog_RANLIB"; then
6859 ac_ct_RANLIB=$RANLIB
6860 # Extract the first word of "ranlib", so it can be a program name with args.
6861 set dummy ranlib; ac_word=$2
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 printf %s "checking for $ac_word... " >&6; }
6864 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6865 then :
6866 printf %s "(cached) " >&6
6867 else $as_nop
6868 if test -n "$ac_ct_RANLIB"; then
6869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 case $as_dir in #(((
6876 '') as_dir=./ ;;
6877 */) ;;
6878 *) as_dir=$as_dir/ ;;
6879 esac
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_RANLIB="ranlib"
6883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6893 if test -n "$ac_ct_RANLIB"; then
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6895 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6896 else
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 printf "%s\n" "no" >&6; }
6899 fi
6900
6901 if test "x$ac_ct_RANLIB" = x; then
6902 RANLIB=":"
6903 else
6904 case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 RANLIB=$ac_ct_RANLIB
6911 fi
6912 else
6913 RANLIB="$ac_cv_prog_RANLIB"
6914 fi
6915
6916 test -z "$RANLIB" && RANLIB=:
6917
6918
6919
6920
6921
6922
6923 # Determine commands to create old-style static archives.
6924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6925 old_postinstall_cmds='chmod 644 $oldlib'
6926 old_postuninstall_cmds=
6927
6928 if test -n "$RANLIB"; then
6929 case $host_os in
6930 bitrig* | openbsd*)
6931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6932 ;;
6933 *)
6934 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6935 ;;
6936 esac
6937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6938 fi
6939
6940 case $host_os in
6941 darwin*)
6942 lock_old_archive_extraction=yes ;;
6943 *)
6944 lock_old_archive_extraction=no ;;
6945 esac
6946
6947
6948
6949
6950
6951
6952
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 # If no C compiler was specified, use CC.
6986 LTCC=${LTCC-"$CC"}
6987
6988 # If no C compiler flags were specified, use CFLAGS.
6989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6990
6991 # Allow CC to be a program name with arguments.
6992 compiler=$CC
6993
6994
6995 # Check for command to grab the raw symbol name followed by C symbol from nm.
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6997 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6998 if test ${lt_cv_sys_global_symbol_pipe+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else $as_nop
7002
7003 # These are sane defaults that work on at least a few old systems.
7004 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7005
7006 # Character class describing NM global symbol codes.
7007 symcode='[BCDEGRST]'
7008
7009 # Regexp to match symbols that can be accessed directly from C.
7010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7011
7012 # Define system-specific variables.
7013 case $host_os in
7014 aix*)
7015 symcode='[BCDT]'
7016 ;;
7017 cygwin* | mingw* | pw32* | cegcc*)
7018 symcode='[ABCDGISTW]'
7019 ;;
7020 hpux*)
7021 if test ia64 = "$host_cpu"; then
7022 symcode='[ABCDEGRST]'
7023 fi
7024 ;;
7025 irix* | nonstopux*)
7026 symcode='[BCDEGRST]'
7027 ;;
7028 osf*)
7029 symcode='[BCDEGQRST]'
7030 ;;
7031 solaris*)
7032 symcode='[BDRT]'
7033 ;;
7034 sco3.2v5*)
7035 symcode='[DT]'
7036 ;;
7037 sysv4.2uw2*)
7038 symcode='[DT]'
7039 ;;
7040 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7041 symcode='[ABDT]'
7042 ;;
7043 sysv4)
7044 symcode='[DFNSTU]'
7045 ;;
7046 esac
7047
7048 # If we're using GNU nm, then use its standard symbol codes.
7049 case `$NM -V 2>&1` in
7050 *GNU* | *'with BFD'*)
7051 symcode='[ABCDGIRSTW]' ;;
7052 esac
7053
7054 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7055 # Gets list of data symbols to import.
7056 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7057 # Adjust the below global symbol transforms to fixup imported variables.
7058 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7059 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7060 lt_c_name_lib_hook="\
7061 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7062 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7063 else
7064 # Disable hooks by default.
7065 lt_cv_sys_global_symbol_to_import=
7066 lt_cdecl_hook=
7067 lt_c_name_hook=
7068 lt_c_name_lib_hook=
7069 fi
7070
7071 # Transform an extracted symbol line into a proper C declaration.
7072 # Some systems (esp. on ia64) link data and code symbols differently,
7073 # so use this general approach.
7074 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7075 $lt_cdecl_hook\
7076 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7077 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7078
7079 # Transform an extracted symbol line into symbol name and symbol address
7080 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7081 $lt_c_name_hook\
7082 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7083 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7084
7085 # Transform an extracted symbol line into symbol name with lib prefix and
7086 # symbol address.
7087 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7088 $lt_c_name_lib_hook\
7089 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7090 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7091 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7092
7093 # Handle CRLF in mingw tool chain
7094 opt_cr=
7095 case $build_os in
7096 mingw*)
7097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7098 ;;
7099 esac
7100
7101 # Try without a prefix underscore, then with it.
7102 for ac_symprfx in "" "_"; do
7103
7104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7105 symxfrm="\\1 $ac_symprfx\\2 \\2"
7106
7107 # Write the raw and C identifiers.
7108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7109 # Fake it for dumpbin and say T for any non-static function,
7110 # D for any global variable and I for any imported variable.
7111 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7112 # which start with @ or ?.
7113 lt_cv_sys_global_symbol_pipe="$AWK '"\
7114 " {last_section=section; section=\$ 3};"\
7115 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7116 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7117 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7118 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7119 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7120 " \$ 0!~/External *\|/{next};"\
7121 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7122 " {if(hide[section]) next};"\
7123 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7124 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7125 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7126 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7127 " ' prfx=^$ac_symprfx"
7128 else
7129 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7130 fi
7131 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7132
7133 # Check to see that the pipe works correctly.
7134 pipe_works=no
7135
7136 rm -f conftest*
7137 cat > conftest.$ac_ext <<_LT_EOF
7138 #ifdef __cplusplus
7139 extern "C" {
7140 #endif
7141 char nm_test_var;
7142 void nm_test_func(void);
7143 void nm_test_func(void){}
7144 #ifdef __cplusplus
7145 }
7146 #endif
7147 int main(){nm_test_var='a';nm_test_func();return(0);}
7148 _LT_EOF
7149
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7151 (eval $ac_compile) 2>&5
7152 ac_status=$?
7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; }; then
7155 # Now try to grab the symbols.
7156 nlist=conftest.nm
7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7158 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7159 ac_status=$?
7160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; } && test -s "$nlist"; then
7162 # Try sorting and uniquifying the output.
7163 if sort "$nlist" | uniq > "$nlist"T; then
7164 mv -f "$nlist"T "$nlist"
7165 else
7166 rm -f "$nlist"T
7167 fi
7168
7169 # Make sure that we snagged all the symbols we need.
7170 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7171 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7172 cat <<_LT_EOF > conftest.$ac_ext
7173 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7174 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7175 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7176 relocations are performed -- see ld's documentation on pseudo-relocs. */
7177 # define LT_DLSYM_CONST
7178 #elif defined __osf__
7179 /* This system does not cope well with relocations in const data. */
7180 # define LT_DLSYM_CONST
7181 #else
7182 # define LT_DLSYM_CONST const
7183 #endif
7184
7185 #ifdef __cplusplus
7186 extern "C" {
7187 #endif
7188
7189 _LT_EOF
7190 # Now generate the symbol file.
7191 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7192
7193 cat <<_LT_EOF >> conftest.$ac_ext
7194
7195 /* The mapping between symbol names and symbols. */
7196 LT_DLSYM_CONST struct {
7197 const char *name;
7198 void *address;
7199 }
7200 lt__PROGRAM__LTX_preloaded_symbols[] =
7201 {
7202 { "@PROGRAM@", (void *) 0 },
7203 _LT_EOF
7204 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7205 cat <<\_LT_EOF >> conftest.$ac_ext
7206 {0, (void *) 0}
7207 };
7208
7209 /* This works around a problem in FreeBSD linker */
7210 #ifdef FREEBSD_WORKAROUND
7211 static const void *lt_preloaded_setup() {
7212 return lt__PROGRAM__LTX_preloaded_symbols;
7213 }
7214 #endif
7215
7216 #ifdef __cplusplus
7217 }
7218 #endif
7219 _LT_EOF
7220 # Now try linking the two files.
7221 mv conftest.$ac_objext conftstm.$ac_objext
7222 lt_globsym_save_LIBS=$LIBS
7223 lt_globsym_save_CFLAGS=$CFLAGS
7224 LIBS=conftstm.$ac_objext
7225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7227 (eval $ac_link) 2>&5
7228 ac_status=$?
7229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7231 pipe_works=yes
7232 fi
7233 LIBS=$lt_globsym_save_LIBS
7234 CFLAGS=$lt_globsym_save_CFLAGS
7235 else
7236 echo "cannot find nm_test_func in $nlist" >&5
7237 fi
7238 else
7239 echo "cannot find nm_test_var in $nlist" >&5
7240 fi
7241 else
7242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7243 fi
7244 else
7245 echo "$progname: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 fi
7248 rm -rf conftest* conftst*
7249
7250 # Do not use the global_symbol_pipe unless it works.
7251 if test yes = "$pipe_works"; then
7252 break
7253 else
7254 lt_cv_sys_global_symbol_pipe=
7255 fi
7256 done
7257
7258 fi
7259
7260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7261 lt_cv_sys_global_symbol_to_cdecl=
7262 fi
7263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7265 printf "%s\n" "failed" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7268 printf "%s\n" "ok" >&6; }
7269 fi
7270
7271 # Response file support.
7272 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7273 nm_file_list_spec='@'
7274 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7275 nm_file_list_spec='@'
7276 fi
7277
7278
7279
7280
7281
7282
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7315 printf %s "checking for sysroot... " >&6; }
7316
7317 # Check whether --with-sysroot was given.
7318 if test ${with_sysroot+y}
7319 then :
7320 withval=$with_sysroot;
7321 else $as_nop
7322 with_sysroot=no
7323 fi
7324
7325
7326 lt_sysroot=
7327 case $with_sysroot in #(
7328 yes)
7329 if test yes = "$GCC"; then
7330 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7331 fi
7332 ;; #(
7333 /*)
7334 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7335 ;; #(
7336 no|'')
7337 ;; #(
7338 *)
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7340 printf "%s\n" "$with_sysroot" >&6; }
7341 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7342 ;;
7343 esac
7344
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7346 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7347
7348
7349
7350
7351
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7353 printf %s "checking for a working dd... " >&6; }
7354 if test ${ac_cv_path_lt_DD+y}
7355 then :
7356 printf %s "(cached) " >&6
7357 else $as_nop
7358 printf 0123456789abcdef0123456789abcdef >conftest.i
7359 cat conftest.i conftest.i >conftest2.i
7360 : ${lt_DD:=$DD}
7361 if test -z "$lt_DD"; then
7362 ac_path_lt_DD_found=false
7363 # Loop through the user's path and test for each of PROGNAME-LIST
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 case $as_dir in #(((
7369 '') as_dir=./ ;;
7370 */) ;;
7371 *) as_dir=$as_dir/ ;;
7372 esac
7373 for ac_prog in dd
7374 do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7377 as_fn_executable_p "$ac_path_lt_DD" || continue
7378 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7379 cmp -s conftest.i conftest.out \
7380 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7381 fi
7382 $ac_path_lt_DD_found && break 3
7383 done
7384 done
7385 done
7386 IFS=$as_save_IFS
7387 if test -z "$ac_cv_path_lt_DD"; then
7388 :
7389 fi
7390 else
7391 ac_cv_path_lt_DD=$lt_DD
7392 fi
7393
7394 rm -f conftest.i conftest2.i conftest.out
7395 fi
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7397 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7398
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7401 printf %s "checking how to truncate binary pipes... " >&6; }
7402 if test ${lt_cv_truncate_bin+y}
7403 then :
7404 printf %s "(cached) " >&6
7405 else $as_nop
7406 printf 0123456789abcdef0123456789abcdef >conftest.i
7407 cat conftest.i conftest.i >conftest2.i
7408 lt_cv_truncate_bin=
7409 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7410 cmp -s conftest.i conftest.out \
7411 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7412 fi
7413 rm -f conftest.i conftest2.i conftest.out
7414 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7415 fi
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7417 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7418
7419
7420
7421
7422
7423
7424
7425 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7426 func_cc_basename ()
7427 {
7428 for cc_temp in $*""; do
7429 case $cc_temp in
7430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7432 \-*) ;;
7433 *) break;;
7434 esac
7435 done
7436 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7437 }
7438
7439 # Check whether --enable-libtool-lock was given.
7440 if test ${enable_libtool_lock+y}
7441 then :
7442 enableval=$enable_libtool_lock;
7443 fi
7444
7445 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7446
7447 # Some flags need to be propagated to the compiler or linker for good
7448 # libtool support.
7449 case $host in
7450 ia64-*-hpux*)
7451 # Find out what ABI is being produced by ac_compile, and set mode
7452 # options accordingly.
7453 echo 'int i;' > conftest.$ac_ext
7454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455 (eval $ac_compile) 2>&5
7456 ac_status=$?
7457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; }; then
7459 case `$FILECMD conftest.$ac_objext` in
7460 *ELF-32*)
7461 HPUX_IA64_MODE=32
7462 ;;
7463 *ELF-64*)
7464 HPUX_IA64_MODE=64
7465 ;;
7466 esac
7467 fi
7468 rm -rf conftest*
7469 ;;
7470 *-*-irix6*)
7471 # Find out what ABI is being produced by ac_compile, and set linker
7472 # options accordingly.
7473 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7475 (eval $ac_compile) 2>&5
7476 ac_status=$?
7477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7478 test $ac_status = 0; }; then
7479 if test yes = "$lt_cv_prog_gnu_ld"; then
7480 case `$FILECMD conftest.$ac_objext` in
7481 *32-bit*)
7482 LD="${LD-ld} -melf32bsmip"
7483 ;;
7484 *N32*)
7485 LD="${LD-ld} -melf32bmipn32"
7486 ;;
7487 *64-bit*)
7488 LD="${LD-ld} -melf64bmip"
7489 ;;
7490 esac
7491 else
7492 case `$FILECMD conftest.$ac_objext` in
7493 *32-bit*)
7494 LD="${LD-ld} -32"
7495 ;;
7496 *N32*)
7497 LD="${LD-ld} -n32"
7498 ;;
7499 *64-bit*)
7500 LD="${LD-ld} -64"
7501 ;;
7502 esac
7503 fi
7504 fi
7505 rm -rf conftest*
7506 ;;
7507
7508 mips64*-*linux*)
7509 # Find out what ABI is being produced by ac_compile, and set linker
7510 # options accordingly.
7511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513 (eval $ac_compile) 2>&5
7514 ac_status=$?
7515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 emul=elf
7518 case `$FILECMD conftest.$ac_objext` in
7519 *32-bit*)
7520 emul="${emul}32"
7521 ;;
7522 *64-bit*)
7523 emul="${emul}64"
7524 ;;
7525 esac
7526 case `$FILECMD conftest.$ac_objext` in
7527 *MSB*)
7528 emul="${emul}btsmip"
7529 ;;
7530 *LSB*)
7531 emul="${emul}ltsmip"
7532 ;;
7533 esac
7534 case `$FILECMD conftest.$ac_objext` in
7535 *N32*)
7536 emul="${emul}n32"
7537 ;;
7538 esac
7539 LD="${LD-ld} -m $emul"
7540 fi
7541 rm -rf conftest*
7542 ;;
7543
7544 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7545 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7546 # Find out what ABI is being produced by ac_compile, and set linker
7547 # options accordingly. Note that the listed cases only cover the
7548 # situations where additional linker options are needed (such as when
7549 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7550 # vice versa); the common cases where no linker options are needed do
7551 # not appear in the list.
7552 echo 'int i;' > conftest.$ac_ext
7553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7554 (eval $ac_compile) 2>&5
7555 ac_status=$?
7556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }; then
7558 case `$FILECMD conftest.o` in
7559 *32-bit*)
7560 case $host in
7561 x86_64-*kfreebsd*-gnu)
7562 LD="${LD-ld} -m elf_i386_fbsd"
7563 ;;
7564 x86_64-*linux*)
7565 case `$FILECMD conftest.o` in
7566 *x86-64*)
7567 LD="${LD-ld} -m elf32_x86_64"
7568 ;;
7569 *)
7570 LD="${LD-ld} -m elf_i386"
7571 ;;
7572 esac
7573 ;;
7574 powerpc64le-*linux*)
7575 LD="${LD-ld} -m elf32lppclinux"
7576 ;;
7577 powerpc64-*linux*)
7578 LD="${LD-ld} -m elf32ppclinux"
7579 ;;
7580 s390x-*linux*)
7581 LD="${LD-ld} -m elf_s390"
7582 ;;
7583 sparc64-*linux*)
7584 LD="${LD-ld} -m elf32_sparc"
7585 ;;
7586 esac
7587 ;;
7588 *64-bit*)
7589 case $host in
7590 x86_64-*kfreebsd*-gnu)
7591 LD="${LD-ld} -m elf_x86_64_fbsd"
7592 ;;
7593 x86_64-*linux*)
7594 LD="${LD-ld} -m elf_x86_64"
7595 ;;
7596 powerpcle-*linux*)
7597 LD="${LD-ld} -m elf64lppc"
7598 ;;
7599 powerpc-*linux*)
7600 LD="${LD-ld} -m elf64ppc"
7601 ;;
7602 s390*-*linux*|s390*-*tpf*)
7603 LD="${LD-ld} -m elf64_s390"
7604 ;;
7605 sparc*-*linux*)
7606 LD="${LD-ld} -m elf64_sparc"
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612 rm -rf conftest*
7613 ;;
7614
7615 *-*-sco3.2v5*)
7616 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7617 SAVE_CFLAGS=$CFLAGS
7618 CFLAGS="$CFLAGS -belf"
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7620 printf %s "checking whether the C compiler needs -belf... " >&6; }
7621 if test ${lt_cv_cc_needs_belf+y}
7622 then :
7623 printf %s "(cached) " >&6
7624 else $as_nop
7625 ac_ext=c
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633
7634 int
7635 main (void)
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"
7643 then :
7644 lt_cv_cc_needs_belf=yes
7645 else $as_nop
7646 lt_cv_cc_needs_belf=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649 conftest$ac_exeext conftest.$ac_ext
7650 ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656 fi
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7658 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7659 if test yes != "$lt_cv_cc_needs_belf"; then
7660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7661 CFLAGS=$SAVE_CFLAGS
7662 fi
7663 ;;
7664 *-*solaris*)
7665 # Find out what ABI is being produced by ac_compile, and set linker
7666 # options accordingly.
7667 echo 'int i;' > conftest.$ac_ext
7668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7669 (eval $ac_compile) 2>&5
7670 ac_status=$?
7671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672 test $ac_status = 0; }; then
7673 case `$FILECMD conftest.o` in
7674 *64-bit*)
7675 case $lt_cv_prog_gnu_ld in
7676 yes*)
7677 case $host in
7678 i?86-*-solaris*|x86_64-*-solaris*)
7679 LD="${LD-ld} -m elf_x86_64"
7680 ;;
7681 sparc*-*-solaris*)
7682 LD="${LD-ld} -m elf64_sparc"
7683 ;;
7684 esac
7685 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7686 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7687 LD=${LD-ld}_sol2
7688 fi
7689 ;;
7690 *)
7691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7692 LD="${LD-ld} -64"
7693 fi
7694 ;;
7695 esac
7696 ;;
7697 esac
7698 fi
7699 rm -rf conftest*
7700 ;;
7701 esac
7702
7703 need_locks=$enable_libtool_lock
7704
7705 if test -n "$ac_tool_prefix"; then
7706 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7707 set dummy ${ac_tool_prefix}mt; ac_word=$2
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 printf %s "checking for $ac_word... " >&6; }
7710 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else $as_nop
7714 if test -n "$MANIFEST_TOOL"; then
7715 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 case $as_dir in #(((
7722 '') as_dir=./ ;;
7723 */) ;;
7724 *) as_dir=$as_dir/ ;;
7725 esac
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7739 if test -n "$MANIFEST_TOOL"; then
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7741 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7742 else
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7750 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7751 # Extract the first word of "mt", so it can be a program name with args.
7752 set dummy mt; ac_word=$2
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 printf %s "checking for $ac_word... " >&6; }
7755 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7756 then :
7757 printf %s "(cached) " >&6
7758 else $as_nop
7759 if test -n "$ac_ct_MANIFEST_TOOL"; then
7760 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 case $as_dir in #(((
7767 '') as_dir=./ ;;
7768 */) ;;
7769 *) as_dir=$as_dir/ ;;
7770 esac
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7784 if test -n "$ac_ct_MANIFEST_TOOL"; then
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7786 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7787 else
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 printf "%s\n" "no" >&6; }
7790 fi
7791
7792 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7793 MANIFEST_TOOL=":"
7794 else
7795 case $cross_compiling:$ac_tool_warned in
7796 yes:)
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned=yes ;;
7800 esac
7801 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7802 fi
7803 else
7804 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7805 fi
7806
7807 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7809 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7810 if test ${lt_cv_path_mainfest_tool+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else $as_nop
7814 lt_cv_path_mainfest_tool=no
7815 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7816 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7817 cat conftest.err >&5
7818 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7819 lt_cv_path_mainfest_tool=yes
7820 fi
7821 rm -f conftest*
7822 fi
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7824 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7825 if test yes != "$lt_cv_path_mainfest_tool"; then
7826 MANIFEST_TOOL=:
7827 fi
7828
7829
7830
7831
7832
7833
7834 case $host_os in
7835 rhapsody* | darwin*)
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7838 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 printf %s "checking for $ac_word... " >&6; }
7841 if test ${ac_cv_prog_DSYMUTIL+y}
7842 then :
7843 printf %s "(cached) " >&6
7844 else $as_nop
7845 if test -n "$DSYMUTIL"; then
7846 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 case $as_dir in #(((
7853 '') as_dir=./ ;;
7854 */) ;;
7855 *) as_dir=$as_dir/ ;;
7856 esac
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7859 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7870 if test -n "$DSYMUTIL"; then
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7872 printf "%s\n" "$DSYMUTIL" >&6; }
7873 else
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 printf "%s\n" "no" >&6; }
7876 fi
7877
7878
7879 fi
7880 if test -z "$ac_cv_prog_DSYMUTIL"; then
7881 ac_ct_DSYMUTIL=$DSYMUTIL
7882 # Extract the first word of "dsymutil", so it can be a program name with args.
7883 set dummy dsymutil; ac_word=$2
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 printf %s "checking for $ac_word... " >&6; }
7886 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7887 then :
7888 printf %s "(cached) " >&6
7889 else $as_nop
7890 if test -n "$ac_ct_DSYMUTIL"; then
7891 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896 IFS=$as_save_IFS
7897 case $as_dir in #(((
7898 '') as_dir=./ ;;
7899 */) ;;
7900 *) as_dir=$as_dir/ ;;
7901 esac
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7915 if test -n "$ac_ct_DSYMUTIL"; then
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7917 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7918 else
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 printf "%s\n" "no" >&6; }
7921 fi
7922
7923 if test "x$ac_ct_DSYMUTIL" = x; then
7924 DSYMUTIL=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927 yes:)
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 ac_tool_warned=yes ;;
7931 esac
7932 DSYMUTIL=$ac_ct_DSYMUTIL
7933 fi
7934 else
7935 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7936 fi
7937
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 printf %s "checking for $ac_word... " >&6; }
7943 if test ${ac_cv_prog_NMEDIT+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else $as_nop
7947 if test -n "$NMEDIT"; then
7948 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 case $as_dir in #(((
7955 '') as_dir=./ ;;
7956 */) ;;
7957 *) as_dir=$as_dir/ ;;
7958 esac
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 NMEDIT=$ac_cv_prog_NMEDIT
7972 if test -n "$NMEDIT"; then
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7974 printf "%s\n" "$NMEDIT" >&6; }
7975 else
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 printf "%s\n" "no" >&6; }
7978 fi
7979
7980
7981 fi
7982 if test -z "$ac_cv_prog_NMEDIT"; then
7983 ac_ct_NMEDIT=$NMEDIT
7984 # Extract the first word of "nmedit", so it can be a program name with args.
7985 set dummy nmedit; ac_word=$2
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 printf %s "checking for $ac_word... " >&6; }
7988 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7989 then :
7990 printf %s "(cached) " >&6
7991 else $as_nop
7992 if test -n "$ac_ct_NMEDIT"; then
7993 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 case $as_dir in #(((
8000 '') as_dir=./ ;;
8001 */) ;;
8002 *) as_dir=$as_dir/ ;;
8003 esac
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8017 if test -n "$ac_ct_NMEDIT"; then
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8019 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8020 else
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 printf "%s\n" "no" >&6; }
8023 fi
8024
8025 if test "x$ac_ct_NMEDIT" = x; then
8026 NMEDIT=":"
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029 yes:)
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032 ac_tool_warned=yes ;;
8033 esac
8034 NMEDIT=$ac_ct_NMEDIT
8035 fi
8036 else
8037 NMEDIT="$ac_cv_prog_NMEDIT"
8038 fi
8039
8040 if test -n "$ac_tool_prefix"; then
8041 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8042 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 printf %s "checking for $ac_word... " >&6; }
8045 if test ${ac_cv_prog_LIPO+y}
8046 then :
8047 printf %s "(cached) " >&6
8048 else $as_nop
8049 if test -n "$LIPO"; then
8050 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8051 else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055 IFS=$as_save_IFS
8056 case $as_dir in #(((
8057 '') as_dir=./ ;;
8058 */) ;;
8059 *) as_dir=$as_dir/ ;;
8060 esac
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 LIPO=$ac_cv_prog_LIPO
8074 if test -n "$LIPO"; then
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8076 printf "%s\n" "$LIPO" >&6; }
8077 else
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 printf "%s\n" "no" >&6; }
8080 fi
8081
8082
8083 fi
8084 if test -z "$ac_cv_prog_LIPO"; then
8085 ac_ct_LIPO=$LIPO
8086 # Extract the first word of "lipo", so it can be a program name with args.
8087 set dummy lipo; ac_word=$2
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 printf %s "checking for $ac_word... " >&6; }
8090 if test ${ac_cv_prog_ac_ct_LIPO+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 if test -n "$ac_ct_LIPO"; then
8095 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100 IFS=$as_save_IFS
8101 case $as_dir in #(((
8102 '') as_dir=./ ;;
8103 */) ;;
8104 *) as_dir=$as_dir/ ;;
8105 esac
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_ac_ct_LIPO="lipo"
8109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8119 if test -n "$ac_ct_LIPO"; then
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8121 printf "%s\n" "$ac_ct_LIPO" >&6; }
8122 else
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 printf "%s\n" "no" >&6; }
8125 fi
8126
8127 if test "x$ac_ct_LIPO" = x; then
8128 LIPO=":"
8129 else
8130 case $cross_compiling:$ac_tool_warned in
8131 yes:)
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8134 ac_tool_warned=yes ;;
8135 esac
8136 LIPO=$ac_ct_LIPO
8137 fi
8138 else
8139 LIPO="$ac_cv_prog_LIPO"
8140 fi
8141
8142 if test -n "$ac_tool_prefix"; then
8143 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8144 set dummy ${ac_tool_prefix}otool; ac_word=$2
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 printf %s "checking for $ac_word... " >&6; }
8147 if test ${ac_cv_prog_OTOOL+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else $as_nop
8151 if test -n "$OTOOL"; then
8152 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157 IFS=$as_save_IFS
8158 case $as_dir in #(((
8159 '') as_dir=./ ;;
8160 */) ;;
8161 *) as_dir=$as_dir/ ;;
8162 esac
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 OTOOL=$ac_cv_prog_OTOOL
8176 if test -n "$OTOOL"; then
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8178 printf "%s\n" "$OTOOL" >&6; }
8179 else
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 printf "%s\n" "no" >&6; }
8182 fi
8183
8184
8185 fi
8186 if test -z "$ac_cv_prog_OTOOL"; then
8187 ac_ct_OTOOL=$OTOOL
8188 # Extract the first word of "otool", so it can be a program name with args.
8189 set dummy otool; ac_word=$2
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 printf %s "checking for $ac_word... " >&6; }
8192 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8193 then :
8194 printf %s "(cached) " >&6
8195 else $as_nop
8196 if test -n "$ac_ct_OTOOL"; then
8197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 case $as_dir in #(((
8204 '') as_dir=./ ;;
8205 */) ;;
8206 *) as_dir=$as_dir/ ;;
8207 esac
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_ac_ct_OTOOL="otool"
8211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8221 if test -n "$ac_ct_OTOOL"; then
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8223 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8224 else
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 printf "%s\n" "no" >&6; }
8227 fi
8228
8229 if test "x$ac_ct_OTOOL" = x; then
8230 OTOOL=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 OTOOL=$ac_ct_OTOOL
8239 fi
8240 else
8241 OTOOL="$ac_cv_prog_OTOOL"
8242 fi
8243
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 printf %s "checking for $ac_word... " >&6; }
8249 if test ${ac_cv_prog_OTOOL64+y}
8250 then :
8251 printf %s "(cached) " >&6
8252 else $as_nop
8253 if test -n "$OTOOL64"; then
8254 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 case $as_dir in #(((
8261 '') as_dir=./ ;;
8262 */) ;;
8263 *) as_dir=$as_dir/ ;;
8264 esac
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi
8276 fi
8277 OTOOL64=$ac_cv_prog_OTOOL64
8278 if test -n "$OTOOL64"; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8280 printf "%s\n" "$OTOOL64" >&6; }
8281 else
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 printf "%s\n" "no" >&6; }
8284 fi
8285
8286
8287 fi
8288 if test -z "$ac_cv_prog_OTOOL64"; then
8289 ac_ct_OTOOL64=$OTOOL64
8290 # Extract the first word of "otool64", so it can be a program name with args.
8291 set dummy otool64; ac_word=$2
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 printf %s "checking for $ac_word... " >&6; }
8294 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else $as_nop
8298 if test -n "$ac_ct_OTOOL64"; then
8299 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 case $as_dir in #(((
8306 '') as_dir=./ ;;
8307 */) ;;
8308 *) as_dir=$as_dir/ ;;
8309 esac
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_ac_ct_OTOOL64="otool64"
8313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8323 if test -n "$ac_ct_OTOOL64"; then
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8325 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8326 else
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 printf "%s\n" "no" >&6; }
8329 fi
8330
8331 if test "x$ac_ct_OTOOL64" = x; then
8332 OTOOL64=":"
8333 else
8334 case $cross_compiling:$ac_tool_warned in
8335 yes:)
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338 ac_tool_warned=yes ;;
8339 esac
8340 OTOOL64=$ac_ct_OTOOL64
8341 fi
8342 else
8343 OTOOL64="$ac_cv_prog_OTOOL64"
8344 fi
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8373 printf %s "checking for -single_module linker flag... " >&6; }
8374 if test ${lt_cv_apple_cc_single_mod+y}
8375 then :
8376 printf %s "(cached) " >&6
8377 else $as_nop
8378 lt_cv_apple_cc_single_mod=no
8379 if test -z "$LT_MULTI_MODULE"; then
8380 # By default we will add the -single_module flag. You can override
8381 # by either setting the environment variable LT_MULTI_MODULE
8382 # non-empty at configure time, or by adding -multi_module to the
8383 # link flags.
8384 rm -rf libconftest.dylib*
8385 echo "int foo(void){return 1;}" > conftest.c
8386 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8387 -dynamiclib -Wl,-single_module conftest.c" >&5
8388 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8390 _lt_result=$?
8391 # If there is a non-empty error log, and "single_module"
8392 # appears in it, assume the flag caused a linker warning
8393 if test -s conftest.err && $GREP single_module conftest.err; then
8394 cat conftest.err >&5
8395 # Otherwise, if the output was created with a 0 exit code from
8396 # the compiler, it worked.
8397 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8398 lt_cv_apple_cc_single_mod=yes
8399 else
8400 cat conftest.err >&5
8401 fi
8402 rm -rf libconftest.dylib*
8403 rm -f conftest.*
8404 fi
8405 fi
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8407 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8408
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8410 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8411 if test ${lt_cv_ld_exported_symbols_list+y}
8412 then :
8413 printf %s "(cached) " >&6
8414 else $as_nop
8415 lt_cv_ld_exported_symbols_list=no
8416 save_LDFLAGS=$LDFLAGS
8417 echo "_main" > conftest.sym
8418 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421
8422 int
8423 main (void)
8424 {
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"
8431 then :
8432 lt_cv_ld_exported_symbols_list=yes
8433 else $as_nop
8434 lt_cv_ld_exported_symbols_list=no
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8437 conftest$ac_exeext conftest.$ac_ext
8438 LDFLAGS=$save_LDFLAGS
8439
8440 fi
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8442 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8443
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8445 printf %s "checking for -force_load linker flag... " >&6; }
8446 if test ${lt_cv_ld_force_load+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 lt_cv_ld_force_load=no
8451 cat > conftest.c << _LT_EOF
8452 int forced_loaded() { return 2;}
8453 _LT_EOF
8454 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8455 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8456 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8457 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8458 echo "$RANLIB libconftest.a" >&5
8459 $RANLIB libconftest.a 2>&5
8460 cat > conftest.c << _LT_EOF
8461 int main() { return 0;}
8462 _LT_EOF
8463 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8464 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8465 _lt_result=$?
8466 if test -s conftest.err && $GREP force_load conftest.err; then
8467 cat conftest.err >&5
8468 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8469 lt_cv_ld_force_load=yes
8470 else
8471 cat conftest.err >&5
8472 fi
8473 rm -f conftest.err libconftest.a conftest conftest.c
8474 rm -rf conftest.dSYM
8475
8476 fi
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8478 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8479 case $host_os in
8480 rhapsody* | darwin1.[012])
8481 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8482 darwin1.*)
8483 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8484 darwin*)
8485 case $MACOSX_DEPLOYMENT_TARGET,$host in
8486 10.[012],*|,*powerpc*-darwin[5-8]*)
8487 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8488 *)
8489 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8490 esac
8491 ;;
8492 esac
8493 if test yes = "$lt_cv_apple_cc_single_mod"; then
8494 _lt_dar_single_mod='$single_module'
8495 fi
8496 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8497 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8498 else
8499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8500 fi
8501 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8502 _lt_dsymutil='~$DSYMUTIL $lib || :'
8503 else
8504 _lt_dsymutil=
8505 fi
8506 ;;
8507 esac
8508
8509 # func_munge_path_list VARIABLE PATH
8510 # -----------------------------------
8511 # VARIABLE is name of variable containing _space_ separated list of
8512 # directories to be munged by the contents of PATH, which is string
8513 # having a format:
8514 # "DIR[:DIR]:"
8515 # string "DIR[ DIR]" will be prepended to VARIABLE
8516 # ":DIR[:DIR]"
8517 # string "DIR[ DIR]" will be appended to VARIABLE
8518 # "DIRP[:DIRP]::[DIRA:]DIRA"
8519 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8520 # "DIRA[ DIRA]" will be appended to VARIABLE
8521 # "DIR[:DIR]"
8522 # VARIABLE will be replaced by "DIR[ DIR]"
8523 func_munge_path_list ()
8524 {
8525 case x$2 in
8526 x)
8527 ;;
8528 *:)
8529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8530 ;;
8531 x:*)
8532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8533 ;;
8534 *::*)
8535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8537 ;;
8538 *)
8539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8540 ;;
8541 esac
8542 }
8543
8544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8545 "
8546 if test "x$ac_cv_header_dlfcn_h" = xyes
8547 then :
8548 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8549
8550 fi
8551
8552
8553
8554
8555
8556 # Set options
8557
8558
8559
8560 enable_dlopen=no
8561
8562
8563 enable_win32_dll=no
8564
8565
8566 # Check whether --enable-shared was given.
8567 if test ${enable_shared+y}
8568 then :
8569 enableval=$enable_shared; p=${PACKAGE-default}
8570 case $enableval in
8571 yes) enable_shared=yes ;;
8572 no) enable_shared=no ;;
8573 *)
8574 enable_shared=no
8575 # Look at the argument we got. We use all the common list separators.
8576 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8577 for pkg in $enableval; do
8578 IFS=$lt_save_ifs
8579 if test "X$pkg" = "X$p"; then
8580 enable_shared=yes
8581 fi
8582 done
8583 IFS=$lt_save_ifs
8584 ;;
8585 esac
8586 else $as_nop
8587 enable_shared=yes
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598 # Check whether --enable-static was given.
8599 if test ${enable_static+y}
8600 then :
8601 enableval=$enable_static; p=${PACKAGE-default}
8602 case $enableval in
8603 yes) enable_static=yes ;;
8604 no) enable_static=no ;;
8605 *)
8606 enable_static=no
8607 # Look at the argument we got. We use all the common list separators.
8608 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8609 for pkg in $enableval; do
8610 IFS=$lt_save_ifs
8611 if test "X$pkg" = "X$p"; then
8612 enable_static=yes
8613 fi
8614 done
8615 IFS=$lt_save_ifs
8616 ;;
8617 esac
8618 else $as_nop
8619 enable_static=yes
8620 fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 # Check whether --with-pic was given.
8632 if test ${with_pic+y}
8633 then :
8634 withval=$with_pic; lt_p=${PACKAGE-default}
8635 case $withval in
8636 yes|no) pic_mode=$withval ;;
8637 *)
8638 pic_mode=default
8639 # Look at the argument we got. We use all the common list separators.
8640 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8641 for lt_pkg in $withval; do
8642 IFS=$lt_save_ifs
8643 if test "X$lt_pkg" = "X$lt_p"; then
8644 pic_mode=yes
8645 fi
8646 done
8647 IFS=$lt_save_ifs
8648 ;;
8649 esac
8650 else $as_nop
8651 pic_mode=default
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661 # Check whether --enable-fast-install was given.
8662 if test ${enable_fast_install+y}
8663 then :
8664 enableval=$enable_fast_install; p=${PACKAGE-default}
8665 case $enableval in
8666 yes) enable_fast_install=yes ;;
8667 no) enable_fast_install=no ;;
8668 *)
8669 enable_fast_install=no
8670 # Look at the argument we got. We use all the common list separators.
8671 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8672 for pkg in $enableval; do
8673 IFS=$lt_save_ifs
8674 if test "X$pkg" = "X$p"; then
8675 enable_fast_install=yes
8676 fi
8677 done
8678 IFS=$lt_save_ifs
8679 ;;
8680 esac
8681 else $as_nop
8682 enable_fast_install=yes
8683 fi
8684
8685
8686
8687
8688
8689
8690
8691
8692 shared_archive_member_spec=
8693 case $host,$enable_shared in
8694 power*-*-aix[5-9]*,yes)
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8696 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8697
8698 # Check whether --with-aix-soname was given.
8699 if test ${with_aix_soname+y}
8700 then :
8701 withval=$with_aix_soname; case $withval in
8702 aix|svr4|both)
8703 ;;
8704 *)
8705 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8706 ;;
8707 esac
8708 lt_cv_with_aix_soname=$with_aix_soname
8709 else $as_nop
8710 if test ${lt_cv_with_aix_soname+y}
8711 then :
8712 printf %s "(cached) " >&6
8713 else $as_nop
8714 lt_cv_with_aix_soname=aix
8715 fi
8716
8717 with_aix_soname=$lt_cv_with_aix_soname
8718 fi
8719
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8721 printf "%s\n" "$with_aix_soname" >&6; }
8722 if test aix != "$with_aix_soname"; then
8723 # For the AIX way of multilib, we name the shared archive member
8724 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8725 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8726 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8727 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8728 if test 64 = "${OBJECT_MODE-32}"; then
8729 shared_archive_member_spec=shr_64
8730 else
8731 shared_archive_member_spec=shr
8732 fi
8733 fi
8734 ;;
8735 *)
8736 with_aix_soname=aix
8737 ;;
8738 esac
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749 # This can be used to rebuild libtool when needed
8750 LIBTOOL_DEPS=$ltmain
8751
8752 # Always use our own libtool.
8753 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784 test -z "$LN_S" && LN_S="ln -s"
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799 if test -n "${ZSH_VERSION+set}"; then
8800 setopt NO_GLOB_SUBST
8801 fi
8802
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8804 printf %s "checking for objdir... " >&6; }
8805 if test ${lt_cv_objdir+y}
8806 then :
8807 printf %s "(cached) " >&6
8808 else $as_nop
8809 rm -f .libs 2>/dev/null
8810 mkdir .libs 2>/dev/null
8811 if test -d .libs; then
8812 lt_cv_objdir=.libs
8813 else
8814 # MS-DOS does not allow filenames that begin with a dot.
8815 lt_cv_objdir=_libs
8816 fi
8817 rmdir .libs 2>/dev/null
8818 fi
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8820 printf "%s\n" "$lt_cv_objdir" >&6; }
8821 objdir=$lt_cv_objdir
8822
8823
8824
8825
8826
8827 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8828
8829
8830
8831
8832 case $host_os in
8833 aix3*)
8834 # AIX sometimes has problems with the GCC collect2 program. For some
8835 # reason, if we set the COLLECT_NAMES environment variable, the problems
8836 # vanish in a puff of smoke.
8837 if test set != "${COLLECT_NAMES+set}"; then
8838 COLLECT_NAMES=
8839 export COLLECT_NAMES
8840 fi
8841 ;;
8842 esac
8843
8844 # Global variables:
8845 ofile=libtool
8846 can_build_shared=yes
8847
8848 # All known linkers require a '.a' archive for static linking (except MSVC and
8849 # ICC, which need '.lib').
8850 libext=a
8851
8852 with_gnu_ld=$lt_cv_prog_gnu_ld
8853
8854 old_CC=$CC
8855 old_CFLAGS=$CFLAGS
8856
8857 # Set sane defaults for various variables
8858 test -z "$CC" && CC=cc
8859 test -z "$LTCC" && LTCC=$CC
8860 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8861 test -z "$LD" && LD=ld
8862 test -z "$ac_objext" && ac_objext=o
8863
8864 func_cc_basename $compiler
8865 cc_basename=$func_cc_basename_result
8866
8867
8868 # Only perform the check for file, if the check method requires it
8869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8870 case $deplibs_check_method in
8871 file_magic*)
8872 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8874 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8875 if test ${lt_cv_path_MAGIC_CMD+y}
8876 then :
8877 printf %s "(cached) " >&6
8878 else $as_nop
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/${ac_tool_prefix}file"; then
8891 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}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 *** [email protected]
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8928 printf "%s\n" "$MAGIC_CMD" >&6; }
8929 else
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 printf "%s\n" "no" >&6; }
8932 fi
8933
8934
8935
8936
8937
8938 if test -z "$lt_cv_path_MAGIC_CMD"; then
8939 if test -n "$ac_tool_prefix"; then
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8941 printf %s "checking for file... " >&6; }
8942 if test ${lt_cv_path_MAGIC_CMD+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else $as_nop
8946 case $MAGIC_CMD in
8947 [\\/*] | ?:[\\/]*)
8948 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8949 ;;
8950 *)
8951 lt_save_MAGIC_CMD=$MAGIC_CMD
8952 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8954 for ac_dir in $ac_dummy; do
8955 IFS=$lt_save_ifs
8956 test -z "$ac_dir" && ac_dir=.
8957 if test -f "$ac_dir/file"; then
8958 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8959 if test -n "$file_magic_test_file"; then
8960 case $deplibs_check_method in
8961 "file_magic "*)
8962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8963 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8965 $EGREP "$file_magic_regex" > /dev/null; then
8966 :
8967 else
8968 cat <<_LT_EOF 1>&2
8969
8970 *** Warning: the command libtool uses to detect shared libraries,
8971 *** $file_magic_cmd, produces output that libtool cannot recognize.
8972 *** The result is that libtool may fail to recognize shared libraries
8973 *** as such. This will affect the creation of libtool libraries that
8974 *** depend on shared libraries, but programs linked with such libtool
8975 *** libraries will work regardless of this problem. Nevertheless, you
8976 *** may want to report the problem to your system manager and/or to
8977 *** [email protected]
8978
8979 _LT_EOF
8980 fi ;;
8981 esac
8982 fi
8983 break
8984 fi
8985 done
8986 IFS=$lt_save_ifs
8987 MAGIC_CMD=$lt_save_MAGIC_CMD
8988 ;;
8989 esac
8990 fi
8991
8992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8993 if test -n "$MAGIC_CMD"; then
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8995 printf "%s\n" "$MAGIC_CMD" >&6; }
8996 else
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 printf "%s\n" "no" >&6; }
8999 fi
9000
9001
9002 else
9003 MAGIC_CMD=:
9004 fi
9005 fi
9006
9007 fi
9008 ;;
9009 esac
9010
9011 # Use C for the default configuration in the libtool script
9012
9013 lt_save_CC=$CC
9014 ac_ext=c
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019
9020
9021 # Source file extension for C test sources.
9022 ac_ext=c
9023
9024 # Object file extension for compiled C test sources.
9025 objext=o
9026 objext=$objext
9027
9028 # Code to be used in simple compile tests
9029 lt_simple_compile_test_code="int some_variable = 0;"
9030
9031 # Code to be used in simple link tests
9032 lt_simple_link_test_code='int main(){return(0);}'
9033
9034
9035
9036
9037
9038
9039
9040 # If no C compiler was specified, use CC.
9041 LTCC=${LTCC-"$CC"}
9042
9043 # If no C compiler flags were specified, use CFLAGS.
9044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9045
9046 # Allow CC to be a program name with arguments.
9047 compiler=$CC
9048
9049 # Save the default compiler, since it gets overwritten when the other
9050 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9051 compiler_DEFAULT=$CC
9052
9053 # save warnings/boilerplate of simple test code
9054 ac_outfile=conftest.$ac_objext
9055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057 _lt_compiler_boilerplate=`cat conftest.err`
9058 $RM conftest*
9059
9060 ac_outfile=conftest.$ac_objext
9061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9063 _lt_linker_boilerplate=`cat conftest.err`
9064 $RM -r conftest*
9065
9066
9067 if test -n "$compiler"; then
9068
9069 lt_prog_compiler_no_builtin_flag=
9070
9071 if test yes = "$GCC"; then
9072 case $cc_basename in
9073 nvcc*)
9074 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9075 *)
9076 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9077 esac
9078
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9080 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9081 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9082 then :
9083 printf %s "(cached) " >&6
9084 else $as_nop
9085 lt_cv_prog_compiler_rtti_exceptions=no
9086 ac_outfile=conftest.$ac_objext
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 # The option is referenced via a variable to avoid confusing sed.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>conftest.err)
9100 ac_status=$?
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 if (exit $ac_status) && test -s "$ac_outfile"; then
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings other than the usual output.
9106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler_rtti_exceptions=yes
9110 fi
9111 fi
9112 $RM conftest*
9113
9114 fi
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9116 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9117
9118 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9120 else
9121 :
9122 fi
9123
9124 fi
9125
9126
9127
9128
9129
9130
9131 lt_prog_compiler_wl=
9132 lt_prog_compiler_pic=
9133 lt_prog_compiler_static=
9134
9135
9136 if test yes = "$GCC"; then
9137 lt_prog_compiler_wl='-Wl,'
9138 lt_prog_compiler_static='-static'
9139
9140 case $host_os in
9141 aix*)
9142 # All AIX code is PIC.
9143 if test ia64 = "$host_cpu"; then
9144 # AIX 5 now supports IA64 processor
9145 lt_prog_compiler_static='-Bstatic'
9146 fi
9147 lt_prog_compiler_pic='-fPIC'
9148 ;;
9149
9150 amigaos*)
9151 case $host_cpu in
9152 powerpc)
9153 # see comment about AmigaOS4 .so support
9154 lt_prog_compiler_pic='-fPIC'
9155 ;;
9156 m68k)
9157 # FIXME: we need at least 68020 code to build shared libraries, but
9158 # adding the '-m68020' flag to GCC prevents building anything better,
9159 # like '-m68040'.
9160 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9161 ;;
9162 esac
9163 ;;
9164
9165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9166 # PIC is the default for these OSes.
9167 ;;
9168
9169 mingw* | cygwin* | pw32* | os2* | cegcc*)
9170 # This hack is so that the source file can tell whether it is being
9171 # built for inclusion in a dll (and should export symbols for example).
9172 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9173 # (--disable-auto-import) libraries
9174 lt_prog_compiler_pic='-DDLL_EXPORT'
9175 case $host_os in
9176 os2*)
9177 lt_prog_compiler_static='$wl-static'
9178 ;;
9179 esac
9180 ;;
9181
9182 darwin* | rhapsody*)
9183 # PIC is the default on this platform
9184 # Common symbols not allowed in MH_DYLIB files
9185 lt_prog_compiler_pic='-fno-common'
9186 ;;
9187
9188 haiku*)
9189 # PIC is the default for Haiku.
9190 # The "-static" flag exists, but is broken.
9191 lt_prog_compiler_static=
9192 ;;
9193
9194 hpux*)
9195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9197 # sets the default TLS model and affects inlining.
9198 case $host_cpu in
9199 hppa*64*)
9200 # +Z the default
9201 ;;
9202 *)
9203 lt_prog_compiler_pic='-fPIC'
9204 ;;
9205 esac
9206 ;;
9207
9208 interix[3-9]*)
9209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9210 # Instead, we relocate shared libraries at runtime.
9211 ;;
9212
9213 msdosdjgpp*)
9214 # Just because we use GCC doesn't mean we suddenly get shared libraries
9215 # on systems that don't support them.
9216 lt_prog_compiler_can_build_shared=no
9217 enable_shared=no
9218 ;;
9219
9220 *nto* | *qnx*)
9221 # QNX uses GNU C++, but need to define -shared option too, otherwise
9222 # it will coredump.
9223 lt_prog_compiler_pic='-fPIC -shared'
9224 ;;
9225
9226 sysv4*MP*)
9227 if test -d /usr/nec; then
9228 lt_prog_compiler_pic=-Kconform_pic
9229 fi
9230 ;;
9231
9232 *)
9233 lt_prog_compiler_pic='-fPIC'
9234 ;;
9235 esac
9236
9237 case $cc_basename in
9238 nvcc*) # Cuda Compiler Driver 2.2
9239 lt_prog_compiler_wl='-Xlinker '
9240 if test -n "$lt_prog_compiler_pic"; then
9241 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9242 fi
9243 ;;
9244 esac
9245 else
9246 # PORTME Check for flag to pass linker flags through the system compiler.
9247 case $host_os in
9248 aix*)
9249 lt_prog_compiler_wl='-Wl,'
9250 if test ia64 = "$host_cpu"; then
9251 # AIX 5 now supports IA64 processor
9252 lt_prog_compiler_static='-Bstatic'
9253 else
9254 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9255 fi
9256 ;;
9257
9258 darwin* | rhapsody*)
9259 # PIC is the default on this platform
9260 # Common symbols not allowed in MH_DYLIB files
9261 lt_prog_compiler_pic='-fno-common'
9262 case $cc_basename in
9263 nagfor*)
9264 # NAG Fortran compiler
9265 lt_prog_compiler_wl='-Wl,-Wl,,'
9266 lt_prog_compiler_pic='-PIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 esac
9270 ;;
9271
9272 mingw* | cygwin* | pw32* | os2* | cegcc*)
9273 # This hack is so that the source file can tell whether it is being
9274 # built for inclusion in a dll (and should export symbols for example).
9275 lt_prog_compiler_pic='-DDLL_EXPORT'
9276 case $host_os in
9277 os2*)
9278 lt_prog_compiler_static='$wl-static'
9279 ;;
9280 esac
9281 ;;
9282
9283 hpux9* | hpux10* | hpux11*)
9284 lt_prog_compiler_wl='-Wl,'
9285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9286 # not for PA HP-UX.
9287 case $host_cpu in
9288 hppa*64*|ia64*)
9289 # +Z the default
9290 ;;
9291 *)
9292 lt_prog_compiler_pic='+Z'
9293 ;;
9294 esac
9295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9296 lt_prog_compiler_static='$wl-a ${wl}archive'
9297 ;;
9298
9299 irix5* | irix6* | nonstopux*)
9300 lt_prog_compiler_wl='-Wl,'
9301 # PIC (with -KPIC) is the default.
9302 lt_prog_compiler_static='-non_shared'
9303 ;;
9304
9305 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9306 case $cc_basename in
9307 # old Intel for x86_64, which still supported -KPIC.
9308 ecc*)
9309 lt_prog_compiler_wl='-Wl,'
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-static'
9312 ;;
9313 # icc used to be incompatible with GCC.
9314 # ICC 10 doesn't accept -KPIC any more.
9315 icc* | ifort*)
9316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_pic='-fPIC'
9318 lt_prog_compiler_static='-static'
9319 ;;
9320 # Lahey Fortran 8.1.
9321 lf95*)
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_pic='--shared'
9324 lt_prog_compiler_static='--static'
9325 ;;
9326 nagfor*)
9327 # NAG Fortran compiler
9328 lt_prog_compiler_wl='-Wl,-Wl,,'
9329 lt_prog_compiler_pic='-PIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 ;;
9332 tcc*)
9333 # Fabrice Bellard et al's Tiny C Compiler
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_pic='-fPIC'
9336 lt_prog_compiler_static='-static'
9337 ;;
9338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9339 # Portland Group compilers (*not* the Pentium gcc compiler,
9340 # which looks to be a dead project)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-fpic'
9343 lt_prog_compiler_static='-Bstatic'
9344 ;;
9345 ccc*)
9346 lt_prog_compiler_wl='-Wl,'
9347 # All Alpha code is PIC.
9348 lt_prog_compiler_static='-non_shared'
9349 ;;
9350 xl* | bgxl* | bgf* | mpixl*)
9351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9352 lt_prog_compiler_wl='-Wl,'
9353 lt_prog_compiler_pic='-qpic'
9354 lt_prog_compiler_static='-qstaticlink'
9355 ;;
9356 *)
9357 case `$CC -V 2>&1 | $SED 5q` in
9358 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 lt_prog_compiler_wl=''
9363 ;;
9364 *Sun\ F* | *Sun*Fortran*)
9365 lt_prog_compiler_pic='-KPIC'
9366 lt_prog_compiler_static='-Bstatic'
9367 lt_prog_compiler_wl='-Qoption ld '
9368 ;;
9369 *Sun\ C*)
9370 # Sun C 5.9
9371 lt_prog_compiler_pic='-KPIC'
9372 lt_prog_compiler_static='-Bstatic'
9373 lt_prog_compiler_wl='-Wl,'
9374 ;;
9375 *Intel*\ [CF]*Compiler*)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-fPIC'
9378 lt_prog_compiler_static='-static'
9379 ;;
9380 *Portland\ Group*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-fpic'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9385 esac
9386 ;;
9387 esac
9388 ;;
9389
9390 newsos6)
9391 lt_prog_compiler_pic='-KPIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 ;;
9394
9395 *nto* | *qnx*)
9396 # QNX uses GNU C++, but need to define -shared option too, otherwise
9397 # it will coredump.
9398 lt_prog_compiler_pic='-fPIC -shared'
9399 ;;
9400
9401 osf3* | osf4* | osf5*)
9402 lt_prog_compiler_wl='-Wl,'
9403 # All OSF/1 code is PIC.
9404 lt_prog_compiler_static='-non_shared'
9405 ;;
9406
9407 rdos*)
9408 lt_prog_compiler_static='-non_shared'
9409 ;;
9410
9411 solaris*)
9412 lt_prog_compiler_pic='-KPIC'
9413 lt_prog_compiler_static='-Bstatic'
9414 case $cc_basename in
9415 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9416 lt_prog_compiler_wl='-Qoption ld ';;
9417 *)
9418 lt_prog_compiler_wl='-Wl,';;
9419 esac
9420 ;;
9421
9422 sunos4*)
9423 lt_prog_compiler_wl='-Qoption ld '
9424 lt_prog_compiler_pic='-PIC'
9425 lt_prog_compiler_static='-Bstatic'
9426 ;;
9427
9428 sysv4 | sysv4.2uw2* | sysv4.3*)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-KPIC'
9431 lt_prog_compiler_static='-Bstatic'
9432 ;;
9433
9434 sysv4*MP*)
9435 if test -d /usr/nec; then
9436 lt_prog_compiler_pic='-Kconform_pic'
9437 lt_prog_compiler_static='-Bstatic'
9438 fi
9439 ;;
9440
9441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_pic='-KPIC'
9444 lt_prog_compiler_static='-Bstatic'
9445 ;;
9446
9447 unicos*)
9448 lt_prog_compiler_wl='-Wl,'
9449 lt_prog_compiler_can_build_shared=no
9450 ;;
9451
9452 uts4*)
9453 lt_prog_compiler_pic='-pic'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 *)
9458 lt_prog_compiler_can_build_shared=no
9459 ;;
9460 esac
9461 fi
9462
9463 case $host_os in
9464 # For platforms that do not support PIC, -DPIC is meaningless:
9465 *djgpp*)
9466 lt_prog_compiler_pic=
9467 ;;
9468 *)
9469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9470 ;;
9471 esac
9472
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9474 printf %s "checking for $compiler option to produce PIC... " >&6; }
9475 if test ${lt_cv_prog_compiler_pic+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else $as_nop
9479 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9480 fi
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9482 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9483 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9484
9485 #
9486 # Check to make sure the PIC flag actually works.
9487 #
9488 if test -n "$lt_prog_compiler_pic"; then
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9490 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9491 if test ${lt_cv_prog_compiler_pic_works+y}
9492 then :
9493 printf %s "(cached) " >&6
9494 else $as_nop
9495 lt_cv_prog_compiler_pic_works=no
9496 ac_outfile=conftest.$ac_objext
9497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9499 # Insert the option either (1) after the last *FLAGS variable, or
9500 # (2) before a word containing "conftest.", or (3) at the end.
9501 # Note that $ac_compile itself does not contain backslashes and begins
9502 # with a dollar sign (not a hyphen), so the echo should work correctly.
9503 # The option is referenced via a variable to avoid confusing sed.
9504 lt_compile=`echo "$ac_compile" | $SED \
9505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9507 -e 's:$: $lt_compiler_flag:'`
9508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9509 (eval "$lt_compile" 2>conftest.err)
9510 ac_status=$?
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 if (exit $ac_status) && test -s "$ac_outfile"; then
9514 # The compiler can only warn and ignore the option if not recognized
9515 # So say no if there are warnings other than the usual output.
9516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9519 lt_cv_prog_compiler_pic_works=yes
9520 fi
9521 fi
9522 $RM conftest*
9523
9524 fi
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9526 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9527
9528 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9529 case $lt_prog_compiler_pic in
9530 "" | " "*) ;;
9531 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9532 esac
9533 else
9534 lt_prog_compiler_pic=
9535 lt_prog_compiler_can_build_shared=no
9536 fi
9537
9538 fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550 #
9551 # Check to make sure the static flag actually works.
9552 #
9553 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9555 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9556 if test ${lt_cv_prog_compiler_static_works+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else $as_nop
9560 lt_cv_prog_compiler_static_works=no
9561 save_LDFLAGS=$LDFLAGS
9562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9565 # The linker can only warn and ignore the option if not recognized
9566 # So say no if there are warnings
9567 if test -s conftest.err; then
9568 # Append any errors to the config.log.
9569 cat conftest.err 1>&5
9570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9572 if diff conftest.exp conftest.er2 >/dev/null; then
9573 lt_cv_prog_compiler_static_works=yes
9574 fi
9575 else
9576 lt_cv_prog_compiler_static_works=yes
9577 fi
9578 fi
9579 $RM -r conftest*
9580 LDFLAGS=$save_LDFLAGS
9581
9582 fi
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9584 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9585
9586 if test yes = "$lt_cv_prog_compiler_static_works"; then
9587 :
9588 else
9589 lt_prog_compiler_static=
9590 fi
9591
9592
9593
9594
9595
9596
9597
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9599 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9600 if test ${lt_cv_prog_compiler_c_o+y}
9601 then :
9602 printf %s "(cached) " >&6
9603 else $as_nop
9604 lt_cv_prog_compiler_c_o=no
9605 $RM -r conftest 2>/dev/null
9606 mkdir conftest
9607 cd conftest
9608 mkdir out
9609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9610
9611 lt_compiler_flag="-o out/conftest2.$ac_objext"
9612 # Insert the option either (1) after the last *FLAGS variable, or
9613 # (2) before a word containing "conftest.", or (3) at the end.
9614 # Note that $ac_compile itself does not contain backslashes and begins
9615 # with a dollar sign (not a hyphen), so the echo should work correctly.
9616 lt_compile=`echo "$ac_compile" | $SED \
9617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9619 -e 's:$: $lt_compiler_flag:'`
9620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9621 (eval "$lt_compile" 2>out/conftest.err)
9622 ac_status=$?
9623 cat out/conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9626 then
9627 # The compiler can only warn and ignore the option if not recognized
9628 # So say no if there are warnings
9629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler_c_o=yes
9633 fi
9634 fi
9635 chmod u+w . 2>&5
9636 $RM conftest*
9637 # SGI C++ compiler will create directory out/ii_files/ for
9638 # template instantiation
9639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9640 $RM out/* && rmdir out
9641 cd ..
9642 $RM -r conftest
9643 $RM conftest*
9644
9645 fi
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9647 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9648
9649
9650
9651
9652
9653
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9655 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9656 if test ${lt_cv_prog_compiler_c_o+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else $as_nop
9660 lt_cv_prog_compiler_c_o=no
9661 $RM -r conftest 2>/dev/null
9662 mkdir conftest
9663 cd conftest
9664 mkdir out
9665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9666
9667 lt_compiler_flag="-o out/conftest2.$ac_objext"
9668 # Insert the option either (1) after the last *FLAGS variable, or
9669 # (2) before a word containing "conftest.", or (3) at the end.
9670 # Note that $ac_compile itself does not contain backslashes and begins
9671 # with a dollar sign (not a hyphen), so the echo should work correctly.
9672 lt_compile=`echo "$ac_compile" | $SED \
9673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9675 -e 's:$: $lt_compiler_flag:'`
9676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9677 (eval "$lt_compile" 2>out/conftest.err)
9678 ac_status=$?
9679 cat out/conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9682 then
9683 # The compiler can only warn and ignore the option if not recognized
9684 # So say no if there are warnings
9685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9688 lt_cv_prog_compiler_c_o=yes
9689 fi
9690 fi
9691 chmod u+w . 2>&5
9692 $RM conftest*
9693 # SGI C++ compiler will create directory out/ii_files/ for
9694 # template instantiation
9695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9696 $RM out/* && rmdir out
9697 cd ..
9698 $RM -r conftest
9699 $RM conftest*
9700
9701 fi
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9703 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9704
9705
9706
9707
9708 hard_links=nottested
9709 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9710 # do not overwrite the value of need_locks provided by the user
9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9712 printf %s "checking if we can lock with hard links... " >&6; }
9713 hard_links=yes
9714 $RM conftest*
9715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9716 touch conftest.a
9717 ln conftest.a conftest.b 2>&5 || hard_links=no
9718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9720 printf "%s\n" "$hard_links" >&6; }
9721 if test no = "$hard_links"; then
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9723 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9724 need_locks=warn
9725 fi
9726 else
9727 need_locks=no
9728 fi
9729
9730
9731
9732
9733
9734
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9736 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9737
9738 runpath_var=
9739 allow_undefined_flag=
9740 always_export_symbols=no
9741 archive_cmds=
9742 archive_expsym_cmds=
9743 compiler_needs_object=no
9744 enable_shared_with_static_runtimes=no
9745 export_dynamic_flag_spec=
9746 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9747 hardcode_automatic=no
9748 hardcode_direct=no
9749 hardcode_direct_absolute=no
9750 hardcode_libdir_flag_spec=
9751 hardcode_libdir_separator=
9752 hardcode_minus_L=no
9753 hardcode_shlibpath_var=unsupported
9754 inherit_rpath=no
9755 link_all_deplibs=unknown
9756 module_cmds=
9757 module_expsym_cmds=
9758 old_archive_from_new_cmds=
9759 old_archive_from_expsyms_cmds=
9760 thread_safe_flag_spec=
9761 whole_archive_flag_spec=
9762 # include_expsyms should be a list of space-separated symbols to be *always*
9763 # included in the symbol list
9764 include_expsyms=
9765 # exclude_expsyms can be an extended regexp of symbols to exclude
9766 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9767 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9768 # as well as any symbol that contains 'd'.
9769 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9771 # platforms (ab)use it in PIC code, but their linkers get confused if
9772 # the symbol is explicitly referenced. Since portable code cannot
9773 # rely on this symbol name, it's probably fine to never include it in
9774 # preloaded symbol tables.
9775 # Exclude shared library initialization/finalization symbols.
9776 extract_expsyms_cmds=
9777
9778 case $host_os in
9779 cygwin* | mingw* | pw32* | cegcc*)
9780 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9781 # When not using gcc, we currently assume that we are using
9782 # Microsoft Visual C++ or Intel C++ Compiler.
9783 if test yes != "$GCC"; then
9784 with_gnu_ld=no
9785 fi
9786 ;;
9787 interix*)
9788 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9789 with_gnu_ld=yes
9790 ;;
9791 openbsd* | bitrig*)
9792 with_gnu_ld=no
9793 ;;
9794 esac
9795
9796 ld_shlibs=yes
9797
9798 # On some targets, GNU ld is compatible enough with the native linker
9799 # that we're better off using the native interface for both.
9800 lt_use_gnu_ld_interface=no
9801 if test yes = "$with_gnu_ld"; then
9802 case $host_os in
9803 aix*)
9804 # The AIX port of GNU ld has always aspired to compatibility
9805 # with the native linker. However, as the warning in the GNU ld
9806 # block says, versions before 2.19.5* couldn't really create working
9807 # shared libraries, regardless of the interface used.
9808 case `$LD -v 2>&1` in
9809 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9810 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9811 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9812 *)
9813 lt_use_gnu_ld_interface=yes
9814 ;;
9815 esac
9816 ;;
9817 *)
9818 lt_use_gnu_ld_interface=yes
9819 ;;
9820 esac
9821 fi
9822
9823 if test yes = "$lt_use_gnu_ld_interface"; then
9824 # If archive_cmds runs LD, not CC, wlarc should be empty
9825 wlarc='$wl'
9826
9827 # Set some defaults for GNU ld with shared library support. These
9828 # are reset later if shared libraries are not supported. Putting them
9829 # here allows them to be overridden if necessary.
9830 runpath_var=LD_RUN_PATH
9831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9832 export_dynamic_flag_spec='$wl--export-dynamic'
9833 # ancient GNU ld didn't support --whole-archive et. al.
9834 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9835 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9836 else
9837 whole_archive_flag_spec=
9838 fi
9839 supports_anon_versioning=no
9840 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9841 *GNU\ gold*) supports_anon_versioning=yes ;;
9842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9845 *\ 2.11.*) ;; # other 2.11 versions
9846 *) supports_anon_versioning=yes ;;
9847 esac
9848
9849 # See if GNU ld supports shared libraries.
9850 case $host_os in
9851 aix[3-9]*)
9852 # On AIX/PPC, the GNU linker is very broken
9853 if test ia64 != "$host_cpu"; then
9854 ld_shlibs=no
9855 cat <<_LT_EOF 1>&2
9856
9857 *** Warning: the GNU linker, at least up to release 2.19, is reported
9858 *** to be unable to reliably create shared libraries on AIX.
9859 *** Therefore, libtool is disabling shared libraries support. If you
9860 *** really care for shared libraries, you may want to install binutils
9861 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9862 *** You will then need to restart the configuration process.
9863
9864 _LT_EOF
9865 fi
9866 ;;
9867
9868 amigaos*)
9869 case $host_cpu in
9870 powerpc)
9871 # see comment about AmigaOS4 .so support
9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873 archive_expsym_cmds=''
9874 ;;
9875 m68k)
9876 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)'
9877 hardcode_libdir_flag_spec='-L$libdir'
9878 hardcode_minus_L=yes
9879 ;;
9880 esac
9881 ;;
9882
9883 beos*)
9884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885 allow_undefined_flag=unsupported
9886 # Joseph Beckenbach <[email protected]> says some releases of gcc
9887 # support --undefined. This deserves some investigation. FIXME
9888 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889 else
9890 ld_shlibs=no
9891 fi
9892 ;;
9893
9894 cygwin* | mingw* | pw32* | cegcc*)
9895 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9896 # as there is no search path for DLLs.
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 export_dynamic_flag_spec='$wl--export-all-symbols'
9899 allow_undefined_flag=unsupported
9900 always_export_symbols=no
9901 enable_shared_with_static_runtimes=yes
9902 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'
9903 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9904
9905 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9907 # If the export-symbols file already is a .def file, use it as
9908 # is; otherwise, prepend EXPORTS...
9909 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9910 cp $export_symbols $output_objdir/$soname.def;
9911 else
9912 echo EXPORTS > $output_objdir/$soname.def;
9913 cat $export_symbols >> $output_objdir/$soname.def;
9914 fi~
9915 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9916 else
9917 ld_shlibs=no
9918 fi
9919 ;;
9920
9921 haiku*)
9922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923 link_all_deplibs=yes
9924 ;;
9925
9926 os2*)
9927 hardcode_libdir_flag_spec='-L$libdir'
9928 hardcode_minus_L=yes
9929 allow_undefined_flag=unsupported
9930 shrext_cmds=.dll
9931 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9932 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9933 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9934 $ECHO EXPORTS >> $output_objdir/$libname.def~
9935 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9936 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9937 emximp -o $lib $output_objdir/$libname.def'
9938 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9939 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9940 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9941 $ECHO EXPORTS >> $output_objdir/$libname.def~
9942 prefix_cmds="$SED"~
9943 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9944 prefix_cmds="$prefix_cmds -e 1d";
9945 fi~
9946 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9947 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9948 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9949 emximp -o $lib $output_objdir/$libname.def'
9950 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9951 enable_shared_with_static_runtimes=yes
9952 file_list_spec='@'
9953 ;;
9954
9955 interix[3-9]*)
9956 hardcode_direct=no
9957 hardcode_shlibpath_var=no
9958 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9959 export_dynamic_flag_spec='$wl-E'
9960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9961 # Instead, shared libraries are loaded at an image base (0x10000000 by
9962 # default) and relocated if they conflict, which is a slow very memory
9963 # consuming and fragmenting process. To avoid this, we pick a random,
9964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9967 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'
9968 ;;
9969
9970 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9971 tmp_diet=no
9972 if test linux-dietlibc = "$host_os"; then
9973 case $cc_basename in
9974 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9975 esac
9976 fi
9977 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9978 && test no = "$tmp_diet"
9979 then
9980 tmp_addflag=' $pic_flag'
9981 tmp_sharedflag='-shared'
9982 case $cc_basename,$host_cpu in
9983 pgcc*) # Portland Group C compiler
9984 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'
9985 tmp_addflag=' $pic_flag'
9986 ;;
9987 pgf77* | pgf90* | pgf95* | pgfortran*)
9988 # Portland Group f77 and f90 compilers
9989 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'
9990 tmp_addflag=' $pic_flag -Mnomain' ;;
9991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9992 tmp_addflag=' -i_dynamic' ;;
9993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9994 tmp_addflag=' -i_dynamic -nofor_main' ;;
9995 ifc* | ifort*) # Intel Fortran compiler
9996 tmp_addflag=' -nofor_main' ;;
9997 lf95*) # Lahey Fortran 8.1
9998 whole_archive_flag_spec=
9999 tmp_sharedflag='--shared' ;;
10000 nagfor*) # NAGFOR 5.3
10001 tmp_sharedflag='-Wl,-shared' ;;
10002 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10003 tmp_sharedflag='-qmkshrobj'
10004 tmp_addflag= ;;
10005 nvcc*) # Cuda Compiler Driver 2.2
10006 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'
10007 compiler_needs_object=yes
10008 ;;
10009 esac
10010 case `$CC -V 2>&1 | $SED 5q` in
10011 *Sun\ C*) # Sun C 5.9
10012 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'
10013 compiler_needs_object=yes
10014 tmp_sharedflag='-G' ;;
10015 *Sun\ F*) # Sun Fortran 8.3
10016 tmp_sharedflag='-G' ;;
10017 esac
10018 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10019
10020 if test yes = "$supports_anon_versioning"; then
10021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10022 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023 echo "local: *; };" >> $output_objdir/$libname.ver~
10024 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10025 fi
10026
10027 case $cc_basename in
10028 tcc*)
10029 export_dynamic_flag_spec='-rdynamic'
10030 ;;
10031 xlf* | bgf* | bgxlf* | mpixlf*)
10032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10035 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10036 if test yes = "$supports_anon_versioning"; then
10037 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10038 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10039 echo "local: *; };" >> $output_objdir/$libname.ver~
10040 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10041 fi
10042 ;;
10043 esac
10044 else
10045 ld_shlibs=no
10046 fi
10047 ;;
10048
10049 netbsd*)
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10052 wlarc=
10053 else
10054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10056 fi
10057 ;;
10058
10059 solaris*)
10060 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10061 ld_shlibs=no
10062 cat <<_LT_EOF 1>&2
10063
10064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10065 *** create shared libraries on Solaris systems. Therefore, libtool
10066 *** is disabling shared libraries support. We urge you to upgrade GNU
10067 *** binutils to release 2.9.1 or newer. Another option is to modify
10068 *** your PATH or compiler configuration so that the native linker is
10069 *** used, and then restart.
10070
10071 _LT_EOF
10072 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10074 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10075 else
10076 ld_shlibs=no
10077 fi
10078 ;;
10079
10080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10081 case `$LD -v 2>&1` in
10082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10083 ld_shlibs=no
10084 cat <<_LT_EOF 1>&2
10085
10086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10087 *** reliably create shared libraries on SCO systems. Therefore, libtool
10088 *** is disabling shared libraries support. We urge you to upgrade GNU
10089 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10090 *** your PATH or compiler configuration so that the native linker is
10091 *** used, and then restart.
10092
10093 _LT_EOF
10094 ;;
10095 *)
10096 # For security reasons, it is highly recommended that you always
10097 # use absolute paths for naming shared libraries, and exclude the
10098 # DT_RUNPATH tag from executables and libraries. But doing so
10099 # requires that you compile everything twice, which is a pain.
10100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10104 else
10105 ld_shlibs=no
10106 fi
10107 ;;
10108 esac
10109 ;;
10110
10111 sunos4*)
10112 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10113 wlarc=
10114 hardcode_direct=yes
10115 hardcode_shlibpath_var=no
10116 ;;
10117
10118 *)
10119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10121 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10122 else
10123 ld_shlibs=no
10124 fi
10125 ;;
10126 esac
10127
10128 if test no = "$ld_shlibs"; then
10129 runpath_var=
10130 hardcode_libdir_flag_spec=
10131 export_dynamic_flag_spec=
10132 whole_archive_flag_spec=
10133 fi
10134 else
10135 # PORTME fill in a description of your system's linker (not GNU ld)
10136 case $host_os in
10137 aix3*)
10138 allow_undefined_flag=unsupported
10139 always_export_symbols=yes
10140 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'
10141 # Note: this linker hardcodes the directories in LIBPATH if there
10142 # are no directories specified by -L.
10143 hardcode_minus_L=yes
10144 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10145 # Neither direct hardcoding nor static linking is supported with a
10146 # broken collect2.
10147 hardcode_direct=unsupported
10148 fi
10149 ;;
10150
10151 aix[4-9]*)
10152 if test ia64 = "$host_cpu"; then
10153 # On IA64, the linker does run time linking by default, so we don't
10154 # have to do anything special.
10155 aix_use_runtimelinking=no
10156 exp_sym_flag='-Bexport'
10157 no_entry_flag=
10158 else
10159 # If we're using GNU nm, then we don't want the "-C" option.
10160 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10161 # Without the "-l" option, or with the "-B" option, AIX nm treats
10162 # weak defined symbols like other global defined symbols, whereas
10163 # GNU nm marks them as "W".
10164 # While the 'weak' keyword is ignored in the Export File, we need
10165 # it in the Import File for the 'aix-soname' feature, so we have
10166 # to replace the "-B" option with "-P" for AIX nm.
10167 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10168 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'
10169 else
10170 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 == "L") || (\$ 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'
10171 fi
10172 aix_use_runtimelinking=no
10173
10174 # Test if we are trying to use run time linking or normal
10175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10176 # have runtime linking enabled, and use it for executables.
10177 # For shared libraries, we enable/disable runtime linking
10178 # depending on the kind of the shared library created -
10179 # when "with_aix_soname,aix_use_runtimelinking" is:
10180 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10181 # "aix,yes" lib.so shared, rtl:yes, for executables
10182 # lib.a static archive
10183 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10184 # lib.a(lib.so.V) shared, rtl:no, for executables
10185 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10186 # lib.a(lib.so.V) shared, rtl:no
10187 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10188 # lib.a static archive
10189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10190 for ld_flag in $LDFLAGS; do
10191 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10192 aix_use_runtimelinking=yes
10193 break
10194 fi
10195 done
10196 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10197 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10198 # so we don't have lib.a shared libs to link our executables.
10199 # We have to force runtime linking in this case.
10200 aix_use_runtimelinking=yes
10201 LDFLAGS="$LDFLAGS -Wl,-brtl"
10202 fi
10203 ;;
10204 esac
10205
10206 exp_sym_flag='-bexport'
10207 no_entry_flag='-bnoentry'
10208 fi
10209
10210 # When large executables or shared objects are built, AIX ld can
10211 # have problems creating the table of contents. If linking a library
10212 # or program results in "error TOC overflow" add -mminimal-toc to
10213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10215
10216 archive_cmds=''
10217 hardcode_direct=yes
10218 hardcode_direct_absolute=yes
10219 hardcode_libdir_separator=':'
10220 link_all_deplibs=yes
10221 file_list_spec='$wl-f,'
10222 case $with_aix_soname,$aix_use_runtimelinking in
10223 aix,*) ;; # traditional, no import file
10224 svr4,* | *,yes) # use import file
10225 # The Import File defines what to hardcode.
10226 hardcode_direct=no
10227 hardcode_direct_absolute=no
10228 ;;
10229 esac
10230
10231 if test yes = "$GCC"; then
10232 case $host_os in aix4.[012]|aix4.[012].*)
10233 # We only want to do this on AIX 4.2 and lower, the check
10234 # below for broken collect2 doesn't work under 4.3+
10235 collect2name=`$CC -print-prog-name=collect2`
10236 if test -f "$collect2name" &&
10237 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10238 then
10239 # We have reworked collect2
10240 :
10241 else
10242 # We have old collect2
10243 hardcode_direct=unsupported
10244 # It fails to find uninstalled libraries when the uninstalled
10245 # path is not listed in the libpath. Setting hardcode_minus_L
10246 # to unsupported forces relinking
10247 hardcode_minus_L=yes
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_libdir_separator=
10250 fi
10251 ;;
10252 esac
10253 shared_flag='-shared'
10254 if test yes = "$aix_use_runtimelinking"; then
10255 shared_flag="$shared_flag "'$wl-G'
10256 fi
10257 # Need to ensure runtime linking is disabled for the traditional
10258 # shared library, or the linker may eventually find shared libraries
10259 # /with/ Import File - we do not want to mix them.
10260 shared_flag_aix='-shared'
10261 shared_flag_svr4='-shared $wl-G'
10262 else
10263 # not using gcc
10264 if test ia64 = "$host_cpu"; then
10265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10266 # chokes on -Wl,-G. The following line is correct:
10267 shared_flag='-G'
10268 else
10269 if test yes = "$aix_use_runtimelinking"; then
10270 shared_flag='$wl-G'
10271 else
10272 shared_flag='$wl-bM:SRE'
10273 fi
10274 shared_flag_aix='$wl-bM:SRE'
10275 shared_flag_svr4='$wl-G'
10276 fi
10277 fi
10278
10279 export_dynamic_flag_spec='$wl-bexpall'
10280 # It seems that -bexpall does not export symbols beginning with
10281 # underscore (_), so it is better to generate a list of symbols to export.
10282 always_export_symbols=yes
10283 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10284 # Warning - without using the other runtime loading flags (-brtl),
10285 # -berok will link without error, but may produce a broken library.
10286 allow_undefined_flag='-berok'
10287 # Determine the default libpath from the value encoded in an
10288 # empty executable.
10289 if test set = "${lt_cv_aix_libpath+set}"; then
10290 aix_libpath=$lt_cv_aix_libpath
10291 else
10292 if test ${lt_cv_aix_libpath_+y}
10293 then :
10294 printf %s "(cached) " >&6
10295 else $as_nop
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298
10299 int
10300 main (void)
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"
10308 then :
10309
10310 lt_aix_libpath_sed='
10311 /Import File Strings/,/^$/ {
10312 /^0/ {
10313 s/^0 *\([^ ]*\) *$/\1/
10314 p
10315 }
10316 }'
10317 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10318 # Check for a 64-bit object if we didn't find anything.
10319 if test -z "$lt_cv_aix_libpath_"; then
10320 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10321 fi
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10324 conftest$ac_exeext conftest.$ac_ext
10325 if test -z "$lt_cv_aix_libpath_"; then
10326 lt_cv_aix_libpath_=/usr/lib:/lib
10327 fi
10328
10329 fi
10330
10331 aix_libpath=$lt_cv_aix_libpath_
10332 fi
10333
10334 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10335 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
10336 else
10337 if test ia64 = "$host_cpu"; then
10338 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10339 allow_undefined_flag="-z nodefs"
10340 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"
10341 else
10342 # Determine the default libpath from the value encoded in an
10343 # empty executable.
10344 if test set = "${lt_cv_aix_libpath+set}"; then
10345 aix_libpath=$lt_cv_aix_libpath
10346 else
10347 if test ${lt_cv_aix_libpath_+y}
10348 then :
10349 printf %s "(cached) " >&6
10350 else $as_nop
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353
10354 int
10355 main (void)
10356 {
10357
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 if ac_fn_c_try_link "$LINENO"
10363 then :
10364
10365 lt_aix_libpath_sed='
10366 /Import File Strings/,/^$/ {
10367 /^0/ {
10368 s/^0 *\([^ ]*\) *$/\1/
10369 p
10370 }
10371 }'
10372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10373 # Check for a 64-bit object if we didn't find anything.
10374 if test -z "$lt_cv_aix_libpath_"; then
10375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10376 fi
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10379 conftest$ac_exeext conftest.$ac_ext
10380 if test -z "$lt_cv_aix_libpath_"; then
10381 lt_cv_aix_libpath_=/usr/lib:/lib
10382 fi
10383
10384 fi
10385
10386 aix_libpath=$lt_cv_aix_libpath_
10387 fi
10388
10389 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10390 # Warning - without using the other run time loading flags,
10391 # -berok will link without error, but may produce a broken library.
10392 no_undefined_flag=' $wl-bernotok'
10393 allow_undefined_flag=' $wl-berok'
10394 if test yes = "$with_gnu_ld"; then
10395 # We only use this code for GNU lds that support --whole-archive.
10396 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10397 else
10398 # Exported symbols can be pulled into shared objects from archives
10399 whole_archive_flag_spec='$convenience'
10400 fi
10401 archive_cmds_need_lc=yes
10402 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10403 # -brtl affects multiple linker settings, -berok does not and is overridden later
10404 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10405 if test svr4 != "$with_aix_soname"; then
10406 # This is similar to how AIX traditionally builds its shared libraries.
10407 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'
10408 fi
10409 if test aix != "$with_aix_soname"; then
10410 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'
10411 else
10412 # used by -dlpreopen to get the symbols
10413 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10414 fi
10415 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10416 fi
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 bsdi[45]*)
10436 export_dynamic_flag_spec=-rdynamic
10437 ;;
10438
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # When not using gcc, we currently assume that we are using
10441 # Microsoft Visual C++ or Intel C++ Compiler.
10442 # hardcode_libdir_flag_spec is actually meaningless, as there is
10443 # no search path for DLLs.
10444 case $cc_basename in
10445 cl* | icl*)
10446 # Native MSVC or ICC
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=yes
10450 file_list_spec='@'
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=.dll
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10457 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10458 cp "$export_symbols" "$output_objdir/$soname.def";
10459 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10460 else
10461 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10462 fi~
10463 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10464 linknames='
10465 # The linker will not automatically build a static lib if we build a DLL.
10466 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10467 enable_shared_with_static_runtimes=yes
10468 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10470 # Don't use ranlib
10471 old_postinstall_cmds='chmod 644 $oldlib'
10472 postlink_cmds='lt_outputfile="@OUTPUT@"~
10473 lt_tool_outputfile="@TOOL_OUTPUT@"~
10474 case $lt_outputfile in
10475 *.exe|*.EXE) ;;
10476 *)
10477 lt_outputfile=$lt_outputfile.exe
10478 lt_tool_outputfile=$lt_tool_outputfile.exe
10479 ;;
10480 esac~
10481 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10482 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10483 $RM "$lt_outputfile.manifest";
10484 fi'
10485 ;;
10486 *)
10487 # Assume MSVC and ICC wrapper
10488 hardcode_libdir_flag_spec=' '
10489 allow_undefined_flag=unsupported
10490 # Tell ltmain to make .lib files, not .a files.
10491 libext=lib
10492 # Tell ltmain to make .dll files, not .so files.
10493 shrext_cmds=.dll
10494 # FIXME: Setting linknames here is a bad hack.
10495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10496 # The linker will automatically build a .lib file if we build a DLL.
10497 old_archive_from_new_cmds='true'
10498 # FIXME: Should let the user specify the lib program.
10499 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10500 enable_shared_with_static_runtimes=yes
10501 ;;
10502 esac
10503 ;;
10504
10505 darwin* | rhapsody*)
10506
10507
10508 archive_cmds_need_lc=no
10509 hardcode_direct=no
10510 hardcode_automatic=yes
10511 hardcode_shlibpath_var=unsupported
10512 if test yes = "$lt_cv_ld_force_load"; then
10513 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\"`'
10514
10515 else
10516 whole_archive_flag_spec=''
10517 fi
10518 link_all_deplibs=yes
10519 allow_undefined_flag=$_lt_dar_allow_undefined
10520 case $cc_basename in
10521 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10522 *) _lt_dar_can_shared=$GCC ;;
10523 esac
10524 if test yes = "$_lt_dar_can_shared"; then
10525 output_verbose_link_cmd=func_echo_all
10526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10528 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"
10529 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"
10530
10531 else
10532 ld_shlibs=no
10533 fi
10534
10535 ;;
10536
10537 dgux*)
10538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539 hardcode_libdir_flag_spec='-L$libdir'
10540 hardcode_shlibpath_var=no
10541 ;;
10542
10543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10544 # support. Future versions do this automatically, but an explicit c++rt0.o
10545 # does not break anything, and helps significantly (at the cost of a little
10546 # extra space).
10547 freebsd2.2*)
10548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10555 freebsd2.*)
10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_direct=yes
10558 hardcode_minus_L=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10563 freebsd* | dragonfly* | midnightbsd*)
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 hardcode_direct=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 hpux9*)
10571 if test yes = "$GCC"; then
10572 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'
10573 else
10574 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'
10575 fi
10576 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10577 hardcode_libdir_separator=:
10578 hardcode_direct=yes
10579
10580 # hardcode_minus_L: Not really in the search PATH,
10581 # but as the default location of the library.
10582 hardcode_minus_L=yes
10583 export_dynamic_flag_spec='$wl-E'
10584 ;;
10585
10586 hpux10*)
10587 if test yes,no = "$GCC,$with_gnu_ld"; then
10588 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10589 else
10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10591 fi
10592 if test no = "$with_gnu_ld"; then
10593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_direct=yes
10596 hardcode_direct_absolute=yes
10597 export_dynamic_flag_spec='$wl-E'
10598 # hardcode_minus_L: Not really in the search PATH,
10599 # but as the default location of the library.
10600 hardcode_minus_L=yes
10601 fi
10602 ;;
10603
10604 hpux11*)
10605 if test yes,no = "$GCC,$with_gnu_ld"; then
10606 case $host_cpu in
10607 hppa*64*)
10608 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 ia64*)
10611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 *)
10614 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 esac
10617 else
10618 case $host_cpu in
10619 hppa*64*)
10620 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 ia64*)
10623 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10624 ;;
10625 *)
10626
10627 # Older versions of the 11.00 compiler do not understand -b yet
10628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10630 printf %s "checking if $CC understands -b... " >&6; }
10631 if test ${lt_cv_prog_compiler__b+y}
10632 then :
10633 printf %s "(cached) " >&6
10634 else $as_nop
10635 lt_cv_prog_compiler__b=no
10636 save_LDFLAGS=$LDFLAGS
10637 LDFLAGS="$LDFLAGS -b"
10638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10640 # The linker can only warn and ignore the option if not recognized
10641 # So say no if there are warnings
10642 if test -s conftest.err; then
10643 # Append any errors to the config.log.
10644 cat conftest.err 1>&5
10645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10647 if diff conftest.exp conftest.er2 >/dev/null; then
10648 lt_cv_prog_compiler__b=yes
10649 fi
10650 else
10651 lt_cv_prog_compiler__b=yes
10652 fi
10653 fi
10654 $RM -r conftest*
10655 LDFLAGS=$save_LDFLAGS
10656
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10659 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10660
10661 if test yes = "$lt_cv_prog_compiler__b"; then
10662 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10663 else
10664 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10665 fi
10666
10667 ;;
10668 esac
10669 fi
10670 if test no = "$with_gnu_ld"; then
10671 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10672 hardcode_libdir_separator=:
10673
10674 case $host_cpu in
10675 hppa*64*|ia64*)
10676 hardcode_direct=no
10677 hardcode_shlibpath_var=no
10678 ;;
10679 *)
10680 hardcode_direct=yes
10681 hardcode_direct_absolute=yes
10682 export_dynamic_flag_spec='$wl-E'
10683
10684 # hardcode_minus_L: Not really in the search PATH,
10685 # but as the default location of the library.
10686 hardcode_minus_L=yes
10687 ;;
10688 esac
10689 fi
10690 ;;
10691
10692 irix5* | irix6* | nonstopux*)
10693 if test yes = "$GCC"; then
10694 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'
10695 # Try to use the -exported_symbol ld option, if it does not
10696 # work, assume that -exports_file does not work either and
10697 # implicitly export all symbols.
10698 # This should be the same for all languages, so no per-tag cache variable.
10699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10700 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10701 if test ${lt_cv_irix_exported_symbol+y}
10702 then :
10703 printf %s "(cached) " >&6
10704 else $as_nop
10705 save_LDFLAGS=$LDFLAGS
10706 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 int foo (void) { return 0; }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"
10712 then :
10713 lt_cv_irix_exported_symbol=yes
10714 else $as_nop
10715 lt_cv_irix_exported_symbol=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LDFLAGS=$save_LDFLAGS
10720 fi
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10722 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10723 if test yes = "$lt_cv_irix_exported_symbol"; then
10724 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'
10725 fi
10726 else
10727 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'
10728 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'
10729 fi
10730 archive_cmds_need_lc='no'
10731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732 hardcode_libdir_separator=:
10733 inherit_rpath=yes
10734 link_all_deplibs=yes
10735 ;;
10736
10737 linux*)
10738 case $cc_basename in
10739 tcc*)
10740 # Fabrice Bellard et al's Tiny C Compiler
10741 ld_shlibs=yes
10742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10743 ;;
10744 esac
10745 ;;
10746
10747 netbsd*)
10748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10750 else
10751 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10752 fi
10753 hardcode_libdir_flag_spec='-R$libdir'
10754 hardcode_direct=yes
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 newsos6)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_direct=yes
10761 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10762 hardcode_libdir_separator=:
10763 hardcode_shlibpath_var=no
10764 ;;
10765
10766 *nto* | *qnx*)
10767 ;;
10768
10769 openbsd* | bitrig*)
10770 if test -f /usr/libexec/ld.so; then
10771 hardcode_direct=yes
10772 hardcode_shlibpath_var=no
10773 hardcode_direct_absolute=yes
10774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10777 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10778 export_dynamic_flag_spec='$wl-E'
10779 else
10780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10781 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10782 fi
10783 else
10784 ld_shlibs=no
10785 fi
10786 ;;
10787
10788 os2*)
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_minus_L=yes
10791 allow_undefined_flag=unsupported
10792 shrext_cmds=.dll
10793 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10796 $ECHO EXPORTS >> $output_objdir/$libname.def~
10797 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10799 emximp -o $lib $output_objdir/$libname.def'
10800 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10803 $ECHO EXPORTS >> $output_objdir/$libname.def~
10804 prefix_cmds="$SED"~
10805 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10806 prefix_cmds="$prefix_cmds -e 1d";
10807 fi~
10808 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10809 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10810 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10811 emximp -o $lib $output_objdir/$libname.def'
10812 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10813 enable_shared_with_static_runtimes=yes
10814 file_list_spec='@'
10815 ;;
10816
10817 osf3*)
10818 if test yes = "$GCC"; then
10819 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10820 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'
10821 else
10822 allow_undefined_flag=' -expect_unresolved \*'
10823 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'
10824 fi
10825 archive_cmds_need_lc='no'
10826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10827 hardcode_libdir_separator=:
10828 ;;
10829
10830 osf4* | osf5*) # as osf3* with the addition of -msym flag
10831 if test yes = "$GCC"; then
10832 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10833 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'
10834 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10835 else
10836 allow_undefined_flag=' -expect_unresolved \*'
10837 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'
10838 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~
10839 $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'
10840
10841 # Both c and cxx compiler support -rpath directly
10842 hardcode_libdir_flag_spec='-rpath $libdir'
10843 fi
10844 archive_cmds_need_lc='no'
10845 hardcode_libdir_separator=:
10846 ;;
10847
10848 solaris*)
10849 no_undefined_flag=' -z defs'
10850 if test yes = "$GCC"; then
10851 wlarc='$wl'
10852 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $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'
10855 else
10856 case `$CC -V 2>&1` in
10857 *"Compilers 5.0"*)
10858 wlarc=''
10859 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10861 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10862 ;;
10863 *)
10864 wlarc='$wl'
10865 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10868 ;;
10869 esac
10870 fi
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_shlibpath_var=no
10873 case $host_os in
10874 solaris2.[0-5] | solaris2.[0-5].*) ;;
10875 *)
10876 # The compiler driver will combine and reorder linker options,
10877 # but understands '-z linker_flag'. GCC discards it without '$wl',
10878 # but is careful enough not to reorder.
10879 # Supported since Solaris 2.6 (maybe 2.5.1?)
10880 if test yes = "$GCC"; then
10881 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10882 else
10883 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10884 fi
10885 ;;
10886 esac
10887 link_all_deplibs=yes
10888 ;;
10889
10890 sunos4*)
10891 if test sequent = "$host_vendor"; then
10892 # Use $CC to link under sequent, because it throws in some extra .o
10893 # files that make .init and .fini sections work.
10894 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10895 else
10896 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10897 fi
10898 hardcode_libdir_flag_spec='-L$libdir'
10899 hardcode_direct=yes
10900 hardcode_minus_L=yes
10901 hardcode_shlibpath_var=no
10902 ;;
10903
10904 sysv4)
10905 case $host_vendor in
10906 sni)
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_direct=yes # is this really true???
10909 ;;
10910 siemens)
10911 ## LD is ld it makes a PLAMLIB
10912 ## CC just makes a GrossModule.
10913 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10914 reload_cmds='$CC -r -o $output$reload_objs'
10915 hardcode_direct=no
10916 ;;
10917 motorola)
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10920 ;;
10921 esac
10922 runpath_var='LD_RUN_PATH'
10923 hardcode_shlibpath_var=no
10924 ;;
10925
10926 sysv4.3*)
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 export_dynamic_flag_spec='-Bexport'
10930 ;;
10931
10932 sysv4*MP*)
10933 if test -d /usr/nec; then
10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_shlibpath_var=no
10936 runpath_var=LD_RUN_PATH
10937 hardcode_runpath_var=yes
10938 ld_shlibs=yes
10939 fi
10940 ;;
10941
10942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10943 no_undefined_flag='$wl-z,text'
10944 archive_cmds_need_lc=no
10945 hardcode_shlibpath_var=no
10946 runpath_var='LD_RUN_PATH'
10947
10948 if test yes = "$GCC"; then
10949 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 fi
10955 ;;
10956
10957 sysv5* | sco3.2v5* | sco5v6*)
10958 # Note: We CANNOT use -z defs as we might desire, because we do not
10959 # link with -lc, and that would cause any symbols used from libc to
10960 # always be unresolved, which means just about no library would
10961 # ever link correctly. If we're not using GNU ld we use -z text
10962 # though, which does catch some bad symbols but isn't as heavy-handed
10963 # as -z defs.
10964 no_undefined_flag='$wl-z,text'
10965 allow_undefined_flag='$wl-z,nodefs'
10966 archive_cmds_need_lc=no
10967 hardcode_shlibpath_var=no
10968 hardcode_libdir_flag_spec='$wl-R,$libdir'
10969 hardcode_libdir_separator=':'
10970 link_all_deplibs=yes
10971 export_dynamic_flag_spec='$wl-Bexport'
10972 runpath_var='LD_RUN_PATH'
10973
10974 if test yes = "$GCC"; then
10975 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 else
10978 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 fi
10981 ;;
10982
10983 uts4*)
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_libdir_flag_spec='-L$libdir'
10986 hardcode_shlibpath_var=no
10987 ;;
10988
10989 *)
10990 ld_shlibs=no
10991 ;;
10992 esac
10993
10994 if test sni = "$host_vendor"; then
10995 case $host in
10996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10997 export_dynamic_flag_spec='$wl-Blargedynsym'
10998 ;;
10999 esac
11000 fi
11001 fi
11002
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11004 printf "%s\n" "$ld_shlibs" >&6; }
11005 test no = "$ld_shlibs" && can_build_shared=no
11006
11007 with_gnu_ld=$with_gnu_ld
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023 #
11024 # Do we need to explicitly link libc?
11025 #
11026 case "x$archive_cmds_need_lc" in
11027 x|xyes)
11028 # Assume -lc should be added
11029 archive_cmds_need_lc=yes
11030
11031 if test yes,yes = "$GCC,$enable_shared"; then
11032 case $archive_cmds in
11033 *'~'*)
11034 # FIXME: we may have to deal with multi-command sequences.
11035 ;;
11036 '$CC '*)
11037 # Test whether the compiler implicitly links with -lc since on some
11038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11039 # to ld, don't add -lc before -lgcc.
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11041 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11042 if test ${lt_cv_archive_cmds_need_lc+y}
11043 then :
11044 printf %s "(cached) " >&6
11045 else $as_nop
11046 $RM conftest*
11047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11048
11049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11050 (eval $ac_compile) 2>&5
11051 ac_status=$?
11052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11053 test $ac_status = 0; } 2>conftest.err; then
11054 soname=conftest
11055 lib=conftest
11056 libobjs=conftest.$ac_objext
11057 deplibs=
11058 wl=$lt_prog_compiler_wl
11059 pic_flag=$lt_prog_compiler_pic
11060 compiler_flags=-v
11061 linker_flags=-v
11062 verstring=
11063 output_objdir=.
11064 libname=conftest
11065 lt_save_allow_undefined_flag=$allow_undefined_flag
11066 allow_undefined_flag=
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11068 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11069 ac_status=$?
11070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; }
11072 then
11073 lt_cv_archive_cmds_need_lc=no
11074 else
11075 lt_cv_archive_cmds_need_lc=yes
11076 fi
11077 allow_undefined_flag=$lt_save_allow_undefined_flag
11078 else
11079 cat conftest.err 1>&5
11080 fi
11081 $RM conftest*
11082
11083 fi
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11085 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11086 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11087 ;;
11088 esac
11089 fi
11090 ;;
11091 esac
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
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11245 printf %s "checking dynamic linker characteristics... " >&6; }
11246
11247 if test yes = "$GCC"; then
11248 case $host_os in
11249 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11250 *) lt_awk_arg='/^libraries:/' ;;
11251 esac
11252 case $host_os in
11253 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11254 *) lt_sed_strip_eq='s|=/|/|g' ;;
11255 esac
11256 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11257 case $lt_search_path_spec in
11258 *\;*)
11259 # if the path contains ";" then we assume it to be the separator
11260 # otherwise default to the standard path separator (i.e. ":") - it is
11261 # assumed that no part of a normal pathname contains ";" but that should
11262 # okay in the real world where ";" in dirpaths is itself problematic.
11263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11264 ;;
11265 *)
11266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11267 ;;
11268 esac
11269 # Ok, now we have the path, separated by spaces, we can step through it
11270 # and add multilib dir if necessary...
11271 lt_tmp_lt_search_path_spec=
11272 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273 # ...but if some path component already ends with the multilib dir we assume
11274 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11275 case "$lt_multi_os_dir; $lt_search_path_spec " in
11276 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11277 lt_multi_os_dir=
11278 ;;
11279 esac
11280 for lt_sys_path in $lt_search_path_spec; do
11281 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11283 elif test -n "$lt_multi_os_dir"; then
11284 test -d "$lt_sys_path" && \
11285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11286 fi
11287 done
11288 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11289 BEGIN {RS = " "; FS = "/|\n";} {
11290 lt_foo = "";
11291 lt_count = 0;
11292 for (lt_i = NF; lt_i > 0; lt_i--) {
11293 if ($lt_i != "" && $lt_i != ".") {
11294 if ($lt_i == "..") {
11295 lt_count++;
11296 } else {
11297 if (lt_count == 0) {
11298 lt_foo = "/" $lt_i lt_foo;
11299 } else {
11300 lt_count--;
11301 }
11302 }
11303 }
11304 }
11305 if (lt_foo != "") { lt_freq[lt_foo]++; }
11306 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11307 }'`
11308 # AWK program above erroneously prepends '/' to C:/dos/paths
11309 # for these hosts.
11310 case $host_os in
11311 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11312 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11313 esac
11314 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11315 else
11316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11317 fi
11318 library_names_spec=
11319 libname_spec='lib$name'
11320 soname_spec=
11321 shrext_cmds=.so
11322 postinstall_cmds=
11323 postuninstall_cmds=
11324 finish_cmds=
11325 finish_eval=
11326 shlibpath_var=
11327 shlibpath_overrides_runpath=unknown
11328 version_type=none
11329 dynamic_linker="$host_os ld.so"
11330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11331 need_lib_prefix=unknown
11332 hardcode_into_libs=no
11333
11334 # when you set need_version to no, make sure it does not cause -set_version
11335 # flags to be left without arguments
11336 need_version=unknown
11337
11338
11339
11340 case $host_os in
11341 aix3*)
11342 version_type=linux # correct to gnu/linux during the next big refactor
11343 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11344 shlibpath_var=LIBPATH
11345
11346 # AIX 3 has no versioning support, so we append a major version to the name.
11347 soname_spec='$libname$release$shared_ext$major'
11348 ;;
11349
11350 aix[4-9]*)
11351 version_type=linux # correct to gnu/linux during the next big refactor
11352 need_lib_prefix=no
11353 need_version=no
11354 hardcode_into_libs=yes
11355 if test ia64 = "$host_cpu"; then
11356 # AIX 5 supports IA64
11357 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 else
11360 # With GCC up to 2.95.x, collect2 would create an import file
11361 # for dependence libraries. The import file would start with
11362 # the line '#! .'. This would cause the generated library to
11363 # depend on '.', always an invalid library. This was fixed in
11364 # development snapshots of GCC prior to 3.0.
11365 case $host_os in
11366 aix4 | aix4.[01] | aix4.[01].*)
11367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11368 echo ' yes '
11369 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11370 :
11371 else
11372 can_build_shared=no
11373 fi
11374 ;;
11375 esac
11376 # Using Import Files as archive members, it is possible to support
11377 # filename-based versioning of shared library archives on AIX. While
11378 # this would work for both with and without runtime linking, it will
11379 # prevent static linking of such archives. So we do filename-based
11380 # shared library versioning with .so extension only, which is used
11381 # when both runtime linking and shared linking is enabled.
11382 # Unfortunately, runtime linking may impact performance, so we do
11383 # not want this to be the default eventually. Also, we use the
11384 # versioned .so libs for executables only if there is the -brtl
11385 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11386 # To allow for filename-based versioning support, we need to create
11387 # libNAME.so.V as an archive file, containing:
11388 # *) an Import File, referring to the versioned filename of the
11389 # archive as well as the shared archive member, telling the
11390 # bitwidth (32 or 64) of that shared object, and providing the
11391 # list of exported symbols of that shared object, eventually
11392 # decorated with the 'weak' keyword
11393 # *) the shared object with the F_LOADONLY flag set, to really avoid
11394 # it being seen by the linker.
11395 # At run time we better use the real file rather than another symlink,
11396 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11397
11398 case $with_aix_soname,$aix_use_runtimelinking in
11399 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11400 # soname into executable. Probably we can add versioning support to
11401 # collect2, so additional links can be useful in future.
11402 aix,yes) # traditional libtool
11403 dynamic_linker='AIX unversionable lib.so'
11404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11405 # instead of lib<name>.a to let people know that these are not
11406 # typical AIX shared libraries.
11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408 ;;
11409 aix,no) # traditional AIX only
11410 dynamic_linker='AIX lib.a(lib.so.V)'
11411 # We preserve .a as extension for shared libraries through AIX4.2
11412 # and later when we are not doing run time linking.
11413 library_names_spec='$libname$release.a $libname.a'
11414 soname_spec='$libname$release$shared_ext$major'
11415 ;;
11416 svr4,*) # full svr4 only
11417 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11418 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11419 # We do not specify a path in Import Files, so LIBPATH fires.
11420 shlibpath_overrides_runpath=yes
11421 ;;
11422 *,yes) # both, prefer svr4
11423 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11424 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11425 # unpreferred sharedlib libNAME.a needs extra handling
11426 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"'
11427 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"'
11428 # We do not specify a path in Import Files, so LIBPATH fires.
11429 shlibpath_overrides_runpath=yes
11430 ;;
11431 *,no) # both, prefer aix
11432 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11433 library_names_spec='$libname$release.a $libname.a'
11434 soname_spec='$libname$release$shared_ext$major'
11435 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11436 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)'
11437 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"'
11438 ;;
11439 esac
11440 shlibpath_var=LIBPATH
11441 fi
11442 ;;
11443
11444 amigaos*)
11445 case $host_cpu in
11446 powerpc)
11447 # Since July 2007 AmigaOS4 officially supports .so libraries.
11448 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11450 ;;
11451 m68k)
11452 library_names_spec='$libname.ixlibrary $libname.a'
11453 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11454 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'
11455 ;;
11456 esac
11457 ;;
11458
11459 beos*)
11460 library_names_spec='$libname$shared_ext'
11461 dynamic_linker="$host_os ld.so"
11462 shlibpath_var=LIBRARY_PATH
11463 ;;
11464
11465 bsdi[45]*)
11466 version_type=linux # correct to gnu/linux during the next big refactor
11467 need_version=no
11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469 soname_spec='$libname$release$shared_ext$major'
11470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11474 # the default ld.so.conf also contains /usr/contrib/lib and
11475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11476 # libtool to hard-code these into programs
11477 ;;
11478
11479 cygwin* | mingw* | pw32* | cegcc*)
11480 version_type=windows
11481 shrext_cmds=.dll
11482 need_version=no
11483 need_lib_prefix=no
11484
11485 case $GCC,$cc_basename in
11486 yes,*)
11487 # gcc
11488 library_names_spec='$libname.dll.a'
11489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11490 postinstall_cmds='base_file=`basename \$file`~
11491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11492 dldir=$destdir/`dirname \$dlpath`~
11493 test -d \$dldir || mkdir -p \$dldir~
11494 $install_prog $dir/$dlname \$dldir/$dlname~
11495 chmod a+x \$dldir/$dlname~
11496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11498 fi'
11499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11500 dlpath=$dir/\$dldll~
11501 $RM \$dlpath'
11502 shlibpath_overrides_runpath=yes
11503
11504 case $host_os in
11505 cygwin*)
11506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11507 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11508
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11510 ;;
11511 mingw* | cegcc*)
11512 # MinGW DLLs use traditional 'lib' prefix
11513 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11514 ;;
11515 pw32*)
11516 # pw32 DLLs use 'pw' prefix rather than 'lib'
11517 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11518 ;;
11519 esac
11520 dynamic_linker='Win32 ld.exe'
11521 ;;
11522
11523 *,cl* | *,icl*)
11524 # Native MSVC or ICC
11525 libname_spec='$name'
11526 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11527 library_names_spec='$libname.dll.lib'
11528
11529 case $build_os in
11530 mingw*)
11531 sys_lib_search_path_spec=
11532 lt_save_ifs=$IFS
11533 IFS=';'
11534 for lt_path in $LIB
11535 do
11536 IFS=$lt_save_ifs
11537 # Let DOS variable expansion print the short 8.3 style file name.
11538 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11539 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11540 done
11541 IFS=$lt_save_ifs
11542 # Convert to MSYS style.
11543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11544 ;;
11545 cygwin*)
11546 # Convert to unix form, then to dos form, then back to unix form
11547 # but this time dos style (no spaces!) so that the unix form looks
11548 # like /cygdrive/c/PROGRA~1:/cygdr...
11549 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11550 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11551 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11552 ;;
11553 *)
11554 sys_lib_search_path_spec=$LIB
11555 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11556 # It is most probably a Windows format PATH.
11557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11558 else
11559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11560 fi
11561 # FIXME: find the short name or the path components, as spaces are
11562 # common. (e.g. "Program Files" -> "PROGRA~1")
11563 ;;
11564 esac
11565
11566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11567 postinstall_cmds='base_file=`basename \$file`~
11568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11569 dldir=$destdir/`dirname \$dlpath`~
11570 test -d \$dldir || mkdir -p \$dldir~
11571 $install_prog $dir/$dlname \$dldir/$dlname'
11572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11573 dlpath=$dir/\$dldll~
11574 $RM \$dlpath'
11575 shlibpath_overrides_runpath=yes
11576 dynamic_linker='Win32 link.exe'
11577 ;;
11578
11579 *)
11580 # Assume MSVC and ICC wrapper
11581 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11582 dynamic_linker='Win32 ld.exe'
11583 ;;
11584 esac
11585 # FIXME: first we should search . and the directory the executable is in
11586 shlibpath_var=PATH
11587 ;;
11588
11589 darwin* | rhapsody*)
11590 dynamic_linker="$host_os dyld"
11591 version_type=darwin
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11595 soname_spec='$libname$release$major$shared_ext'
11596 shlibpath_overrides_runpath=yes
11597 shlibpath_var=DYLD_LIBRARY_PATH
11598 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11599
11600 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11602 ;;
11603
11604 dgux*)
11605 version_type=linux # correct to gnu/linux during the next big refactor
11606 need_lib_prefix=no
11607 need_version=no
11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11609 soname_spec='$libname$release$shared_ext$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 ;;
11612
11613 freebsd* | dragonfly* | midnightbsd*)
11614 # DragonFly does not have aout. When/if they implement a new
11615 # versioning mechanism, adjust this.
11616 if test -x /usr/bin/objformat; then
11617 objformat=`/usr/bin/objformat`
11618 else
11619 case $host_os in
11620 freebsd[23].*) objformat=aout ;;
11621 *) objformat=elf ;;
11622 esac
11623 fi
11624 version_type=freebsd-$objformat
11625 case $version_type in
11626 freebsd-elf*)
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 need_version=no
11630 need_lib_prefix=no
11631 ;;
11632 freebsd-*)
11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11634 need_version=yes
11635 ;;
11636 esac
11637 shlibpath_var=LD_LIBRARY_PATH
11638 case $host_os in
11639 freebsd2.*)
11640 shlibpath_overrides_runpath=yes
11641 ;;
11642 freebsd3.[01]* | freebsdelf3.[01]*)
11643 shlibpath_overrides_runpath=yes
11644 hardcode_into_libs=yes
11645 ;;
11646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 ;;
11651 *) # from 4.6 on, and DragonFly
11652 shlibpath_overrides_runpath=yes
11653 hardcode_into_libs=yes
11654 ;;
11655 esac
11656 ;;
11657
11658 haiku*)
11659 version_type=linux # correct to gnu/linux during the next big refactor
11660 need_lib_prefix=no
11661 need_version=no
11662 dynamic_linker="$host_os runtime_loader"
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 soname_spec='$libname$release$shared_ext$major'
11665 shlibpath_var=LIBRARY_PATH
11666 shlibpath_overrides_runpath=no
11667 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11668 hardcode_into_libs=yes
11669 ;;
11670
11671 hpux9* | hpux10* | hpux11*)
11672 # Give a soname corresponding to the major version so that dld.sl refuses to
11673 # link against other versions.
11674 version_type=sunos
11675 need_lib_prefix=no
11676 need_version=no
11677 case $host_cpu in
11678 ia64*)
11679 shrext_cmds='.so'
11680 hardcode_into_libs=yes
11681 dynamic_linker="$host_os dld.so"
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685 soname_spec='$libname$release$shared_ext$major'
11686 if test 32 = "$HPUX_IA64_MODE"; then
11687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11688 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11689 else
11690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11691 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11692 fi
11693 ;;
11694 hppa*64*)
11695 shrext_cmds='.sl'
11696 hardcode_into_libs=yes
11697 dynamic_linker="$host_os dld.sl"
11698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11701 soname_spec='$libname$release$shared_ext$major'
11702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11704 ;;
11705 *)
11706 shrext_cmds='.sl'
11707 dynamic_linker="$host_os dld.sl"
11708 shlibpath_var=SHLIB_PATH
11709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711 soname_spec='$libname$release$shared_ext$major'
11712 ;;
11713 esac
11714 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11715 postinstall_cmds='chmod 555 $lib'
11716 # or fails outright, so override atomically:
11717 install_override_mode=555
11718 ;;
11719
11720 interix[3-9]*)
11721 version_type=linux # correct to gnu/linux during the next big refactor
11722 need_lib_prefix=no
11723 need_version=no
11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 soname_spec='$libname$release$shared_ext$major'
11726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11730 ;;
11731
11732 irix5* | irix6* | nonstopux*)
11733 case $host_os in
11734 nonstopux*) version_type=nonstopux ;;
11735 *)
11736 if test yes = "$lt_cv_prog_gnu_ld"; then
11737 version_type=linux # correct to gnu/linux during the next big refactor
11738 else
11739 version_type=irix
11740 fi ;;
11741 esac
11742 need_lib_prefix=no
11743 need_version=no
11744 soname_spec='$libname$release$shared_ext$major'
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11746 case $host_os in
11747 irix5* | nonstopux*)
11748 libsuff= shlibsuff=
11749 ;;
11750 *)
11751 case $LD in # libtool.m4 will add one of these switches to LD
11752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11753 libsuff= shlibsuff= libmagic=32-bit;;
11754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11755 libsuff=32 shlibsuff=N32 libmagic=N32;;
11756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11758 *) libsuff= shlibsuff= libmagic=never-match;;
11759 esac
11760 ;;
11761 esac
11762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11763 shlibpath_overrides_runpath=no
11764 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11765 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11766 hardcode_into_libs=yes
11767 ;;
11768
11769 # No shared lib support for Linux oldld, aout, or coff.
11770 linux*oldld* | linux*aout* | linux*coff*)
11771 dynamic_linker=no
11772 ;;
11773
11774 linux*android*)
11775 version_type=none # Android doesn't support versioned libraries.
11776 need_lib_prefix=no
11777 need_version=no
11778 library_names_spec='$libname$release$shared_ext'
11779 soname_spec='$libname$release$shared_ext'
11780 finish_cmds=
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=yes
11783
11784 # This implies no fast_install, which is unacceptable.
11785 # Some rework will be needed to allow for fast_install
11786 # before this can be enabled.
11787 hardcode_into_libs=yes
11788
11789 dynamic_linker='Android linker'
11790 # Don't embed -rpath directories since the linker doesn't support them.
11791 hardcode_libdir_flag_spec='-L$libdir'
11792 ;;
11793
11794 # This must be glibc/ELF.
11795 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11796 version_type=linux # correct to gnu/linux during the next big refactor
11797 need_lib_prefix=no
11798 need_version=no
11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800 soname_spec='$libname$release$shared_ext$major'
11801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804
11805 # Some binutils ld are patched to set DT_RUNPATH
11806 if test ${lt_cv_shlibpath_overrides_runpath+y}
11807 then :
11808 printf %s "(cached) " >&6
11809 else $as_nop
11810 lt_cv_shlibpath_overrides_runpath=no
11811 save_LDFLAGS=$LDFLAGS
11812 save_libdir=$libdir
11813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817
11818 int
11819 main (void)
11820 {
11821
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"
11827 then :
11828 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11829 then :
11830 lt_cv_shlibpath_overrides_runpath=yes
11831 fi
11832 fi
11833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11834 conftest$ac_exeext conftest.$ac_ext
11835 LDFLAGS=$save_LDFLAGS
11836 libdir=$save_libdir
11837
11838 fi
11839
11840 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11841
11842 # This implies no fast_install, which is unacceptable.
11843 # Some rework will be needed to allow for fast_install
11844 # before this can be enabled.
11845 hardcode_into_libs=yes
11846
11847 # Add ABI-specific directories to the system library path.
11848 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11849
11850 # Ideally, we could use ldconfig to report *all* directores which are
11851 # searched for libraries, however this is still not possible. Aside from not
11852 # being certain /sbin/ldconfig is available, command
11853 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11854 # even though it is searched at run-time. Try to do the best guess by
11855 # appending ld.so.conf contents (and includes) to the search path.
11856 if test -f /etc/ld.so.conf; then
11857 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' ' '`
11858 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11859 fi
11860
11861 # We used to test for /lib/ld.so.1 and disable shared libraries on
11862 # powerpc, because MkLinux only supported shared libraries with the
11863 # GNU dynamic linker. Since this was broken with cross compilers,
11864 # most powerpc-linux boxes support dynamic linking these days and
11865 # people can always --disable-shared, the test was removed, and we
11866 # assume the GNU/Linux dynamic linker is in use.
11867 dynamic_linker='GNU/Linux ld.so'
11868 ;;
11869
11870 netbsd*)
11871 version_type=sunos
11872 need_lib_prefix=no
11873 need_version=no
11874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11877 dynamic_linker='NetBSD (a.out) ld.so'
11878 else
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 dynamic_linker='NetBSD ld.elf_so'
11882 fi
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 hardcode_into_libs=yes
11886 ;;
11887
11888 newsos6)
11889 version_type=linux # correct to gnu/linux during the next big refactor
11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 ;;
11894
11895 *nto* | *qnx*)
11896 version_type=qnx
11897 need_lib_prefix=no
11898 need_version=no
11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11900 soname_spec='$libname$release$shared_ext$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=no
11903 hardcode_into_libs=yes
11904 dynamic_linker='ldqnx.so'
11905 ;;
11906
11907 openbsd* | bitrig*)
11908 version_type=sunos
11909 sys_lib_dlsearch_path_spec=/usr/lib
11910 need_lib_prefix=no
11911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11912 need_version=no
11913 else
11914 need_version=yes
11915 fi
11916 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes
11920 ;;
11921
11922 os2*)
11923 libname_spec='$name'
11924 version_type=windows
11925 shrext_cmds=.dll
11926 need_version=no
11927 need_lib_prefix=no
11928 # OS/2 can only load a DLL with a base name of 8 characters or less.
11929 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11930 v=$($ECHO $release$versuffix | tr -d .-);
11931 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11932 $ECHO $n$v`$shared_ext'
11933 library_names_spec='${libname}_dll.$libext'
11934 dynamic_linker='OS/2 ld.exe'
11935 shlibpath_var=BEGINLIBPATH
11936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11938 postinstall_cmds='base_file=`basename \$file`~
11939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11940 dldir=$destdir/`dirname \$dlpath`~
11941 test -d \$dldir || mkdir -p \$dldir~
11942 $install_prog $dir/$dlname \$dldir/$dlname~
11943 chmod a+x \$dldir/$dlname~
11944 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11945 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11946 fi'
11947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11948 dlpath=$dir/\$dldll~
11949 $RM \$dlpath'
11950 ;;
11951
11952 osf3* | osf4* | osf5*)
11953 version_type=osf
11954 need_lib_prefix=no
11955 need_version=no
11956 soname_spec='$libname$release$shared_ext$major'
11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11961 ;;
11962
11963 rdos*)
11964 dynamic_linker=no
11965 ;;
11966
11967 solaris*)
11968 version_type=linux # correct to gnu/linux during the next big refactor
11969 need_lib_prefix=no
11970 need_version=no
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 shlibpath_overrides_runpath=yes
11975 hardcode_into_libs=yes
11976 # ldd complains unless libraries are executable
11977 postinstall_cmds='chmod +x $lib'
11978 ;;
11979
11980 sunos4*)
11981 version_type=sunos
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes
11986 if test yes = "$with_gnu_ld"; then
11987 need_lib_prefix=no
11988 fi
11989 need_version=yes
11990 ;;
11991
11992 sysv4 | sysv4.3*)
11993 version_type=linux # correct to gnu/linux during the next big refactor
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11995 soname_spec='$libname$release$shared_ext$major'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 case $host_vendor in
11998 sni)
11999 shlibpath_overrides_runpath=no
12000 need_lib_prefix=no
12001 runpath_var=LD_RUN_PATH
12002 ;;
12003 siemens)
12004 need_lib_prefix=no
12005 ;;
12006 motorola)
12007 need_lib_prefix=no
12008 need_version=no
12009 shlibpath_overrides_runpath=no
12010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12011 ;;
12012 esac
12013 ;;
12014
12015 sysv4*MP*)
12016 if test -d /usr/nec; then
12017 version_type=linux # correct to gnu/linux during the next big refactor
12018 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12019 soname_spec='$libname$shared_ext.$major'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 fi
12022 ;;
12023
12024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12025 version_type=sco
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12029 soname_spec='$libname$release$shared_ext$major'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 shlibpath_overrides_runpath=yes
12032 hardcode_into_libs=yes
12033 if test yes = "$with_gnu_ld"; then
12034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12035 else
12036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12037 case $host_os in
12038 sco3.2v5*)
12039 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12040 ;;
12041 esac
12042 fi
12043 sys_lib_dlsearch_path_spec='/usr/lib'
12044 ;;
12045
12046 tpf*)
12047 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12048 version_type=linux # correct to gnu/linux during the next big refactor
12049 need_lib_prefix=no
12050 need_version=no
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=no
12054 hardcode_into_libs=yes
12055 ;;
12056
12057 uts4*)
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 soname_spec='$libname$release$shared_ext$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 ;;
12063
12064 *)
12065 dynamic_linker=no
12066 ;;
12067 esac
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12069 printf "%s\n" "$dynamic_linker" >&6; }
12070 test no = "$dynamic_linker" && can_build_shared=no
12071
12072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12073 if test yes = "$GCC"; then
12074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12075 fi
12076
12077 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12078 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12079 fi
12080
12081 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12082 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12083 fi
12084
12085 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12086 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12087
12088 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12089 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12090
12091 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12092 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12191 printf %s "checking how to hardcode library paths into programs... " >&6; }
12192 hardcode_action=
12193 if test -n "$hardcode_libdir_flag_spec" ||
12194 test -n "$runpath_var" ||
12195 test yes = "$hardcode_automatic"; then
12196
12197 # We can hardcode non-existent directories.
12198 if test no != "$hardcode_direct" &&
12199 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12200 # have to relink, otherwise we might link with an installed library
12201 # when we should be linking with a yet-to-be-installed one
12202 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12203 test no != "$hardcode_minus_L"; then
12204 # Linking always hardcodes the temporary library directory.
12205 hardcode_action=relink
12206 else
12207 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12208 hardcode_action=immediate
12209 fi
12210 else
12211 # We cannot hardcode anything, or else we can only hardcode existing
12212 # directories.
12213 hardcode_action=unsupported
12214 fi
12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12216 printf "%s\n" "$hardcode_action" >&6; }
12217
12218 if test relink = "$hardcode_action" ||
12219 test yes = "$inherit_rpath"; then
12220 # Fast installation is not supported
12221 enable_fast_install=no
12222 elif test yes = "$shlibpath_overrides_runpath" ||
12223 test no = "$enable_shared"; then
12224 # Fast installation is not necessary
12225 enable_fast_install=needless
12226 fi
12227
12228
12229
12230
12231
12232
12233 if test yes != "$enable_dlopen"; then
12234 enable_dlopen=unknown
12235 enable_dlopen_self=unknown
12236 enable_dlopen_self_static=unknown
12237 else
12238 lt_cv_dlopen=no
12239 lt_cv_dlopen_libs=
12240
12241 case $host_os in
12242 beos*)
12243 lt_cv_dlopen=load_add_on
12244 lt_cv_dlopen_libs=
12245 lt_cv_dlopen_self=yes
12246 ;;
12247
12248 mingw* | pw32* | cegcc*)
12249 lt_cv_dlopen=LoadLibrary
12250 lt_cv_dlopen_libs=
12251 ;;
12252
12253 cygwin*)
12254 lt_cv_dlopen=dlopen
12255 lt_cv_dlopen_libs=
12256 ;;
12257
12258 darwin*)
12259 # if libdl is installed we need to link against it
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12261 printf %s "checking for dlopen in -ldl... " >&6; }
12262 if test ${ac_cv_lib_dl_dlopen+y}
12263 then :
12264 printf %s "(cached) " >&6
12265 else $as_nop
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-ldl $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 char dlopen ();
12275 int
12276 main (void)
12277 {
12278 return dlopen ();
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"
12284 then :
12285 ac_cv_lib_dl_dlopen=yes
12286 else $as_nop
12287 ac_cv_lib_dl_dlopen=no
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12294 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12295 if test "x$ac_cv_lib_dl_dlopen" = xyes
12296 then :
12297 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12298 else $as_nop
12299
12300 lt_cv_dlopen=dyld
12301 lt_cv_dlopen_libs=
12302 lt_cv_dlopen_self=yes
12303
12304 fi
12305
12306 ;;
12307
12308 tpf*)
12309 # Don't try to run any link tests for TPF. We know it's impossible
12310 # because TPF is a cross-compiler, and we know how we open DSOs.
12311 lt_cv_dlopen=dlopen
12312 lt_cv_dlopen_libs=
12313 lt_cv_dlopen_self=no
12314 ;;
12315
12316 *)
12317 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12318 if test "x$ac_cv_func_shl_load" = xyes
12319 then :
12320 lt_cv_dlopen=shl_load
12321 else $as_nop
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12323 printf %s "checking for shl_load in -ldld... " >&6; }
12324 if test ${ac_cv_lib_dld_shl_load+y}
12325 then :
12326 printf %s "(cached) " >&6
12327 else $as_nop
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-ldld $LIBS"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336 char shl_load ();
12337 int
12338 main (void)
12339 {
12340 return shl_load ();
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"
12346 then :
12347 ac_cv_lib_dld_shl_load=yes
12348 else $as_nop
12349 ac_cv_lib_dld_shl_load=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12356 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12357 if test "x$ac_cv_lib_dld_shl_load" = xyes
12358 then :
12359 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12360 else $as_nop
12361 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12362 if test "x$ac_cv_func_dlopen" = xyes
12363 then :
12364 lt_cv_dlopen=dlopen
12365 else $as_nop
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12367 printf %s "checking for dlopen in -ldl... " >&6; }
12368 if test ${ac_cv_lib_dl_dlopen+y}
12369 then :
12370 printf %s "(cached) " >&6
12371 else $as_nop
12372 ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-ldl $LIBS"
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 char dlopen ();
12381 int
12382 main (void)
12383 {
12384 return dlopen ();
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"
12390 then :
12391 ac_cv_lib_dl_dlopen=yes
12392 else $as_nop
12393 ac_cv_lib_dl_dlopen=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12400 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12401 if test "x$ac_cv_lib_dl_dlopen" = xyes
12402 then :
12403 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12404 else $as_nop
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12406 printf %s "checking for dlopen in -lsvld... " >&6; }
12407 if test ${ac_cv_lib_svld_dlopen+y}
12408 then :
12409 printf %s "(cached) " >&6
12410 else $as_nop
12411 ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-lsvld $LIBS"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12419 char dlopen ();
12420 int
12421 main (void)
12422 {
12423 return dlopen ();
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_link "$LINENO"
12429 then :
12430 ac_cv_lib_svld_dlopen=yes
12431 else $as_nop
12432 ac_cv_lib_svld_dlopen=no
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12437 fi
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12439 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12440 if test "x$ac_cv_lib_svld_dlopen" = xyes
12441 then :
12442 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12443 else $as_nop
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12445 printf %s "checking for dld_link in -ldld... " >&6; }
12446 if test ${ac_cv_lib_dld_dld_link+y}
12447 then :
12448 printf %s "(cached) " >&6
12449 else $as_nop
12450 ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-ldld $LIBS"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12458 char dld_link ();
12459 int
12460 main (void)
12461 {
12462 return dld_link ();
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"
12468 then :
12469 ac_cv_lib_dld_dld_link=yes
12470 else $as_nop
12471 ac_cv_lib_dld_dld_link=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12478 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12479 if test "x$ac_cv_lib_dld_dld_link" = xyes
12480 then :
12481 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12482 fi
12483
12484
12485 fi
12486
12487
12488 fi
12489
12490
12491 fi
12492
12493
12494 fi
12495
12496
12497 fi
12498
12499 ;;
12500 esac
12501
12502 if test no = "$lt_cv_dlopen"; then
12503 enable_dlopen=no
12504 else
12505 enable_dlopen=yes
12506 fi
12507
12508 case $lt_cv_dlopen in
12509 dlopen)
12510 save_CPPFLAGS=$CPPFLAGS
12511 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12512
12513 save_LDFLAGS=$LDFLAGS
12514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12515
12516 save_LIBS=$LIBS
12517 LIBS="$lt_cv_dlopen_libs $LIBS"
12518
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12520 printf %s "checking whether a program can dlopen itself... " >&6; }
12521 if test ${lt_cv_dlopen_self+y}
12522 then :
12523 printf %s "(cached) " >&6
12524 else $as_nop
12525 if test yes = "$cross_compiling"; then :
12526 lt_cv_dlopen_self=cross
12527 else
12528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12529 lt_status=$lt_dlunknown
12530 cat > conftest.$ac_ext <<_LT_EOF
12531 #line $LINENO "configure"
12532 #include "confdefs.h"
12533
12534 #if HAVE_DLFCN_H
12535 #include <dlfcn.h>
12536 #endif
12537
12538 #include <stdio.h>
12539
12540 #ifdef RTLD_GLOBAL
12541 # define LT_DLGLOBAL RTLD_GLOBAL
12542 #else
12543 # ifdef DL_GLOBAL
12544 # define LT_DLGLOBAL DL_GLOBAL
12545 # else
12546 # define LT_DLGLOBAL 0
12547 # endif
12548 #endif
12549
12550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12551 find out it does not work in some platform. */
12552 #ifndef LT_DLLAZY_OR_NOW
12553 # ifdef RTLD_LAZY
12554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12555 # else
12556 # ifdef DL_LAZY
12557 # define LT_DLLAZY_OR_NOW DL_LAZY
12558 # else
12559 # ifdef RTLD_NOW
12560 # define LT_DLLAZY_OR_NOW RTLD_NOW
12561 # else
12562 # ifdef DL_NOW
12563 # define LT_DLLAZY_OR_NOW DL_NOW
12564 # else
12565 # define LT_DLLAZY_OR_NOW 0
12566 # endif
12567 # endif
12568 # endif
12569 # endif
12570 #endif
12571
12572 /* When -fvisibility=hidden is used, assume the code has been annotated
12573 correspondingly for the symbols needed. */
12574 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12575 int fnord () __attribute__((visibility("default")));
12576 #endif
12577
12578 int fnord () { return 42; }
12579 int main ()
12580 {
12581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582 int status = $lt_dlunknown;
12583
12584 if (self)
12585 {
12586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12587 else
12588 {
12589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12590 else puts (dlerror ());
12591 }
12592 /* dlclose (self); */
12593 }
12594 else
12595 puts (dlerror ());
12596
12597 return status;
12598 }
12599 _LT_EOF
12600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12601 (eval $ac_link) 2>&5
12602 ac_status=$?
12603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12605 (./conftest; exit; ) >&5 2>/dev/null
12606 lt_status=$?
12607 case x$lt_status in
12608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12610 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12611 esac
12612 else :
12613 # compilation failed
12614 lt_cv_dlopen_self=no
12615 fi
12616 fi
12617 rm -fr conftest*
12618
12619
12620 fi
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12622 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12623
12624 if test yes = "$lt_cv_dlopen_self"; then
12625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12627 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12628 if test ${lt_cv_dlopen_self_static+y}
12629 then :
12630 printf %s "(cached) " >&6
12631 else $as_nop
12632 if test yes = "$cross_compiling"; then :
12633 lt_cv_dlopen_self_static=cross
12634 else
12635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636 lt_status=$lt_dlunknown
12637 cat > conftest.$ac_ext <<_LT_EOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640
12641 #if HAVE_DLFCN_H
12642 #include <dlfcn.h>
12643 #endif
12644
12645 #include <stdio.h>
12646
12647 #ifdef RTLD_GLOBAL
12648 # define LT_DLGLOBAL RTLD_GLOBAL
12649 #else
12650 # ifdef DL_GLOBAL
12651 # define LT_DLGLOBAL DL_GLOBAL
12652 # else
12653 # define LT_DLGLOBAL 0
12654 # endif
12655 #endif
12656
12657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658 find out it does not work in some platform. */
12659 #ifndef LT_DLLAZY_OR_NOW
12660 # ifdef RTLD_LAZY
12661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12662 # else
12663 # ifdef DL_LAZY
12664 # define LT_DLLAZY_OR_NOW DL_LAZY
12665 # else
12666 # ifdef RTLD_NOW
12667 # define LT_DLLAZY_OR_NOW RTLD_NOW
12668 # else
12669 # ifdef DL_NOW
12670 # define LT_DLLAZY_OR_NOW DL_NOW
12671 # else
12672 # define LT_DLLAZY_OR_NOW 0
12673 # endif
12674 # endif
12675 # endif
12676 # endif
12677 #endif
12678
12679 /* When -fvisibility=hidden is used, assume the code has been annotated
12680 correspondingly for the symbols needed. */
12681 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682 int fnord () __attribute__((visibility("default")));
12683 #endif
12684
12685 int fnord () { return 42; }
12686 int main ()
12687 {
12688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689 int status = $lt_dlunknown;
12690
12691 if (self)
12692 {
12693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12694 else
12695 {
12696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697 else puts (dlerror ());
12698 }
12699 /* dlclose (self); */
12700 }
12701 else
12702 puts (dlerror ());
12703
12704 return status;
12705 }
12706 _LT_EOF
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12712 (./conftest; exit; ) >&5 2>/dev/null
12713 lt_status=$?
12714 case x$lt_status in
12715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12717 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12718 esac
12719 else :
12720 # compilation failed
12721 lt_cv_dlopen_self_static=no
12722 fi
12723 fi
12724 rm -fr conftest*
12725
12726
12727 fi
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12729 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12730 fi
12731
12732 CPPFLAGS=$save_CPPFLAGS
12733 LDFLAGS=$save_LDFLAGS
12734 LIBS=$save_LIBS
12735 ;;
12736 esac
12737
12738 case $lt_cv_dlopen_self in
12739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12740 *) enable_dlopen_self=unknown ;;
12741 esac
12742
12743 case $lt_cv_dlopen_self_static in
12744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12745 *) enable_dlopen_self_static=unknown ;;
12746 esac
12747 fi
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 striplib=
12766 old_striplib=
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12768 printf %s "checking whether stripping libraries is possible... " >&6; }
12769 if test -z "$STRIP"; then
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 printf "%s\n" "no" >&6; }
12772 else
12773 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12774 old_striplib="$STRIP --strip-debug"
12775 striplib="$STRIP --strip-unneeded"
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777 printf "%s\n" "yes" >&6; }
12778 else
12779 case $host_os in
12780 darwin*)
12781 # FIXME - insert some real tests, host_os isn't really good enough
12782 striplib="$STRIP -x"
12783 old_striplib="$STRIP -S"
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785 printf "%s\n" "yes" >&6; }
12786 ;;
12787 freebsd*)
12788 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12789 old_striplib="$STRIP --strip-debug"
12790 striplib="$STRIP --strip-unneeded"
12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12792 printf "%s\n" "yes" >&6; }
12793 else
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 printf "%s\n" "no" >&6; }
12796 fi
12797 ;;
12798 *)
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 printf "%s\n" "no" >&6; }
12801 ;;
12802 esac
12803 fi
12804 fi
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 # Report what library types will actually be built
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12819 printf %s "checking if libtool supports shared libraries... " >&6; }
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12821 printf "%s\n" "$can_build_shared" >&6; }
12822
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12824 printf %s "checking whether to build shared libraries... " >&6; }
12825 test no = "$can_build_shared" && enable_shared=no
12826
12827 # On AIX, shared libraries and static libraries use the same namespace, and
12828 # are all built from PIC.
12829 case $host_os in
12830 aix3*)
12831 test yes = "$enable_shared" && enable_static=no
12832 if test -n "$RANLIB"; then
12833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12834 postinstall_cmds='$RANLIB $lib'
12835 fi
12836 ;;
12837
12838 aix[4-9]*)
12839 if test ia64 != "$host_cpu"; then
12840 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12841 yes,aix,yes) ;; # shared object as lib.so file only
12842 yes,svr4,*) ;; # shared object as lib.so archive member only
12843 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12844 esac
12845 fi
12846 ;;
12847 esac
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12849 printf "%s\n" "$enable_shared" >&6; }
12850
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12852 printf %s "checking whether to build static libraries... " >&6; }
12853 # Make sure either enable_shared or enable_static is yes.
12854 test yes = "$enable_shared" || enable_static=yes
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12856 printf "%s\n" "$enable_static" >&6; }
12857
12858
12859
12860
12861 fi
12862 ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868 CC=$lt_save_CC
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884 ac_config_commands="$ac_config_commands libtool"
12885
12886
12887
12888
12889 # Only expand once:
12890
12891
12892 ac_header_dirent=no
12893 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12894 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12896 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
12897 if eval test \${$as_ac_Header+y}
12898 then :
12899 printf %s "(cached) " >&6
12900 else $as_nop
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 #include <sys/types.h>
12904 #include <$ac_hdr>
12905
12906 int
12907 main (void)
12908 {
12909 if ((DIR *) 0)
12910 return 0;
12911 ;
12912 return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_compile "$LINENO"
12916 then :
12917 eval "$as_ac_Header=yes"
12918 else $as_nop
12919 eval "$as_ac_Header=no"
12920 fi
12921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12922 fi
12923 eval ac_res=\$$as_ac_Header
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12925 printf "%s\n" "$ac_res" >&6; }
12926 if eval test \"x\$"$as_ac_Header"\" = x"yes"
12927 then :
12928 cat >>confdefs.h <<_ACEOF
12929 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
12930 _ACEOF
12931
12932 ac_header_dirent=$ac_hdr; break
12933 fi
12934
12935 done
12936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12937 if test $ac_header_dirent = dirent.h; then
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12939 printf %s "checking for library containing opendir... " >&6; }
12940 if test ${ac_cv_search_opendir+y}
12941 then :
12942 printf %s "(cached) " >&6
12943 else $as_nop
12944 ac_func_search_save_LIBS=$LIBS
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951 char opendir ();
12952 int
12953 main (void)
12954 {
12955 return opendir ();
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 for ac_lib in '' dir
12961 do
12962 if test -z "$ac_lib"; then
12963 ac_res="none required"
12964 else
12965 ac_res=-l$ac_lib
12966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12967 fi
12968 if ac_fn_c_try_link "$LINENO"
12969 then :
12970 ac_cv_search_opendir=$ac_res
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12973 conftest$ac_exeext
12974 if test ${ac_cv_search_opendir+y}
12975 then :
12976 break
12977 fi
12978 done
12979 if test ${ac_cv_search_opendir+y}
12980 then :
12981
12982 else $as_nop
12983 ac_cv_search_opendir=no
12984 fi
12985 rm conftest.$ac_ext
12986 LIBS=$ac_func_search_save_LIBS
12987 fi
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12989 printf "%s\n" "$ac_cv_search_opendir" >&6; }
12990 ac_res=$ac_cv_search_opendir
12991 if test "$ac_res" != no
12992 then :
12993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12994
12995 fi
12996
12997 else
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12999 printf %s "checking for library containing opendir... " >&6; }
13000 if test ${ac_cv_search_opendir+y}
13001 then :
13002 printf %s "(cached) " >&6
13003 else $as_nop
13004 ac_func_search_save_LIBS=$LIBS
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011 char opendir ();
13012 int
13013 main (void)
13014 {
13015 return opendir ();
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 for ac_lib in '' x
13021 do
13022 if test -z "$ac_lib"; then
13023 ac_res="none required"
13024 else
13025 ac_res=-l$ac_lib
13026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13027 fi
13028 if ac_fn_c_try_link "$LINENO"
13029 then :
13030 ac_cv_search_opendir=$ac_res
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13033 conftest$ac_exeext
13034 if test ${ac_cv_search_opendir+y}
13035 then :
13036 break
13037 fi
13038 done
13039 if test ${ac_cv_search_opendir+y}
13040 then :
13041
13042 else $as_nop
13043 ac_cv_search_opendir=no
13044 fi
13045 rm conftest.$ac_ext
13046 LIBS=$ac_func_search_save_LIBS
13047 fi
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13049 printf "%s\n" "$ac_cv_search_opendir" >&6; }
13050 ac_res=$ac_cv_search_opendir
13051 if test "$ac_res" != no
13052 then :
13053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13054
13055 fi
13056
13057 fi
13058
13059
13060 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13061 if test "x$ac_cv_header_arpa_inet_h" = xyes
13062 then :
13063 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
13064
13065 fi
13066 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13067 if test "x$ac_cv_header_fcntl_h" = xyes
13068 then :
13069 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13070
13071 fi
13072 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13073 if test "x$ac_cv_header_libintl_h" = xyes
13074 then :
13075 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
13076
13077 fi
13078 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13079 if test "x$ac_cv_header_limits_h" = xyes
13080 then :
13081 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
13082
13083 fi
13084 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13085 if test "x$ac_cv_header_locale_h" = xyes
13086 then :
13087 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
13088
13089 fi
13090 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13091 if test "x$ac_cv_header_netdb_h" = xyes
13092 then :
13093 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
13094
13095 fi
13096 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13097 if test "x$ac_cv_header_netinet_in_h" = xyes
13098 then :
13099 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
13100
13101 fi
13102 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13103 if test "x$ac_cv_header_stddef_h" = xyes
13104 then :
13105 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
13106
13107 fi
13108 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13109 if test "x$ac_cv_header_stdint_h" = xyes
13110 then :
13111 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13112
13113 fi
13114 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13115 if test "x$ac_cv_header_stdlib_h" = xyes
13116 then :
13117 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13118
13119 fi
13120 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13121 if test "x$ac_cv_header_string_h" = xyes
13122 then :
13123 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13124
13125 fi
13126 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_sys_ioctl_h" = xyes
13128 then :
13129 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13130
13131 fi
13132 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13133 if test "x$ac_cv_header_sys_param_h" = xyes
13134 then :
13135 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
13136
13137 fi
13138 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13139 if test "x$ac_cv_header_sys_socket_h" = xyes
13140 then :
13141 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13142
13143 fi
13144 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13145 if test "x$ac_cv_header_sys_time_h" = xyes
13146 then :
13147 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13148
13149 fi
13150 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13151 if test "x$ac_cv_header_syslog_h" = xyes
13152 then :
13153 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
13154
13155 fi
13156 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13157 if test "x$ac_cv_header_unistd_h" = xyes
13158 then :
13159 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13160
13161 fi
13162 ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
13163 if test "x$ac_cv_header_features_h" = xyes
13164 then :
13165 printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
13166
13167 fi
13168 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
13170 then :
13171 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_EXT_H 1" >>confdefs.h
13172
13173 fi
13174
13175 ac_ext=c
13176 ac_cpp='$CPP $CPPFLAGS'
13177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13181 printf %s "checking how to run the C preprocessor... " >&6; }
13182 # On Suns, sometimes $CPP names a directory.
13183 if test -n "$CPP" && test -d "$CPP"; then
13184 CPP=
13185 fi
13186 if test -z "$CPP"; then
13187 if test ${ac_cv_prog_CPP+y}
13188 then :
13189 printf %s "(cached) " >&6
13190 else $as_nop
13191 # Double quotes because $CC needs to be expanded
13192 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13193 do
13194 ac_preproc_ok=false
13195 for ac_c_preproc_warn_flag in '' yes
13196 do
13197 # Use a header file that comes with gcc, so configuring glibc
13198 # with a fresh cross-compiler works.
13199 # On the NeXT, cc -E runs the code through the compiler's parser,
13200 # not just through cpp. "Syntax error" is here to catch this case.
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <limits.h>
13204 Syntax error
13205 _ACEOF
13206 if ac_fn_c_try_cpp "$LINENO"
13207 then :
13208
13209 else $as_nop
13210 # Broken: fails on valid input.
13211 continue
13212 fi
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13214
13215 # OK, works on sane cases. Now check whether nonexistent headers
13216 # can be detected and how.
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 #include <ac_nonexistent.h>
13220 _ACEOF
13221 if ac_fn_c_try_cpp "$LINENO"
13222 then :
13223 # Broken: success on invalid input.
13224 continue
13225 else $as_nop
13226 # Passes both tests.
13227 ac_preproc_ok=:
13228 break
13229 fi
13230 rm -f conftest.err conftest.i conftest.$ac_ext
13231
13232 done
13233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13234 rm -f conftest.i conftest.err conftest.$ac_ext
13235 if $ac_preproc_ok
13236 then :
13237 break
13238 fi
13239
13240 done
13241 ac_cv_prog_CPP=$CPP
13242
13243 fi
13244 CPP=$ac_cv_prog_CPP
13245 else
13246 ac_cv_prog_CPP=$CPP
13247 fi
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13249 printf "%s\n" "$CPP" >&6; }
13250 ac_preproc_ok=false
13251 for ac_c_preproc_warn_flag in '' yes
13252 do
13253 # Use a header file that comes with gcc, so configuring glibc
13254 # with a fresh cross-compiler works.
13255 # On the NeXT, cc -E runs the code through the compiler's parser,
13256 # not just through cpp. "Syntax error" is here to catch this case.
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <limits.h>
13260 Syntax error
13261 _ACEOF
13262 if ac_fn_c_try_cpp "$LINENO"
13263 then :
13264
13265 else $as_nop
13266 # Broken: fails on valid input.
13267 continue
13268 fi
13269 rm -f conftest.err conftest.i conftest.$ac_ext
13270
13271 # OK, works on sane cases. Now check whether nonexistent headers
13272 # can be detected and how.
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275 #include <ac_nonexistent.h>
13276 _ACEOF
13277 if ac_fn_c_try_cpp "$LINENO"
13278 then :
13279 # Broken: success on invalid input.
13280 continue
13281 else $as_nop
13282 # Passes both tests.
13283 ac_preproc_ok=:
13284 break
13285 fi
13286 rm -f conftest.err conftest.i conftest.$ac_ext
13287
13288 done
13289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13290 rm -f conftest.i conftest.err conftest.$ac_ext
13291 if $ac_preproc_ok
13292 then :
13293
13294 else $as_nop
13295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13298 See \`config.log' for more details" "$LINENO" 5; }
13299 fi
13300
13301 ac_ext=c
13302 ac_cpp='$CPP $CPPFLAGS'
13303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307
13308
13309
13310
13311
13312 ac_ext=c
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318 ax_pthread_ok=no
13319
13320 # We used to check for pthread.h first, but this fails if pthread.h
13321 # requires special compiler flags (e.g. on Tru64 or Sequent).
13322 # It gets checked for in the link test anyway.
13323
13324 # First of all, check if the user has set any of the PTHREAD_LIBS,
13325 # etcetera environment variables, and if threads linking works using
13326 # them:
13327 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13328 ax_pthread_save_CC="$CC"
13329 ax_pthread_save_CFLAGS="$CFLAGS"
13330 ax_pthread_save_LIBS="$LIBS"
13331 if test "x$PTHREAD_CC" != "x"
13332 then :
13333 CC="$PTHREAD_CC"
13334 fi
13335 if test "x$PTHREAD_CXX" != "x"
13336 then :
13337 CXX="$PTHREAD_CXX"
13338 fi
13339 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13340 LIBS="$PTHREAD_LIBS $LIBS"
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13342 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345
13346 /* Override any GCC internal prototype to avoid an error.
13347 Use char because int might match the return type of a GCC
13348 builtin and then its argument prototype would still apply. */
13349 char pthread_join ();
13350 int
13351 main (void)
13352 {
13353 return pthread_join ();
13354 ;
13355 return 0;
13356 }
13357 _ACEOF
13358 if ac_fn_c_try_link "$LINENO"
13359 then :
13360 ax_pthread_ok=yes
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13363 conftest$ac_exeext conftest.$ac_ext
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13365 printf "%s\n" "$ax_pthread_ok" >&6; }
13366 if test "x$ax_pthread_ok" = "xno"; then
13367 PTHREAD_LIBS=""
13368 PTHREAD_CFLAGS=""
13369 fi
13370 CC="$ax_pthread_save_CC"
13371 CFLAGS="$ax_pthread_save_CFLAGS"
13372 LIBS="$ax_pthread_save_LIBS"
13373 fi
13374
13375 # We must check for the threads library under a number of different
13376 # names; the ordering is very important because some systems
13377 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13378 # libraries is broken (non-POSIX).
13379
13380 # Create a list of thread flags to try. Items with a "," contain both
13381 # C compiler flags (before ",") and linker flags (after ","). Other items
13382 # starting with a "-" are C compiler flags, and remaining items are
13383 # library names, except for "none" which indicates that we try without
13384 # any flags at all, and "pthread-config" which is a program returning
13385 # the flags for the Pth emulation library.
13386
13387 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13388
13389 # The ordering *is* (sometimes) important. Some notes on the
13390 # individual items follow:
13391
13392 # pthreads: AIX (must check this before -lpthread)
13393 # none: in case threads are in libc; should be tried before -Kthread and
13394 # other compiler flags to prevent continual compiler warnings
13395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13396 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13397 # (Note: HP C rejects this with "bad form for `-t' option")
13398 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13399 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13400 # doesn't hurt to check since this sometimes defines pthreads and
13401 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13402 # is present but should not be used directly; and before -mthreads,
13403 # because the compiler interprets this as "-mt" + "-hreads")
13404 # -mthreads: Mingw32/gcc, Lynx/gcc
13405 # pthread: Linux, etcetera
13406 # --thread-safe: KAI C++
13407 # pthread-config: use pthread-config program (for GNU Pth library)
13408
13409 case $host_os in
13410
13411 freebsd*)
13412
13413 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13414 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13415
13416 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
13417 ;;
13418
13419 hpux*)
13420
13421 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13422 # multi-threading and also sets -lpthread."
13423
13424 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
13425 ;;
13426
13427 openedition*)
13428
13429 # IBM z/OS requires a feature-test macro to be defined in order to
13430 # enable POSIX threads at all, so give the user a hint if this is
13431 # not set. (We don't define these ourselves, as they can affect
13432 # other portions of the system API in unpredictable ways.)
13433
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436
13437 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13438 AX_PTHREAD_ZOS_MISSING
13439 # endif
13440
13441 _ACEOF
13442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13443 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
13444 then :
13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13446 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13447 fi
13448 rm -rf conftest*
13449
13450 ;;
13451
13452 solaris*)
13453
13454 # On Solaris (at least, for some versions), libc contains stubbed
13455 # (non-functional) versions of the pthreads routines, so link-based
13456 # tests will erroneously succeed. (N.B.: The stubs are missing
13457 # pthread_cleanup_push, or rather a function called by this macro,
13458 # so we could check for that, but who knows whether they'll stub
13459 # that too in a future libc.) So we'll check first for the
13460 # standard Solaris way of linking pthreads (-mt -lpthread).
13461
13462 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
13463 ;;
13464 esac
13465
13466 # Are we compiling with Clang?
13467
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13469 printf %s "checking whether $CC is Clang... " >&6; }
13470 if test ${ax_cv_PTHREAD_CLANG+y}
13471 then :
13472 printf %s "(cached) " >&6
13473 else $as_nop
13474 ax_cv_PTHREAD_CLANG=no
13475 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13476 if test "x$GCC" = "xyes"; then
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13480 # if defined(__clang__) && defined(__llvm__)
13481 AX_PTHREAD_CC_IS_CLANG
13482 # endif
13483
13484 _ACEOF
13485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13486 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
13487 then :
13488 ax_cv_PTHREAD_CLANG=yes
13489 fi
13490 rm -rf conftest*
13491
13492 fi
13493
13494 fi
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13496 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
13497 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
13498
13499
13500 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13501
13502 # Note that for GCC and Clang -pthread generally implies -lpthread,
13503 # except when -nostdlib is passed.
13504 # This is problematic using libtool to build C++ shared libraries with pthread:
13505 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
13506 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
13507 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
13508 # To solve this, first try -pthread together with -lpthread for GCC
13509
13510 if test "x$GCC" = "xyes"
13511 then :
13512 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
13513 fi
13514
13515 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
13516
13517 if test "x$ax_pthread_clang" = "xyes"
13518 then :
13519 ax_pthread_flags="-pthread,-lpthread -pthread"
13520 fi
13521
13522
13523 # The presence of a feature test macro requesting re-entrant function
13524 # definitions is, on some systems, a strong hint that pthreads support is
13525 # correctly enabled
13526
13527 case $host_os in
13528 darwin* | hpux* | linux* | osf* | solaris*)
13529 ax_pthread_check_macro="_REENTRANT"
13530 ;;
13531
13532 aix*)
13533 ax_pthread_check_macro="_THREAD_SAFE"
13534 ;;
13535
13536 *)
13537 ax_pthread_check_macro="--"
13538 ;;
13539 esac
13540 if test "x$ax_pthread_check_macro" = "x--"
13541 then :
13542 ax_pthread_check_cond=0
13543 else $as_nop
13544 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
13545 fi
13546
13547
13548 if test "x$ax_pthread_ok" = "xno"; then
13549 for ax_pthread_try_flag in $ax_pthread_flags; do
13550
13551 case $ax_pthread_try_flag in
13552 none)
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13554 printf %s "checking whether pthreads work without any flags... " >&6; }
13555 ;;
13556
13557 *,*)
13558 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
13559 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
13561 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
13562 ;;
13563
13564 -*)
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13566 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13567 PTHREAD_CFLAGS="$ax_pthread_try_flag"
13568 ;;
13569
13570 pthread-config)
13571 # Extract the first word of "pthread-config", so it can be a program name with args.
13572 set dummy pthread-config; ac_word=$2
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574 printf %s "checking for $ac_word... " >&6; }
13575 if test ${ac_cv_prog_ax_pthread_config+y}
13576 then :
13577 printf %s "(cached) " >&6
13578 else $as_nop
13579 if test -n "$ax_pthread_config"; then
13580 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585 IFS=$as_save_IFS
13586 case $as_dir in #(((
13587 '') as_dir=./ ;;
13588 */) ;;
13589 *) as_dir=$as_dir/ ;;
13590 esac
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13593 ac_cv_prog_ax_pthread_config="yes"
13594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597 done
13598 done
13599 IFS=$as_save_IFS
13600
13601 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13602 fi
13603 fi
13604 ax_pthread_config=$ac_cv_prog_ax_pthread_config
13605 if test -n "$ax_pthread_config"; then
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13607 printf "%s\n" "$ax_pthread_config" >&6; }
13608 else
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 printf "%s\n" "no" >&6; }
13611 fi
13612
13613
13614 if test "x$ax_pthread_config" = "xno"
13615 then :
13616 continue
13617 fi
13618 PTHREAD_CFLAGS="`pthread-config --cflags`"
13619 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13620 ;;
13621
13622 *)
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13624 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13625 PTHREAD_LIBS="-l$ax_pthread_try_flag"
13626 ;;
13627 esac
13628
13629 ax_pthread_save_CFLAGS="$CFLAGS"
13630 ax_pthread_save_LIBS="$LIBS"
13631 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13632 LIBS="$PTHREAD_LIBS $LIBS"
13633
13634 # Check for various functions. We must include pthread.h,
13635 # since some functions may be macros. (On the Sequent, we
13636 # need a special flag -Kthread to make this header compile.)
13637 # We check for pthread_join because it is in -lpthread on IRIX
13638 # while pthread_create is in libc. We check for pthread_attr_init
13639 # due to DEC craziness with -lpthreads. We check for
13640 # pthread_cleanup_push because it is one of the few pthread
13641 # functions on Solaris that doesn't have a non-functional libc stub.
13642 # We try pthread_create on general principles.
13643
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <pthread.h>
13647 # if $ax_pthread_check_cond
13648 # error "$ax_pthread_check_macro must be defined"
13649 # endif
13650 static void *some_global = NULL;
13651 static void routine(void *a)
13652 {
13653 /* To avoid any unused-parameter or
13654 unused-but-set-parameter warning. */
13655 some_global = a;
13656 }
13657 static void *start_routine(void *a) { return a; }
13658 int
13659 main (void)
13660 {
13661 pthread_t th; pthread_attr_t attr;
13662 pthread_create(&th, 0, start_routine, 0);
13663 pthread_join(th, 0);
13664 pthread_attr_init(&attr);
13665 pthread_cleanup_push(routine, 0);
13666 pthread_cleanup_pop(0) /* ; */
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"
13672 then :
13673 ax_pthread_ok=yes
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13676 conftest$ac_exeext conftest.$ac_ext
13677
13678 CFLAGS="$ax_pthread_save_CFLAGS"
13679 LIBS="$ax_pthread_save_LIBS"
13680
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13682 printf "%s\n" "$ax_pthread_ok" >&6; }
13683 if test "x$ax_pthread_ok" = "xyes"
13684 then :
13685 break
13686 fi
13687
13688 PTHREAD_LIBS=""
13689 PTHREAD_CFLAGS=""
13690 done
13691 fi
13692
13693
13694 # Clang needs special handling, because older versions handle the -pthread
13695 # option in a rather... idiosyncratic way
13696
13697 if test "x$ax_pthread_clang" = "xyes"; then
13698
13699 # Clang takes -pthread; it has never supported any other flag
13700
13701 # (Note 1: This will need to be revisited if a system that Clang
13702 # supports has POSIX threads in a separate library. This tends not
13703 # to be the way of modern systems, but it's conceivable.)
13704
13705 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13706 # to get POSIX threads support; the API is always present and
13707 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13708 # -pthread does define _REENTRANT, and while the Darwin headers
13709 # ignore this macro, third-party headers might not.)
13710
13711 # However, older versions of Clang make a point of warning the user
13712 # that, in an invocation where only linking and no compilation is
13713 # taking place, the -pthread option has no effect ("argument unused
13714 # during compilation"). They expect -pthread to be passed in only
13715 # when source code is being compiled.
13716 #
13717 # Problem is, this is at odds with the way Automake and most other
13718 # C build frameworks function, which is that the same flags used in
13719 # compilation (CFLAGS) are also used in linking. Many systems
13720 # supported by AX_PTHREAD require exactly this for POSIX threads
13721 # support, and in fact it is often not straightforward to specify a
13722 # flag that is used only in the compilation phase and not in
13723 # linking. Such a scenario is extremely rare in practice.
13724 #
13725 # Even though use of the -pthread flag in linking would only print
13726 # a warning, this can be a nuisance for well-run software projects
13727 # that build with -Werror. So if the active version of Clang has
13728 # this misfeature, we search for an option to squash it.
13729
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13731 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13732 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
13733 then :
13734 printf %s "(cached) " >&6
13735 else $as_nop
13736 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
13737 # Create an alternate version of $ac_link that compiles and
13738 # links in two steps (.c -> .o, .o -> exe) instead of one
13739 # (.c -> exe), because the warning occurs only in the second
13740 # step
13741 ax_pthread_save_ac_link="$ac_link"
13742 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13743 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
13744 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13745 ax_pthread_save_CFLAGS="$CFLAGS"
13746 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
13747 if test "x$ax_pthread_try" = "xunknown"
13748 then :
13749 break
13750 fi
13751 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13752 ac_link="$ax_pthread_save_ac_link"
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 int main(void){return 0;}
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"
13758 then :
13759 ac_link="$ax_pthread_2step_ac_link"
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 int main(void){return 0;}
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"
13765 then :
13766 break
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13769 conftest$ac_exeext conftest.$ac_ext
13770
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13773 conftest$ac_exeext conftest.$ac_ext
13774 done
13775 ac_link="$ax_pthread_save_ac_link"
13776 CFLAGS="$ax_pthread_save_CFLAGS"
13777 if test "x$ax_pthread_try" = "x"
13778 then :
13779 ax_pthread_try=no
13780 fi
13781 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
13782
13783 fi
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13785 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13786
13787 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13788 no | unknown) ;;
13789 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13790 esac
13791
13792 fi # $ax_pthread_clang = yes
13793
13794
13795
13796 # Various other checks:
13797 if test "x$ax_pthread_ok" = "xyes"; then
13798 ax_pthread_save_CFLAGS="$CFLAGS"
13799 ax_pthread_save_LIBS="$LIBS"
13800 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13801 LIBS="$PTHREAD_LIBS $LIBS"
13802
13803 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13805 printf %s "checking for joinable pthread attribute... " >&6; }
13806 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
13807 then :
13808 printf %s "(cached) " >&6
13809 else $as_nop
13810 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
13811 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <pthread.h>
13815 int
13816 main (void)
13817 {
13818 int attr = $ax_pthread_attr; return attr /* ; */
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"
13824 then :
13825 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828 conftest$ac_exeext conftest.$ac_ext
13829 done
13830
13831 fi
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
13833 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
13834 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
13835 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
13836 test "x$ax_pthread_joinable_attr_defined" != "xyes"
13837 then :
13838
13839 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
13840
13841 ax_pthread_joinable_attr_defined=yes
13842
13843 fi
13844
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
13846 printf %s "checking whether more special flags are required for pthreads... " >&6; }
13847 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
13848 then :
13849 printf %s "(cached) " >&6
13850 else $as_nop
13851 ax_cv_PTHREAD_SPECIAL_FLAGS=no
13852 case $host_os in
13853 solaris*)
13854 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
13855 ;;
13856 esac
13857
13858 fi
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
13860 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
13861 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
13862 test "x$ax_pthread_special_flags_added" != "xyes"
13863 then :
13864 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
13865 ax_pthread_special_flags_added=yes
13866 fi
13867
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13869 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13870 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
13871 then :
13872 printf %s "(cached) " >&6
13873 else $as_nop
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 #include <pthread.h>
13877 int
13878 main (void)
13879 {
13880 int i = PTHREAD_PRIO_INHERIT;
13881 return i;
13882 ;
13883 return 0;
13884 }
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"
13887 then :
13888 ax_cv_PTHREAD_PRIO_INHERIT=yes
13889 else $as_nop
13890 ax_cv_PTHREAD_PRIO_INHERIT=no
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13893 conftest$ac_exeext conftest.$ac_ext
13894
13895 fi
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13897 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13898 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
13899 test "x$ax_pthread_prio_inherit_defined" != "xyes"
13900 then :
13901
13902 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13903
13904 ax_pthread_prio_inherit_defined=yes
13905
13906 fi
13907
13908 CFLAGS="$ax_pthread_save_CFLAGS"
13909 LIBS="$ax_pthread_save_LIBS"
13910
13911 # More AIX lossage: compile with *_r variant
13912 if test "x$GCC" != "xyes"; then
13913 case $host_os in
13914 aix*)
13915 case "x/$CC" in #(
13916 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
13917 #handle absolute path differently from PATH based program lookup
13918 case "x$CC" in #(
13919 x/*) :
13920
13921 if as_fn_executable_p ${CC}_r
13922 then :
13923 PTHREAD_CC="${CC}_r"
13924 fi
13925 if test "x${CXX}" != "x"
13926 then :
13927 if as_fn_executable_p ${CXX}_r
13928 then :
13929 PTHREAD_CXX="${CXX}_r"
13930 fi
13931 fi
13932 ;; #(
13933 *) :
13934
13935 for ac_prog in ${CC}_r
13936 do
13937 # Extract the first word of "$ac_prog", so it can be a program name with args.
13938 set dummy $ac_prog; ac_word=$2
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13940 printf %s "checking for $ac_word... " >&6; }
13941 if test ${ac_cv_prog_PTHREAD_CC+y}
13942 then :
13943 printf %s "(cached) " >&6
13944 else $as_nop
13945 if test -n "$PTHREAD_CC"; then
13946 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13947 else
13948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13949 for as_dir in $PATH
13950 do
13951 IFS=$as_save_IFS
13952 case $as_dir in #(((
13953 '') as_dir=./ ;;
13954 */) ;;
13955 *) as_dir=$as_dir/ ;;
13956 esac
13957 for ac_exec_ext in '' $ac_executable_extensions; do
13958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13959 ac_cv_prog_PTHREAD_CC="$ac_prog"
13960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13961 break 2
13962 fi
13963 done
13964 done
13965 IFS=$as_save_IFS
13966
13967 fi
13968 fi
13969 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13970 if test -n "$PTHREAD_CC"; then
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13972 printf "%s\n" "$PTHREAD_CC" >&6; }
13973 else
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 printf "%s\n" "no" >&6; }
13976 fi
13977
13978
13979 test -n "$PTHREAD_CC" && break
13980 done
13981 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
13982
13983 if test "x${CXX}" != "x"
13984 then :
13985 for ac_prog in ${CXX}_r
13986 do
13987 # Extract the first word of "$ac_prog", so it can be a program name with args.
13988 set dummy $ac_prog; ac_word=$2
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13990 printf %s "checking for $ac_word... " >&6; }
13991 if test ${ac_cv_prog_PTHREAD_CXX+y}
13992 then :
13993 printf %s "(cached) " >&6
13994 else $as_nop
13995 if test -n "$PTHREAD_CXX"; then
13996 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001 IFS=$as_save_IFS
14002 case $as_dir in #(((
14003 '') as_dir=./ ;;
14004 */) ;;
14005 *) as_dir=$as_dir/ ;;
14006 esac
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14009 ac_cv_prog_PTHREAD_CXX="$ac_prog"
14010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013 done
14014 done
14015 IFS=$as_save_IFS
14016
14017 fi
14018 fi
14019 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
14020 if test -n "$PTHREAD_CXX"; then
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
14022 printf "%s\n" "$PTHREAD_CXX" >&6; }
14023 else
14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 printf "%s\n" "no" >&6; }
14026 fi
14027
14028
14029 test -n "$PTHREAD_CXX" && break
14030 done
14031 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14032
14033 fi
14034
14035 ;;
14036 esac
14037 ;; #(
14038 *) :
14039 ;;
14040 esac
14041 ;;
14042 esac
14043 fi
14044 fi
14045
14046 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14047 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
14048
14049
14050
14051
14052
14053
14054 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14055 if test "x$ax_pthread_ok" = "xyes"; then
14056
14057 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
14058
14059 :
14060 else
14061 ax_pthread_ok=no
14062
14063 fi
14064 ac_ext=c
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069
14070
14071 ac_fn_c_check_func "$LINENO" "getrpcbyname" "ac_cv_func_getrpcbyname"
14072 if test "x$ac_cv_func_getrpcbyname" = xyes
14073 then :
14074 printf "%s\n" "#define HAVE_GETRPCBYNAME 1" >>confdefs.h
14075
14076 fi
14077 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
14078 if test "x$ac_cv_func_getrpcbynumber" = xyes
14079 then :
14080 printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
14081
14082 fi
14083 ac_fn_c_check_func "$LINENO" "setrpcent" "ac_cv_func_setrpcent"
14084 if test "x$ac_cv_func_setrpcent" = xyes
14085 then :
14086 printf "%s\n" "#define HAVE_SETRPCENT 1" >>confdefs.h
14087
14088 fi
14089 ac_fn_c_check_func "$LINENO" "endrpcent" "ac_cv_func_endrpcent"
14090 if test "x$ac_cv_func_endrpcent" = xyes
14091 then :
14092 printf "%s\n" "#define HAVE_ENDRPCENT 1" >>confdefs.h
14093
14094 fi
14095 ac_fn_c_check_func "$LINENO" "getrpcent" "ac_cv_func_getrpcent"
14096 if test "x$ac_cv_func_getrpcent" = xyes
14097 then :
14098 printf "%s\n" "#define HAVE_GETRPCENT 1" >>confdefs.h
14099
14100 fi
14101
14102
14103 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile"
14104
14105 ac_config_files="$ac_config_files libtirpc.pc"
14106
14107 cat >confcache <<\_ACEOF
14108 # This file is a shell script that caches the results of configure
14109 # tests run on this system so they can be shared between configure
14110 # scripts and configure runs, see configure's option --config-cache.
14111 # It is not useful on other systems. If it contains results you don't
14112 # want to keep, you may remove or edit it.
14113 #
14114 # config.status only pays attention to the cache file if you give it
14115 # the --recheck option to rerun configure.
14116 #
14117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14119 # following values.
14120
14121 _ACEOF
14122
14123 # The following way of writing the cache mishandles newlines in values,
14124 # but we know of no workaround that is simple, portable, and efficient.
14125 # So, we kill variables containing newlines.
14126 # Ultrix sh set writes to stderr and can't be redirected directly,
14127 # and sets the high bit in the cache file unless we assign to the vars.
14128 (
14129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14130 eval ac_val=\$$ac_var
14131 case $ac_val in #(
14132 *${as_nl}*)
14133 case $ac_var in #(
14134 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14135 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14136 esac
14137 case $ac_var in #(
14138 _ | IFS | as_nl) ;; #(
14139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14140 *) { eval $ac_var=; unset $ac_var;} ;;
14141 esac ;;
14142 esac
14143 done
14144
14145 (set) 2>&1 |
14146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14147 *${as_nl}ac_space=\ *)
14148 # `set' does not quote correctly, so add quotes: double-quote
14149 # substitution turns \\\\ into \\, and sed turns \\ into \.
14150 sed -n \
14151 "s/'/'\\\\''/g;
14152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14153 ;; #(
14154 *)
14155 # `set' quotes correctly as required by POSIX, so do not add quotes.
14156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14157 ;;
14158 esac |
14159 sort
14160 ) |
14161 sed '
14162 /^ac_cv_env_/b end
14163 t clear
14164 :clear
14165 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14166 t end
14167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14168 :end' >>confcache
14169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14170 if test -w "$cache_file"; then
14171 if test "x$cache_file" != "x/dev/null"; then
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14173 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14174 if test ! -f "$cache_file" || test -h "$cache_file"; then
14175 cat confcache >"$cache_file"
14176 else
14177 case $cache_file in #(
14178 */* | ?:*)
14179 mv -f confcache "$cache_file"$$ &&
14180 mv -f "$cache_file"$$ "$cache_file" ;; #(
14181 *)
14182 mv -f confcache "$cache_file" ;;
14183 esac
14184 fi
14185 fi
14186 else
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14188 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14189 fi
14190 fi
14191 rm -f confcache
14192
14193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14194 # Let make expand exec_prefix.
14195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14196
14197 DEFS=-DHAVE_CONFIG_H
14198
14199 ac_libobjs=
14200 ac_ltlibobjs=
14201 U=
14202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14203 # 1. Remove the extension, and $U if already installed.
14204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14205 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14207 # will be set to the directory where LIBOBJS objects are built.
14208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14210 done
14211 LIBOBJS=$ac_libobjs
14212
14213 LTLIBOBJS=$ac_ltlibobjs
14214
14215
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14217 printf %s "checking that generated files are newer than configure... " >&6; }
14218 if test -n "$am_sleep_pid"; then
14219 # Hide warnings about reused PIDs.
14220 wait $am_sleep_pid 2>/dev/null
14221 fi
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14223 printf "%s\n" "done" >&6; }
14224 if test -n "$EXEEXT"; then
14225 am__EXEEXT_TRUE=
14226 am__EXEEXT_FALSE='#'
14227 else
14228 am__EXEEXT_TRUE='#'
14229 am__EXEEXT_FALSE=
14230 fi
14231
14232 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14233 as_fn_error $? "conditional \"AMDEP\" was never defined.
14234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14235 fi
14236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14239 fi
14240 if test -z "${GSS_TRUE}" && test -z "${GSS_FALSE}"; then
14241 as_fn_error $? "conditional \"GSS\" was never defined.
14242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14243 fi
14244 if test -z "${AUTHDES_TRUE}" && test -z "${AUTHDES_FALSE}"; then
14245 as_fn_error $? "conditional \"AUTHDES\" was never defined.
14246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14247 fi
14248 if test -z "${INET6_TRUE}" && test -z "${INET6_FALSE}"; then
14249 as_fn_error $? "conditional \"INET6\" was never defined.
14250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14251 fi
14252 if test -z "${SYMVERS_TRUE}" && test -z "${SYMVERS_FALSE}"; then
14253 as_fn_error $? "conditional \"SYMVERS\" was never defined.
14254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14255 fi
14256
14257 : "${CONFIG_STATUS=./config.status}"
14258 ac_write_fail=0
14259 ac_clean_files_save=$ac_clean_files
14260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14262 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14263 as_write_fail=0
14264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14265 #! $SHELL
14266 # Generated by $as_me.
14267 # Run this file to recreate the current configuration.
14268 # Compiler output produced by configure, useful for debugging
14269 # configure, is in config.log if it exists.
14270
14271 debug=false
14272 ac_cs_recheck=false
14273 ac_cs_silent=false
14274
14275 SHELL=\${CONFIG_SHELL-$SHELL}
14276 export SHELL
14277 _ASEOF
14278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14279 ## -------------------- ##
14280 ## M4sh Initialization. ##
14281 ## -------------------- ##
14282
14283 # Be more Bourne compatible
14284 DUALCASE=1; export DUALCASE # for MKS sh
14285 as_nop=:
14286 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14287 then :
14288 emulate sh
14289 NULLCMD=:
14290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14291 # is contrary to our usage. Disable this feature.
14292 alias -g '${1+"$@"}'='"$@"'
14293 setopt NO_GLOB_SUBST
14294 else $as_nop
14295 case `(set -o) 2>/dev/null` in #(
14296 *posix*) :
14297 set -o posix ;; #(
14298 *) :
14299 ;;
14300 esac
14301 fi
14302
14303
14304
14305 # Reset variables that may have inherited troublesome values from
14306 # the environment.
14307
14308 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14309 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14310 # side effect of setting IFS to empty, thus disabling word splitting.)
14311 # Quoting is to prevent editors from complaining about space-tab.
14312 as_nl='
14313 '
14314 export as_nl
14315 IFS=" "" $as_nl"
14316
14317 PS1='$ '
14318 PS2='> '
14319 PS4='+ '
14320
14321 # Ensure predictable behavior from utilities with locale-dependent output.
14322 LC_ALL=C
14323 export LC_ALL
14324 LANGUAGE=C
14325 export LANGUAGE
14326
14327 # We cannot yet rely on "unset" to work, but we need these variables
14328 # to be unset--not just set to an empty or harmless value--now, to
14329 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14330 # also avoids known problems related to "unset" and subshell syntax
14331 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14332 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14333 do eval test \${$as_var+y} \
14334 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14335 done
14336
14337 # Ensure that fds 0, 1, and 2 are open.
14338 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14339 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14340 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14341
14342 # The user is always right.
14343 if ${PATH_SEPARATOR+false} :; then
14344 PATH_SEPARATOR=:
14345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14346 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14347 PATH_SEPARATOR=';'
14348 }
14349 fi
14350
14351
14352 # Find who we are. Look in the path if we contain no directory separator.
14353 as_myself=
14354 case $0 in #((
14355 *[\\/]* ) as_myself=$0 ;;
14356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357 for as_dir in $PATH
14358 do
14359 IFS=$as_save_IFS
14360 case $as_dir in #(((
14361 '') as_dir=./ ;;
14362 */) ;;
14363 *) as_dir=$as_dir/ ;;
14364 esac
14365 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14366 done
14367 IFS=$as_save_IFS
14368
14369 ;;
14370 esac
14371 # We did not find ourselves, most probably we were run as `sh COMMAND'
14372 # in which case we are not to be found in the path.
14373 if test "x$as_myself" = x; then
14374 as_myself=$0
14375 fi
14376 if test ! -f "$as_myself"; then
14377 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14378 exit 1
14379 fi
14380
14381
14382
14383 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14384 # ----------------------------------------
14385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14387 # script with STATUS, using 1 if that was 0.
14388 as_fn_error ()
14389 {
14390 as_status=$1; test $as_status -eq 0 && as_status=1
14391 if test "$4"; then
14392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14394 fi
14395 printf "%s\n" "$as_me: error: $2" >&2
14396 as_fn_exit $as_status
14397 } # as_fn_error
14398
14399
14400
14401 # as_fn_set_status STATUS
14402 # -----------------------
14403 # Set $? to STATUS, without forking.
14404 as_fn_set_status ()
14405 {
14406 return $1
14407 } # as_fn_set_status
14408
14409 # as_fn_exit STATUS
14410 # -----------------
14411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14412 as_fn_exit ()
14413 {
14414 set +e
14415 as_fn_set_status $1
14416 exit $1
14417 } # as_fn_exit
14418
14419 # as_fn_unset VAR
14420 # ---------------
14421 # Portably unset VAR.
14422 as_fn_unset ()
14423 {
14424 { eval $1=; unset $1;}
14425 }
14426 as_unset=as_fn_unset
14427
14428 # as_fn_append VAR VALUE
14429 # ----------------------
14430 # Append the text in VALUE to the end of the definition contained in VAR. Take
14431 # advantage of any shell optimizations that allow amortized linear growth over
14432 # repeated appends, instead of the typical quadratic growth present in naive
14433 # implementations.
14434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14435 then :
14436 eval 'as_fn_append ()
14437 {
14438 eval $1+=\$2
14439 }'
14440 else $as_nop
14441 as_fn_append ()
14442 {
14443 eval $1=\$$1\$2
14444 }
14445 fi # as_fn_append
14446
14447 # as_fn_arith ARG...
14448 # ------------------
14449 # Perform arithmetic evaluation on the ARGs, and store the result in the
14450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14451 # must be portable across $(()) and expr.
14452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14453 then :
14454 eval 'as_fn_arith ()
14455 {
14456 as_val=$(( $* ))
14457 }'
14458 else $as_nop
14459 as_fn_arith ()
14460 {
14461 as_val=`expr "$@" || test $? -eq 1`
14462 }
14463 fi # as_fn_arith
14464
14465
14466 if expr a : '\(a\)' >/dev/null 2>&1 &&
14467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14468 as_expr=expr
14469 else
14470 as_expr=false
14471 fi
14472
14473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14474 as_basename=basename
14475 else
14476 as_basename=false
14477 fi
14478
14479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14480 as_dirname=dirname
14481 else
14482 as_dirname=false
14483 fi
14484
14485 as_me=`$as_basename -- "$0" ||
14486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14487 X"$0" : 'X\(//\)$' \| \
14488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14489 printf "%s\n" X/"$0" |
14490 sed '/^.*\/\([^/][^/]*\)\/*$/{
14491 s//\1/
14492 q
14493 }
14494 /^X\/\(\/\/\)$/{
14495 s//\1/
14496 q
14497 }
14498 /^X\/\(\/\).*/{
14499 s//\1/
14500 q
14501 }
14502 s/.*/./; q'`
14503
14504 # Avoid depending upon Character Ranges.
14505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14508 as_cr_digits='0123456789'
14509 as_cr_alnum=$as_cr_Letters$as_cr_digits
14510
14511
14512 # Determine whether it's possible to make 'echo' print without a newline.
14513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14514 # for compatibility with existing Makefiles.
14515 ECHO_C= ECHO_N= ECHO_T=
14516 case `echo -n x` in #(((((
14517 -n*)
14518 case `echo 'xy\c'` in
14519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14520 xy) ECHO_C='\c';;
14521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14522 ECHO_T=' ';;
14523 esac;;
14524 *)
14525 ECHO_N='-n';;
14526 esac
14527
14528 # For backward compatibility with old third-party macros, we provide
14529 # the shell variables $as_echo and $as_echo_n. New code should use
14530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14531 as_echo='printf %s\n'
14532 as_echo_n='printf %s'
14533
14534 rm -f conf$$ conf$$.exe conf$$.file
14535 if test -d conf$$.dir; then
14536 rm -f conf$$.dir/conf$$.file
14537 else
14538 rm -f conf$$.dir
14539 mkdir conf$$.dir 2>/dev/null
14540 fi
14541 if (echo >conf$$.file) 2>/dev/null; then
14542 if ln -s conf$$.file conf$$ 2>/dev/null; then
14543 as_ln_s='ln -s'
14544 # ... but there are two gotchas:
14545 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14546 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14547 # In both cases, we have to default to `cp -pR'.
14548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14549 as_ln_s='cp -pR'
14550 elif ln conf$$.file conf$$ 2>/dev/null; then
14551 as_ln_s=ln
14552 else
14553 as_ln_s='cp -pR'
14554 fi
14555 else
14556 as_ln_s='cp -pR'
14557 fi
14558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14559 rmdir conf$$.dir 2>/dev/null
14560
14561
14562 # as_fn_mkdir_p
14563 # -------------
14564 # Create "$as_dir" as a directory, including parents if necessary.
14565 as_fn_mkdir_p ()
14566 {
14567
14568 case $as_dir in #(
14569 -*) as_dir=./$as_dir;;
14570 esac
14571 test -d "$as_dir" || eval $as_mkdir_p || {
14572 as_dirs=
14573 while :; do
14574 case $as_dir in #(
14575 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14576 *) as_qdir=$as_dir;;
14577 esac
14578 as_dirs="'$as_qdir' $as_dirs"
14579 as_dir=`$as_dirname -- "$as_dir" ||
14580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$as_dir" : 'X\(//\)[^/]' \| \
14582 X"$as_dir" : 'X\(//\)$' \| \
14583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14584 printf "%s\n" X"$as_dir" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\/\)$/{
14594 s//\1/
14595 q
14596 }
14597 /^X\(\/\).*/{
14598 s//\1/
14599 q
14600 }
14601 s/.*/./; q'`
14602 test -d "$as_dir" && break
14603 done
14604 test -z "$as_dirs" || eval "mkdir $as_dirs"
14605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14606
14607
14608 } # as_fn_mkdir_p
14609 if mkdir -p . 2>/dev/null; then
14610 as_mkdir_p='mkdir -p "$as_dir"'
14611 else
14612 test -d ./-p && rmdir ./-p
14613 as_mkdir_p=false
14614 fi
14615
14616
14617 # as_fn_executable_p FILE
14618 # -----------------------
14619 # Test if FILE is an executable regular file.
14620 as_fn_executable_p ()
14621 {
14622 test -f "$1" && test -x "$1"
14623 } # as_fn_executable_p
14624 as_test_x='test -x'
14625 as_executable_p=as_fn_executable_p
14626
14627 # Sed expression to map a string onto a valid CPP name.
14628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14629
14630 # Sed expression to map a string onto a valid variable name.
14631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14632
14633
14634 exec 6>&1
14635 ## ----------------------------------- ##
14636 ## Main body of $CONFIG_STATUS script. ##
14637 ## ----------------------------------- ##
14638 _ASEOF
14639 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14640
14641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14642 # Save the log message, to keep $0 and so on meaningful, and to
14643 # report actual input values of CONFIG_FILES etc. instead of their
14644 # values after options handling.
14645 ac_log="
14646 This file was extended by libtirpc $as_me 1.3.5, which was
14647 generated by GNU Autoconf 2.71. Invocation command line was
14648
14649 CONFIG_FILES = $CONFIG_FILES
14650 CONFIG_HEADERS = $CONFIG_HEADERS
14651 CONFIG_LINKS = $CONFIG_LINKS
14652 CONFIG_COMMANDS = $CONFIG_COMMANDS
14653 $ $0 $@
14654
14655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14656 "
14657
14658 _ACEOF
14659
14660 case $ac_config_files in *"
14661 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14662 esac
14663
14664 case $ac_config_headers in *"
14665 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14666 esac
14667
14668
14669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14670 # Files that config.status was made for.
14671 config_files="$ac_config_files"
14672 config_headers="$ac_config_headers"
14673 config_commands="$ac_config_commands"
14674
14675 _ACEOF
14676
14677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678 ac_cs_usage="\
14679 \`$as_me' instantiates files and other configuration actions
14680 from templates according to the current configuration. Unless the files
14681 and actions are specified as TAGs, all are instantiated by default.
14682
14683 Usage: $0 [OPTION]... [TAG]...
14684
14685 -h, --help print this help, then exit
14686 -V, --version print version number and configuration settings, then exit
14687 --config print configuration, then exit
14688 -q, --quiet, --silent
14689 do not print progress messages
14690 -d, --debug don't remove temporary files
14691 --recheck update $as_me by reconfiguring in the same conditions
14692 --file=FILE[:TEMPLATE]
14693 instantiate the configuration file FILE
14694 --header=FILE[:TEMPLATE]
14695 instantiate the configuration header FILE
14696
14697 Configuration files:
14698 $config_files
14699
14700 Configuration headers:
14701 $config_headers
14702
14703 Configuration commands:
14704 $config_commands
14705
14706 Report bugs to the package provider."
14707
14708 _ACEOF
14709 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14710 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 ac_cs_config='$ac_cs_config_escaped'
14713 ac_cs_version="\\
14714 libtirpc config.status 1.3.5
14715 configured by $0, generated by GNU Autoconf 2.71,
14716 with options \\"\$ac_cs_config\\"
14717
14718 Copyright (C) 2021 Free Software Foundation, Inc.
14719 This config.status script is free software; the Free Software Foundation
14720 gives unlimited permission to copy, distribute and modify it."
14721
14722 ac_pwd='$ac_pwd'
14723 srcdir='$srcdir'
14724 INSTALL='$INSTALL'
14725 MKDIR_P='$MKDIR_P'
14726 AWK='$AWK'
14727 test -n "\$AWK" || AWK=awk
14728 _ACEOF
14729
14730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14731 # The default lists apply if the user does not specify any file.
14732 ac_need_defaults=:
14733 while test $# != 0
14734 do
14735 case $1 in
14736 --*=?*)
14737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14739 ac_shift=:
14740 ;;
14741 --*=)
14742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14743 ac_optarg=
14744 ac_shift=:
14745 ;;
14746 *)
14747 ac_option=$1
14748 ac_optarg=$2
14749 ac_shift=shift
14750 ;;
14751 esac
14752
14753 case $ac_option in
14754 # Handling of the options.
14755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14756 ac_cs_recheck=: ;;
14757 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14758 printf "%s\n" "$ac_cs_version"; exit ;;
14759 --config | --confi | --conf | --con | --co | --c )
14760 printf "%s\n" "$ac_cs_config"; exit ;;
14761 --debug | --debu | --deb | --de | --d | -d )
14762 debug=: ;;
14763 --file | --fil | --fi | --f )
14764 $ac_shift
14765 case $ac_optarg in
14766 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14767 '') as_fn_error $? "missing file argument" ;;
14768 esac
14769 as_fn_append CONFIG_FILES " '$ac_optarg'"
14770 ac_need_defaults=false;;
14771 --header | --heade | --head | --hea )
14772 $ac_shift
14773 case $ac_optarg in
14774 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14775 esac
14776 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14777 ac_need_defaults=false;;
14778 --he | --h)
14779 # Conflict between --help and --header
14780 as_fn_error $? "ambiguous option: \`$1'
14781 Try \`$0 --help' for more information.";;
14782 --help | --hel | -h )
14783 printf "%s\n" "$ac_cs_usage"; exit ;;
14784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14786 ac_cs_silent=: ;;
14787
14788 # This is an error.
14789 -*) as_fn_error $? "unrecognized option: \`$1'
14790 Try \`$0 --help' for more information." ;;
14791
14792 *) as_fn_append ac_config_targets " $1"
14793 ac_need_defaults=false ;;
14794
14795 esac
14796 shift
14797 done
14798
14799 ac_configure_extra_args=
14800
14801 if $ac_cs_silent; then
14802 exec 6>/dev/null
14803 ac_configure_extra_args="$ac_configure_extra_args --silent"
14804 fi
14805
14806 _ACEOF
14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808 if \$ac_cs_recheck; then
14809 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14810 shift
14811 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14812 CONFIG_SHELL='$SHELL'
14813 export CONFIG_SHELL
14814 exec "\$@"
14815 fi
14816
14817 _ACEOF
14818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14819 exec 5>>config.log
14820 {
14821 echo
14822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14823 ## Running $as_me. ##
14824 _ASBOX
14825 printf "%s\n" "$ac_log"
14826 } >&5
14827
14828 _ACEOF
14829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14830 #
14831 # INIT-COMMANDS
14832 #
14833 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14834
14835
14836 # The HP-UX ksh and POSIX shell print the target directory to stdout
14837 # if CDPATH is set.
14838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14839
14840 sed_quote_subst='$sed_quote_subst'
14841 double_quote_subst='$double_quote_subst'
14842 delay_variable_subst='$delay_variable_subst'
14843 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14844 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14845 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14846 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14847 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14848 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14849 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14850 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14851 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14852 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14853 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14854 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14855 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14856 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14857 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14858 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14859 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14860 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14861 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14862 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14863 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14864 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14865 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14866 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14867 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14868 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14869 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14870 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14871 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14872 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14873 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14874 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14875 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14876 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14877 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14878 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14879 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14880 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14881 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14882 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14883 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14884 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14885 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14886 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14887 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14888 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14889 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14890 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14891 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14892 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14893 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14894 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14895 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14896 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14897 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14898 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14899 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14900 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14901 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14902 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14903 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"`'
14904 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14905 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14906 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14907 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14908 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14909 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14910 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14911 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14912 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14913 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14914 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14915 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14916 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14917 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14918 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14919 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14920 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14921 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14922 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14923 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14924 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14925 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14926 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14927 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14928 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14929 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14930 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14931 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14932 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14933 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14934 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14935 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14936 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14937 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14938 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14939 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14940 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14941 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14942 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14943 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14944 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14945 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14946 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14947 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14948 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14949 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14950 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14951 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14952 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14953 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14954 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14955 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14956 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14957 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14958 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14959 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14960 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14961 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14962 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14963 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14964 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14965 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14966 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14967 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14968 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14969 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14970 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14971 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14972 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14973 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14974 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14975 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14976 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14977 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14978 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14979 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14980
14981 LTCC='$LTCC'
14982 LTCFLAGS='$LTCFLAGS'
14983 compiler='$compiler_DEFAULT'
14984
14985 # A function that is used when there is no print builtin or printf.
14986 func_fallback_echo ()
14987 {
14988 eval 'cat <<_LTECHO_EOF
14989 \$1
14990 _LTECHO_EOF'
14991 }
14992
14993 # Quote evaled strings.
14994 for var in SHELL \
14995 ECHO \
14996 PATH_SEPARATOR \
14997 SED \
14998 GREP \
14999 EGREP \
15000 FGREP \
15001 LD \
15002 NM \
15003 LN_S \
15004 lt_SP2NL \
15005 lt_NL2SP \
15006 reload_flag \
15007 FILECMD \
15008 OBJDUMP \
15009 deplibs_check_method \
15010 file_magic_cmd \
15011 file_magic_glob \
15012 want_nocaseglob \
15013 DLLTOOL \
15014 sharedlib_from_linklib_cmd \
15015 AR \
15016 archiver_list_spec \
15017 STRIP \
15018 RANLIB \
15019 CC \
15020 CFLAGS \
15021 compiler \
15022 lt_cv_sys_global_symbol_pipe \
15023 lt_cv_sys_global_symbol_to_cdecl \
15024 lt_cv_sys_global_symbol_to_import \
15025 lt_cv_sys_global_symbol_to_c_name_address \
15026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15027 lt_cv_nm_interface \
15028 nm_file_list_spec \
15029 lt_cv_truncate_bin \
15030 lt_prog_compiler_no_builtin_flag \
15031 lt_prog_compiler_pic \
15032 lt_prog_compiler_wl \
15033 lt_prog_compiler_static \
15034 lt_cv_prog_compiler_c_o \
15035 need_locks \
15036 MANIFEST_TOOL \
15037 DSYMUTIL \
15038 NMEDIT \
15039 LIPO \
15040 OTOOL \
15041 OTOOL64 \
15042 shrext_cmds \
15043 export_dynamic_flag_spec \
15044 whole_archive_flag_spec \
15045 compiler_needs_object \
15046 with_gnu_ld \
15047 allow_undefined_flag \
15048 no_undefined_flag \
15049 hardcode_libdir_flag_spec \
15050 hardcode_libdir_separator \
15051 exclude_expsyms \
15052 include_expsyms \
15053 file_list_spec \
15054 variables_saved_for_relink \
15055 libname_spec \
15056 library_names_spec \
15057 soname_spec \
15058 install_override_mode \
15059 finish_eval \
15060 old_striplib \
15061 striplib; do
15062 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15063 *[\\\\\\\`\\"\\\$]*)
15064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15065 ;;
15066 *)
15067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15068 ;;
15069 esac
15070 done
15071
15072 # Double-quote double-evaled strings.
15073 for var in reload_cmds \
15074 old_postinstall_cmds \
15075 old_postuninstall_cmds \
15076 old_archive_cmds \
15077 extract_expsyms_cmds \
15078 old_archive_from_new_cmds \
15079 old_archive_from_expsyms_cmds \
15080 archive_cmds \
15081 archive_expsym_cmds \
15082 module_cmds \
15083 module_expsym_cmds \
15084 export_symbols_cmds \
15085 prelink_cmds \
15086 postlink_cmds \
15087 postinstall_cmds \
15088 postuninstall_cmds \
15089 finish_cmds \
15090 sys_lib_search_path_spec \
15091 configure_time_dlsearch_path \
15092 configure_time_lt_sys_library_path; do
15093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15094 *[\\\\\\\`\\"\\\$]*)
15095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15096 ;;
15097 *)
15098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15099 ;;
15100 esac
15101 done
15102
15103 ac_aux_dir='$ac_aux_dir'
15104
15105 # See if we are running on zsh, and set the options that allow our
15106 # commands through without removal of \ escapes INIT.
15107 if test -n "\${ZSH_VERSION+set}"; then
15108 setopt NO_GLOB_SUBST
15109 fi
15110
15111
15112 PACKAGE='$PACKAGE'
15113 VERSION='$VERSION'
15114 RM='$RM'
15115 ofile='$ofile'
15116
15117
15118
15119
15120 _ACEOF
15121
15122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15123
15124 # Handling of arguments.
15125 for ac_config_target in $ac_config_targets
15126 do
15127 case $ac_config_target in
15128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15129 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15130 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15132 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15133 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15134 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15135 "libtirpc.pc") CONFIG_FILES="$CONFIG_FILES libtirpc.pc" ;;
15136
15137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15138 esac
15139 done
15140
15141
15142 # If the user did not use the arguments to specify the items to instantiate,
15143 # then the envvar interface is used. Set only those that are not.
15144 # We use the long form for the default assignment because of an extremely
15145 # bizarre bug on SunOS 4.1.3.
15146 if $ac_need_defaults; then
15147 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15148 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15149 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15150 fi
15151
15152 # Have a temporary directory for convenience. Make it in the build tree
15153 # simply because there is no reason against having it here, and in addition,
15154 # creating and moving files from /tmp can sometimes cause problems.
15155 # Hook for its removal unless debugging.
15156 # Note that there is a small window in which the directory will not be cleaned:
15157 # after its creation but before its name has been assigned to `$tmp'.
15158 $debug ||
15159 {
15160 tmp= ac_tmp=
15161 trap 'exit_status=$?
15162 : "${ac_tmp:=$tmp}"
15163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15164 ' 0
15165 trap 'as_fn_exit 1' 1 2 13 15
15166 }
15167 # Create a (secure) tmp directory for tmp files.
15168
15169 {
15170 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15171 test -d "$tmp"
15172 } ||
15173 {
15174 tmp=./conf$$-$RANDOM
15175 (umask 077 && mkdir "$tmp")
15176 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15177 ac_tmp=$tmp
15178
15179 # Set up the scripts for CONFIG_FILES section.
15180 # No need to generate them if there are no CONFIG_FILES.
15181 # This happens for instance with `./config.status config.h'.
15182 if test -n "$CONFIG_FILES"; then
15183
15184
15185 ac_cr=`echo X | tr X '\015'`
15186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15187 # But we know of no other shell where ac_cr would be empty at this
15188 # point, so we can use a bashism as a fallback.
15189 if test "x$ac_cr" = x; then
15190 eval ac_cr=\$\'\\r\'
15191 fi
15192 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15194 ac_cs_awk_cr='\\r'
15195 else
15196 ac_cs_awk_cr=$ac_cr
15197 fi
15198
15199 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15200 _ACEOF
15201
15202
15203 {
15204 echo "cat >conf$$subs.awk <<_ACEOF" &&
15205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15206 echo "_ACEOF"
15207 } >conf$$subs.sh ||
15208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15210 ac_delim='%!_!# '
15211 for ac_last_try in false false false false false :; do
15212 . ./conf$$subs.sh ||
15213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15214
15215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15216 if test $ac_delim_n = $ac_delim_num; then
15217 break
15218 elif $ac_last_try; then
15219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15220 else
15221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15222 fi
15223 done
15224 rm -f conf$$subs.sh
15225
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15228 _ACEOF
15229 sed -n '
15230 h
15231 s/^/S["/; s/!.*/"]=/
15232 p
15233 g
15234 s/^[^!]*!//
15235 :repl
15236 t repl
15237 s/'"$ac_delim"'$//
15238 t delim
15239 :nl
15240 h
15241 s/\(.\{148\}\)..*/\1/
15242 t more1
15243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15244 p
15245 n
15246 b repl
15247 :more1
15248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15249 p
15250 g
15251 s/.\{148\}//
15252 t nl
15253 :delim
15254 h
15255 s/\(.\{148\}\)..*/\1/
15256 t more2
15257 s/["\\]/\\&/g; s/^/"/; s/$/"/
15258 p
15259 b
15260 :more2
15261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15262 p
15263 g
15264 s/.\{148\}//
15265 t delim
15266 ' <conf$$subs.awk | sed '
15267 /^[^""]/{
15268 N
15269 s/\n//
15270 }
15271 ' >>$CONFIG_STATUS || ac_write_fail=1
15272 rm -f conf$$subs.awk
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 _ACAWK
15275 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15276 for (key in S) S_is_set[key] = 1
15277 FS = ""
15278
15279 }
15280 {
15281 line = $ 0
15282 nfields = split(line, field, "@")
15283 substed = 0
15284 len = length(field[1])
15285 for (i = 2; i < nfields; i++) {
15286 key = field[i]
15287 keylen = length(key)
15288 if (S_is_set[key]) {
15289 value = S[key]
15290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15291 len += length(value) + length(field[++i])
15292 substed = 1
15293 } else
15294 len += 1 + keylen
15295 }
15296
15297 print line
15298 }
15299
15300 _ACAWK
15301 _ACEOF
15302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15305 else
15306 cat
15307 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15308 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15309 _ACEOF
15310
15311 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15312 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15313 # trailing colons and then remove the whole line if VPATH becomes empty
15314 # (actually we leave an empty line to preserve line numbers).
15315 if test "x$srcdir" = x.; then
15316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15317 h
15318 s///
15319 s/^/:/
15320 s/[ ]*$/:/
15321 s/:\$(srcdir):/:/g
15322 s/:\${srcdir}:/:/g
15323 s/:@srcdir@:/:/g
15324 s/^:*//
15325 s/:*$//
15326 x
15327 s/\(=[ ]*\).*/\1/
15328 G
15329 s/\n//
15330 s/^[^=]*=[ ]*$//
15331 }'
15332 fi
15333
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 fi # test -n "$CONFIG_FILES"
15336
15337 # Set up the scripts for CONFIG_HEADERS section.
15338 # No need to generate them if there are no CONFIG_HEADERS.
15339 # This happens for instance with `./config.status Makefile'.
15340 if test -n "$CONFIG_HEADERS"; then
15341 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15342 BEGIN {
15343 _ACEOF
15344
15345 # Transform confdefs.h into an awk script `defines.awk', embedded as
15346 # here-document in config.status, that substitutes the proper values into
15347 # config.h.in to produce config.h.
15348
15349 # Create a delimiter string that does not exist in confdefs.h, to ease
15350 # handling of long lines.
15351 ac_delim='%!_!# '
15352 for ac_last_try in false false :; do
15353 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15354 if test -z "$ac_tt"; then
15355 break
15356 elif $ac_last_try; then
15357 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15358 else
15359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15360 fi
15361 done
15362
15363 # For the awk script, D is an array of macro values keyed by name,
15364 # likewise P contains macro parameters if any. Preserve backslash
15365 # newline sequences.
15366
15367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15368 sed -n '
15369 s/.\{148\}/&'"$ac_delim"'/g
15370 t rset
15371 :rset
15372 s/^[ ]*#[ ]*define[ ][ ]*/ /
15373 t def
15374 d
15375 :def
15376 s/\\$//
15377 t bsnl
15378 s/["\\]/\\&/g
15379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15380 D["\1"]=" \3"/p
15381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15382 d
15383 :bsnl
15384 s/["\\]/\\&/g
15385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15386 D["\1"]=" \3\\\\\\n"\\/p
15387 t cont
15388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15389 t cont
15390 d
15391 :cont
15392 n
15393 s/.\{148\}/&'"$ac_delim"'/g
15394 t clear
15395 :clear
15396 s/\\$//
15397 t bsnlc
15398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15399 d
15400 :bsnlc
15401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15402 b cont
15403 ' <confdefs.h | sed '
15404 s/'"$ac_delim"'/"\\\
15405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15406
15407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15408 for (key in D) D_is_set[key] = 1
15409 FS = ""
15410 }
15411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15412 line = \$ 0
15413 split(line, arg, " ")
15414 if (arg[1] == "#") {
15415 defundef = arg[2]
15416 mac1 = arg[3]
15417 } else {
15418 defundef = substr(arg[1], 2)
15419 mac1 = arg[2]
15420 }
15421 split(mac1, mac2, "(") #)
15422 macro = mac2[1]
15423 prefix = substr(line, 1, index(line, defundef) - 1)
15424 if (D_is_set[macro]) {
15425 # Preserve the white space surrounding the "#".
15426 print prefix "define", macro P[macro] D[macro]
15427 next
15428 } else {
15429 # Replace #undef with comments. This is necessary, for example,
15430 # in the case of _POSIX_SOURCE, which is predefined and required
15431 # on some systems where configure will not decide to define it.
15432 if (defundef == "undef") {
15433 print "/*", prefix defundef, macro, "*/"
15434 next
15435 }
15436 }
15437 }
15438 { print }
15439 _ACAWK
15440 _ACEOF
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15443 fi # test -n "$CONFIG_HEADERS"
15444
15445
15446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15447 shift
15448 for ac_tag
15449 do
15450 case $ac_tag in
15451 :[FHLC]) ac_mode=$ac_tag; continue;;
15452 esac
15453 case $ac_mode$ac_tag in
15454 :[FHL]*:*);;
15455 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15456 :[FH]-) ac_tag=-:-;;
15457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15458 esac
15459 ac_save_IFS=$IFS
15460 IFS=:
15461 set x $ac_tag
15462 IFS=$ac_save_IFS
15463 shift
15464 ac_file=$1
15465 shift
15466
15467 case $ac_mode in
15468 :L) ac_source=$1;;
15469 :[FH])
15470 ac_file_inputs=
15471 for ac_f
15472 do
15473 case $ac_f in
15474 -) ac_f="$ac_tmp/stdin";;
15475 *) # Look for the file first in the build tree, then in the source tree
15476 # (if the path is not absolute). The absolute path cannot be DOS-style,
15477 # because $ac_f cannot contain `:'.
15478 test -f "$ac_f" ||
15479 case $ac_f in
15480 [\\/$]*) false;;
15481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15482 esac ||
15483 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15484 esac
15485 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15486 as_fn_append ac_file_inputs " '$ac_f'"
15487 done
15488
15489 # Let's still pretend it is `configure' which instantiates (i.e., don't
15490 # use $as_me), people would be surprised to read:
15491 # /* config.h. Generated by config.status. */
15492 configure_input='Generated from '`
15493 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15494 `' by configure.'
15495 if test x"$ac_file" != x-; then
15496 configure_input="$ac_file. $configure_input"
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15498 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15499 fi
15500 # Neutralize special characters interpreted by sed in replacement strings.
15501 case $configure_input in #(
15502 *\&* | *\|* | *\\* )
15503 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15505 *) ac_sed_conf_input=$configure_input;;
15506 esac
15507
15508 case $ac_tag in
15509 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15511 esac
15512 ;;
15513 esac
15514
15515 ac_dir=`$as_dirname -- "$ac_file" ||
15516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15517 X"$ac_file" : 'X\(//\)[^/]' \| \
15518 X"$ac_file" : 'X\(//\)$' \| \
15519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15520 printf "%s\n" X"$ac_file" |
15521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\/\)[^/].*/{
15526 s//\1/
15527 q
15528 }
15529 /^X\(\/\/\)$/{
15530 s//\1/
15531 q
15532 }
15533 /^X\(\/\).*/{
15534 s//\1/
15535 q
15536 }
15537 s/.*/./; q'`
15538 as_dir="$ac_dir"; as_fn_mkdir_p
15539 ac_builddir=.
15540
15541 case "$ac_dir" in
15542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15543 *)
15544 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15545 # A ".." for each directory in $ac_dir_suffix.
15546 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15547 case $ac_top_builddir_sub in
15548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15550 esac ;;
15551 esac
15552 ac_abs_top_builddir=$ac_pwd
15553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15554 # for backward compatibility:
15555 ac_top_builddir=$ac_top_build_prefix
15556
15557 case $srcdir in
15558 .) # We are building in place.
15559 ac_srcdir=.
15560 ac_top_srcdir=$ac_top_builddir_sub
15561 ac_abs_top_srcdir=$ac_pwd ;;
15562 [\\/]* | ?:[\\/]* ) # Absolute name.
15563 ac_srcdir=$srcdir$ac_dir_suffix;
15564 ac_top_srcdir=$srcdir
15565 ac_abs_top_srcdir=$srcdir ;;
15566 *) # Relative name.
15567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15568 ac_top_srcdir=$ac_top_build_prefix$srcdir
15569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15570 esac
15571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15572
15573
15574 case $ac_mode in
15575 :F)
15576 #
15577 # CONFIG_FILE
15578 #
15579
15580 case $INSTALL in
15581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15583 esac
15584 ac_MKDIR_P=$MKDIR_P
15585 case $MKDIR_P in
15586 [\\/$]* | ?:[\\/]* ) ;;
15587 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15588 esac
15589 _ACEOF
15590
15591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15592 # If the template does not know about datarootdir, expand it.
15593 # FIXME: This hack should be removed a few years after 2.60.
15594 ac_datarootdir_hack=; ac_datarootdir_seen=
15595 ac_sed_dataroot='
15596 /datarootdir/ {
15597 p
15598 q
15599 }
15600 /@datadir@/p
15601 /@docdir@/p
15602 /@infodir@/p
15603 /@localedir@/p
15604 /@mandir@/p'
15605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15606 *datarootdir*) ac_datarootdir_seen=yes;;
15607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15609 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15610 _ACEOF
15611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612 ac_datarootdir_hack='
15613 s&@datadir@&$datadir&g
15614 s&@docdir@&$docdir&g
15615 s&@infodir@&$infodir&g
15616 s&@localedir@&$localedir&g
15617 s&@mandir@&$mandir&g
15618 s&\\\${datarootdir}&$datarootdir&g' ;;
15619 esac
15620 _ACEOF
15621
15622 # Neutralize VPATH when `$srcdir' = `.'.
15623 # Shell code in configure.ac might set extrasub.
15624 # FIXME: do we really want to maintain this feature?
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 ac_sed_extra="$ac_vpsub
15627 $extrasub
15628 _ACEOF
15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 :t
15631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15632 s|@configure_input@|$ac_sed_conf_input|;t t
15633 s&@top_builddir@&$ac_top_builddir_sub&;t t
15634 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15635 s&@srcdir@&$ac_srcdir&;t t
15636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15637 s&@top_srcdir@&$ac_top_srcdir&;t t
15638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15639 s&@builddir@&$ac_builddir&;t t
15640 s&@abs_builddir@&$ac_abs_builddir&;t t
15641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15642 s&@INSTALL@&$ac_INSTALL&;t t
15643 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15644 $ac_datarootdir_hack
15645 "
15646 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15647 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15648
15649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15652 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15654 which seems to be undefined. Please make sure it is defined" >&5
15655 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15656 which seems to be undefined. Please make sure it is defined" >&2;}
15657
15658 rm -f "$ac_tmp/stdin"
15659 case $ac_file in
15660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15662 esac \
15663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15664 ;;
15665 :H)
15666 #
15667 # CONFIG_HEADER
15668 #
15669 if test x"$ac_file" != x-; then
15670 {
15671 printf "%s\n" "/* $configure_input */" >&1 \
15672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15673 } >"$ac_tmp/config.h" \
15674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15677 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15678 else
15679 rm -f "$ac_file"
15680 mv "$ac_tmp/config.h" "$ac_file" \
15681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15682 fi
15683 else
15684 printf "%s\n" "/* $configure_input */" >&1 \
15685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15686 || as_fn_error $? "could not create -" "$LINENO" 5
15687 fi
15688 # Compute "$ac_file"'s index in $config_headers.
15689 _am_arg="$ac_file"
15690 _am_stamp_count=1
15691 for _am_header in $config_headers :; do
15692 case $_am_header in
15693 $_am_arg | $_am_arg:* )
15694 break ;;
15695 * )
15696 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15697 esac
15698 done
15699 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15700 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15701 X"$_am_arg" : 'X\(//\)[^/]' \| \
15702 X"$_am_arg" : 'X\(//\)$' \| \
15703 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15704 printf "%s\n" X"$_am_arg" |
15705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15706 s//\1/
15707 q
15708 }
15709 /^X\(\/\/\)[^/].*/{
15710 s//\1/
15711 q
15712 }
15713 /^X\(\/\/\)$/{
15714 s//\1/
15715 q
15716 }
15717 /^X\(\/\).*/{
15718 s//\1/
15719 q
15720 }
15721 s/.*/./; q'`/stamp-h$_am_stamp_count
15722 ;;
15723
15724 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15725 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15726 ;;
15727 esac
15728
15729
15730 case $ac_file$ac_mode in
15731 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15732 # Older Autoconf quotes --file arguments for eval, but not when files
15733 # are listed without --file. Let's play safe and only enable the eval
15734 # if we detect the quoting.
15735 # TODO: see whether this extra hack can be removed once we start
15736 # requiring Autoconf 2.70 or later.
15737 case $CONFIG_FILES in #(
15738 *\'*) :
15739 eval set x "$CONFIG_FILES" ;; #(
15740 *) :
15741 set x $CONFIG_FILES ;; #(
15742 *) :
15743 ;;
15744 esac
15745 shift
15746 # Used to flag and report bootstrapping failures.
15747 am_rc=0
15748 for am_mf
15749 do
15750 # Strip MF so we end up with the name of the file.
15751 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15752 # Check whether this is an Automake generated Makefile which includes
15753 # dependency-tracking related rules and includes.
15754 # Grep'ing the whole file directly is not great: AIX grep has a line
15755 # limit of 2048, but all sed's we know have understand at least 4000.
15756 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15757 || continue
15758 am_dirpart=`$as_dirname -- "$am_mf" ||
15759 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15760 X"$am_mf" : 'X\(//\)[^/]' \| \
15761 X"$am_mf" : 'X\(//\)$' \| \
15762 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15763 printf "%s\n" X"$am_mf" |
15764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\(\/\/\)[^/].*/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\/\)$/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\).*/{
15777 s//\1/
15778 q
15779 }
15780 s/.*/./; q'`
15781 am_filepart=`$as_basename -- "$am_mf" ||
15782 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15783 X"$am_mf" : 'X\(//\)$' \| \
15784 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15785 printf "%s\n" X/"$am_mf" |
15786 sed '/^.*\/\([^/][^/]*\)\/*$/{
15787 s//\1/
15788 q
15789 }
15790 /^X\/\(\/\/\)$/{
15791 s//\1/
15792 q
15793 }
15794 /^X\/\(\/\).*/{
15795 s//\1/
15796 q
15797 }
15798 s/.*/./; q'`
15799 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15800 && sed -e '/# am--include-marker/d' "$am_filepart" \
15801 | $MAKE -f - am--depfiles" >&5
15802 (cd "$am_dirpart" \
15803 && sed -e '/# am--include-marker/d' "$am_filepart" \
15804 | $MAKE -f - am--depfiles) >&5 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } || am_rc=$?
15808 done
15809 if test $am_rc -ne 0; then
15810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15811 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15812 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15813 for automatic dependency tracking. If GNU make was not used, consider
15814 re-running the configure script with MAKE=\"gmake\" (or whatever is
15815 necessary). You can also try re-running configure with the
15816 '--disable-dependency-tracking' option to at least be able to build
15817 the package (albeit without support for automatic dependency tracking).
15818 See \`config.log' for more details" "$LINENO" 5; }
15819 fi
15820 { am_dirpart=; unset am_dirpart;}
15821 { am_filepart=; unset am_filepart;}
15822 { am_mf=; unset am_mf;}
15823 { am_rc=; unset am_rc;}
15824 rm -f conftest-deps.mk
15825 }
15826 ;;
15827 "libtool":C)
15828
15829 # See if we are running on zsh, and set the options that allow our
15830 # commands through without removal of \ escapes.
15831 if test -n "${ZSH_VERSION+set}"; then
15832 setopt NO_GLOB_SUBST
15833 fi
15834
15835 cfgfile=${ofile}T
15836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15837 $RM "$cfgfile"
15838
15839 cat <<_LT_EOF >> "$cfgfile"
15840 #! $SHELL
15841 # Generated automatically by $as_me ($PACKAGE) $VERSION
15842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15843 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15844
15845 # Provide generalized library-building support services.
15846 # Written by Gordon Matzigkeit, 1996
15847
15848 # Copyright (C) 2014 Free Software Foundation, Inc.
15849 # This is free software; see the source for copying conditions. There is NO
15850 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15851
15852 # GNU Libtool is free software; you can redistribute it and/or modify
15853 # it under the terms of the GNU General Public License as published by
15854 # the Free Software Foundation; either version 2 of of the License, or
15855 # (at your option) any later version.
15856 #
15857 # As a special exception to the GNU General Public License, if you
15858 # distribute this file as part of a program or library that is built
15859 # using GNU Libtool, you may include this file under the same
15860 # distribution terms that you use for the rest of that program.
15861 #
15862 # GNU Libtool is distributed in the hope that it will be useful, but
15863 # WITHOUT ANY WARRANTY; without even the implied warranty of
15864 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15865 # GNU General Public License for more details.
15866 #
15867 # You should have received a copy of the GNU General Public License
15868 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15869
15870
15871 # The names of the tagged configurations supported by this script.
15872 available_tags=''
15873
15874 # Configured defaults for sys_lib_dlsearch_path munging.
15875 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15876
15877 # ### BEGIN LIBTOOL CONFIG
15878
15879 # Which release of libtool.m4 was used?
15880 macro_version=$macro_version
15881 macro_revision=$macro_revision
15882
15883 # Whether or not to build shared libraries.
15884 build_libtool_libs=$enable_shared
15885
15886 # Whether or not to build static libraries.
15887 build_old_libs=$enable_static
15888
15889 # What type of objects to build.
15890 pic_mode=$pic_mode
15891
15892 # Whether or not to optimize for fast installation.
15893 fast_install=$enable_fast_install
15894
15895 # Shared archive member basename,for filename based shared library versioning on AIX.
15896 shared_archive_member_spec=$shared_archive_member_spec
15897
15898 # Shell to use when invoking shell scripts.
15899 SHELL=$lt_SHELL
15900
15901 # An echo program that protects backslashes.
15902 ECHO=$lt_ECHO
15903
15904 # The PATH separator for the build system.
15905 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15906
15907 # The host system.
15908 host_alias=$host_alias
15909 host=$host
15910 host_os=$host_os
15911
15912 # The build system.
15913 build_alias=$build_alias
15914 build=$build
15915 build_os=$build_os
15916
15917 # A sed program that does not truncate output.
15918 SED=$lt_SED
15919
15920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15921 Xsed="\$SED -e 1s/^X//"
15922
15923 # A grep program that handles long lines.
15924 GREP=$lt_GREP
15925
15926 # An ERE matcher.
15927 EGREP=$lt_EGREP
15928
15929 # A literal string matcher.
15930 FGREP=$lt_FGREP
15931
15932 # A BSD- or MS-compatible name lister.
15933 NM=$lt_NM
15934
15935 # Whether we need soft or hard links.
15936 LN_S=$lt_LN_S
15937
15938 # What is the maximum length of a command?
15939 max_cmd_len=$max_cmd_len
15940
15941 # Object file suffix (normally "o").
15942 objext=$ac_objext
15943
15944 # Executable file suffix (normally "").
15945 exeext=$exeext
15946
15947 # whether the shell understands "unset".
15948 lt_unset=$lt_unset
15949
15950 # turn spaces into newlines.
15951 SP2NL=$lt_lt_SP2NL
15952
15953 # turn newlines into spaces.
15954 NL2SP=$lt_lt_NL2SP
15955
15956 # convert \$build file names to \$host format.
15957 to_host_file_cmd=$lt_cv_to_host_file_cmd
15958
15959 # convert \$build files to toolchain format.
15960 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15961
15962 # A file(cmd) program that detects file types.
15963 FILECMD=$lt_FILECMD
15964
15965 # An object symbol dumper.
15966 OBJDUMP=$lt_OBJDUMP
15967
15968 # Method to check whether dependent libraries are shared objects.
15969 deplibs_check_method=$lt_deplibs_check_method
15970
15971 # Command to use when deplibs_check_method = "file_magic".
15972 file_magic_cmd=$lt_file_magic_cmd
15973
15974 # How to find potential files when deplibs_check_method = "file_magic".
15975 file_magic_glob=$lt_file_magic_glob
15976
15977 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15978 want_nocaseglob=$lt_want_nocaseglob
15979
15980 # DLL creation program.
15981 DLLTOOL=$lt_DLLTOOL
15982
15983 # Command to associate shared and link libraries.
15984 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15985
15986 # The archiver.
15987 AR=$lt_AR
15988
15989 # Flags to create an archive (by configure).
15990 lt_ar_flags=$lt_ar_flags
15991
15992 # Flags to create an archive.
15993 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15994
15995 # How to feed a file listing to the archiver.
15996 archiver_list_spec=$lt_archiver_list_spec
15997
15998 # A symbol stripping program.
15999 STRIP=$lt_STRIP
16000
16001 # Commands used to install an old-style archive.
16002 RANLIB=$lt_RANLIB
16003 old_postinstall_cmds=$lt_old_postinstall_cmds
16004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16005
16006 # Whether to use a lock for old archive extraction.
16007 lock_old_archive_extraction=$lock_old_archive_extraction
16008
16009 # A C compiler.
16010 LTCC=$lt_CC
16011
16012 # LTCC compiler flags.
16013 LTCFLAGS=$lt_CFLAGS
16014
16015 # Take the output of nm and produce a listing of raw symbols and C names.
16016 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16017
16018 # Transform the output of nm in a proper C declaration.
16019 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16020
16021 # Transform the output of nm into a list of symbols to manually relocate.
16022 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16023
16024 # Transform the output of nm in a C name address pair.
16025 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16026
16027 # Transform the output of nm in a C name address pair when lib prefix is needed.
16028 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16029
16030 # The name lister interface.
16031 nm_interface=$lt_lt_cv_nm_interface
16032
16033 # Specify filename containing input files for \$NM.
16034 nm_file_list_spec=$lt_nm_file_list_spec
16035
16036 # The root where to search for dependent libraries,and where our libraries should be installed.
16037 lt_sysroot=$lt_sysroot
16038
16039 # Command to truncate a binary pipe.
16040 lt_truncate_bin=$lt_lt_cv_truncate_bin
16041
16042 # The name of the directory that contains temporary libtool files.
16043 objdir=$objdir
16044
16045 # Used to examine libraries when file_magic_cmd begins with "file".
16046 MAGIC_CMD=$MAGIC_CMD
16047
16048 # Must we lock files when doing compilation?
16049 need_locks=$lt_need_locks
16050
16051 # Manifest tool.
16052 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16053
16054 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16055 DSYMUTIL=$lt_DSYMUTIL
16056
16057 # Tool to change global to local symbols on Mac OS X.
16058 NMEDIT=$lt_NMEDIT
16059
16060 # Tool to manipulate fat objects and archives on Mac OS X.
16061 LIPO=$lt_LIPO
16062
16063 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16064 OTOOL=$lt_OTOOL
16065
16066 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16067 OTOOL64=$lt_OTOOL64
16068
16069 # Old archive suffix (normally "a").
16070 libext=$libext
16071
16072 # Shared library suffix (normally ".so").
16073 shrext_cmds=$lt_shrext_cmds
16074
16075 # The commands to extract the exported symbol list from a shared archive.
16076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16077
16078 # Variables whose values should be saved in libtool wrapper scripts and
16079 # restored at link time.
16080 variables_saved_for_relink=$lt_variables_saved_for_relink
16081
16082 # Do we need the "lib" prefix for modules?
16083 need_lib_prefix=$need_lib_prefix
16084
16085 # Do we need a version for libraries?
16086 need_version=$need_version
16087
16088 # Library versioning type.
16089 version_type=$version_type
16090
16091 # Shared library runtime path variable.
16092 runpath_var=$runpath_var
16093
16094 # Shared library path variable.
16095 shlibpath_var=$shlibpath_var
16096
16097 # Is shlibpath searched before the hard-coded library search path?
16098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16099
16100 # Format of library name prefix.
16101 libname_spec=$lt_libname_spec
16102
16103 # List of archive names. First name is the real one, the rest are links.
16104 # The last name is the one that the linker finds with -lNAME
16105 library_names_spec=$lt_library_names_spec
16106
16107 # The coded name of the library, if different from the real name.
16108 soname_spec=$lt_soname_spec
16109
16110 # Permission mode override for installation of shared libraries.
16111 install_override_mode=$lt_install_override_mode
16112
16113 # Command to use after installation of a shared archive.
16114 postinstall_cmds=$lt_postinstall_cmds
16115
16116 # Command to use after uninstallation of a shared archive.
16117 postuninstall_cmds=$lt_postuninstall_cmds
16118
16119 # Commands used to finish a libtool library installation in a directory.
16120 finish_cmds=$lt_finish_cmds
16121
16122 # As "finish_cmds", except a single script fragment to be evaled but
16123 # not shown.
16124 finish_eval=$lt_finish_eval
16125
16126 # Whether we should hardcode library paths into libraries.
16127 hardcode_into_libs=$hardcode_into_libs
16128
16129 # Compile-time system search path for libraries.
16130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16131
16132 # Detected run-time system search path for libraries.
16133 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16134
16135 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16136 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16137
16138 # Whether dlopen is supported.
16139 dlopen_support=$enable_dlopen
16140
16141 # Whether dlopen of programs is supported.
16142 dlopen_self=$enable_dlopen_self
16143
16144 # Whether dlopen of statically linked programs is supported.
16145 dlopen_self_static=$enable_dlopen_self_static
16146
16147 # Commands to strip libraries.
16148 old_striplib=$lt_old_striplib
16149 striplib=$lt_striplib
16150
16151
16152 # The linker used to build libraries.
16153 LD=$lt_LD
16154
16155 # How to create reloadable object files.
16156 reload_flag=$lt_reload_flag
16157 reload_cmds=$lt_reload_cmds
16158
16159 # Commands used to build an old-style archive.
16160 old_archive_cmds=$lt_old_archive_cmds
16161
16162 # A language specific compiler.
16163 CC=$lt_compiler
16164
16165 # Is the compiler the GNU compiler?
16166 with_gcc=$GCC
16167
16168 # Compiler flag to turn off builtin functions.
16169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16170
16171 # Additional compiler flags for building library objects.
16172 pic_flag=$lt_lt_prog_compiler_pic
16173
16174 # How to pass a linker flag through the compiler.
16175 wl=$lt_lt_prog_compiler_wl
16176
16177 # Compiler flag to prevent dynamic linking.
16178 link_static_flag=$lt_lt_prog_compiler_static
16179
16180 # Does compiler simultaneously support -c and -o options?
16181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16182
16183 # Whether or not to add -lc for building shared libraries.
16184 build_libtool_need_lc=$archive_cmds_need_lc
16185
16186 # Whether or not to disallow shared libs when runtime libs are static.
16187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16188
16189 # Compiler flag to allow reflexive dlopens.
16190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16191
16192 # Compiler flag to generate shared objects directly from archives.
16193 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16194
16195 # Whether the compiler copes with passing no objects directly.
16196 compiler_needs_object=$lt_compiler_needs_object
16197
16198 # Create an old-style archive from a shared archive.
16199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16200
16201 # Create a temporary old-style archive to link instead of a shared archive.
16202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16203
16204 # Commands used to build a shared archive.
16205 archive_cmds=$lt_archive_cmds
16206 archive_expsym_cmds=$lt_archive_expsym_cmds
16207
16208 # Commands used to build a loadable module if different from building
16209 # a shared archive.
16210 module_cmds=$lt_module_cmds
16211 module_expsym_cmds=$lt_module_expsym_cmds
16212
16213 # Whether we are building with GNU ld or not.
16214 with_gnu_ld=$lt_with_gnu_ld
16215
16216 # Flag that allows shared libraries with undefined symbols to be built.
16217 allow_undefined_flag=$lt_allow_undefined_flag
16218
16219 # Flag that enforces no undefined symbols.
16220 no_undefined_flag=$lt_no_undefined_flag
16221
16222 # Flag to hardcode \$libdir into a binary during linking.
16223 # This must work even if \$libdir does not exist
16224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16225
16226 # Whether we need a single "-rpath" flag with a separated argument.
16227 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16228
16229 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16230 # DIR into the resulting binary.
16231 hardcode_direct=$hardcode_direct
16232
16233 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16234 # DIR into the resulting binary and the resulting library dependency is
16235 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16236 # library is relocated.
16237 hardcode_direct_absolute=$hardcode_direct_absolute
16238
16239 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16240 # into the resulting binary.
16241 hardcode_minus_L=$hardcode_minus_L
16242
16243 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16244 # into the resulting binary.
16245 hardcode_shlibpath_var=$hardcode_shlibpath_var
16246
16247 # Set to "yes" if building a shared library automatically hardcodes DIR
16248 # into the library and all subsequent libraries and executables linked
16249 # against it.
16250 hardcode_automatic=$hardcode_automatic
16251
16252 # Set to yes if linker adds runtime paths of dependent libraries
16253 # to runtime path list.
16254 inherit_rpath=$inherit_rpath
16255
16256 # Whether libtool must link a program against all its dependency libraries.
16257 link_all_deplibs=$link_all_deplibs
16258
16259 # Set to "yes" if exported symbols are required.
16260 always_export_symbols=$always_export_symbols
16261
16262 # The commands to list exported symbols.
16263 export_symbols_cmds=$lt_export_symbols_cmds
16264
16265 # Symbols that should not be listed in the preloaded symbols.
16266 exclude_expsyms=$lt_exclude_expsyms
16267
16268 # Symbols that must always be exported.
16269 include_expsyms=$lt_include_expsyms
16270
16271 # Commands necessary for linking programs (against libraries) with templates.
16272 prelink_cmds=$lt_prelink_cmds
16273
16274 # Commands necessary for finishing linking programs.
16275 postlink_cmds=$lt_postlink_cmds
16276
16277 # Specify filename containing input files.
16278 file_list_spec=$lt_file_list_spec
16279
16280 # How to hardcode a shared library path into an executable.
16281 hardcode_action=$hardcode_action
16282
16283 # ### END LIBTOOL CONFIG
16284
16285 _LT_EOF
16286
16287 cat <<'_LT_EOF' >> "$cfgfile"
16288
16289 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16290
16291 # func_munge_path_list VARIABLE PATH
16292 # -----------------------------------
16293 # VARIABLE is name of variable containing _space_ separated list of
16294 # directories to be munged by the contents of PATH, which is string
16295 # having a format:
16296 # "DIR[:DIR]:"
16297 # string "DIR[ DIR]" will be prepended to VARIABLE
16298 # ":DIR[:DIR]"
16299 # string "DIR[ DIR]" will be appended to VARIABLE
16300 # "DIRP[:DIRP]::[DIRA:]DIRA"
16301 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16302 # "DIRA[ DIRA]" will be appended to VARIABLE
16303 # "DIR[:DIR]"
16304 # VARIABLE will be replaced by "DIR[ DIR]"
16305 func_munge_path_list ()
16306 {
16307 case x$2 in
16308 x)
16309 ;;
16310 *:)
16311 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16312 ;;
16313 x:*)
16314 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16315 ;;
16316 *::*)
16317 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16318 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16319 ;;
16320 *)
16321 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16322 ;;
16323 esac
16324 }
16325
16326
16327 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16328 func_cc_basename ()
16329 {
16330 for cc_temp in $*""; do
16331 case $cc_temp in
16332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16334 \-*) ;;
16335 *) break;;
16336 esac
16337 done
16338 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16339 }
16340
16341
16342 # ### END FUNCTIONS SHARED WITH CONFIGURE
16343
16344 _LT_EOF
16345
16346 case $host_os in
16347 aix3*)
16348 cat <<\_LT_EOF >> "$cfgfile"
16349 # AIX sometimes has problems with the GCC collect2 program. For some
16350 # reason, if we set the COLLECT_NAMES environment variable, the problems
16351 # vanish in a puff of smoke.
16352 if test set != "${COLLECT_NAMES+set}"; then
16353 COLLECT_NAMES=
16354 export COLLECT_NAMES
16355 fi
16356 _LT_EOF
16357 ;;
16358 esac
16359
16360
16361
16362 ltmain=$ac_aux_dir/ltmain.sh
16363
16364
16365 # We use sed instead of cat because bash on DJGPP gets confused if
16366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16367 # text mode, it properly converts lines to CR/LF. This bash problem
16368 # is reportedly fixed, but why not run on old versions too?
16369 $SED '$q' "$ltmain" >> "$cfgfile" \
16370 || (rm -f "$cfgfile"; exit 1)
16371
16372 mv -f "$cfgfile" "$ofile" ||
16373 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16374 chmod +x "$ofile"
16375
16376 ;;
16377
16378 esac
16379 done # for ac_tag
16380
16381
16382 as_fn_exit 0
16383 _ACEOF
16384 ac_clean_files=$ac_clean_files_save
16385
16386 test $ac_write_fail = 0 ||
16387 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16388
16389
16390 # configure is writing to config.log, and then calls config.status.
16391 # config.status does its own redirection, appending to config.log.
16392 # Unfortunately, on DOS this fails, as config.log is still kept open
16393 # by configure, so config.status won't be able to write to it; its
16394 # output is simply discarded. So we exec the FD to /dev/null,
16395 # effectively closing config.log, so it can be properly (re)opened and
16396 # appended to by config.status. When coming back to configure, we
16397 # need to make the FD available again.
16398 if test "$no_create" != yes; then
16399 ac_cs_success=:
16400 ac_config_status_args=
16401 test "$silent" = yes &&
16402 ac_config_status_args="$ac_config_status_args --quiet"
16403 exec 5>/dev/null
16404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16405 exec 5>>config.log
16406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16407 # would make configure fail if this is the last instruction.
16408 $ac_cs_success || as_fn_exit 1
16409 fi
16410 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16412 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16413 fi
16414
16415
16416
16417