Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mod_auth_cas 1.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mod_auth_cas'
592 PACKAGE_TARNAME='mod_auth_cas'
593 PACKAGE_VERSION='1.2'
594 PACKAGE_STRING='mod_auth_cas 1.2'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="Makefile.am"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 LIBCURL
640 LIBCURL_CPPFLAGS
641 _libcurl_config
642 OPENSSL_LDFLAGS
643 OPENSSL_LIBS
644 OPENSSL_INCLUDES
645 TEST_COVERAGE_CFLAGS
646 CHECK_FALSE
647 CHECK_TRUE
648 CHECK_LIBS
649 CHECK_CFLAGS
650 PKG_CONFIG_LIBDIR
651 PKG_CONFIG_PATH
652 PKG_CONFIG
653 APR_LDFLAGS
654 APR_INCLUDES
655 APR_CPPFLAGS
656 APR
657 APXS_PREFIX
658 APXS_SYSCONFDIR
659 APXS_LIBEXECDIR
660 APXS_LD_SHLIB
661 APXS_CPPFLAGS_SHLIB
662 APXS_INCLUDES
663 APXS_LIBS
664 APXS_LDFLAGS
665 APXS_CPPFLAGS
666 APXS
667 LIBLTDL
668 INCLTDL
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 ac_ct_AR
678 AR
679 DLLTOOL
680 OBJDUMP
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 SED
688 LIBTOOL
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__quote
701 am__include
702 DEPDIR
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 EGREP
727 GREP
728 CPP
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_dependency_tracking
786 enable_silent_rules
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_aix_soname
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 with_apxs
796 with_apr
797 with_check
798 enable_test_coverage
799 with_openssl
800 with_libcurl
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 LT_SYS_LIBRARY_PATH
812 PKG_CONFIG
813 PKG_CONFIG_PATH
814 PKG_CONFIG_LIBDIR
815 CHECK_CFLAGS
816 CHECK_LIBS'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures mod_auth_cas 1.2 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_auth_cas]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of mod_auth_cas 1.2:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-test-coverage Generate test coverage data [default=no]
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-aix-soname=aix|svr4|both
1454 shared library versioning (aka "SONAME") variant to
1455 provide on AIX, [default=aix].
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1458 compiler's sysroot if not specified).
1459 --with-apxs=PATH/TO/APXS
1460 location of the Apache apxs (or apxs2) utility,
1461 instead of searching path
1462 --with-apr=PATH/TO/APR-1-CONFIG
1463 location of the Apache APR config utility, instead
1464 of searching path
1465 --with-check enable Check for unit testing [default=no]
1466 --with-openssl=DIR root of the OpenSSL directory
1467 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
1468 in PREFIX/include
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479 LT_SYS_LIBRARY_PATH
1480 User-defined run-time library search path.
1481 PKG_CONFIG path to pkg-config utility
1482 PKG_CONFIG_PATH
1483 directories to add to pkg-config's search path
1484 PKG_CONFIG_LIBDIR
1485 path overriding pkg-config's built-in search path
1486 CHECK_CFLAGS
1487 C compiler flags for CHECK, overriding pkg-config
1488 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <[email protected]>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 mod_auth_cas configure 1.2
1557 generated by GNU Autoconf 2.69
1558
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1649 # accordingly.
1650 ac_fn_c_check_header_mongrel ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 else
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673 else
1674 ac_header_compiler=no
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1679
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689 else
1690 ac_header_preproc=no
1691 fi
1692 rm -f conftest.err conftest.i conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1695
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ( $as_echo "## ---------------------------------- ##
1716 ## Report this to [email protected] ##
1717 ## ---------------------------------- ##"
1718 ) | sed "s/^/$as_me: WARNING: /" >&2
1719 ;;
1720 esac
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 eval "$3=\$ac_header_compiler"
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_mongrel
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists and can be compiled using the include files in
1781 # INCLUDES, setting the cache variable VAR accordingly.
1782 ac_fn_c_check_header_compile ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_try_link LINENO
1810 # -----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_link ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_link
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 eval "$3=no"
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof ($2))
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof (($2)))
1955 return 0;
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963 eval "$3=yes"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_type
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1978
1979 It was created by mod_auth_cas $as_me 1.2, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1981
1982 $ $0 $@
1983
1984 _ACEOF
1985 exec 5>>config.log
1986 {
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1991
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
2009 _ASUNAME
2010
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2019
2020 } >&5
2021
2022 cat >&5 <<_ACEOF
2023
2024
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2028
2029 _ACEOF
2030
2031
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2042 do
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 2)
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2068 ;;
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2071 fi
2072 as_fn_append ac_configure_args " '$ac_arg'"
2073 ;;
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2079
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2087 {
2088 echo
2089
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2095 (
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2118 *)
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 ;;
2121 esac |
2122 sort
2123 )
2124 echo
2125
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2129 echo
2130 for ac_var in $ac_subst_vars
2131 do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2139
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2158 ## confdefs.h. ##
2159 ## ----------- ##"
2160 echo
2161 cat confdefs.h
2162 echo
2163 fi
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2171 ' 0
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2176
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2179
2180 $as_echo "/* confdefs.h */" > confdefs.h
2181
2182 # Predefined preprocessor variables.
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2207
2208
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2219 esac
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226 fi
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file" \
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2239 fi
2240 done
2241
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2257 fi
2258
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2307 fi
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 fi
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329 ac_config_headers="$ac_config_headers config.h"
2330
2331
2332 enable_dlopen=yes
2333
2334
2335
2336 ac_aux_dir=
2337 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2338 if test -f "$ac_dir/install-sh"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/install-sh -c"
2341 break
2342 elif test -f "$ac_dir/install.sh"; then
2343 ac_aux_dir=$ac_dir
2344 ac_install_sh="$ac_aux_dir/install.sh -c"
2345 break
2346 elif test -f "$ac_dir/shtool"; then
2347 ac_aux_dir=$ac_dir
2348 ac_install_sh="$ac_aux_dir/shtool install -c"
2349 break
2350 fi
2351 done
2352 if test -z "$ac_aux_dir"; then
2353 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2354 fi
2355
2356 # These three variables are undocumented and unsupported,
2357 # and are intended to be withdrawn in a future Autoconf release.
2358 # They can cause serious problems if a builder's source tree is in a directory
2359 # whose full name contains unusual characters.
2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2362 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2363
2364
2365 # Make sure we can run config.sub.
2366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2370 $as_echo_n "checking build system type... " >&6; }
2371 if ${ac_cv_build+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 ac_build_alias=$build_alias
2375 test "x$ac_build_alias" = x &&
2376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2377 test "x$ac_build_alias" = x &&
2378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2381
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2384 $as_echo "$ac_cv_build" >&6; }
2385 case $ac_cv_build in
2386 *-*-*) ;;
2387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2388 esac
2389 build=$ac_cv_build
2390 ac_save_IFS=$IFS; IFS='-'
2391 set x $ac_cv_build
2392 shift
2393 build_cpu=$1
2394 build_vendor=$2
2395 shift; shift
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2398 build_os=$*
2399 IFS=$ac_save_IFS
2400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2401
2402
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if ${ac_cv_host+:} false; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test "x$host_alias" = x; then
2409 ac_cv_host=$ac_cv_build
2410 else
2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2413 fi
2414
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2417 $as_echo "$ac_cv_host" >&6; }
2418 case $ac_cv_host in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2421 esac
2422 host=$ac_cv_host
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_host
2425 shift
2426 host_cpu=$1
2427 host_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 host_os=$*
2432 IFS=$ac_save_IFS
2433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2434
2435
2436 # Expand $ac_aux_dir to an absolute path.
2437 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 CC=$ac_cv_prog_CC
2473 if test -n "$CC"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2475 $as_echo "$CC" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_CC"; then
2484 ac_ct_CC=$CC
2485 # Extract the first word of "gcc", so it can be a program name with args.
2486 set dummy gcc; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_ac_ct_CC="gcc"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2515 $as_echo "$ac_ct_CC" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521 if test "x$ac_ct_CC" = x; then
2522 CC=""
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 CC=$ac_ct_CC
2531 fi
2532 else
2533 CC="$ac_cv_prog_CC"
2534 fi
2535
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 fi
2576 fi
2577 if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 ac_prog_rejected=no
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2598 continue
2599 fi
2600 ac_cv_prog_CC="cc"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2611 shift
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2616 shift
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 fi
2619 fi
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625 $as_echo "$CC" >&6; }
2626 else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629 fi
2630
2631
2632 fi
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 for ac_prog in cl.exe
2636 do
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 $as_echo "$CC" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673
2674 test -n "$CC" && break
2675 done
2676 fi
2677 if test -z "$CC"; then
2678 ac_ct_CC=$CC
2679 for ac_prog in cl.exe
2680 do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2711 $as_echo "$ac_ct_CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718 test -n "$ac_ct_CC" && break
2719 done
2720
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2731 fi
2732 fi
2733
2734 fi
2735
2736
2737 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 as_fn_error $? "no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details" "$LINENO" 5; }
2741
2742 # Provide some information about the compiler.
2743 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2744 set X $ac_compile
2745 ac_compiler=$2
2746 for ac_option in --version -v -V -qversion; do
2747 { { ac_try="$ac_compiler $ac_option >&5"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753 $as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2755 ac_status=$?
2756 if test -s conftest.err; then
2757 sed '10a\
2758 ... rest of stderr output deleted ...
2759 10q' conftest.err >conftest.er1
2760 cat conftest.er1 >&5
2761 fi
2762 rm -f conftest.er1 conftest.err
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }
2765 done
2766
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769
2770 int
2771 main ()
2772 {
2773
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2782 # of exeext.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2784 $as_echo_n "checking whether the C compiler works... " >&6; }
2785 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786
2787 # The possible output files:
2788 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2789
2790 ac_rmfiles=
2791 for ac_file in $ac_files
2792 do
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2795 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2796 esac
2797 done
2798 rm -f $ac_rmfiles
2799
2800 if { { ac_try="$ac_link_default"
2801 case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_link_default") 2>&5
2808 ac_status=$?
2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810 test $ac_status = 0; }; then :
2811 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2812 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2813 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2814 # so that the user can short-circuit this test for compilers unknown to
2815 # Autoconf.
2816 for ac_file in $ac_files ''
2817 do
2818 test -f "$ac_file" || continue
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2821 ;;
2822 [ab].out )
2823 # We found the default executable, but exeext='' is most
2824 # certainly right.
2825 break;;
2826 *.* )
2827 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2828 then :; else
2829 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 fi
2831 # We set ac_cv_exeext here because the later test for it is not
2832 # safe: cross compilers may not add the suffix if given an `-o'
2833 # argument, so we may need to know it at that point already.
2834 # Even if this section looks crufty: it has the advantage of
2835 # actually working.
2836 break;;
2837 * )
2838 break;;
2839 esac
2840 done
2841 test "$ac_cv_exeext" = no && ac_cv_exeext=
2842
2843 else
2844 ac_file=''
2845 fi
2846 if test -z "$ac_file"; then :
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854 as_fn_error 77 "C compiler cannot create executables
2855 See \`config.log' for more details" "$LINENO" 5; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858 $as_echo "yes" >&6; }
2859 fi
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2861 $as_echo_n "checking for C compiler default output file name... " >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2863 $as_echo "$ac_file" >&6; }
2864 ac_exeext=$ac_cv_exeext
2865
2866 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2869 $as_echo_n "checking for suffix of executables... " >&6; }
2870 if { { ac_try="$ac_link"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876 $as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_link") 2>&5
2878 ac_status=$?
2879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880 test $ac_status = 0; }; then :
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 # `rm'.
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 break;;
2891 * ) break;;
2892 esac
2893 done
2894 else
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details" "$LINENO" 5; }
2899 fi
2900 rm -f conftest conftest$ac_cv_exeext
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2902 $as_echo "$ac_cv_exeext" >&6; }
2903
2904 rm -f conftest.$ac_ext
2905 EXEEXT=$ac_cv_exeext
2906 ac_exeext=$EXEEXT
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h. */
2909 #include <stdio.h>
2910 int
2911 main ()
2912 {
2913 FILE *f = fopen ("conftest.out", "w");
2914 return ferror (f) || fclose (f) != 0;
2915
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 ac_clean_files="$ac_clean_files conftest.out"
2921 # Check that the compiler produces executables we can run. If not, either
2922 # the compiler is broken, or we cross compile.
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2924 $as_echo_n "checking whether we are cross compiling... " >&6; }
2925 if test "$cross_compiling" != yes; then
2926 { { ac_try="$ac_link"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_link") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }
2937 if { ac_try='./conftest$ac_cv_exeext'
2938 { { case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 as_fn_error $? "cannot run C compiled programs.
2956 If you meant to cross compile, use \`--host'.
2957 See \`config.log' for more details" "$LINENO" 5; }
2958 fi
2959 fi
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2962 $as_echo "$cross_compiling" >&6; }
2963
2964 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2965 ac_clean_files=$ac_clean_files_save
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2967 $as_echo_n "checking for suffix of object files... " >&6; }
2968 if ${ac_cv_objext+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2973
2974 int
2975 main ()
2976 {
2977
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { { ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_compile") 2>&5
2991 ac_status=$?
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001 done
3002 else
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details" "$LINENO" 5; }
3010 fi
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3014 $as_echo "$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3016 ac_objext=$OBJEXT
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3018 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3019 if ${ac_cv_c_compiler_gnu+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028 #ifndef __GNUC__
3029 choke me
3030 #endif
3031
3032 ;
3033 return 0;
3034 }
3035 _ACEOF
3036 if ac_fn_c_try_compile "$LINENO"; then :
3037 ac_compiler_gnu=yes
3038 else
3039 ac_compiler_gnu=no
3040 fi
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3046 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3047 if test $ac_compiler_gnu = yes; then
3048 GCC=yes
3049 else
3050 GCC=
3051 fi
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3055 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3056 if ${ac_cv_prog_cc_g+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3061 ac_cv_prog_cc_g=no
3062 CFLAGS="-g"
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3065
3066 int
3067 main ()
3068 {
3069
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 if ac_fn_c_try_compile "$LINENO"; then :
3075 ac_cv_prog_cc_g=yes
3076 else
3077 CFLAGS=""
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3080
3081 int
3082 main ()
3083 {
3084
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 if ac_fn_c_try_compile "$LINENO"; then :
3090
3091 else
3092 ac_c_werror_flag=$ac_save_c_werror_flag
3093 CFLAGS="-g"
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 if ac_fn_c_try_compile "$LINENO"; then :
3106 ac_cv_prog_cc_g=yes
3107 fi
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 fi
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 ac_c_werror_flag=$ac_save_c_werror_flag
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3116 $as_echo "$ac_cv_prog_cc_g" >&6; }
3117 if test "$ac_test_CFLAGS" = set; then
3118 CFLAGS=$ac_save_CFLAGS
3119 elif test $ac_cv_prog_cc_g = yes; then
3120 if test "$GCC" = yes; then
3121 CFLAGS="-g -O2"
3122 else
3123 CFLAGS="-g"
3124 fi
3125 else
3126 if test "$GCC" = yes; then
3127 CFLAGS="-O2"
3128 else
3129 CFLAGS=
3130 fi
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3133 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3134 if ${ac_cv_prog_cc_c89+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 ac_cv_prog_cc_c89=no
3138 ac_save_CC=$CC
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141 #include <stdarg.h>
3142 #include <stdio.h>
3143 struct stat;
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3148 char **p;
3149 int i;
3150 {
3151 return p[i];
3152 }
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3154 {
3155 char *s;
3156 va_list v;
3157 va_start (v,p);
3158 s = g (p, va_arg (v,int));
3159 va_end (v);
3160 return s;
3161 }
3162
3163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
3166 as 'x'. The following induces an error, until -std is added to get
3167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
3169 that's true only with -std. */
3170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3171
3172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3174 #define FOO(x) 'x'
3175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3176
3177 int test (int i, double x);
3178 struct s1 {int (*f) (int a);};
3179 struct s2 {int (*f) (double a);};
3180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 int argc;
3182 char **argv;
3183 int
3184 main ()
3185 {
3186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3193 do
3194 CC="$ac_save_CC $ac_arg"
3195 if ac_fn_c_try_compile "$LINENO"; then :
3196 ac_cv_prog_cc_c89=$ac_arg
3197 fi
3198 rm -f core conftest.err conftest.$ac_objext
3199 test "x$ac_cv_prog_cc_c89" != "xno" && break
3200 done
3201 rm -f conftest.$ac_ext
3202 CC=$ac_save_CC
3203
3204 fi
3205 # AC_CACHE_VAL
3206 case "x$ac_cv_prog_cc_c89" in
3207 x)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3209 $as_echo "none needed" >&6; } ;;
3210 xno)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3212 $as_echo "unsupported" >&6; } ;;
3213 *)
3214 CC="$CC $ac_cv_prog_cc_c89"
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3216 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3217 esac
3218 if test "x$ac_cv_prog_cc_c89" != xno; then :
3219
3220 fi
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3234 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3235 if ${am_cv_prog_cc_c_o+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240
3241 int
3242 main ()
3243 {
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 # Make sure it works both with $CC and with simple cc.
3250 # Following AC_PROG_CC_C_O, we do the test twice because some
3251 # compilers refuse to overwrite an existing .o file with -o,
3252 # though they will create one.
3253 am_cv_prog_cc_c_o=yes
3254 for am_i in 1 2; do
3255 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3256 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } \
3260 && test -f conftest2.$ac_objext; then
3261 : OK
3262 else
3263 am_cv_prog_cc_c_o=no
3264 break
3265 fi
3266 done
3267 rm -f core conftest*
3268 unset am_i
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3271 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3272 if test "$am_cv_prog_cc_c_o" != yes; then
3273 # Losing compiler, so override with the script.
3274 # FIXME: It is wrong to rewrite CC.
3275 # But if we don't then we get into trouble of one sort or another.
3276 # A longer-term fix would be to have automake use am__CC in this case,
3277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3278 CC="$am_aux_dir/compile $CC"
3279 fi
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3295 # On Suns, sometimes $CPP names a directory.
3296 if test -n "$CPP" && test -d "$CPP"; then
3297 CPP=
3298 fi
3299 if test -z "$CPP"; then
3300 if ${ac_cv_prog_CPP+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 # Double quotes because CPP needs to be expanded
3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3305 do
3306 ac_preproc_ok=false
3307 for ac_c_preproc_warn_flag in '' yes
3308 do
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322 Syntax error
3323 _ACEOF
3324 if ac_fn_c_try_cpp "$LINENO"; then :
3325
3326 else
3327 # Broken: fails on valid input.
3328 continue
3329 fi
3330 rm -f conftest.err conftest.i conftest.$ac_ext
3331
3332 # OK, works on sane cases. Now check whether nonexistent headers
3333 # can be detected and how.
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336 #include <ac_nonexistent.h>
3337 _ACEOF
3338 if ac_fn_c_try_cpp "$LINENO"; then :
3339 # Broken: success on invalid input.
3340 continue
3341 else
3342 # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346 rm -f conftest.err conftest.i conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.i conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then :
3352 break
3353 fi
3354
3355 done
3356 ac_cv_prog_CPP=$CPP
3357
3358 fi
3359 CPP=$ac_cv_prog_CPP
3360 else
3361 ac_cv_prog_CPP=$CPP
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3364 $as_echo "$CPP" >&6; }
3365 ac_preproc_ok=false
3366 for ac_c_preproc_warn_flag in '' yes
3367 do
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376 #ifdef __STDC__
3377 # include <limits.h>
3378 #else
3379 # include <assert.h>
3380 #endif
3381 Syntax error
3382 _ACEOF
3383 if ac_fn_c_try_cpp "$LINENO"; then :
3384
3385 else
3386 # Broken: fails on valid input.
3387 continue
3388 fi
3389 rm -f conftest.err conftest.i conftest.$ac_ext
3390
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if ac_fn_c_try_cpp "$LINENO"; then :
3398 # Broken: success on invalid input.
3399 continue
3400 else
3401 # Passes both tests.
3402 ac_preproc_ok=:
3403 break
3404 fi
3405 rm -f conftest.err conftest.i conftest.$ac_ext
3406
3407 done
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.i conftest.err conftest.$ac_ext
3410 if $ac_preproc_ok; then :
3411
3412 else
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3427 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3428 if ${ac_cv_path_GREP+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 if test -z "$GREP"; then
3432 ac_path_GREP_found=false
3433 # Loop through the user's path and test for each of PROGNAME-LIST
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_prog in grep ggrep; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3442 as_fn_executable_p "$ac_path_GREP" || continue
3443 # Check for GNU ac_path_GREP and select it if it is found.
3444 # Check for GNU $ac_path_GREP
3445 case `"$ac_path_GREP" --version 2>&1` in
3446 *GNU*)
3447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3448 *)
3449 ac_count=0
3450 $as_echo_n 0123456789 >"conftest.in"
3451 while :
3452 do
3453 cat "conftest.in" "conftest.in" >"conftest.tmp"
3454 mv "conftest.tmp" "conftest.in"
3455 cp "conftest.in" "conftest.nl"
3456 $as_echo 'GREP' >> "conftest.nl"
3457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3459 as_fn_arith $ac_count + 1 && ac_count=$as_val
3460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3461 # Best one so far, save it but keep looking for a better one
3462 ac_cv_path_GREP="$ac_path_GREP"
3463 ac_path_GREP_max=$ac_count
3464 fi
3465 # 10*(2^10) chars as input seems more than enough
3466 test $ac_count -gt 10 && break
3467 done
3468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3469 esac
3470
3471 $ac_path_GREP_found && break 3
3472 done
3473 done
3474 done
3475 IFS=$as_save_IFS
3476 if test -z "$ac_cv_path_GREP"; then
3477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3478 fi
3479 else
3480 ac_cv_path_GREP=$GREP
3481 fi
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3485 $as_echo "$ac_cv_path_GREP" >&6; }
3486 GREP="$ac_cv_path_GREP"
3487
3488
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3490 $as_echo_n "checking for egrep... " >&6; }
3491 if ${ac_cv_path_EGREP+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3495 then ac_cv_path_EGREP="$GREP -E"
3496 else
3497 if test -z "$EGREP"; then
3498 ac_path_EGREP_found=false
3499 # Loop through the user's path and test for each of PROGNAME-LIST
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_prog in egrep; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3508 as_fn_executable_p "$ac_path_EGREP" || continue
3509 # Check for GNU ac_path_EGREP and select it if it is found.
3510 # Check for GNU $ac_path_EGREP
3511 case `"$ac_path_EGREP" --version 2>&1` in
3512 *GNU*)
3513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3514 *)
3515 ac_count=0
3516 $as_echo_n 0123456789 >"conftest.in"
3517 while :
3518 do
3519 cat "conftest.in" "conftest.in" >"conftest.tmp"
3520 mv "conftest.tmp" "conftest.in"
3521 cp "conftest.in" "conftest.nl"
3522 $as_echo 'EGREP' >> "conftest.nl"
3523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3525 as_fn_arith $ac_count + 1 && ac_count=$as_val
3526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3527 # Best one so far, save it but keep looking for a better one
3528 ac_cv_path_EGREP="$ac_path_EGREP"
3529 ac_path_EGREP_max=$ac_count
3530 fi
3531 # 10*(2^10) chars as input seems more than enough
3532 test $ac_count -gt 10 && break
3533 done
3534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3535 esac
3536
3537 $ac_path_EGREP_found && break 3
3538 done
3539 done
3540 done
3541 IFS=$as_save_IFS
3542 if test -z "$ac_cv_path_EGREP"; then
3543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3544 fi
3545 else
3546 ac_cv_path_EGREP=$EGREP
3547 fi
3548
3549 fi
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3552 $as_echo "$ac_cv_path_EGREP" >&6; }
3553 EGREP="$ac_cv_path_EGREP"
3554
3555
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3557 $as_echo_n "checking for ANSI C header files... " >&6; }
3558 if ${ac_cv_header_stdc+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <stdlib.h>
3564 #include <stdarg.h>
3565 #include <string.h>
3566 #include <float.h>
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_header_stdc=yes
3578 else
3579 ac_cv_header_stdc=no
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582
3583 if test $ac_cv_header_stdc = yes; then
3584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <string.h>
3588
3589 _ACEOF
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 $EGREP "memchr" >/dev/null 2>&1; then :
3592
3593 else
3594 ac_cv_header_stdc=no
3595 fi
3596 rm -f conftest*
3597
3598 fi
3599
3600 if test $ac_cv_header_stdc = yes; then
3601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdlib.h>
3605
3606 _ACEOF
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 $EGREP "free" >/dev/null 2>&1; then :
3609
3610 else
3611 ac_cv_header_stdc=no
3612 fi
3613 rm -f conftest*
3614
3615 fi
3616
3617 if test $ac_cv_header_stdc = yes; then
3618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3619 if test "$cross_compiling" = yes; then :
3620 :
3621 else
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <ctype.h>
3625 #include <stdlib.h>
3626 #if ((' ' & 0x0FF) == 0x020)
3627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3629 #else
3630 # define ISLOWER(c) \
3631 (('a' <= (c) && (c) <= 'i') \
3632 || ('j' <= (c) && (c) <= 'r') \
3633 || ('s' <= (c) && (c) <= 'z'))
3634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3635 #endif
3636
3637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3638 int
3639 main ()
3640 {
3641 int i;
3642 for (i = 0; i < 256; i++)
3643 if (XOR (islower (i), ISLOWER (i))
3644 || toupper (i) != TOUPPER (i))
3645 return 2;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_run "$LINENO"; then :
3650
3651 else
3652 ac_cv_header_stdc=no
3653 fi
3654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3655 conftest.$ac_objext conftest.beam conftest.$ac_ext
3656 fi
3657
3658 fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3661 $as_echo "$ac_cv_header_stdc" >&6; }
3662 if test $ac_cv_header_stdc = yes; then
3663
3664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3665
3666 fi
3667
3668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3670 inttypes.h stdint.h unistd.h
3671 do :
3672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3674 "
3675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3676 cat >>confdefs.h <<_ACEOF
3677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3678 _ACEOF
3679
3680 fi
3681
3682 done
3683
3684
3685
3686 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3687 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3688 MINIX=yes
3689 else
3690 MINIX=
3691 fi
3692
3693
3694 if test "$MINIX" = yes; then
3695
3696 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3697
3698
3699 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3700
3701
3702 $as_echo "#define _MINIX 1" >>confdefs.h
3703
3704 fi
3705
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3708 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3709 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714
3715 # define __EXTENSIONS__ 1
3716 $ac_includes_default
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_safe_to_define___extensions__=yes
3727 else
3728 ac_cv_safe_to_define___extensions__=no
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3733 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3734 test $ac_cv_safe_to_define___extensions__ = yes &&
3735 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3736
3737 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3738
3739 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3740
3741 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3742
3743 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3744
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3748 $as_echo_n "checking for library containing strerror... " >&6; }
3749 if ${ac_cv_search_strerror+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_func_search_save_LIBS=$LIBS
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 /* Override any GCC internal prototype to avoid an error.
3757 Use char because int might match the return type of a GCC
3758 builtin and then its argument prototype would still apply. */
3759 #ifdef __cplusplus
3760 extern "C"
3761 #endif
3762 char strerror ();
3763 int
3764 main ()
3765 {
3766 return strerror ();
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 for ac_lib in '' cposix; do
3772 if test -z "$ac_lib"; then
3773 ac_res="none required"
3774 else
3775 ac_res=-l$ac_lib
3776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3777 fi
3778 if ac_fn_c_try_link "$LINENO"; then :
3779 ac_cv_search_strerror=$ac_res
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext \
3782 conftest$ac_exeext
3783 if ${ac_cv_search_strerror+:} false; then :
3784 break
3785 fi
3786 done
3787 if ${ac_cv_search_strerror+:} false; then :
3788
3789 else
3790 ac_cv_search_strerror=no
3791 fi
3792 rm conftest.$ac_ext
3793 LIBS=$ac_func_search_save_LIBS
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3796 $as_echo "$ac_cv_search_strerror" >&6; }
3797 ac_res=$ac_cv_search_strerror
3798 if test "$ac_res" != no; then :
3799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3800
3801 fi
3802
3803
3804 am__api_version='1.15'
3805
3806 # Find a good install program. We prefer a C program (faster),
3807 # so one script is as good as another. But avoid the broken or
3808 # incompatible versions:
3809 # SysV /etc/install, /usr/sbin/install
3810 # SunOS /usr/etc/install
3811 # IRIX /sbin/install
3812 # AIX /bin/install
3813 # AmigaOS /C/install, which installs bootblocks on floppy discs
3814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3817 # OS/2's system install, which has a completely different semantic
3818 # ./install, which can be erroneously created by make from ./install.sh.
3819 # Reject install programs that cannot install multiple files.
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3821 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3822 if test -z "$INSTALL"; then
3823 if ${ac_cv_path_install+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 # Account for people who put trailing slashes in PATH elements.
3832 case $as_dir/ in #((
3833 ./ | .// | /[cC]/* | \
3834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3835 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3836 /usr/ucb/* ) ;;
3837 *)
3838 # OSF1 and SCO ODT 3.0 have their own names for install.
3839 # Don't use installbsd from OSF since it installs stuff as root
3840 # by default.
3841 for ac_prog in ginstall scoinst install; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3844 if test $ac_prog = install &&
3845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3846 # AIX install. It has an incompatible calling convention.
3847 :
3848 elif test $ac_prog = install &&
3849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3850 # program-specific install script used by HP pwplus--don't use.
3851 :
3852 else
3853 rm -rf conftest.one conftest.two conftest.dir
3854 echo one > conftest.one
3855 echo two > conftest.two
3856 mkdir conftest.dir
3857 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3858 test -s conftest.one && test -s conftest.two &&
3859 test -s conftest.dir/conftest.one &&
3860 test -s conftest.dir/conftest.two
3861 then
3862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3863 break 3
3864 fi
3865 fi
3866 fi
3867 done
3868 done
3869 ;;
3870 esac
3871
3872 done
3873 IFS=$as_save_IFS
3874
3875 rm -rf conftest.one conftest.two conftest.dir
3876
3877 fi
3878 if test "${ac_cv_path_install+set}" = set; then
3879 INSTALL=$ac_cv_path_install
3880 else
3881 # As a last resort, use the slow shell script. Don't cache a
3882 # value for INSTALL within a source directory, because that will
3883 # break other packages using the cache if that directory is
3884 # removed, or if the value is a relative name.
3885 INSTALL=$ac_install_sh
3886 fi
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3889 $as_echo "$INSTALL" >&6; }
3890
3891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3892 # It thinks the first close brace ends the variable substitution.
3893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3894
3895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3896
3897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3900 $as_echo_n "checking whether build environment is sane... " >&6; }
3901 # Reject unsafe characters in $srcdir or the absolute working directory
3902 # name. Accept space and tab only in the latter.
3903 am_lf='
3904 '
3905 case `pwd` in
3906 *[\\\"\#\$\&\'\`$am_lf]*)
3907 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3908 esac
3909 case $srcdir in
3910 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3911 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3912 esac
3913
3914 # Do 'set' in a subshell so we don't clobber the current shell's
3915 # arguments. Must try -L first in case configure is actually a
3916 # symlink; some systems play weird games with the mod time of symlinks
3917 # (eg FreeBSD returns the mod time of the symlink's containing
3918 # directory).
3919 if (
3920 am_has_slept=no
3921 for am_try in 1 2; do
3922 echo "timestamp, slept: $am_has_slept" > conftest.file
3923 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3924 if test "$*" = "X"; then
3925 # -L didn't work.
3926 set X `ls -t "$srcdir/configure" conftest.file`
3927 fi
3928 if test "$*" != "X $srcdir/configure conftest.file" \
3929 && test "$*" != "X conftest.file $srcdir/configure"; then
3930
3931 # If neither matched, then we have a broken ls. This can happen
3932 # if, for instance, CONFIG_SHELL is bash and it inherits a
3933 # broken ls alias from the environment. This has actually
3934 # happened. Such a system could not be considered "sane".
3935 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3936 alias in your environment" "$LINENO" 5
3937 fi
3938 if test "$2" = conftest.file || test $am_try -eq 2; then
3939 break
3940 fi
3941 # Just in case.
3942 sleep 1
3943 am_has_slept=yes
3944 done
3945 test "$2" = conftest.file
3946 )
3947 then
3948 # Ok.
3949 :
3950 else
3951 as_fn_error $? "newly created file is older than distributed files!
3952 Check your system clock" "$LINENO" 5
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3956 # If we didn't sleep, we still need to ensure time stamps of config.status and
3957 # generated files are strictly newer.
3958 am_sleep_pid=
3959 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3960 ( sleep 1 ) &
3961 am_sleep_pid=$!
3962 fi
3963
3964 rm -f conftest.file
3965
3966 test "$program_prefix" != NONE &&
3967 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3968 # Use a double $ so make ignores it.
3969 test "$program_suffix" != NONE &&
3970 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3971 # Double any \ or $.
3972 # By default was `s,x,x', remove it if useless.
3973 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3974 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3975
3976 if test x"${MISSING+set}" != xset; then
3977 case $am_aux_dir in
3978 *\ * | *\ *)
3979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3980 *)
3981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3982 esac
3983 fi
3984 # Use eval to expand $SHELL
3985 if eval "$MISSING --is-lightweight"; then
3986 am_missing_run="$MISSING "
3987 else
3988 am_missing_run=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3991 fi
3992
3993 if test x"${install_sh+set}" != xset; then
3994 case $am_aux_dir in
3995 *\ * | *\ *)
3996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3997 *)
3998 install_sh="\${SHELL} $am_aux_dir/install-sh"
3999 esac
4000 fi
4001
4002 # Installed binaries are usually stripped using 'strip' when the user
4003 # run "make install-strip". However 'strip' might not be the right
4004 # tool to use in cross-compilation environments, therefore Automake
4005 # will honor the 'STRIP' environment variable to overrule this program.
4006 if test "$cross_compiling" != no; then
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}strip; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if ${ac_cv_prog_STRIP+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$STRIP"; then
4016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 STRIP=$ac_cv_prog_STRIP
4036 if test -n "$STRIP"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4038 $as_echo "$STRIP" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045 fi
4046 if test -z "$ac_cv_prog_STRIP"; then
4047 ac_ct_STRIP=$STRIP
4048 # Extract the first word of "strip", so it can be a program name with args.
4049 set dummy strip; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -n "$ac_ct_STRIP"; then
4056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_STRIP="strip"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069 done
4070 done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4076 if test -n "$ac_ct_STRIP"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4078 $as_echo "$ac_ct_STRIP" >&6; }
4079 else
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 fi
4083
4084 if test "x$ac_ct_STRIP" = x; then
4085 STRIP=":"
4086 else
4087 case $cross_compiling:$ac_tool_warned in
4088 yes:)
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned=yes ;;
4092 esac
4093 STRIP=$ac_ct_STRIP
4094 fi
4095 else
4096 STRIP="$ac_cv_prog_STRIP"
4097 fi
4098
4099 fi
4100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4104 if test -z "$MKDIR_P"; then
4105 if ${ac_cv_path_mkdir+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in mkdir gmkdir; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4117 'mkdir (GNU coreutils) '* | \
4118 'mkdir (coreutils) '* | \
4119 'mkdir (fileutils) '4.1*)
4120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4121 break 3;;
4122 esac
4123 done
4124 done
4125 done
4126 IFS=$as_save_IFS
4127
4128 fi
4129
4130 test -d ./--version && rmdir ./--version
4131 if test "${ac_cv_path_mkdir+set}" = set; then
4132 MKDIR_P="$ac_cv_path_mkdir -p"
4133 else
4134 # As a last resort, use the slow shell script. Don't cache a
4135 # value for MKDIR_P within a source directory, because that will
4136 # break other packages using the cache if that directory is
4137 # removed, or if the value is a relative name.
4138 MKDIR_P="$ac_install_sh -d"
4139 fi
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4142 $as_echo "$MKDIR_P" >&6; }
4143
4144 for ac_prog in gawk mawk nawk awk
4145 do
4146 # Extract the first word of "$ac_prog", so it can be a program name with args.
4147 set dummy $ac_prog; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if ${ac_cv_prog_AWK+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -n "$AWK"; then
4154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_AWK="$ac_prog"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169 IFS=$as_save_IFS
4170
4171 fi
4172 fi
4173 AWK=$ac_cv_prog_AWK
4174 if test -n "$AWK"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4176 $as_echo "$AWK" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183 test -n "$AWK" && break
4184 done
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4188 set x ${MAKE-make}
4189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4190 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 cat >conftest.make <<\_ACEOF
4194 SHELL = /bin/sh
4195 all:
4196 @echo '@@@%%%=$(MAKE)=@@@%%%'
4197 _ACEOF
4198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4200 *@@@%%%=?*=@@@%%%*)
4201 eval ac_cv_prog_make_${ac_make}_set=yes;;
4202 *)
4203 eval ac_cv_prog_make_${ac_make}_set=no;;
4204 esac
4205 rm -f conftest.make
4206 fi
4207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 $as_echo "yes" >&6; }
4210 SET_MAKE=
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 SET_MAKE="MAKE=${MAKE-make}"
4215 fi
4216
4217 rm -rf .tst 2>/dev/null
4218 mkdir .tst 2>/dev/null
4219 if test -d .tst; then
4220 am__leading_dot=.
4221 else
4222 am__leading_dot=_
4223 fi
4224 rmdir .tst 2>/dev/null
4225
4226 DEPDIR="${am__leading_dot}deps"
4227
4228 ac_config_commands="$ac_config_commands depfiles"
4229
4230
4231 am_make=${MAKE-make}
4232 cat > confinc << 'END'
4233 am__doit:
4234 @echo this is the am__doit target
4235 .PHONY: am__doit
4236 END
4237 # If we don't find an include directive, just comment out the code.
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4239 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4240 am__include="#"
4241 am__quote=
4242 _am_result=none
4243 # First try GNU make style include.
4244 echo "include confinc" > confmf
4245 # Ignore all kinds of additional output from 'make'.
4246 case `$am_make -s -f confmf 2> /dev/null` in #(
4247 *the\ am__doit\ target*)
4248 am__include=include
4249 am__quote=
4250 _am_result=GNU
4251 ;;
4252 esac
4253 # Now try BSD make style include.
4254 if test "$am__include" = "#"; then
4255 echo '.include "confinc"' > confmf
4256 case `$am_make -s -f confmf 2> /dev/null` in #(
4257 *the\ am__doit\ target*)
4258 am__include=.include
4259 am__quote="\""
4260 _am_result=BSD
4261 ;;
4262 esac
4263 fi
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4267 $as_echo "$_am_result" >&6; }
4268 rm -f confinc confmf
4269
4270 # Check whether --enable-dependency-tracking was given.
4271 if test "${enable_dependency_tracking+set}" = set; then :
4272 enableval=$enable_dependency_tracking;
4273 fi
4274
4275 if test "x$enable_dependency_tracking" != xno; then
4276 am_depcomp="$ac_aux_dir/depcomp"
4277 AMDEPBACKSLASH='\'
4278 am__nodep='_no'
4279 fi
4280 if test "x$enable_dependency_tracking" != xno; then
4281 AMDEP_TRUE=
4282 AMDEP_FALSE='#'
4283 else
4284 AMDEP_TRUE='#'
4285 AMDEP_FALSE=
4286 fi
4287
4288
4289 # Check whether --enable-silent-rules was given.
4290 if test "${enable_silent_rules+set}" = set; then :
4291 enableval=$enable_silent_rules;
4292 fi
4293
4294 case $enable_silent_rules in # (((
4295 yes) AM_DEFAULT_VERBOSITY=0;;
4296 no) AM_DEFAULT_VERBOSITY=1;;
4297 *) AM_DEFAULT_VERBOSITY=1;;
4298 esac
4299 am_make=${MAKE-make}
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4301 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4302 if ${am_cv_make_support_nested_variables+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if $as_echo 'TRUE=$(BAR$(V))
4306 BAR0=false
4307 BAR1=true
4308 V=1
4309 am__doit:
4310 @$(TRUE)
4311 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4312 am_cv_make_support_nested_variables=yes
4313 else
4314 am_cv_make_support_nested_variables=no
4315 fi
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4318 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4319 if test $am_cv_make_support_nested_variables = yes; then
4320 AM_V='$(V)'
4321 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4322 else
4323 AM_V=$AM_DEFAULT_VERBOSITY
4324 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4325 fi
4326 AM_BACKSLASH='\'
4327
4328 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4330 # is not polluted with repeated "-I."
4331 am__isrc=' -I$(srcdir)'
4332 # test to see if srcdir already configured
4333 if test -f $srcdir/config.status; then
4334 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4335 fi
4336 fi
4337
4338 # test whether we have cygpath
4339 if test -z "$CYGPATH_W"; then
4340 if (cygpath --version) >/dev/null 2>/dev/null; then
4341 CYGPATH_W='cygpath -w'
4342 else
4343 CYGPATH_W=echo
4344 fi
4345 fi
4346
4347
4348 # Define the identity of the package.
4349 PACKAGE='mod_auth_cas'
4350 VERSION='1.2'
4351
4352
4353 cat >>confdefs.h <<_ACEOF
4354 #define PACKAGE "$PACKAGE"
4355 _ACEOF
4356
4357
4358 cat >>confdefs.h <<_ACEOF
4359 #define VERSION "$VERSION"
4360 _ACEOF
4361
4362 # Some tools Automake needs.
4363
4364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4365
4366
4367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4368
4369
4370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4371
4372
4373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4374
4375
4376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4377
4378 # For better backward compatibility. To be removed once Automake 1.9.x
4379 # dies out for good. For more background, see:
4380 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4381 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4382 mkdir_p='$(MKDIR_P)'
4383
4384 # We need awk for the "check" target (and possibly the TAP driver). The
4385 # system "awk" is bad on some platforms.
4386 # Always define AMTAR for backward compatibility. Yes, it's still used
4387 # in the wild :-( We should find a proper way to deprecate it ...
4388 AMTAR='$${TAR-tar}'
4389
4390
4391 # We'll loop over all known methods to create a tar archive until one works.
4392 _am_tools='gnutar pax cpio none'
4393
4394 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4395
4396
4397
4398
4399
4400 depcc="$CC" am_compiler_list=
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4403 $as_echo_n "checking dependency style of $depcc... " >&6; }
4404 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4408 # We make a subdir and do the tests there. Otherwise we can end up
4409 # making bogus files that we don't know about and never remove. For
4410 # instance it was reported that on HP-UX the gcc test will end up
4411 # making a dummy file named 'D' -- because '-MD' means "put the output
4412 # in D".
4413 rm -rf conftest.dir
4414 mkdir conftest.dir
4415 # Copy depcomp to subdir because otherwise we won't find it if we're
4416 # using a relative directory.
4417 cp "$am_depcomp" conftest.dir
4418 cd conftest.dir
4419 # We will build objects and dependencies in a subdirectory because
4420 # it helps to detect inapplicable dependency modes. For instance
4421 # both Tru64's cc and ICC support -MD to output dependencies as a
4422 # side effect of compilation, but ICC will put the dependencies in
4423 # the current directory while Tru64 will put them in the object
4424 # directory.
4425 mkdir sub
4426
4427 am_cv_CC_dependencies_compiler_type=none
4428 if test "$am_compiler_list" = ""; then
4429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4430 fi
4431 am__universal=false
4432 case " $depcc " in #(
4433 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4434 esac
4435
4436 for depmode in $am_compiler_list; do
4437 # Setup a source with many dependencies, because some compilers
4438 # like to wrap large dependency lists on column 80 (with \), and
4439 # we should not choose a depcomp mode which is confused by this.
4440 #
4441 # We need to recreate these files for each test, as the compiler may
4442 # overwrite some of them when testing with obscure command lines.
4443 # This happens at least with the AIX C compiler.
4444 : > sub/conftest.c
4445 for i in 1 2 3 4 5 6; do
4446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4447 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4448 # Solaris 10 /bin/sh.
4449 echo '/* dummy */' > sub/conftst$i.h
4450 done
4451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4452
4453 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4454 # mode. It turns out that the SunPro C++ compiler does not properly
4455 # handle '-M -o', and we need to detect this. Also, some Intel
4456 # versions had trouble with output in subdirs.
4457 am__obj=sub/conftest.${OBJEXT-o}
4458 am__minus_obj="-o $am__obj"
4459 case $depmode in
4460 gcc)
4461 # This depmode causes a compiler race in universal mode.
4462 test "$am__universal" = false || continue
4463 ;;
4464 nosideeffect)
4465 # After this tag, mechanisms are not by side-effect, so they'll
4466 # only be used when explicitly requested.
4467 if test "x$enable_dependency_tracking" = xyes; then
4468 continue
4469 else
4470 break
4471 fi
4472 ;;
4473 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4474 # This compiler won't grok '-c -o', but also, the minuso test has
4475 # not run yet. These depmodes are late enough in the game, and
4476 # so weak that their functioning should not be impacted.
4477 am__obj=conftest.${OBJEXT-o}
4478 am__minus_obj=
4479 ;;
4480 none) break ;;
4481 esac
4482 if depmode=$depmode \
4483 source=sub/conftest.c object=$am__obj \
4484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4486 >/dev/null 2>conftest.err &&
4487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4491 # icc doesn't choke on unknown options, it will just issue warnings
4492 # or remarks (even with -Werror). So we grep stderr for any message
4493 # that says an option was ignored or not supported.
4494 # When given -MP, icc 7.0 and 7.1 complain thusly:
4495 # icc: Command line warning: ignoring option '-M'; no argument required
4496 # The diagnosis changed in icc 8.0:
4497 # icc: Command line remark: option '-MP' not supported
4498 if (grep 'ignoring option' conftest.err ||
4499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4500 am_cv_CC_dependencies_compiler_type=$depmode
4501 break
4502 fi
4503 fi
4504 done
4505
4506 cd ..
4507 rm -rf conftest.dir
4508 else
4509 am_cv_CC_dependencies_compiler_type=none
4510 fi
4511
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4514 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4516
4517 if
4518 test "x$enable_dependency_tracking" != xno \
4519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4520 am__fastdepCC_TRUE=
4521 am__fastdepCC_FALSE='#'
4522 else
4523 am__fastdepCC_TRUE='#'
4524 am__fastdepCC_FALSE=
4525 fi
4526
4527
4528
4529 # POSIX will say in a future version that running "rm -f" with no argument
4530 # is OK; and we want to be able to make that assumption in our Makefile
4531 # recipes. So use an aggressive probe to check that the usage we want is
4532 # actually supported "in the wild" to an acceptable degree.
4533 # See automake bug#10828.
4534 # To make any issue more visible, cause the running configure to be aborted
4535 # by default if the 'rm' program in use doesn't match our expectations; the
4536 # user can still override this though.
4537 if rm -f && rm -fr && rm -rf; then : OK; else
4538 cat >&2 <<'END'
4539 Oops!
4540
4541 Your 'rm' program seems unable to run without file operands specified
4542 on the command line, even when the '-f' option is present. This is contrary
4543 to the behaviour of most rm programs out there, and not conforming with
4544 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4545
4546 Please tell [email protected] about your system, including the value
4547 of your $PATH and any error possibly output before this message. This
4548 can help us improve future automake versions.
4549
4550 END
4551 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4552 echo 'Configuration will proceed anyway, since you have set the' >&2
4553 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4554 echo >&2
4555 else
4556 cat >&2 <<'END'
4557 Aborting the configuration process, to ensure you take notice of the issue.
4558
4559 You can download and install GNU coreutils to get an 'rm' implementation
4560 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4561
4562 If you want to complete the configuration process using your problematic
4563 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4564 to "yes", and re-run configure.
4565
4566 END
4567 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4568 fi
4569 fi
4570
4571 #Backward compatability, allows for silent-rules in AM<1.11
4572 # Check whether --enable-silent-rules was given.
4573 if test "${enable_silent_rules+set}" = set; then :
4574 enableval=$enable_silent_rules;
4575 fi
4576
4577 case $enable_silent_rules in # (((
4578 yes) AM_DEFAULT_VERBOSITY=0;;
4579 no) AM_DEFAULT_VERBOSITY=1;;
4580 *) AM_DEFAULT_VERBOSITY=1;;
4581 esac
4582 am_make=${MAKE-make}
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4584 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4585 if ${am_cv_make_support_nested_variables+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if $as_echo 'TRUE=$(BAR$(V))
4589 BAR0=false
4590 BAR1=true
4591 V=1
4592 am__doit:
4593 @$(TRUE)
4594 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4595 am_cv_make_support_nested_variables=yes
4596 else
4597 am_cv_make_support_nested_variables=no
4598 fi
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4601 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4602 if test $am_cv_make_support_nested_variables = yes; then
4603 AM_V='$(V)'
4604 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4605 else
4606 AM_V=$AM_DEFAULT_VERBOSITY
4607 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4608 fi
4609 AM_BACKSLASH='\'
4610
4611
4612 # Checks for programs.
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_CC+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656 fi
4657 if test -z "$ac_cv_prog_CC"; then
4658 ac_ct_CC=$CC
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_CC="gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687 if test -n "$ac_ct_CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4689 $as_echo "$ac_ct_CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 CC=$ac_ct_CC
4705 fi
4706 else
4707 CC="$ac_cv_prog_CC"
4708 fi
4709
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713 set dummy ${ac_tool_prefix}cc; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if ${ac_cv_prog_CC+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_CC="${ac_tool_prefix}cc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735 IFS=$as_save_IFS
4736
4737 fi
4738 fi
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4746 fi
4747
4748
4749 fi
4750 fi
4751 if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753 set dummy cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CC+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 ac_prog_rejected=no
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected=yes
4772 continue
4773 fi
4774 ac_cv_prog_CC="cc"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy $ac_cv_prog_CC
4785 shift
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4790 shift
4791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4792 fi
4793 fi
4794 fi
4795 fi
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 fi
4807 if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in cl.exe
4810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_CC+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 $as_echo "$CC" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 test -n "$CC" && break
4849 done
4850 fi
4851 if test -z "$CC"; then
4852 ac_ct_CC=$CC
4853 for ac_prog in cl.exe
4854 do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_ac_ct_CC="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 $as_echo "$ac_ct_CC" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 test -n "$ac_ct_CC" && break
4893 done
4894
4895 if test "x$ac_ct_CC" = x; then
4896 CC=""
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 CC=$ac_ct_CC
4905 fi
4906 fi
4907
4908 fi
4909
4910
4911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error $? "no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details" "$LINENO" 5; }
4915
4916 # Provide some information about the compiler.
4917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4918 set X $ac_compile
4919 ac_compiler=$2
4920 for ac_option in --version -v -V -qversion; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 ac_status=$?
4930 if test -s conftest.err; then
4931 sed '10a\
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4935 fi
4936 rm -f conftest.er1 conftest.err
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 done
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4942 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4943 if ${ac_cv_c_compiler_gnu+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948
4949 int
4950 main ()
4951 {
4952 #ifndef __GNUC__
4953 choke me
4954 #endif
4955
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961 ac_compiler_gnu=yes
4962 else
4963 ac_compiler_gnu=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4967
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4970 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4971 if test $ac_compiler_gnu = yes; then
4972 GCC=yes
4973 else
4974 GCC=
4975 fi
4976 ac_test_CFLAGS=${CFLAGS+set}
4977 ac_save_CFLAGS=$CFLAGS
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4979 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4980 if ${ac_cv_prog_cc_g+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 ac_save_c_werror_flag=$ac_c_werror_flag
4984 ac_c_werror_flag=yes
4985 ac_cv_prog_cc_g=no
4986 CFLAGS="-g"
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989
4990 int
4991 main ()
4992 {
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"; then :
4999 ac_cv_prog_cc_g=yes
5000 else
5001 CFLAGS=""
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004
5005 int
5006 main ()
5007 {
5008
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014
5015 else
5016 ac_c_werror_flag=$ac_save_c_werror_flag
5017 CFLAGS="-g"
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020
5021 int
5022 main ()
5023 {
5024
5025 ;
5026 return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 ac_cv_prog_cc_g=yes
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_c_werror_flag=$ac_save_c_werror_flag
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5040 $as_echo "$ac_cv_prog_cc_g" >&6; }
5041 if test "$ac_test_CFLAGS" = set; then
5042 CFLAGS=$ac_save_CFLAGS
5043 elif test $ac_cv_prog_cc_g = yes; then
5044 if test "$GCC" = yes; then
5045 CFLAGS="-g -O2"
5046 else
5047 CFLAGS="-g"
5048 fi
5049 else
5050 if test "$GCC" = yes; then
5051 CFLAGS="-O2"
5052 else
5053 CFLAGS=
5054 fi
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5057 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5058 if ${ac_cv_prog_cc_c89+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 ac_cv_prog_cc_c89=no
5062 ac_save_CC=$CC
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 #include <stdarg.h>
5066 #include <stdio.h>
5067 struct stat;
5068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5069 struct buf { int x; };
5070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5071 static char *e (p, i)
5072 char **p;
5073 int i;
5074 {
5075 return p[i];
5076 }
5077 static char *f (char * (*g) (char **, int), char **p, ...)
5078 {
5079 char *s;
5080 va_list v;
5081 va_start (v,p);
5082 s = g (p, va_arg (v,int));
5083 va_end (v);
5084 return s;
5085 }
5086
5087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5088 function prototypes and stuff, but not '\xHH' hex character constants.
5089 These don't provoke an error unfortunately, instead are silently treated
5090 as 'x'. The following induces an error, until -std is added to get
5091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5092 array size at least. It's necessary to write '\x00'==0 to get something
5093 that's true only with -std. */
5094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5095
5096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5097 inside strings and character constants. */
5098 #define FOO(x) 'x'
5099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5100
5101 int test (int i, double x);
5102 struct s1 {int (*f) (int a);};
5103 struct s2 {int (*f) (double a);};
5104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5105 int argc;
5106 char **argv;
5107 int
5108 main ()
5109 {
5110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5117 do
5118 CC="$ac_save_CC $ac_arg"
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_cv_prog_cc_c89=$ac_arg
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext
5123 test "x$ac_cv_prog_cc_c89" != "xno" && break
5124 done
5125 rm -f conftest.$ac_ext
5126 CC=$ac_save_CC
5127
5128 fi
5129 # AC_CACHE_VAL
5130 case "x$ac_cv_prog_cc_c89" in
5131 x)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5133 $as_echo "none needed" >&6; } ;;
5134 xno)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5136 $as_echo "unsupported" >&6; } ;;
5137 *)
5138 CC="$CC $ac_cv_prog_cc_c89"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5141 esac
5142 if test "x$ac_cv_prog_cc_c89" != xno; then :
5143
5144 fi
5145
5146 ac_ext=c
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5158 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5159 if ${am_cv_prog_cc_c_o+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 int
5166 main ()
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 # Make sure it works both with $CC and with simple cc.
5174 # Following AC_PROG_CC_C_O, we do the test twice because some
5175 # compilers refuse to overwrite an existing .o file with -o,
5176 # though they will create one.
5177 am_cv_prog_cc_c_o=yes
5178 for am_i in 1 2; do
5179 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5180 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } \
5184 && test -f conftest2.$ac_objext; then
5185 : OK
5186 else
5187 am_cv_prog_cc_c_o=no
5188 break
5189 fi
5190 done
5191 rm -f core conftest*
5192 unset am_i
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5195 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5196 if test "$am_cv_prog_cc_c_o" != yes; then
5197 # Losing compiler, so override with the script.
5198 # FIXME: It is wrong to rewrite CC.
5199 # But if we don't then we get into trouble of one sort or another.
5200 # A longer-term fix would be to have automake use am__CC in this case,
5201 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5202 CC="$am_aux_dir/compile $CC"
5203 fi
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
5210
5211
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
5214 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
5215 if ${ax_cv_check_cflags___Wall+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218
5219 ax_check_save_flags=$CFLAGS
5220 CFLAGS="$CFLAGS -Wall"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ax_cv_check_cflags___Wall=yes
5234 else
5235 ax_cv_check_cflags___Wall=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 CFLAGS=$ax_check_save_flags
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
5241 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
5242 if test x"$ax_cv_check_cflags___Wall" = xyes; then :
5243 CFLAGS="${CFLAGS} -Wall"
5244 else
5245 :
5246 fi
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
5249 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
5250 if ${ax_cv_check_cflags___Wextra+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253
5254 ax_check_save_flags=$CFLAGS
5255 CFLAGS="$CFLAGS -Wextra"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258
5259 int
5260 main ()
5261 {
5262
5263 ;
5264 return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268 ax_cv_check_cflags___Wextra=yes
5269 else
5270 ax_cv_check_cflags___Wextra=no
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 CFLAGS=$ax_check_save_flags
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
5276 $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
5277 if test x"$ax_cv_check_cflags___Wextra" = xyes; then :
5278 CFLAGS="${CFLAGS} -Wextra"
5279 else
5280 :
5281 fi
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
5284 $as_echo_n "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
5285 if ${ax_cv_check_cflags___Wdeclaration_after_statement+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288
5289 ax_check_save_flags=$CFLAGS
5290 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293
5294 int
5295 main ()
5296 {
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ax_cv_check_cflags___Wdeclaration_after_statement=yes
5304 else
5305 ax_cv_check_cflags___Wdeclaration_after_statement=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 CFLAGS=$ax_check_save_flags
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
5311 $as_echo "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
5312 if test x"$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes; then :
5313 CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5314 else
5315 :
5316 fi
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat" >&5
5319 $as_echo_n "checking whether C compiler accepts -Wformat... " >&6; }
5320 if ${ax_cv_check_cflags___Wformat+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323
5324 ax_check_save_flags=$CFLAGS
5325 CFLAGS="$CFLAGS -Wformat"
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328
5329 int
5330 main ()
5331 {
5332
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338 ax_cv_check_cflags___Wformat=yes
5339 else
5340 ax_cv_check_cflags___Wformat=no
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 CFLAGS=$ax_check_save_flags
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat" >&5
5346 $as_echo "$ax_cv_check_cflags___Wformat" >&6; }
5347 if test x"$ax_cv_check_cflags___Wformat" = xyes; then :
5348 CFLAGS="${CFLAGS} -Wformat"
5349 else
5350 :
5351 fi
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
5354 $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
5355 if ${ax_cv_check_cflags___Wformat_security+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358
5359 ax_check_save_flags=$CFLAGS
5360 CFLAGS="$CFLAGS -Wformat-security"
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363
5364 int
5365 main ()
5366 {
5367
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ax_cv_check_cflags___Wformat_security=yes
5374 else
5375 ax_cv_check_cflags___Wformat_security=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 CFLAGS=$ax_check_save_flags
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
5381 $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
5382 if test x"$ax_cv_check_cflags___Wformat_security" = xyes; then :
5383 CFLAGS="${CFLAGS} -Wformat-security"
5384 else
5385 :
5386 fi
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
5389 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
5390 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393
5394 ax_check_save_flags=$CFLAGS
5395 CFLAGS="$CFLAGS -Wmissing-declarations"
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ax_cv_check_cflags___Wmissing_declarations=yes
5409 else
5410 ax_cv_check_cflags___Wmissing_declarations=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 CFLAGS=$ax_check_save_flags
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
5416 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
5417 if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
5418 CFLAGS="${CFLAGS} -Wmissing-declarations"
5419 else
5420 :
5421 fi
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-parameter" >&5
5424 $as_echo_n "checking whether C compiler accepts -Wno-unused-parameter... " >&6; }
5425 if ${ax_cv_check_cflags___Wno_unused_parameter+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428
5429 ax_check_save_flags=$CFLAGS
5430 CFLAGS="$CFLAGS -Wno-unused-parameter"
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433
5434 int
5435 main ()
5436 {
5437
5438 ;
5439 return 0;
5440 }
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ax_cv_check_cflags___Wno_unused_parameter=yes
5444 else
5445 ax_cv_check_cflags___Wno_unused_parameter=no
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 CFLAGS=$ax_check_save_flags
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_unused_parameter" >&5
5451 $as_echo "$ax_cv_check_cflags___Wno_unused_parameter" >&6; }
5452 if test x"$ax_cv_check_cflags___Wno_unused_parameter" = xyes; then :
5453 CFLAGS="${CFLAGS} -Wno-unused-parameter"
5454 else
5455 :
5456 fi
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
5459 $as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; }
5460 if ${ax_cv_check_cflags___Wpointer_arith+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463
5464 ax_check_save_flags=$CFLAGS
5465 CFLAGS="$CFLAGS -Wpointer-arith"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468
5469 int
5470 main ()
5471 {
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ax_cv_check_cflags___Wpointer_arith=yes
5479 else
5480 ax_cv_check_cflags___Wpointer_arith=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 CFLAGS=$ax_check_save_flags
5484 fi
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
5486 $as_echo "$ax_cv_check_cflags___Wpointer_arith" >&6; }
5487 if test x"$ax_cv_check_cflags___Wpointer_arith" = xyes; then :
5488 CFLAGS="${CFLAGS} -Wpointer-arith"
5489 else
5490 :
5491 fi
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
5494 $as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
5495 if ${ax_cv_check_cflags___Wstrict_prototypes+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498
5499 ax_check_save_flags=$CFLAGS
5500 CFLAGS="$CFLAGS -Wstrict-prototypes"
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503
5504 int
5505 main ()
5506 {
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ax_cv_check_cflags___Wstrict_prototypes=yes
5514 else
5515 ax_cv_check_cflags___Wstrict_prototypes=no
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 CFLAGS=$ax_check_save_flags
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
5521 $as_echo "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
5522 if test x"$ax_cv_check_cflags___Wstrict_prototypes" = xyes; then :
5523 CFLAGS="${CFLAGS} -Wstrict-prototypes"
5524 else
5525 :
5526 fi
5527
5528
5529 case `pwd` in
5530 *\ * | *\ *)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5532 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5533 esac
5534
5535
5536
5537 macro_version='2.4.6'
5538 macro_revision='2.4.6'
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 ltmain=$ac_aux_dir/ltmain.sh
5553
5554 # Backslashify metacharacters that are still active within
5555 # double-quoted strings.
5556 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5557
5558 # Same as above, but do not quote variable references.
5559 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5560
5561 # Sed substitution to delay expansion of an escaped shell variable in a
5562 # double_quote_subst'ed string.
5563 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5564
5565 # Sed substitution to delay expansion of an escaped single quote.
5566 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5567
5568 # Sed substitution to avoid accidental globbing in evaled expressions
5569 no_glob_subst='s/\*/\\\*/g'
5570
5571 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5572 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5576 $as_echo_n "checking how to print strings... " >&6; }
5577 # Test print first, because it will be a builtin if present.
5578 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5579 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5580 ECHO='print -r --'
5581 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5582 ECHO='printf %s\n'
5583 else
5584 # Use this function as a fallback that always works.
5585 func_fallback_echo ()
5586 {
5587 eval 'cat <<_LTECHO_EOF
5588 $1
5589 _LTECHO_EOF'
5590 }
5591 ECHO='func_fallback_echo'
5592 fi
5593
5594 # func_echo_all arg...
5595 # Invoke $ECHO with all args, space-separated.
5596 func_echo_all ()
5597 {
5598 $ECHO ""
5599 }
5600
5601 case $ECHO in
5602 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5603 $as_echo "printf" >&6; } ;;
5604 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5605 $as_echo "print -r" >&6; } ;;
5606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5607 $as_echo "cat" >&6; } ;;
5608 esac
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5625 if ${ac_cv_path_SED+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5629 for ac_i in 1 2 3 4 5 6 7; do
5630 ac_script="$ac_script$as_nl$ac_script"
5631 done
5632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5633 { ac_script=; unset ac_script;}
5634 if test -z "$SED"; then
5635 ac_path_SED_found=false
5636 # Loop through the user's path and test for each of PROGNAME-LIST
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_prog in sed gsed; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5645 as_fn_executable_p "$ac_path_SED" || continue
5646 # Check for GNU ac_path_SED and select it if it is found.
5647 # Check for GNU $ac_path_SED
5648 case `"$ac_path_SED" --version 2>&1` in
5649 *GNU*)
5650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5651 *)
5652 ac_count=0
5653 $as_echo_n 0123456789 >"conftest.in"
5654 while :
5655 do
5656 cat "conftest.in" "conftest.in" >"conftest.tmp"
5657 mv "conftest.tmp" "conftest.in"
5658 cp "conftest.in" "conftest.nl"
5659 $as_echo '' >> "conftest.nl"
5660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662 as_fn_arith $ac_count + 1 && ac_count=$as_val
5663 if test $ac_count -gt ${ac_path_SED_max-0}; then
5664 # Best one so far, save it but keep looking for a better one
5665 ac_cv_path_SED="$ac_path_SED"
5666 ac_path_SED_max=$ac_count
5667 fi
5668 # 10*(2^10) chars as input seems more than enough
5669 test $ac_count -gt 10 && break
5670 done
5671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5672 esac
5673
5674 $ac_path_SED_found && break 3
5675 done
5676 done
5677 done
5678 IFS=$as_save_IFS
5679 if test -z "$ac_cv_path_SED"; then
5680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5681 fi
5682 else
5683 ac_cv_path_SED=$SED
5684 fi
5685
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5688 $as_echo "$ac_cv_path_SED" >&6; }
5689 SED="$ac_cv_path_SED"
5690 rm -f conftest.sed
5691
5692 test -z "$SED" && SED=sed
5693 Xsed="$SED -e 1s/^X//"
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5706 $as_echo_n "checking for fgrep... " >&6; }
5707 if ${ac_cv_path_FGREP+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5711 then ac_cv_path_FGREP="$GREP -F"
5712 else
5713 if test -z "$FGREP"; then
5714 ac_path_FGREP_found=false
5715 # Loop through the user's path and test for each of PROGNAME-LIST
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_prog in fgrep; do
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5724 as_fn_executable_p "$ac_path_FGREP" || continue
5725 # Check for GNU ac_path_FGREP and select it if it is found.
5726 # Check for GNU $ac_path_FGREP
5727 case `"$ac_path_FGREP" --version 2>&1` in
5728 *GNU*)
5729 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5730 *)
5731 ac_count=0
5732 $as_echo_n 0123456789 >"conftest.in"
5733 while :
5734 do
5735 cat "conftest.in" "conftest.in" >"conftest.tmp"
5736 mv "conftest.tmp" "conftest.in"
5737 cp "conftest.in" "conftest.nl"
5738 $as_echo 'FGREP' >> "conftest.nl"
5739 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5741 as_fn_arith $ac_count + 1 && ac_count=$as_val
5742 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5743 # Best one so far, save it but keep looking for a better one
5744 ac_cv_path_FGREP="$ac_path_FGREP"
5745 ac_path_FGREP_max=$ac_count
5746 fi
5747 # 10*(2^10) chars as input seems more than enough
5748 test $ac_count -gt 10 && break
5749 done
5750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5751 esac
5752
5753 $ac_path_FGREP_found && break 3
5754 done
5755 done
5756 done
5757 IFS=$as_save_IFS
5758 if test -z "$ac_cv_path_FGREP"; then
5759 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5760 fi
5761 else
5762 ac_cv_path_FGREP=$FGREP
5763 fi
5764
5765 fi
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5768 $as_echo "$ac_cv_path_FGREP" >&6; }
5769 FGREP="$ac_cv_path_FGREP"
5770
5771
5772 test -z "$GREP" && GREP=grep
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 # Check whether --with-gnu-ld was given.
5793 if test "${with_gnu_ld+set}" = set; then :
5794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5795 else
5796 with_gnu_ld=no
5797 fi
5798
5799 ac_prog=ld
5800 if test yes = "$GCC"; then
5801 # Check if gcc -print-prog-name=ld gives a path.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5803 $as_echo_n "checking for ld used by $CC... " >&6; }
5804 case $host in
5805 *-*-mingw*)
5806 # gcc leaves a trailing carriage return, which upsets mingw
5807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5808 *)
5809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5810 esac
5811 case $ac_prog in
5812 # Accept absolute paths.
5813 [\\/]* | ?:[\\/]*)
5814 re_direlt='/[^/][^/]*/\.\./'
5815 # Canonicalize the pathname of ld
5816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5819 done
5820 test -z "$LD" && LD=$ac_prog
5821 ;;
5822 "")
5823 # If it fails, then pretend we aren't using GCC.
5824 ac_prog=ld
5825 ;;
5826 *)
5827 # If it is relative, then search for the first ld in PATH.
5828 with_gnu_ld=unknown
5829 ;;
5830 esac
5831 elif test yes = "$with_gnu_ld"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5833 $as_echo_n "checking for GNU ld... " >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5836 $as_echo_n "checking for non-GNU ld... " >&6; }
5837 fi
5838 if ${lt_cv_path_LD+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -z "$LD"; then
5842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5843 for ac_dir in $PATH; do
5844 IFS=$lt_save_ifs
5845 test -z "$ac_dir" && ac_dir=.
5846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5847 lt_cv_path_LD=$ac_dir/$ac_prog
5848 # Check to see if the program is GNU ld. I'd rather use --version,
5849 # but apparently some variants of GNU ld only accept -v.
5850 # Break only if it was the GNU/non-GNU ld that we prefer.
5851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5852 *GNU* | *'with BFD'*)
5853 test no != "$with_gnu_ld" && break
5854 ;;
5855 *)
5856 test yes != "$with_gnu_ld" && break
5857 ;;
5858 esac
5859 fi
5860 done
5861 IFS=$lt_save_ifs
5862 else
5863 lt_cv_path_LD=$LD # Let the user override the test with a path.
5864 fi
5865 fi
5866
5867 LD=$lt_cv_path_LD
5868 if test -n "$LD"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5870 $as_echo "$LD" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5878 if ${lt_cv_prog_gnu_ld+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5882 case `$LD -v 2>&1 </dev/null` in
5883 *GNU* | *'with BFD'*)
5884 lt_cv_prog_gnu_ld=yes
5885 ;;
5886 *)
5887 lt_cv_prog_gnu_ld=no
5888 ;;
5889 esac
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5892 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5893 with_gnu_ld=$lt_cv_prog_gnu_ld
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5904 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5905 if ${lt_cv_path_NM+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test -n "$NM"; then
5909 # Let the user override the test.
5910 lt_cv_path_NM=$NM
5911 else
5912 lt_nm_to_check=${ac_tool_prefix}nm
5913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5914 lt_nm_to_check="$lt_nm_to_check nm"
5915 fi
5916 for lt_tmp_nm in $lt_nm_to_check; do
5917 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5918 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5919 IFS=$lt_save_ifs
5920 test -z "$ac_dir" && ac_dir=.
5921 tmp_nm=$ac_dir/$lt_tmp_nm
5922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5923 # Check to see if the nm accepts a BSD-compat flag.
5924 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5925 # nm: unknown option "B" ignored
5926 # Tru64's nm complains that /dev/null is an invalid object file
5927 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5928 case $build_os in
5929 mingw*) lt_bad_file=conftest.nm/nofile ;;
5930 *) lt_bad_file=/dev/null ;;
5931 esac
5932 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5933 *$lt_bad_file* | *'Invalid file or object type'*)
5934 lt_cv_path_NM="$tmp_nm -B"
5935 break 2
5936 ;;
5937 *)
5938 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5939 */dev/null*)
5940 lt_cv_path_NM="$tmp_nm -p"
5941 break 2
5942 ;;
5943 *)
5944 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5945 continue # so that we can try to find one that supports BSD flags
5946 ;;
5947 esac
5948 ;;
5949 esac
5950 fi
5951 done
5952 IFS=$lt_save_ifs
5953 done
5954 : ${lt_cv_path_NM=no}
5955 fi
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5958 $as_echo "$lt_cv_path_NM" >&6; }
5959 if test no != "$lt_cv_path_NM"; then
5960 NM=$lt_cv_path_NM
5961 else
5962 # Didn't find any BSD compatible name lister, look for dumpbin.
5963 if test -n "$DUMPBIN"; then :
5964 # Let the user override the test.
5965 else
5966 if test -n "$ac_tool_prefix"; then
5967 for ac_prog in dumpbin "link -dump"
5968 do
5969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_DUMPBIN+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$DUMPBIN"; then
5977 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 DUMPBIN=$ac_cv_prog_DUMPBIN
5997 if test -n "$DUMPBIN"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5999 $as_echo "$DUMPBIN" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005
6006 test -n "$DUMPBIN" && break
6007 done
6008 fi
6009 if test -z "$DUMPBIN"; then
6010 ac_ct_DUMPBIN=$DUMPBIN
6011 for ac_prog in dumpbin "link -dump"
6012 do
6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
6014 set dummy $ac_prog; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_DUMPBIN"; then
6021 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6041 if test -n "$ac_ct_DUMPBIN"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6043 $as_echo "$ac_ct_DUMPBIN" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049
6050 test -n "$ac_ct_DUMPBIN" && break
6051 done
6052
6053 if test "x$ac_ct_DUMPBIN" = x; then
6054 DUMPBIN=":"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062 DUMPBIN=$ac_ct_DUMPBIN
6063 fi
6064 fi
6065
6066 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6067 *COFF*)
6068 DUMPBIN="$DUMPBIN -symbols -headers"
6069 ;;
6070 *)
6071 DUMPBIN=:
6072 ;;
6073 esac
6074 fi
6075
6076 if test : != "$DUMPBIN"; then
6077 NM=$DUMPBIN
6078 fi
6079 fi
6080 test -z "$NM" && NM=nm
6081
6082
6083
6084
6085
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6088 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6089 if ${lt_cv_nm_interface+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 lt_cv_nm_interface="BSD nm"
6093 echo "int some_variable = 0;" > conftest.$ac_ext
6094 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6095 (eval "$ac_compile" 2>conftest.err)
6096 cat conftest.err >&5
6097 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6098 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6099 cat conftest.err >&5
6100 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6101 cat conftest.out >&5
6102 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6103 lt_cv_nm_interface="MS dumpbin"
6104 fi
6105 rm -f conftest*
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6108 $as_echo "$lt_cv_nm_interface" >&6; }
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6111 $as_echo_n "checking whether ln -s works... " >&6; }
6112 LN_S=$as_ln_s
6113 if test "$LN_S" = "ln -s"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6115 $as_echo "yes" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6118 $as_echo "no, using $LN_S" >&6; }
6119 fi
6120
6121 # find the maximum length of command line arguments
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6123 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6124 if ${lt_cv_sys_max_cmd_len+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 i=0
6128 teststring=ABCD
6129
6130 case $build_os in
6131 msdosdjgpp*)
6132 # On DJGPP, this test can blow up pretty badly due to problems in libc
6133 # (any single argument exceeding 2000 bytes causes a buffer overrun
6134 # during glob expansion). Even if it were fixed, the result of this
6135 # check would be larger than it should be.
6136 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6137 ;;
6138
6139 gnu*)
6140 # Under GNU Hurd, this test is not required because there is
6141 # no limit to the length of command line arguments.
6142 # Libtool will interpret -1 as no limit whatsoever
6143 lt_cv_sys_max_cmd_len=-1;
6144 ;;
6145
6146 cygwin* | mingw* | cegcc*)
6147 # On Win9x/ME, this test blows up -- it succeeds, but takes
6148 # about 5 minutes as the teststring grows exponentially.
6149 # Worse, since 9x/ME are not pre-emptively multitasking,
6150 # you end up with a "frozen" computer, even though with patience
6151 # the test eventually succeeds (with a max line length of 256k).
6152 # Instead, let's just punt: use the minimum linelength reported by
6153 # all of the supported platforms: 8192 (on NT/2K/XP).
6154 lt_cv_sys_max_cmd_len=8192;
6155 ;;
6156
6157 mint*)
6158 # On MiNT this can take a long time and run out of memory.
6159 lt_cv_sys_max_cmd_len=8192;
6160 ;;
6161
6162 amigaos*)
6163 # On AmigaOS with pdksh, this test takes hours, literally.
6164 # So we just punt and use a minimum line length of 8192.
6165 lt_cv_sys_max_cmd_len=8192;
6166 ;;
6167
6168 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6169 # This has been around since 386BSD, at least. Likely further.
6170 if test -x /sbin/sysctl; then
6171 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6172 elif test -x /usr/sbin/sysctl; then
6173 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6174 else
6175 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6176 fi
6177 # And add a safety zone
6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180 ;;
6181
6182 interix*)
6183 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6184 lt_cv_sys_max_cmd_len=196608
6185 ;;
6186
6187 os2*)
6188 # The test takes a long time on OS/2.
6189 lt_cv_sys_max_cmd_len=8192
6190 ;;
6191
6192 osf*)
6193 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6194 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6195 # nice to cause kernel panics so lets avoid the loop below.
6196 # First set a reasonable default.
6197 lt_cv_sys_max_cmd_len=16384
6198 #
6199 if test -x /sbin/sysconfig; then
6200 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6201 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6202 esac
6203 fi
6204 ;;
6205 sco3.2v5*)
6206 lt_cv_sys_max_cmd_len=102400
6207 ;;
6208 sysv5* | sco5v6* | sysv4.2uw2*)
6209 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6210 if test -n "$kargmax"; then
6211 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6212 else
6213 lt_cv_sys_max_cmd_len=32768
6214 fi
6215 ;;
6216 *)
6217 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6218 if test -n "$lt_cv_sys_max_cmd_len" && \
6219 test undefined != "$lt_cv_sys_max_cmd_len"; then
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6222 else
6223 # Make teststring a little bigger before we do anything with it.
6224 # a 1K string should be a reasonable start.
6225 for i in 1 2 3 4 5 6 7 8; do
6226 teststring=$teststring$teststring
6227 done
6228 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6229 # If test is not a shell built-in, we'll probably end up computing a
6230 # maximum length that is only half of the actual maximum length, but
6231 # we can't tell.
6232 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6233 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6234 test 17 != "$i" # 1/2 MB should be enough
6235 do
6236 i=`expr $i + 1`
6237 teststring=$teststring$teststring
6238 done
6239 # Only check the string length outside the loop.
6240 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6241 teststring=
6242 # Add a significant safety factor because C++ compilers can tack on
6243 # massive amounts of additional arguments before passing them to the
6244 # linker. It appears as though 1/2 is a usable value.
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6246 fi
6247 ;;
6248 esac
6249
6250 fi
6251
6252 if test -n "$lt_cv_sys_max_cmd_len"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6254 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6257 $as_echo "none" >&6; }
6258 fi
6259 max_cmd_len=$lt_cv_sys_max_cmd_len
6260
6261
6262
6263
6264
6265
6266 : ${CP="cp -f"}
6267 : ${MV="mv -f"}
6268 : ${RM="rm -f"}
6269
6270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6271 lt_unset=unset
6272 else
6273 lt_unset=false
6274 fi
6275
6276
6277
6278
6279
6280 # test EBCDIC or ASCII
6281 case `echo X|tr X '\101'` in
6282 A) # ASCII based system
6283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6284 lt_SP2NL='tr \040 \012'
6285 lt_NL2SP='tr \015\012 \040\040'
6286 ;;
6287 *) # EBCDIC based system
6288 lt_SP2NL='tr \100 \n'
6289 lt_NL2SP='tr \r\n \100\100'
6290 ;;
6291 esac
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6302 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6303 if ${lt_cv_to_host_file_cmd+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 case $host in
6307 *-*-mingw* )
6308 case $build in
6309 *-*-mingw* ) # actually msys
6310 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6311 ;;
6312 *-*-cygwin* )
6313 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6314 ;;
6315 * ) # otherwise, assume *nix
6316 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6317 ;;
6318 esac
6319 ;;
6320 *-*-cygwin* )
6321 case $build in
6322 *-*-mingw* ) # actually msys
6323 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6324 ;;
6325 *-*-cygwin* )
6326 lt_cv_to_host_file_cmd=func_convert_file_noop
6327 ;;
6328 * ) # otherwise, assume *nix
6329 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6330 ;;
6331 esac
6332 ;;
6333 * ) # unhandled hosts (and "normal" native builds)
6334 lt_cv_to_host_file_cmd=func_convert_file_noop
6335 ;;
6336 esac
6337
6338 fi
6339
6340 to_host_file_cmd=$lt_cv_to_host_file_cmd
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6342 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6343
6344
6345
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6349 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6350 if ${lt_cv_to_tool_file_cmd+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 #assume ordinary cross tools, or native build.
6354 lt_cv_to_tool_file_cmd=func_convert_file_noop
6355 case $host in
6356 *-*-mingw* )
6357 case $build in
6358 *-*-mingw* ) # actually msys
6359 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6360 ;;
6361 esac
6362 ;;
6363 esac
6364
6365 fi
6366
6367 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6369 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6370
6371
6372
6373
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6376 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6377 if ${lt_cv_ld_reload_flag+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 lt_cv_ld_reload_flag='-r'
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6383 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6384 reload_flag=$lt_cv_ld_reload_flag
6385 case $reload_flag in
6386 "" | " "*) ;;
6387 *) reload_flag=" $reload_flag" ;;
6388 esac
6389 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6390 case $host_os in
6391 cygwin* | mingw* | pw32* | cegcc*)
6392 if test yes != "$GCC"; then
6393 reload_cmds=false
6394 fi
6395 ;;
6396 darwin*)
6397 if test yes = "$GCC"; then
6398 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6399 else
6400 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6401 fi
6402 ;;
6403 esac
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_OBJDUMP+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$OBJDUMP"; then
6422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 OBJDUMP=$ac_cv_prog_OBJDUMP
6442 if test -n "$OBJDUMP"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6444 $as_echo "$OBJDUMP" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450
6451 fi
6452 if test -z "$ac_cv_prog_OBJDUMP"; then
6453 ac_ct_OBJDUMP=$OBJDUMP
6454 # Extract the first word of "objdump", so it can be a program name with args.
6455 set dummy objdump; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$ac_ct_OBJDUMP"; then
6462 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6482 if test -n "$ac_ct_OBJDUMP"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6484 $as_echo "$ac_ct_OBJDUMP" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490 if test "x$ac_ct_OBJDUMP" = x; then
6491 OBJDUMP="false"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494 yes:)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6498 esac
6499 OBJDUMP=$ac_ct_OBJDUMP
6500 fi
6501 else
6502 OBJDUMP="$ac_cv_prog_OBJDUMP"
6503 fi
6504
6505 test -z "$OBJDUMP" && OBJDUMP=objdump
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6516 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6517 if ${lt_cv_deplibs_check_method+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 lt_cv_file_magic_cmd='$MAGIC_CMD'
6521 lt_cv_file_magic_test_file=
6522 lt_cv_deplibs_check_method='unknown'
6523 # Need to set the preceding variable on all platforms that support
6524 # interlibrary dependencies.
6525 # 'none' -- dependencies not supported.
6526 # 'unknown' -- same as none, but documents that we really don't know.
6527 # 'pass_all' -- all dependencies passed with no checks.
6528 # 'test_compile' -- check by making test program.
6529 # 'file_magic [[regex]]' -- check by looking for files in library path
6530 # that responds to the $file_magic_cmd with a given extended regex.
6531 # If you have 'file' or equivalent on your system and you're not sure
6532 # whether 'pass_all' will *always* work, you probably want this one.
6533
6534 case $host_os in
6535 aix[4-9]*)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538
6539 beos*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542
6543 bsdi[45]*)
6544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6545 lt_cv_file_magic_cmd='/usr/bin/file -L'
6546 lt_cv_file_magic_test_file=/shlib/libc.so
6547 ;;
6548
6549 cygwin*)
6550 # func_win32_libid is a shell function defined in ltmain.sh
6551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6552 lt_cv_file_magic_cmd='func_win32_libid'
6553 ;;
6554
6555 mingw* | pw32*)
6556 # Base MSYS/MinGW do not provide the 'file' command needed by
6557 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6558 # unless we find 'file', for example because we are cross-compiling.
6559 if ( file / ) >/dev/null 2>&1; then
6560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6561 lt_cv_file_magic_cmd='func_win32_libid'
6562 else
6563 # Keep this pattern in sync with the one in func_win32_libid.
6564 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6565 lt_cv_file_magic_cmd='$OBJDUMP -f'
6566 fi
6567 ;;
6568
6569 cegcc*)
6570 # use the weaker test based on 'objdump'. See mingw*.
6571 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6572 lt_cv_file_magic_cmd='$OBJDUMP -f'
6573 ;;
6574
6575 darwin* | rhapsody*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 freebsd* | dragonfly*)
6580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6581 case $host_cpu in
6582 i*86 )
6583 # Not sure whether the presence of OpenBSD here was a mistake.
6584 # Let's accept both of them until this is cleared up.
6585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6586 lt_cv_file_magic_cmd=/usr/bin/file
6587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6588 ;;
6589 esac
6590 else
6591 lt_cv_deplibs_check_method=pass_all
6592 fi
6593 ;;
6594
6595 haiku*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599 hpux10.20* | hpux11*)
6600 lt_cv_file_magic_cmd=/usr/bin/file
6601 case $host_cpu in
6602 ia64*)
6603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6604 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6605 ;;
6606 hppa*64*)
6607 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]'
6608 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6609 ;;
6610 *)
6611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6612 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6613 ;;
6614 esac
6615 ;;
6616
6617 interix[3-9]*)
6618 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6620 ;;
6621
6622 irix5* | irix6* | nonstopux*)
6623 case $LD in
6624 *-32|*"-32 ") libmagic=32-bit;;
6625 *-n32|*"-n32 ") libmagic=N32;;
6626 *-64|*"-64 ") libmagic=64-bit;;
6627 *) libmagic=never-match;;
6628 esac
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631
6632 # This must be glibc/ELF.
6633 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637 netbsd*)
6638 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6640 else
6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6642 fi
6643 ;;
6644
6645 newos6*)
6646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6647 lt_cv_file_magic_cmd=/usr/bin/file
6648 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6649 ;;
6650
6651 *nto* | *qnx*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655 openbsd* | bitrig*)
6656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6658 else
6659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6660 fi
6661 ;;
6662
6663 osf3* | osf4* | osf5*)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667 rdos*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670
6671 solaris*)
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
6674
6675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678
6679 sysv4 | sysv4.3*)
6680 case $host_vendor in
6681 motorola)
6682 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]'
6683 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6684 ;;
6685 ncr)
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
6688 sequent)
6689 lt_cv_file_magic_cmd='/bin/file'
6690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6691 ;;
6692 sni)
6693 lt_cv_file_magic_cmd='/bin/file'
6694 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6695 lt_cv_file_magic_test_file=/lib/libc.so
6696 ;;
6697 siemens)
6698 lt_cv_deplibs_check_method=pass_all
6699 ;;
6700 pc)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703 esac
6704 ;;
6705
6706 tpf*)
6707 lt_cv_deplibs_check_method=pass_all
6708 ;;
6709 os2*)
6710 lt_cv_deplibs_check_method=pass_all
6711 ;;
6712 esac
6713
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6716 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6717
6718 file_magic_glob=
6719 want_nocaseglob=no
6720 if test "$build" = "$host"; then
6721 case $host_os in
6722 mingw* | pw32*)
6723 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6724 want_nocaseglob=yes
6725 else
6726 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6727 fi
6728 ;;
6729 esac
6730 fi
6731
6732 file_magic_cmd=$lt_cv_file_magic_cmd
6733 deplibs_check_method=$lt_cv_deplibs_check_method
6734 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_DLLTOOL+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$DLLTOOL"; then
6766 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 DLLTOOL=$ac_cv_prog_DLLTOOL
6786 if test -n "$DLLTOOL"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6788 $as_echo "$DLLTOOL" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_DLLTOOL"; then
6797 ac_ct_DLLTOOL=$DLLTOOL
6798 # Extract the first word of "dlltool", so it can be a program name with args.
6799 set dummy dlltool; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_DLLTOOL"; then
6806 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6826 if test -n "$ac_ct_DLLTOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6828 $as_echo "$ac_ct_DLLTOOL" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834 if test "x$ac_ct_DLLTOOL" = x; then
6835 DLLTOOL="false"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 DLLTOOL=$ac_ct_DLLTOOL
6844 fi
6845 else
6846 DLLTOOL="$ac_cv_prog_DLLTOOL"
6847 fi
6848
6849 test -z "$DLLTOOL" && DLLTOOL=dlltool
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6861 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6862 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 lt_cv_sharedlib_from_linklib_cmd='unknown'
6866
6867 case $host_os in
6868 cygwin* | mingw* | pw32* | cegcc*)
6869 # two different shell functions defined in ltmain.sh;
6870 # decide which one to use based on capabilities of $DLLTOOL
6871 case `$DLLTOOL --help 2>&1` in
6872 *--identify-strict*)
6873 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6874 ;;
6875 *)
6876 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6877 ;;
6878 esac
6879 ;;
6880 *)
6881 # fallback: assume linklib IS sharedlib
6882 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6883 ;;
6884 esac
6885
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6888 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6889 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6890 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6891
6892
6893
6894
6895
6896
6897
6898 if test -n "$ac_tool_prefix"; then
6899 for ac_prog in ar
6900 do
6901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_AR+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$AR"; then
6909 ac_cv_prog_AR="$AR" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 AR=$ac_cv_prog_AR
6929 if test -n "$AR"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6931 $as_echo "$AR" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 test -n "$AR" && break
6939 done
6940 fi
6941 if test -z "$AR"; then
6942 ac_ct_AR=$AR
6943 for ac_prog in ar
6944 do
6945 # Extract the first word of "$ac_prog", so it can be a program name with args.
6946 set dummy $ac_prog; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$ac_ct_AR"; then
6953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_ac_ct_AR="$ac_prog"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6973 if test -n "$ac_ct_AR"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6975 $as_echo "$ac_ct_AR" >&6; }
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981
6982 test -n "$ac_ct_AR" && break
6983 done
6984
6985 if test "x$ac_ct_AR" = x; then
6986 AR="false"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 AR=$ac_ct_AR
6995 fi
6996 fi
6997
6998 : ${AR=ar}
6999 : ${AR_FLAGS=cru}
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7012 $as_echo_n "checking for archiver @FILE support... " >&6; }
7013 if ${lt_cv_ar_at_file+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 lt_cv_ar_at_file=no
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019
7020 int
7021 main ()
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 echo conftest.$ac_objext > conftest.lst
7030 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7032 (eval $lt_ar_try) 2>&5
7033 ac_status=$?
7034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }
7036 if test 0 -eq "$ac_status"; then
7037 # Ensure the archiver fails upon bogus file names.
7038 rm -f conftest.$ac_objext libconftest.a
7039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7040 (eval $lt_ar_try) 2>&5
7041 ac_status=$?
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }
7044 if test 0 -ne "$ac_status"; then
7045 lt_cv_ar_at_file=@
7046 fi
7047 fi
7048 rm -f conftest.* libconftest.a
7049
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7055 $as_echo "$lt_cv_ar_at_file" >&6; }
7056
7057 if test no = "$lt_cv_ar_at_file"; then
7058 archiver_list_spec=
7059 else
7060 archiver_list_spec=$lt_cv_ar_at_file
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}strip; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_STRIP+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$STRIP"; then
7078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 STRIP=$ac_cv_prog_STRIP
7098 if test -n "$STRIP"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7100 $as_echo "$STRIP" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106
7107 fi
7108 if test -z "$ac_cv_prog_STRIP"; then
7109 ac_ct_STRIP=$STRIP
7110 # Extract the first word of "strip", so it can be a program name with args.
7111 set dummy strip; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$ac_ct_STRIP"; then
7118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_STRIP="strip"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7138 if test -n "$ac_ct_STRIP"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7140 $as_echo "$ac_ct_STRIP" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146 if test "x$ac_ct_STRIP" = x; then
7147 STRIP=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155 STRIP=$ac_ct_STRIP
7156 fi
7157 else
7158 STRIP="$ac_cv_prog_STRIP"
7159 fi
7160
7161 test -z "$STRIP" && STRIP=:
7162
7163
7164
7165
7166
7167
7168 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_RANLIB+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$RANLIB"; then
7177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 RANLIB=$ac_cv_prog_RANLIB
7197 if test -n "$RANLIB"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7199 $as_echo "$RANLIB" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208 ac_ct_RANLIB=$RANLIB
7209 # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$ac_ct_RANLIB"; then
7217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_RANLIB="ranlib"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7239 $as_echo "$ac_ct_RANLIB" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245 if test "x$ac_ct_RANLIB" = x; then
7246 RANLIB=":"
7247 else
7248 case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254 RANLIB=$ac_ct_RANLIB
7255 fi
7256 else
7257 RANLIB="$ac_cv_prog_RANLIB"
7258 fi
7259
7260 test -z "$RANLIB" && RANLIB=:
7261
7262
7263
7264
7265
7266
7267 # Determine commands to create old-style static archives.
7268 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7269 old_postinstall_cmds='chmod 644 $oldlib'
7270 old_postuninstall_cmds=
7271
7272 if test -n "$RANLIB"; then
7273 case $host_os in
7274 bitrig* | openbsd*)
7275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7276 ;;
7277 *)
7278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7279 ;;
7280 esac
7281 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7282 fi
7283
7284 case $host_os in
7285 darwin*)
7286 lock_old_archive_extraction=yes ;;
7287 *)
7288 lock_old_archive_extraction=no ;;
7289 esac
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 # If no C compiler was specified, use CC.
7330 LTCC=${LTCC-"$CC"}
7331
7332 # If no C compiler flags were specified, use CFLAGS.
7333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7334
7335 # Allow CC to be a program name with arguments.
7336 compiler=$CC
7337
7338
7339 # Check for command to grab the raw symbol name followed by C symbol from nm.
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7341 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7342 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345
7346 # These are sane defaults that work on at least a few old systems.
7347 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7348
7349 # Character class describing NM global symbol codes.
7350 symcode='[BCDEGRST]'
7351
7352 # Regexp to match symbols that can be accessed directly from C.
7353 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7354
7355 # Define system-specific variables.
7356 case $host_os in
7357 aix*)
7358 symcode='[BCDT]'
7359 ;;
7360 cygwin* | mingw* | pw32* | cegcc*)
7361 symcode='[ABCDGISTW]'
7362 ;;
7363 hpux*)
7364 if test ia64 = "$host_cpu"; then
7365 symcode='[ABCDEGRST]'
7366 fi
7367 ;;
7368 irix* | nonstopux*)
7369 symcode='[BCDEGRST]'
7370 ;;
7371 osf*)
7372 symcode='[BCDEGQRST]'
7373 ;;
7374 solaris*)
7375 symcode='[BDRT]'
7376 ;;
7377 sco3.2v5*)
7378 symcode='[DT]'
7379 ;;
7380 sysv4.2uw2*)
7381 symcode='[DT]'
7382 ;;
7383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7384 symcode='[ABDT]'
7385 ;;
7386 sysv4)
7387 symcode='[DFNSTU]'
7388 ;;
7389 esac
7390
7391 # If we're using GNU nm, then use its standard symbol codes.
7392 case `$NM -V 2>&1` in
7393 *GNU* | *'with BFD'*)
7394 symcode='[ABCDGIRSTW]' ;;
7395 esac
7396
7397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7398 # Gets list of data symbols to import.
7399 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7400 # Adjust the below global symbol transforms to fixup imported variables.
7401 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7402 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7403 lt_c_name_lib_hook="\
7404 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7405 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7406 else
7407 # Disable hooks by default.
7408 lt_cv_sys_global_symbol_to_import=
7409 lt_cdecl_hook=
7410 lt_c_name_hook=
7411 lt_c_name_lib_hook=
7412 fi
7413
7414 # Transform an extracted symbol line into a proper C declaration.
7415 # Some systems (esp. on ia64) link data and code symbols differently,
7416 # so use this general approach.
7417 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7418 $lt_cdecl_hook\
7419 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7420 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7421
7422 # Transform an extracted symbol line into symbol name and symbol address
7423 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7424 $lt_c_name_hook\
7425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7426 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7427
7428 # Transform an extracted symbol line into symbol name with lib prefix and
7429 # symbol address.
7430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7431 $lt_c_name_lib_hook\
7432 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7433 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7434 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7435
7436 # Handle CRLF in mingw tool chain
7437 opt_cr=
7438 case $build_os in
7439 mingw*)
7440 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7441 ;;
7442 esac
7443
7444 # Try without a prefix underscore, then with it.
7445 for ac_symprfx in "" "_"; do
7446
7447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7448 symxfrm="\\1 $ac_symprfx\\2 \\2"
7449
7450 # Write the raw and C identifiers.
7451 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7452 # Fake it for dumpbin and say T for any non-static function,
7453 # D for any global variable and I for any imported variable.
7454 # Also find C++ and __fastcall symbols from MSVC++,
7455 # which start with @ or ?.
7456 lt_cv_sys_global_symbol_pipe="$AWK '"\
7457 " {last_section=section; section=\$ 3};"\
7458 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7459 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7460 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7461 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7462 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7463 " \$ 0!~/External *\|/{next};"\
7464 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7465 " {if(hide[section]) next};"\
7466 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7467 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7468 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7469 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7470 " ' prfx=^$ac_symprfx"
7471 else
7472 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7473 fi
7474 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7475
7476 # Check to see that the pipe works correctly.
7477 pipe_works=no
7478
7479 rm -f conftest*
7480 cat > conftest.$ac_ext <<_LT_EOF
7481 #ifdef __cplusplus
7482 extern "C" {
7483 #endif
7484 char nm_test_var;
7485 void nm_test_func(void);
7486 void nm_test_func(void){}
7487 #ifdef __cplusplus
7488 }
7489 #endif
7490 int main(){nm_test_var='a';nm_test_func();return(0);}
7491 _LT_EOF
7492
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494 (eval $ac_compile) 2>&5
7495 ac_status=$?
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 # Now try to grab the symbols.
7499 nlist=conftest.nm
7500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7501 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7502 ac_status=$?
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; } && test -s "$nlist"; then
7505 # Try sorting and uniquifying the output.
7506 if sort "$nlist" | uniq > "$nlist"T; then
7507 mv -f "$nlist"T "$nlist"
7508 else
7509 rm -f "$nlist"T
7510 fi
7511
7512 # Make sure that we snagged all the symbols we need.
7513 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7514 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7515 cat <<_LT_EOF > conftest.$ac_ext
7516 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7517 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7518 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7519 relocations are performed -- see ld's documentation on pseudo-relocs. */
7520 # define LT_DLSYM_CONST
7521 #elif defined __osf__
7522 /* This system does not cope well with relocations in const data. */
7523 # define LT_DLSYM_CONST
7524 #else
7525 # define LT_DLSYM_CONST const
7526 #endif
7527
7528 #ifdef __cplusplus
7529 extern "C" {
7530 #endif
7531
7532 _LT_EOF
7533 # Now generate the symbol file.
7534 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7535
7536 cat <<_LT_EOF >> conftest.$ac_ext
7537
7538 /* The mapping between symbol names and symbols. */
7539 LT_DLSYM_CONST struct {
7540 const char *name;
7541 void *address;
7542 }
7543 lt__PROGRAM__LTX_preloaded_symbols[] =
7544 {
7545 { "@PROGRAM@", (void *) 0 },
7546 _LT_EOF
7547 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7548 cat <<\_LT_EOF >> conftest.$ac_ext
7549 {0, (void *) 0}
7550 };
7551
7552 /* This works around a problem in FreeBSD linker */
7553 #ifdef FREEBSD_WORKAROUND
7554 static const void *lt_preloaded_setup() {
7555 return lt__PROGRAM__LTX_preloaded_symbols;
7556 }
7557 #endif
7558
7559 #ifdef __cplusplus
7560 }
7561 #endif
7562 _LT_EOF
7563 # Now try linking the two files.
7564 mv conftest.$ac_objext conftstm.$ac_objext
7565 lt_globsym_save_LIBS=$LIBS
7566 lt_globsym_save_CFLAGS=$CFLAGS
7567 LIBS=conftstm.$ac_objext
7568 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7570 (eval $ac_link) 2>&5
7571 ac_status=$?
7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7574 pipe_works=yes
7575 fi
7576 LIBS=$lt_globsym_save_LIBS
7577 CFLAGS=$lt_globsym_save_CFLAGS
7578 else
7579 echo "cannot find nm_test_func in $nlist" >&5
7580 fi
7581 else
7582 echo "cannot find nm_test_var in $nlist" >&5
7583 fi
7584 else
7585 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7586 fi
7587 else
7588 echo "$progname: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 fi
7591 rm -rf conftest* conftst*
7592
7593 # Do not use the global_symbol_pipe unless it works.
7594 if test yes = "$pipe_works"; then
7595 break
7596 else
7597 lt_cv_sys_global_symbol_pipe=
7598 fi
7599 done
7600
7601 fi
7602
7603 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7604 lt_cv_sys_global_symbol_to_cdecl=
7605 fi
7606 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7608 $as_echo "failed" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7611 $as_echo "ok" >&6; }
7612 fi
7613
7614 # Response file support.
7615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7616 nm_file_list_spec='@'
7617 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7618 nm_file_list_spec='@'
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7658 $as_echo_n "checking for sysroot... " >&6; }
7659
7660 # Check whether --with-sysroot was given.
7661 if test "${with_sysroot+set}" = set; then :
7662 withval=$with_sysroot;
7663 else
7664 with_sysroot=no
7665 fi
7666
7667
7668 lt_sysroot=
7669 case $with_sysroot in #(
7670 yes)
7671 if test yes = "$GCC"; then
7672 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7673 fi
7674 ;; #(
7675 /*)
7676 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7677 ;; #(
7678 no|'')
7679 ;; #(
7680 *)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7682 $as_echo "$with_sysroot" >&6; }
7683 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7684 ;;
7685 esac
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7688 $as_echo "${lt_sysroot:-no}" >&6; }
7689
7690
7691
7692
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7695 $as_echo_n "checking for a working dd... " >&6; }
7696 if ${ac_cv_path_lt_DD+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 printf 0123456789abcdef0123456789abcdef >conftest.i
7700 cat conftest.i conftest.i >conftest2.i
7701 : ${lt_DD:=$DD}
7702 if test -z "$lt_DD"; then
7703 ac_path_lt_DD_found=false
7704 # Loop through the user's path and test for each of PROGNAME-LIST
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_prog in dd; do
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7713 as_fn_executable_p "$ac_path_lt_DD" || continue
7714 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7715 cmp -s conftest.i conftest.out \
7716 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7717 fi
7718 $ac_path_lt_DD_found && break 3
7719 done
7720 done
7721 done
7722 IFS=$as_save_IFS
7723 if test -z "$ac_cv_path_lt_DD"; then
7724 :
7725 fi
7726 else
7727 ac_cv_path_lt_DD=$lt_DD
7728 fi
7729
7730 rm -f conftest.i conftest2.i conftest.out
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7733 $as_echo "$ac_cv_path_lt_DD" >&6; }
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7737 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7738 if ${lt_cv_truncate_bin+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 printf 0123456789abcdef0123456789abcdef >conftest.i
7742 cat conftest.i conftest.i >conftest2.i
7743 lt_cv_truncate_bin=
7744 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7745 cmp -s conftest.i conftest.out \
7746 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7747 fi
7748 rm -f conftest.i conftest2.i conftest.out
7749 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7752 $as_echo "$lt_cv_truncate_bin" >&6; }
7753
7754
7755
7756
7757
7758
7759
7760 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7761 func_cc_basename ()
7762 {
7763 for cc_temp in $*""; do
7764 case $cc_temp in
7765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7767 \-*) ;;
7768 *) break;;
7769 esac
7770 done
7771 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7772 }
7773
7774 # Check whether --enable-libtool-lock was given.
7775 if test "${enable_libtool_lock+set}" = set; then :
7776 enableval=$enable_libtool_lock;
7777 fi
7778
7779 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7780
7781 # Some flags need to be propagated to the compiler or linker for good
7782 # libtool support.
7783 case $host in
7784 ia64-*-hpux*)
7785 # Find out what ABI is being produced by ac_compile, and set mode
7786 # options accordingly.
7787 echo 'int i;' > conftest.$ac_ext
7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7789 (eval $ac_compile) 2>&5
7790 ac_status=$?
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
7793 case `/usr/bin/file conftest.$ac_objext` in
7794 *ELF-32*)
7795 HPUX_IA64_MODE=32
7796 ;;
7797 *ELF-64*)
7798 HPUX_IA64_MODE=64
7799 ;;
7800 esac
7801 fi
7802 rm -rf conftest*
7803 ;;
7804 *-*-irix6*)
7805 # Find out what ABI is being produced by ac_compile, and set linker
7806 # options accordingly.
7807 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7809 (eval $ac_compile) 2>&5
7810 ac_status=$?
7811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812 test $ac_status = 0; }; then
7813 if test yes = "$lt_cv_prog_gnu_ld"; then
7814 case `/usr/bin/file conftest.$ac_objext` in
7815 *32-bit*)
7816 LD="${LD-ld} -melf32bsmip"
7817 ;;
7818 *N32*)
7819 LD="${LD-ld} -melf32bmipn32"
7820 ;;
7821 *64-bit*)
7822 LD="${LD-ld} -melf64bmip"
7823 ;;
7824 esac
7825 else
7826 case `/usr/bin/file conftest.$ac_objext` in
7827 *32-bit*)
7828 LD="${LD-ld} -32"
7829 ;;
7830 *N32*)
7831 LD="${LD-ld} -n32"
7832 ;;
7833 *64-bit*)
7834 LD="${LD-ld} -64"
7835 ;;
7836 esac
7837 fi
7838 fi
7839 rm -rf conftest*
7840 ;;
7841
7842 mips64*-*linux*)
7843 # Find out what ABI is being produced by ac_compile, and set linker
7844 # options accordingly.
7845 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847 (eval $ac_compile) 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; }; then
7851 emul=elf
7852 case `/usr/bin/file conftest.$ac_objext` in
7853 *32-bit*)
7854 emul="${emul}32"
7855 ;;
7856 *64-bit*)
7857 emul="${emul}64"
7858 ;;
7859 esac
7860 case `/usr/bin/file conftest.$ac_objext` in
7861 *MSB*)
7862 emul="${emul}btsmip"
7863 ;;
7864 *LSB*)
7865 emul="${emul}ltsmip"
7866 ;;
7867 esac
7868 case `/usr/bin/file conftest.$ac_objext` in
7869 *N32*)
7870 emul="${emul}n32"
7871 ;;
7872 esac
7873 LD="${LD-ld} -m $emul"
7874 fi
7875 rm -rf conftest*
7876 ;;
7877
7878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7880 # Find out what ABI is being produced by ac_compile, and set linker
7881 # options accordingly. Note that the listed cases only cover the
7882 # situations where additional linker options are needed (such as when
7883 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7884 # vice versa); the common cases where no linker options are needed do
7885 # not appear in the list.
7886 echo 'int i;' > conftest.$ac_ext
7887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7888 (eval $ac_compile) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 case `/usr/bin/file conftest.o` in
7893 *32-bit*)
7894 case $host in
7895 x86_64-*kfreebsd*-gnu)
7896 LD="${LD-ld} -m elf_i386_fbsd"
7897 ;;
7898 x86_64-*linux*)
7899 case `/usr/bin/file conftest.o` in
7900 *x86-64*)
7901 LD="${LD-ld} -m elf32_x86_64"
7902 ;;
7903 *)
7904 LD="${LD-ld} -m elf_i386"
7905 ;;
7906 esac
7907 ;;
7908 powerpc64le-*linux*)
7909 LD="${LD-ld} -m elf32lppclinux"
7910 ;;
7911 powerpc64-*linux*)
7912 LD="${LD-ld} -m elf32ppclinux"
7913 ;;
7914 s390x-*linux*)
7915 LD="${LD-ld} -m elf_s390"
7916 ;;
7917 sparc64-*linux*)
7918 LD="${LD-ld} -m elf32_sparc"
7919 ;;
7920 esac
7921 ;;
7922 *64-bit*)
7923 case $host in
7924 x86_64-*kfreebsd*-gnu)
7925 LD="${LD-ld} -m elf_x86_64_fbsd"
7926 ;;
7927 x86_64-*linux*)
7928 LD="${LD-ld} -m elf_x86_64"
7929 ;;
7930 powerpcle-*linux*)
7931 LD="${LD-ld} -m elf64lppc"
7932 ;;
7933 powerpc-*linux*)
7934 LD="${LD-ld} -m elf64ppc"
7935 ;;
7936 s390*-*linux*|s390*-*tpf*)
7937 LD="${LD-ld} -m elf64_s390"
7938 ;;
7939 sparc*-*linux*)
7940 LD="${LD-ld} -m elf64_sparc"
7941 ;;
7942 esac
7943 ;;
7944 esac
7945 fi
7946 rm -rf conftest*
7947 ;;
7948
7949 *-*-sco3.2v5*)
7950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7951 SAVE_CFLAGS=$CFLAGS
7952 CFLAGS="$CFLAGS -belf"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7955 if ${lt_cv_cc_needs_belf+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 ac_ext=c
7959 ac_cpp='$CPP $CPPFLAGS'
7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966
7967 int
7968 main ()
7969 {
7970
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 lt_cv_cc_needs_belf=yes
7977 else
7978 lt_cv_cc_needs_belf=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 ac_ext=c
7983 ac_cpp='$CPP $CPPFLAGS'
7984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7991 if test yes != "$lt_cv_cc_needs_belf"; then
7992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7993 CFLAGS=$SAVE_CFLAGS
7994 fi
7995 ;;
7996 *-*solaris*)
7997 # Find out what ABI is being produced by ac_compile, and set linker
7998 # options accordingly.
7999 echo 'int i;' > conftest.$ac_ext
8000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8001 (eval $ac_compile) 2>&5
8002 ac_status=$?
8003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8004 test $ac_status = 0; }; then
8005 case `/usr/bin/file conftest.o` in
8006 *64-bit*)
8007 case $lt_cv_prog_gnu_ld in
8008 yes*)
8009 case $host in
8010 i?86-*-solaris*|x86_64-*-solaris*)
8011 LD="${LD-ld} -m elf_x86_64"
8012 ;;
8013 sparc*-*-solaris*)
8014 LD="${LD-ld} -m elf64_sparc"
8015 ;;
8016 esac
8017 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8018 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8019 LD=${LD-ld}_sol2
8020 fi
8021 ;;
8022 *)
8023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8024 LD="${LD-ld} -64"
8025 fi
8026 ;;
8027 esac
8028 ;;
8029 esac
8030 fi
8031 rm -rf conftest*
8032 ;;
8033 esac
8034
8035 need_locks=$enable_libtool_lock
8036
8037 if test -n "$ac_tool_prefix"; then
8038 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8039 set dummy ${ac_tool_prefix}mt; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$MANIFEST_TOOL"; then
8046 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8066 if test -n "$MANIFEST_TOOL"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8068 $as_echo "$MANIFEST_TOOL" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074
8075 fi
8076 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8077 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8078 # Extract the first word of "mt", so it can be a program name with args.
8079 set dummy mt; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 if test -n "$ac_ct_MANIFEST_TOOL"; then
8086 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 break 2
8098 fi
8099 done
8100 done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8106 if test -n "$ac_ct_MANIFEST_TOOL"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8108 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8112 fi
8113
8114 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8115 MANIFEST_TOOL=":"
8116 else
8117 case $cross_compiling:$ac_tool_warned in
8118 yes:)
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121 ac_tool_warned=yes ;;
8122 esac
8123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8124 fi
8125 else
8126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8127 fi
8128
8129 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8131 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8132 if ${lt_cv_path_mainfest_tool+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 lt_cv_path_mainfest_tool=no
8136 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8137 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8138 cat conftest.err >&5
8139 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8140 lt_cv_path_mainfest_tool=yes
8141 fi
8142 rm -f conftest*
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8145 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8146 if test yes != "$lt_cv_path_mainfest_tool"; then
8147 MANIFEST_TOOL=:
8148 fi
8149
8150
8151
8152
8153
8154
8155 case $host_os in
8156 rhapsody* | darwin*)
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8159 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if test -n "$DSYMUTIL"; then
8166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8186 if test -n "$DSYMUTIL"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8188 $as_echo "$DSYMUTIL" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193
8194
8195 fi
8196 if test -z "$ac_cv_prog_DSYMUTIL"; then
8197 ac_ct_DSYMUTIL=$DSYMUTIL
8198 # Extract the first word of "dsymutil", so it can be a program name with args.
8199 set dummy dsymutil; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$ac_ct_DSYMUTIL"; then
8206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8222
8223 fi
8224 fi
8225 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8226 if test -n "$ac_ct_DSYMUTIL"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8228 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8232 fi
8233
8234 if test "x$ac_ct_DSYMUTIL" = x; then
8235 DSYMUTIL=":"
8236 else
8237 case $cross_compiling:$ac_tool_warned in
8238 yes:)
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8241 ac_tool_warned=yes ;;
8242 esac
8243 DSYMUTIL=$ac_ct_DSYMUTIL
8244 fi
8245 else
8246 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8247 fi
8248
8249 if test -n "$ac_tool_prefix"; then
8250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8251 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if ${ac_cv_prog_NMEDIT+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$NMEDIT"; then
8258 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
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_NMEDIT="${ac_tool_prefix}nmedit"
8268 $as_echo "$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 NMEDIT=$ac_cv_prog_NMEDIT
8278 if test -n "$NMEDIT"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8280 $as_echo "$NMEDIT" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286
8287 fi
8288 if test -z "$ac_cv_prog_NMEDIT"; then
8289 ac_ct_NMEDIT=$NMEDIT
8290 # Extract the first word of "nmedit", so it can be a program name with args.
8291 set dummy nmedit; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$ac_ct_NMEDIT"; then
8298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311 done
8312 done
8313 IFS=$as_save_IFS
8314
8315 fi
8316 fi
8317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8318 if test -n "$ac_ct_NMEDIT"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8320 $as_echo "$ac_ct_NMEDIT" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8324 fi
8325
8326 if test "x$ac_ct_NMEDIT" = x; then
8327 NMEDIT=":"
8328 else
8329 case $cross_compiling:$ac_tool_warned in
8330 yes:)
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8333 ac_tool_warned=yes ;;
8334 esac
8335 NMEDIT=$ac_ct_NMEDIT
8336 fi
8337 else
8338 NMEDIT="$ac_cv_prog_NMEDIT"
8339 fi
8340
8341 if test -n "$ac_tool_prefix"; then
8342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8343 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_prog_LIPO+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$LIPO"; then
8350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 LIPO=$ac_cv_prog_LIPO
8370 if test -n "$LIPO"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8372 $as_echo "$LIPO" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379 fi
8380 if test -z "$ac_cv_prog_LIPO"; then
8381 ac_ct_LIPO=$LIPO
8382 # Extract the first word of "lipo", so it can be a program name with args.
8383 set dummy lipo; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$ac_ct_LIPO"; then
8390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399 ac_cv_prog_ac_ct_LIPO="lipo"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8402 fi
8403 done
8404 done
8405 IFS=$as_save_IFS
8406
8407 fi
8408 fi
8409 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8410 if test -n "$ac_ct_LIPO"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8412 $as_echo "$ac_ct_LIPO" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418 if test "x$ac_ct_LIPO" = x; then
8419 LIPO=":"
8420 else
8421 case $cross_compiling:$ac_tool_warned in
8422 yes:)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425 ac_tool_warned=yes ;;
8426 esac
8427 LIPO=$ac_ct_LIPO
8428 fi
8429 else
8430 LIPO="$ac_cv_prog_LIPO"
8431 fi
8432
8433 if test -n "$ac_tool_prefix"; then
8434 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8435 set dummy ${ac_tool_prefix}otool; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_prog_OTOOL+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 if test -n "$OTOOL"; then
8442 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 OTOOL=$ac_cv_prog_OTOOL
8462 if test -n "$OTOOL"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8464 $as_echo "$OTOOL" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470
8471 fi
8472 if test -z "$ac_cv_prog_OTOOL"; then
8473 ac_ct_OTOOL=$OTOOL
8474 # Extract the first word of "otool", so it can be a program name with args.
8475 set dummy otool; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 if test -n "$ac_ct_OTOOL"; then
8482 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_ac_ct_OTOOL="otool"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi
8500 fi
8501 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8502 if test -n "$ac_ct_OTOOL"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8504 $as_echo "$ac_ct_OTOOL" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510 if test "x$ac_ct_OTOOL" = x; then
8511 OTOOL=":"
8512 else
8513 case $cross_compiling:$ac_tool_warned in
8514 yes:)
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8517 ac_tool_warned=yes ;;
8518 esac
8519 OTOOL=$ac_ct_OTOOL
8520 fi
8521 else
8522 OTOOL="$ac_cv_prog_OTOOL"
8523 fi
8524
8525 if test -n "$ac_tool_prefix"; then
8526 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8527 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_OTOOL64+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$OTOOL64"; then
8534 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 OTOOL64=$ac_cv_prog_OTOOL64
8554 if test -n "$OTOOL64"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8556 $as_echo "$OTOOL64" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562
8563 fi
8564 if test -z "$ac_cv_prog_OTOOL64"; then
8565 ac_ct_OTOOL64=$OTOOL64
8566 # Extract the first word of "otool64", so it can be a program name with args.
8567 set dummy otool64; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 if test -n "$ac_ct_OTOOL64"; then
8574 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8575 else
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8578 do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583 ac_cv_prog_ac_ct_OTOOL64="otool64"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587 done
8588 done
8589 IFS=$as_save_IFS
8590
8591 fi
8592 fi
8593 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8594 if test -n "$ac_ct_OTOOL64"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8596 $as_echo "$ac_ct_OTOOL64" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 fi
8601
8602 if test "x$ac_ct_OTOOL64" = x; then
8603 OTOOL64=":"
8604 else
8605 case $cross_compiling:$ac_tool_warned in
8606 yes:)
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609 ac_tool_warned=yes ;;
8610 esac
8611 OTOOL64=$ac_ct_OTOOL64
8612 fi
8613 else
8614 OTOOL64="$ac_cv_prog_OTOOL64"
8615 fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8644 $as_echo_n "checking for -single_module linker flag... " >&6; }
8645 if ${lt_cv_apple_cc_single_mod+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_apple_cc_single_mod=no
8649 if test -z "$LT_MULTI_MODULE"; then
8650 # By default we will add the -single_module flag. You can override
8651 # by either setting the environment variable LT_MULTI_MODULE
8652 # non-empty at configure time, or by adding -multi_module to the
8653 # link flags.
8654 rm -rf libconftest.dylib*
8655 echo "int foo(void){return 1;}" > conftest.c
8656 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8657 -dynamiclib -Wl,-single_module conftest.c" >&5
8658 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8659 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8660 _lt_result=$?
8661 # If there is a non-empty error log, and "single_module"
8662 # appears in it, assume the flag caused a linker warning
8663 if test -s conftest.err && $GREP single_module conftest.err; then
8664 cat conftest.err >&5
8665 # Otherwise, if the output was created with a 0 exit code from
8666 # the compiler, it worked.
8667 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8668 lt_cv_apple_cc_single_mod=yes
8669 else
8670 cat conftest.err >&5
8671 fi
8672 rm -rf libconftest.dylib*
8673 rm -f conftest.*
8674 fi
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8677 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8680 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8681 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_ld_exported_symbols_list=no
8685 save_LDFLAGS=$LDFLAGS
8686 echo "_main" > conftest.sym
8687 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690
8691 int
8692 main ()
8693 {
8694
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_link "$LINENO"; then :
8700 lt_cv_ld_exported_symbols_list=yes
8701 else
8702 lt_cv_ld_exported_symbols_list=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 LDFLAGS=$save_LDFLAGS
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8710 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8713 $as_echo_n "checking for -force_load linker flag... " >&6; }
8714 if ${lt_cv_ld_force_load+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 lt_cv_ld_force_load=no
8718 cat > conftest.c << _LT_EOF
8719 int forced_loaded() { return 2;}
8720 _LT_EOF
8721 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8722 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8723 echo "$AR cru libconftest.a conftest.o" >&5
8724 $AR cru libconftest.a conftest.o 2>&5
8725 echo "$RANLIB libconftest.a" >&5
8726 $RANLIB libconftest.a 2>&5
8727 cat > conftest.c << _LT_EOF
8728 int main() { return 0;}
8729 _LT_EOF
8730 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8731 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8732 _lt_result=$?
8733 if test -s conftest.err && $GREP force_load conftest.err; then
8734 cat conftest.err >&5
8735 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8736 lt_cv_ld_force_load=yes
8737 else
8738 cat conftest.err >&5
8739 fi
8740 rm -f conftest.err libconftest.a conftest conftest.c
8741 rm -rf conftest.dSYM
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8745 $as_echo "$lt_cv_ld_force_load" >&6; }
8746 case $host_os in
8747 rhapsody* | darwin1.[012])
8748 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8749 darwin1.*)
8750 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8751 darwin*) # darwin 5.x on
8752 # if running on 10.5 or later, the deployment target defaults
8753 # to the OS version, if on x86, and 10.4, the deployment
8754 # target defaults to 10.4. Don't you love it?
8755 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8756 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8757 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8758 10.[012][,.]*)
8759 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8760 10.*)
8761 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8762 esac
8763 ;;
8764 esac
8765 if test yes = "$lt_cv_apple_cc_single_mod"; then
8766 _lt_dar_single_mod='$single_module'
8767 fi
8768 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8769 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8770 else
8771 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8772 fi
8773 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8774 _lt_dsymutil='~$DSYMUTIL $lib || :'
8775 else
8776 _lt_dsymutil=
8777 fi
8778 ;;
8779 esac
8780
8781 # func_munge_path_list VARIABLE PATH
8782 # -----------------------------------
8783 # VARIABLE is name of variable containing _space_ separated list of
8784 # directories to be munged by the contents of PATH, which is string
8785 # having a format:
8786 # "DIR[:DIR]:"
8787 # string "DIR[ DIR]" will be prepended to VARIABLE
8788 # ":DIR[:DIR]"
8789 # string "DIR[ DIR]" will be appended to VARIABLE
8790 # "DIRP[:DIRP]::[DIRA:]DIRA"
8791 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8792 # "DIRA[ DIRA]" will be appended to VARIABLE
8793 # "DIR[:DIR]"
8794 # VARIABLE will be replaced by "DIR[ DIR]"
8795 func_munge_path_list ()
8796 {
8797 case x$2 in
8798 x)
8799 ;;
8800 *:)
8801 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8802 ;;
8803 x:*)
8804 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8805 ;;
8806 *::*)
8807 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8808 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8809 ;;
8810 *)
8811 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8812 ;;
8813 esac
8814 }
8815
8816 for ac_header in dlfcn.h
8817 do :
8818 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8819 "
8820 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8821 cat >>confdefs.h <<_ACEOF
8822 #define HAVE_DLFCN_H 1
8823 _ACEOF
8824
8825 fi
8826
8827 done
8828
8829
8830
8831
8832
8833 # Set options
8834
8835
8836
8837
8838 enable_win32_dll=no
8839
8840
8841 # Check whether --enable-shared was given.
8842 if test "${enable_shared+set}" = set; then :
8843 enableval=$enable_shared; p=${PACKAGE-default}
8844 case $enableval in
8845 yes) enable_shared=yes ;;
8846 no) enable_shared=no ;;
8847 *)
8848 enable_shared=no
8849 # Look at the argument we got. We use all the common list separators.
8850 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8851 for pkg in $enableval; do
8852 IFS=$lt_save_ifs
8853 if test "X$pkg" = "X$p"; then
8854 enable_shared=yes
8855 fi
8856 done
8857 IFS=$lt_save_ifs
8858 ;;
8859 esac
8860 else
8861 enable_shared=yes
8862 fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872 # Check whether --enable-static was given.
8873 if test "${enable_static+set}" = set; then :
8874 enableval=$enable_static; p=${PACKAGE-default}
8875 case $enableval in
8876 yes) enable_static=yes ;;
8877 no) enable_static=no ;;
8878 *)
8879 enable_static=no
8880 # Look at the argument we got. We use all the common list separators.
8881 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8882 for pkg in $enableval; do
8883 IFS=$lt_save_ifs
8884 if test "X$pkg" = "X$p"; then
8885 enable_static=yes
8886 fi
8887 done
8888 IFS=$lt_save_ifs
8889 ;;
8890 esac
8891 else
8892 enable_static=yes
8893 fi
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904 # Check whether --with-pic was given.
8905 if test "${with_pic+set}" = set; then :
8906 withval=$with_pic; lt_p=${PACKAGE-default}
8907 case $withval in
8908 yes|no) pic_mode=$withval ;;
8909 *)
8910 pic_mode=default
8911 # Look at the argument we got. We use all the common list separators.
8912 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8913 for lt_pkg in $withval; do
8914 IFS=$lt_save_ifs
8915 if test "X$lt_pkg" = "X$lt_p"; then
8916 pic_mode=yes
8917 fi
8918 done
8919 IFS=$lt_save_ifs
8920 ;;
8921 esac
8922 else
8923 pic_mode=default
8924 fi
8925
8926
8927
8928
8929
8930
8931
8932
8933 # Check whether --enable-fast-install was given.
8934 if test "${enable_fast_install+set}" = set; then :
8935 enableval=$enable_fast_install; p=${PACKAGE-default}
8936 case $enableval in
8937 yes) enable_fast_install=yes ;;
8938 no) enable_fast_install=no ;;
8939 *)
8940 enable_fast_install=no
8941 # Look at the argument we got. We use all the common list separators.
8942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8943 for pkg in $enableval; do
8944 IFS=$lt_save_ifs
8945 if test "X$pkg" = "X$p"; then
8946 enable_fast_install=yes
8947 fi
8948 done
8949 IFS=$lt_save_ifs
8950 ;;
8951 esac
8952 else
8953 enable_fast_install=yes
8954 fi
8955
8956
8957
8958
8959
8960
8961
8962
8963 shared_archive_member_spec=
8964 case $host,$enable_shared in
8965 power*-*-aix[5-9]*,yes)
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8967 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8968
8969 # Check whether --with-aix-soname was given.
8970 if test "${with_aix_soname+set}" = set; then :
8971 withval=$with_aix_soname; case $withval in
8972 aix|svr4|both)
8973 ;;
8974 *)
8975 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8976 ;;
8977 esac
8978 lt_cv_with_aix_soname=$with_aix_soname
8979 else
8980 if ${lt_cv_with_aix_soname+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 lt_cv_with_aix_soname=aix
8984 fi
8985
8986 with_aix_soname=$lt_cv_with_aix_soname
8987 fi
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8990 $as_echo "$with_aix_soname" >&6; }
8991 if test aix != "$with_aix_soname"; then
8992 # For the AIX way of multilib, we name the shared archive member
8993 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8994 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8995 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8996 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8997 if test 64 = "${OBJECT_MODE-32}"; then
8998 shared_archive_member_spec=shr_64
8999 else
9000 shared_archive_member_spec=shr
9001 fi
9002 fi
9003 ;;
9004 *)
9005 with_aix_soname=aix
9006 ;;
9007 esac
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018 # This can be used to rebuild libtool when needed
9019 LIBTOOL_DEPS=$ltmain
9020
9021 # Always use our own libtool.
9022 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053 test -z "$LN_S" && LN_S="ln -s"
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068 if test -n "${ZSH_VERSION+set}"; then
9069 setopt NO_GLOB_SUBST
9070 fi
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9073 $as_echo_n "checking for objdir... " >&6; }
9074 if ${lt_cv_objdir+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 rm -f .libs 2>/dev/null
9078 mkdir .libs 2>/dev/null
9079 if test -d .libs; then
9080 lt_cv_objdir=.libs
9081 else
9082 # MS-DOS does not allow filenames that begin with a dot.
9083 lt_cv_objdir=_libs
9084 fi
9085 rmdir .libs 2>/dev/null
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9088 $as_echo "$lt_cv_objdir" >&6; }
9089 objdir=$lt_cv_objdir
9090
9091
9092
9093
9094
9095 cat >>confdefs.h <<_ACEOF
9096 #define LT_OBJDIR "$lt_cv_objdir/"
9097 _ACEOF
9098
9099
9100
9101
9102 case $host_os in
9103 aix3*)
9104 # AIX sometimes has problems with the GCC collect2 program. For some
9105 # reason, if we set the COLLECT_NAMES environment variable, the problems
9106 # vanish in a puff of smoke.
9107 if test set != "${COLLECT_NAMES+set}"; then
9108 COLLECT_NAMES=
9109 export COLLECT_NAMES
9110 fi
9111 ;;
9112 esac
9113
9114 # Global variables:
9115 ofile=libtool
9116 can_build_shared=yes
9117
9118 # All known linkers require a '.a' archive for static linking (except MSVC,
9119 # which needs '.lib').
9120 libext=a
9121
9122 with_gnu_ld=$lt_cv_prog_gnu_ld
9123
9124 old_CC=$CC
9125 old_CFLAGS=$CFLAGS
9126
9127 # Set sane defaults for various variables
9128 test -z "$CC" && CC=cc
9129 test -z "$LTCC" && LTCC=$CC
9130 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9131 test -z "$LD" && LD=ld
9132 test -z "$ac_objext" && ac_objext=o
9133
9134 func_cc_basename $compiler
9135 cc_basename=$func_cc_basename_result
9136
9137
9138 # Only perform the check for file, if the check method requires it
9139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9140 case $deplibs_check_method in
9141 file_magic*)
9142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9145 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 case $MAGIC_CMD in
9149 [\\/*] | ?:[\\/]*)
9150 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9151 ;;
9152 *)
9153 lt_save_MAGIC_CMD=$MAGIC_CMD
9154 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9156 for ac_dir in $ac_dummy; do
9157 IFS=$lt_save_ifs
9158 test -z "$ac_dir" && ac_dir=.
9159 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9160 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9161 if test -n "$file_magic_test_file"; then
9162 case $deplibs_check_method in
9163 "file_magic "*)
9164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9165 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9167 $EGREP "$file_magic_regex" > /dev/null; then
9168 :
9169 else
9170 cat <<_LT_EOF 1>&2
9171
9172 *** Warning: the command libtool uses to detect shared libraries,
9173 *** $file_magic_cmd, produces output that libtool cannot recognize.
9174 *** The result is that libtool may fail to recognize shared libraries
9175 *** as such. This will affect the creation of libtool libraries that
9176 *** depend on shared libraries, but programs linked with such libtool
9177 *** libraries will work regardless of this problem. Nevertheless, you
9178 *** may want to report the problem to your system manager and/or to
9179 *** [email protected]
9180
9181 _LT_EOF
9182 fi ;;
9183 esac
9184 fi
9185 break
9186 fi
9187 done
9188 IFS=$lt_save_ifs
9189 MAGIC_CMD=$lt_save_MAGIC_CMD
9190 ;;
9191 esac
9192 fi
9193
9194 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9195 if test -n "$MAGIC_CMD"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9197 $as_echo "$MAGIC_CMD" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203
9204
9205
9206
9207 if test -z "$lt_cv_path_MAGIC_CMD"; then
9208 if test -n "$ac_tool_prefix"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9210 $as_echo_n "checking for file... " >&6; }
9211 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 case $MAGIC_CMD in
9215 [\\/*] | ?:[\\/]*)
9216 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9217 ;;
9218 *)
9219 lt_save_MAGIC_CMD=$MAGIC_CMD
9220 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9222 for ac_dir in $ac_dummy; do
9223 IFS=$lt_save_ifs
9224 test -z "$ac_dir" && ac_dir=.
9225 if test -f "$ac_dir/file"; then
9226 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9227 if test -n "$file_magic_test_file"; then
9228 case $deplibs_check_method in
9229 "file_magic "*)
9230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9231 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9233 $EGREP "$file_magic_regex" > /dev/null; then
9234 :
9235 else
9236 cat <<_LT_EOF 1>&2
9237
9238 *** Warning: the command libtool uses to detect shared libraries,
9239 *** $file_magic_cmd, produces output that libtool cannot recognize.
9240 *** The result is that libtool may fail to recognize shared libraries
9241 *** as such. This will affect the creation of libtool libraries that
9242 *** depend on shared libraries, but programs linked with such libtool
9243 *** libraries will work regardless of this problem. Nevertheless, you
9244 *** may want to report the problem to your system manager and/or to
9245 *** [email protected]
9246
9247 _LT_EOF
9248 fi ;;
9249 esac
9250 fi
9251 break
9252 fi
9253 done
9254 IFS=$lt_save_ifs
9255 MAGIC_CMD=$lt_save_MAGIC_CMD
9256 ;;
9257 esac
9258 fi
9259
9260 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9261 if test -n "$MAGIC_CMD"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9263 $as_echo "$MAGIC_CMD" >&6; }
9264 else
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9267 fi
9268
9269
9270 else
9271 MAGIC_CMD=:
9272 fi
9273 fi
9274
9275 fi
9276 ;;
9277 esac
9278
9279 # Use C for the default configuration in the libtool script
9280
9281 lt_save_CC=$CC
9282 ac_ext=c
9283 ac_cpp='$CPP $CPPFLAGS'
9284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9287
9288
9289 # Source file extension for C test sources.
9290 ac_ext=c
9291
9292 # Object file extension for compiled C test sources.
9293 objext=o
9294 objext=$objext
9295
9296 # Code to be used in simple compile tests
9297 lt_simple_compile_test_code="int some_variable = 0;"
9298
9299 # Code to be used in simple link tests
9300 lt_simple_link_test_code='int main(){return(0);}'
9301
9302
9303
9304
9305
9306
9307
9308 # If no C compiler was specified, use CC.
9309 LTCC=${LTCC-"$CC"}
9310
9311 # If no C compiler flags were specified, use CFLAGS.
9312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9313
9314 # Allow CC to be a program name with arguments.
9315 compiler=$CC
9316
9317 # Save the default compiler, since it gets overwritten when the other
9318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9319 compiler_DEFAULT=$CC
9320
9321 # save warnings/boilerplate of simple test code
9322 ac_outfile=conftest.$ac_objext
9323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9325 _lt_compiler_boilerplate=`cat conftest.err`
9326 $RM conftest*
9327
9328 ac_outfile=conftest.$ac_objext
9329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9331 _lt_linker_boilerplate=`cat conftest.err`
9332 $RM -r conftest*
9333
9334
9335 ## CAVEAT EMPTOR:
9336 ## There is no encapsulation within the following macros, do not change
9337 ## the running order or otherwise move them around unless you know exactly
9338 ## what you are doing...
9339 if test -n "$compiler"; then
9340
9341 lt_prog_compiler_no_builtin_flag=
9342
9343 if test yes = "$GCC"; then
9344 case $cc_basename in
9345 nvcc*)
9346 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9347 *)
9348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9349 esac
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9353 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 lt_cv_prog_compiler_rtti_exceptions=no
9357 ac_outfile=conftest.$ac_objext
9358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9360 # Insert the option either (1) after the last *FLAGS variable, or
9361 # (2) before a word containing "conftest.", or (3) at the end.
9362 # Note that $ac_compile itself does not contain backslashes and begins
9363 # with a dollar sign (not a hyphen), so the echo should work correctly.
9364 # The option is referenced via a variable to avoid confusing sed.
9365 lt_compile=`echo "$ac_compile" | $SED \
9366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9368 -e 's:$: $lt_compiler_flag:'`
9369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9370 (eval "$lt_compile" 2>conftest.err)
9371 ac_status=$?
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 if (exit $ac_status) && test -s "$ac_outfile"; then
9375 # The compiler can only warn and ignore the option if not recognized
9376 # So say no if there are warnings other than the usual output.
9377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_rtti_exceptions=yes
9381 fi
9382 fi
9383 $RM conftest*
9384
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9388
9389 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9391 else
9392 :
9393 fi
9394
9395 fi
9396
9397
9398
9399
9400
9401
9402 lt_prog_compiler_wl=
9403 lt_prog_compiler_pic=
9404 lt_prog_compiler_static=
9405
9406
9407 if test yes = "$GCC"; then
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_static='-static'
9410
9411 case $host_os in
9412 aix*)
9413 # All AIX code is PIC.
9414 if test ia64 = "$host_cpu"; then
9415 # AIX 5 now supports IA64 processor
9416 lt_prog_compiler_static='-Bstatic'
9417 fi
9418 lt_prog_compiler_pic='-fPIC'
9419 ;;
9420
9421 amigaos*)
9422 case $host_cpu in
9423 powerpc)
9424 # see comment about AmigaOS4 .so support
9425 lt_prog_compiler_pic='-fPIC'
9426 ;;
9427 m68k)
9428 # FIXME: we need at least 68020 code to build shared libraries, but
9429 # adding the '-m68020' flag to GCC prevents building anything better,
9430 # like '-m68040'.
9431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9432 ;;
9433 esac
9434 ;;
9435
9436 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9437 # PIC is the default for these OSes.
9438 ;;
9439
9440 mingw* | cygwin* | pw32* | os2* | cegcc*)
9441 # This hack is so that the source file can tell whether it is being
9442 # built for inclusion in a dll (and should export symbols for example).
9443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9444 # (--disable-auto-import) libraries
9445 lt_prog_compiler_pic='-DDLL_EXPORT'
9446 case $host_os in
9447 os2*)
9448 lt_prog_compiler_static='$wl-static'
9449 ;;
9450 esac
9451 ;;
9452
9453 darwin* | rhapsody*)
9454 # PIC is the default on this platform
9455 # Common symbols not allowed in MH_DYLIB files
9456 lt_prog_compiler_pic='-fno-common'
9457 ;;
9458
9459 haiku*)
9460 # PIC is the default for Haiku.
9461 # The "-static" flag exists, but is broken.
9462 lt_prog_compiler_static=
9463 ;;
9464
9465 hpux*)
9466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9468 # sets the default TLS model and affects inlining.
9469 case $host_cpu in
9470 hppa*64*)
9471 # +Z the default
9472 ;;
9473 *)
9474 lt_prog_compiler_pic='-fPIC'
9475 ;;
9476 esac
9477 ;;
9478
9479 interix[3-9]*)
9480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9481 # Instead, we relocate shared libraries at runtime.
9482 ;;
9483
9484 msdosdjgpp*)
9485 # Just because we use GCC doesn't mean we suddenly get shared libraries
9486 # on systems that don't support them.
9487 lt_prog_compiler_can_build_shared=no
9488 enable_shared=no
9489 ;;
9490
9491 *nto* | *qnx*)
9492 # QNX uses GNU C++, but need to define -shared option too, otherwise
9493 # it will coredump.
9494 lt_prog_compiler_pic='-fPIC -shared'
9495 ;;
9496
9497 sysv4*MP*)
9498 if test -d /usr/nec; then
9499 lt_prog_compiler_pic=-Kconform_pic
9500 fi
9501 ;;
9502
9503 *)
9504 lt_prog_compiler_pic='-fPIC'
9505 ;;
9506 esac
9507
9508 case $cc_basename in
9509 nvcc*) # Cuda Compiler Driver 2.2
9510 lt_prog_compiler_wl='-Xlinker '
9511 if test -n "$lt_prog_compiler_pic"; then
9512 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9513 fi
9514 ;;
9515 esac
9516 else
9517 # PORTME Check for flag to pass linker flags through the system compiler.
9518 case $host_os in
9519 aix*)
9520 lt_prog_compiler_wl='-Wl,'
9521 if test ia64 = "$host_cpu"; then
9522 # AIX 5 now supports IA64 processor
9523 lt_prog_compiler_static='-Bstatic'
9524 else
9525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9526 fi
9527 ;;
9528
9529 darwin* | rhapsody*)
9530 # PIC is the default on this platform
9531 # Common symbols not allowed in MH_DYLIB files
9532 lt_prog_compiler_pic='-fno-common'
9533 case $cc_basename in
9534 nagfor*)
9535 # NAG Fortran compiler
9536 lt_prog_compiler_wl='-Wl,-Wl,,'
9537 lt_prog_compiler_pic='-PIC'
9538 lt_prog_compiler_static='-Bstatic'
9539 ;;
9540 esac
9541 ;;
9542
9543 mingw* | cygwin* | pw32* | os2* | cegcc*)
9544 # This hack is so that the source file can tell whether it is being
9545 # built for inclusion in a dll (and should export symbols for example).
9546 lt_prog_compiler_pic='-DDLL_EXPORT'
9547 case $host_os in
9548 os2*)
9549 lt_prog_compiler_static='$wl-static'
9550 ;;
9551 esac
9552 ;;
9553
9554 hpux9* | hpux10* | hpux11*)
9555 lt_prog_compiler_wl='-Wl,'
9556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9557 # not for PA HP-UX.
9558 case $host_cpu in
9559 hppa*64*|ia64*)
9560 # +Z the default
9561 ;;
9562 *)
9563 lt_prog_compiler_pic='+Z'
9564 ;;
9565 esac
9566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9567 lt_prog_compiler_static='$wl-a ${wl}archive'
9568 ;;
9569
9570 irix5* | irix6* | nonstopux*)
9571 lt_prog_compiler_wl='-Wl,'
9572 # PIC (with -KPIC) is the default.
9573 lt_prog_compiler_static='-non_shared'
9574 ;;
9575
9576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9577 case $cc_basename in
9578 # old Intel for x86_64, which still supported -KPIC.
9579 ecc*)
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-static'
9583 ;;
9584 # icc used to be incompatible with GCC.
9585 # ICC 10 doesn't accept -KPIC any more.
9586 icc* | ifort*)
9587 lt_prog_compiler_wl='-Wl,'
9588 lt_prog_compiler_pic='-fPIC'
9589 lt_prog_compiler_static='-static'
9590 ;;
9591 # Lahey Fortran 8.1.
9592 lf95*)
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='--shared'
9595 lt_prog_compiler_static='--static'
9596 ;;
9597 nagfor*)
9598 # NAG Fortran compiler
9599 lt_prog_compiler_wl='-Wl,-Wl,,'
9600 lt_prog_compiler_pic='-PIC'
9601 lt_prog_compiler_static='-Bstatic'
9602 ;;
9603 tcc*)
9604 # Fabrice Bellard et al's Tiny C Compiler
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-fPIC'
9607 lt_prog_compiler_static='-static'
9608 ;;
9609 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9610 # Portland Group compilers (*not* the Pentium gcc compiler,
9611 # which looks to be a dead project)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-fpic'
9614 lt_prog_compiler_static='-Bstatic'
9615 ;;
9616 ccc*)
9617 lt_prog_compiler_wl='-Wl,'
9618 # All Alpha code is PIC.
9619 lt_prog_compiler_static='-non_shared'
9620 ;;
9621 xl* | bgxl* | bgf* | mpixl*)
9622 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='-qpic'
9625 lt_prog_compiler_static='-qstaticlink'
9626 ;;
9627 *)
9628 case `$CC -V 2>&1 | sed 5q` in
9629 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9630 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9631 lt_prog_compiler_pic='-KPIC'
9632 lt_prog_compiler_static='-Bstatic'
9633 lt_prog_compiler_wl=''
9634 ;;
9635 *Sun\ F* | *Sun*Fortran*)
9636 lt_prog_compiler_pic='-KPIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 lt_prog_compiler_wl='-Qoption ld '
9639 ;;
9640 *Sun\ C*)
9641 # Sun C 5.9
9642 lt_prog_compiler_pic='-KPIC'
9643 lt_prog_compiler_static='-Bstatic'
9644 lt_prog_compiler_wl='-Wl,'
9645 ;;
9646 *Intel*\ [CF]*Compiler*)
9647 lt_prog_compiler_wl='-Wl,'
9648 lt_prog_compiler_pic='-fPIC'
9649 lt_prog_compiler_static='-static'
9650 ;;
9651 *Portland\ Group*)
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_pic='-fpic'
9654 lt_prog_compiler_static='-Bstatic'
9655 ;;
9656 esac
9657 ;;
9658 esac
9659 ;;
9660
9661 newsos6)
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9664 ;;
9665
9666 *nto* | *qnx*)
9667 # QNX uses GNU C++, but need to define -shared option too, otherwise
9668 # it will coredump.
9669 lt_prog_compiler_pic='-fPIC -shared'
9670 ;;
9671
9672 osf3* | osf4* | osf5*)
9673 lt_prog_compiler_wl='-Wl,'
9674 # All OSF/1 code is PIC.
9675 lt_prog_compiler_static='-non_shared'
9676 ;;
9677
9678 rdos*)
9679 lt_prog_compiler_static='-non_shared'
9680 ;;
9681
9682 solaris*)
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-Bstatic'
9685 case $cc_basename in
9686 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9687 lt_prog_compiler_wl='-Qoption ld ';;
9688 *)
9689 lt_prog_compiler_wl='-Wl,';;
9690 esac
9691 ;;
9692
9693 sunos4*)
9694 lt_prog_compiler_wl='-Qoption ld '
9695 lt_prog_compiler_pic='-PIC'
9696 lt_prog_compiler_static='-Bstatic'
9697 ;;
9698
9699 sysv4 | sysv4.2uw2* | sysv4.3*)
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9703 ;;
9704
9705 sysv4*MP*)
9706 if test -d /usr/nec; then
9707 lt_prog_compiler_pic='-Kconform_pic'
9708 lt_prog_compiler_static='-Bstatic'
9709 fi
9710 ;;
9711
9712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_pic='-KPIC'
9715 lt_prog_compiler_static='-Bstatic'
9716 ;;
9717
9718 unicos*)
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_can_build_shared=no
9721 ;;
9722
9723 uts4*)
9724 lt_prog_compiler_pic='-pic'
9725 lt_prog_compiler_static='-Bstatic'
9726 ;;
9727
9728 *)
9729 lt_prog_compiler_can_build_shared=no
9730 ;;
9731 esac
9732 fi
9733
9734 case $host_os in
9735 # For platforms that do not support PIC, -DPIC is meaningless:
9736 *djgpp*)
9737 lt_prog_compiler_pic=
9738 ;;
9739 *)
9740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9741 ;;
9742 esac
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9745 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9746 if ${lt_cv_prog_compiler_pic+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9750 fi
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9752 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9753 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9754
9755 #
9756 # Check to make sure the PIC flag actually works.
9757 #
9758 if test -n "$lt_prog_compiler_pic"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9760 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9761 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 lt_cv_prog_compiler_pic_works=no
9765 ac_outfile=conftest.$ac_objext
9766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9767 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9768 # Insert the option either (1) after the last *FLAGS variable, or
9769 # (2) before a word containing "conftest.", or (3) at the end.
9770 # Note that $ac_compile itself does not contain backslashes and begins
9771 # with a dollar sign (not a hyphen), so the echo should work correctly.
9772 # The option is referenced via a variable to avoid confusing sed.
9773 lt_compile=`echo "$ac_compile" | $SED \
9774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9776 -e 's:$: $lt_compiler_flag:'`
9777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9778 (eval "$lt_compile" 2>conftest.err)
9779 ac_status=$?
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 if (exit $ac_status) && test -s "$ac_outfile"; then
9783 # The compiler can only warn and ignore the option if not recognized
9784 # So say no if there are warnings other than the usual output.
9785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9788 lt_cv_prog_compiler_pic_works=yes
9789 fi
9790 fi
9791 $RM conftest*
9792
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9795 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9796
9797 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9798 case $lt_prog_compiler_pic in
9799 "" | " "*) ;;
9800 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9801 esac
9802 else
9803 lt_prog_compiler_pic=
9804 lt_prog_compiler_can_build_shared=no
9805 fi
9806
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819 #
9820 # Check to make sure the static flag actually works.
9821 #
9822 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9824 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9825 if ${lt_cv_prog_compiler_static_works+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 lt_cv_prog_compiler_static_works=no
9829 save_LDFLAGS=$LDFLAGS
9830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9831 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9833 # The linker can only warn and ignore the option if not recognized
9834 # So say no if there are warnings
9835 if test -s conftest.err; then
9836 # Append any errors to the config.log.
9837 cat conftest.err 1>&5
9838 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9840 if diff conftest.exp conftest.er2 >/dev/null; then
9841 lt_cv_prog_compiler_static_works=yes
9842 fi
9843 else
9844 lt_cv_prog_compiler_static_works=yes
9845 fi
9846 fi
9847 $RM -r conftest*
9848 LDFLAGS=$save_LDFLAGS
9849
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9852 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9853
9854 if test yes = "$lt_cv_prog_compiler_static_works"; then
9855 :
9856 else
9857 lt_prog_compiler_static=
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9868 if ${lt_cv_prog_compiler_c_o+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 lt_cv_prog_compiler_c_o=no
9872 $RM -r conftest 2>/dev/null
9873 mkdir conftest
9874 cd conftest
9875 mkdir out
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877
9878 lt_compiler_flag="-o out/conftest2.$ac_objext"
9879 # Insert the option either (1) after the last *FLAGS variable, or
9880 # (2) before a word containing "conftest.", or (3) at the end.
9881 # Note that $ac_compile itself does not contain backslashes and begins
9882 # with a dollar sign (not a hyphen), so the echo should work correctly.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>out/conftest.err)
9889 ac_status=$?
9890 cat out/conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893 then
9894 # The compiler can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_c_o=yes
9900 fi
9901 fi
9902 chmod u+w . 2>&5
9903 $RM conftest*
9904 # SGI C++ compiler will create directory out/ii_files/ for
9905 # template instantiation
9906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907 $RM out/* && rmdir out
9908 cd ..
9909 $RM -r conftest
9910 $RM conftest*
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9915
9916
9917
9918
9919
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9923 if ${lt_cv_prog_compiler_c_o+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 lt_cv_prog_compiler_c_o=no
9927 $RM -r conftest 2>/dev/null
9928 mkdir conftest
9929 cd conftest
9930 mkdir out
9931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9932
9933 lt_compiler_flag="-o out/conftest2.$ac_objext"
9934 # Insert the option either (1) after the last *FLAGS variable, or
9935 # (2) before a word containing "conftest.", or (3) at the end.
9936 # Note that $ac_compile itself does not contain backslashes and begins
9937 # with a dollar sign (not a hyphen), so the echo should work correctly.
9938 lt_compile=`echo "$ac_compile" | $SED \
9939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941 -e 's:$: $lt_compiler_flag:'`
9942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9943 (eval "$lt_compile" 2>out/conftest.err)
9944 ac_status=$?
9945 cat out/conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9948 then
9949 # The compiler can only warn and ignore the option if not recognized
9950 # So say no if there are warnings
9951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler_c_o=yes
9955 fi
9956 fi
9957 chmod u+w . 2>&5
9958 $RM conftest*
9959 # SGI C++ compiler will create directory out/ii_files/ for
9960 # template instantiation
9961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9962 $RM out/* && rmdir out
9963 cd ..
9964 $RM -r conftest
9965 $RM conftest*
9966
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9970
9971
9972
9973
9974 hard_links=nottested
9975 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9976 # do not overwrite the value of need_locks provided by the user
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9978 $as_echo_n "checking if we can lock with hard links... " >&6; }
9979 hard_links=yes
9980 $RM conftest*
9981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982 touch conftest.a
9983 ln conftest.a conftest.b 2>&5 || hard_links=no
9984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9986 $as_echo "$hard_links" >&6; }
9987 if test no = "$hard_links"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9989 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9990 need_locks=warn
9991 fi
9992 else
9993 need_locks=no
9994 fi
9995
9996
9997
9998
9999
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10003
10004 runpath_var=
10005 allow_undefined_flag=
10006 always_export_symbols=no
10007 archive_cmds=
10008 archive_expsym_cmds=
10009 compiler_needs_object=no
10010 enable_shared_with_static_runtimes=no
10011 export_dynamic_flag_spec=
10012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10013 hardcode_automatic=no
10014 hardcode_direct=no
10015 hardcode_direct_absolute=no
10016 hardcode_libdir_flag_spec=
10017 hardcode_libdir_separator=
10018 hardcode_minus_L=no
10019 hardcode_shlibpath_var=unsupported
10020 inherit_rpath=no
10021 link_all_deplibs=unknown
10022 module_cmds=
10023 module_expsym_cmds=
10024 old_archive_from_new_cmds=
10025 old_archive_from_expsyms_cmds=
10026 thread_safe_flag_spec=
10027 whole_archive_flag_spec=
10028 # include_expsyms should be a list of space-separated symbols to be *always*
10029 # included in the symbol list
10030 include_expsyms=
10031 # exclude_expsyms can be an extended regexp of symbols to exclude
10032 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10033 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10034 # as well as any symbol that contains 'd'.
10035 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10037 # platforms (ab)use it in PIC code, but their linkers get confused if
10038 # the symbol is explicitly referenced. Since portable code cannot
10039 # rely on this symbol name, it's probably fine to never include it in
10040 # preloaded symbol tables.
10041 # Exclude shared library initialization/finalization symbols.
10042 extract_expsyms_cmds=
10043
10044 case $host_os in
10045 cygwin* | mingw* | pw32* | cegcc*)
10046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10047 # When not using gcc, we currently assume that we are using
10048 # Microsoft Visual C++.
10049 if test yes != "$GCC"; then
10050 with_gnu_ld=no
10051 fi
10052 ;;
10053 interix*)
10054 # we just hope/assume this is gcc and not c89 (= MSVC++)
10055 with_gnu_ld=yes
10056 ;;
10057 openbsd* | bitrig*)
10058 with_gnu_ld=no
10059 ;;
10060 esac
10061
10062 ld_shlibs=yes
10063
10064 # On some targets, GNU ld is compatible enough with the native linker
10065 # that we're better off using the native interface for both.
10066 lt_use_gnu_ld_interface=no
10067 if test yes = "$with_gnu_ld"; then
10068 case $host_os in
10069 aix*)
10070 # The AIX port of GNU ld has always aspired to compatibility
10071 # with the native linker. However, as the warning in the GNU ld
10072 # block says, versions before 2.19.5* couldn't really create working
10073 # shared libraries, regardless of the interface used.
10074 case `$LD -v 2>&1` in
10075 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10076 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10077 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10078 *)
10079 lt_use_gnu_ld_interface=yes
10080 ;;
10081 esac
10082 ;;
10083 *)
10084 lt_use_gnu_ld_interface=yes
10085 ;;
10086 esac
10087 fi
10088
10089 if test yes = "$lt_use_gnu_ld_interface"; then
10090 # If archive_cmds runs LD, not CC, wlarc should be empty
10091 wlarc='$wl'
10092
10093 # Set some defaults for GNU ld with shared library support. These
10094 # are reset later if shared libraries are not supported. Putting them
10095 # here allows them to be overridden if necessary.
10096 runpath_var=LD_RUN_PATH
10097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10098 export_dynamic_flag_spec='$wl--export-dynamic'
10099 # ancient GNU ld didn't support --whole-archive et. al.
10100 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10101 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10102 else
10103 whole_archive_flag_spec=
10104 fi
10105 supports_anon_versioning=no
10106 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10107 *GNU\ gold*) supports_anon_versioning=yes ;;
10108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10111 *\ 2.11.*) ;; # other 2.11 versions
10112 *) supports_anon_versioning=yes ;;
10113 esac
10114
10115 # See if GNU ld supports shared libraries.
10116 case $host_os in
10117 aix[3-9]*)
10118 # On AIX/PPC, the GNU linker is very broken
10119 if test ia64 != "$host_cpu"; then
10120 ld_shlibs=no
10121 cat <<_LT_EOF 1>&2
10122
10123 *** Warning: the GNU linker, at least up to release 2.19, is reported
10124 *** to be unable to reliably create shared libraries on AIX.
10125 *** Therefore, libtool is disabling shared libraries support. If you
10126 *** really care for shared libraries, you may want to install binutils
10127 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10128 *** You will then need to restart the configuration process.
10129
10130 _LT_EOF
10131 fi
10132 ;;
10133
10134 amigaos*)
10135 case $host_cpu in
10136 powerpc)
10137 # see comment about AmigaOS4 .so support
10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10139 archive_expsym_cmds=''
10140 ;;
10141 m68k)
10142 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)'
10143 hardcode_libdir_flag_spec='-L$libdir'
10144 hardcode_minus_L=yes
10145 ;;
10146 esac
10147 ;;
10148
10149 beos*)
10150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10151 allow_undefined_flag=unsupported
10152 # Joseph Beckenbach <[email protected]> says some releases of gcc
10153 # support --undefined. This deserves some investigation. FIXME
10154 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10155 else
10156 ld_shlibs=no
10157 fi
10158 ;;
10159
10160 cygwin* | mingw* | pw32* | cegcc*)
10161 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10162 # as there is no search path for DLLs.
10163 hardcode_libdir_flag_spec='-L$libdir'
10164 export_dynamic_flag_spec='$wl--export-all-symbols'
10165 allow_undefined_flag=unsupported
10166 always_export_symbols=no
10167 enable_shared_with_static_runtimes=yes
10168 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'
10169 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10170
10171 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10173 # If the export-symbols file already is a .def file, use it as
10174 # is; otherwise, prepend EXPORTS...
10175 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10176 cp $export_symbols $output_objdir/$soname.def;
10177 else
10178 echo EXPORTS > $output_objdir/$soname.def;
10179 cat $export_symbols >> $output_objdir/$soname.def;
10180 fi~
10181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
10186
10187 haiku*)
10188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10189 link_all_deplibs=yes
10190 ;;
10191
10192 os2*)
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_minus_L=yes
10195 allow_undefined_flag=unsupported
10196 shrext_cmds=.dll
10197 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10200 $ECHO EXPORTS >> $output_objdir/$libname.def~
10201 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10202 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10203 emximp -o $lib $output_objdir/$libname.def'
10204 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10205 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10206 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10207 $ECHO EXPORTS >> $output_objdir/$libname.def~
10208 prefix_cmds="$SED"~
10209 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10210 prefix_cmds="$prefix_cmds -e 1d";
10211 fi~
10212 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10213 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10214 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10215 emximp -o $lib $output_objdir/$libname.def'
10216 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10217 enable_shared_with_static_runtimes=yes
10218 ;;
10219
10220 interix[3-9]*)
10221 hardcode_direct=no
10222 hardcode_shlibpath_var=no
10223 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10224 export_dynamic_flag_spec='$wl-E'
10225 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10226 # Instead, shared libraries are loaded at an image base (0x10000000 by
10227 # default) and relocated if they conflict, which is a slow very memory
10228 # consuming and fragmenting process. To avoid this, we pick a random,
10229 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10230 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10232 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'
10233 ;;
10234
10235 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10236 tmp_diet=no
10237 if test linux-dietlibc = "$host_os"; then
10238 case $cc_basename in
10239 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10240 esac
10241 fi
10242 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10243 && test no = "$tmp_diet"
10244 then
10245 tmp_addflag=' $pic_flag'
10246 tmp_sharedflag='-shared'
10247 case $cc_basename,$host_cpu in
10248 pgcc*) # Portland Group C compiler
10249 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'
10250 tmp_addflag=' $pic_flag'
10251 ;;
10252 pgf77* | pgf90* | pgf95* | pgfortran*)
10253 # Portland Group f77 and f90 compilers
10254 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'
10255 tmp_addflag=' $pic_flag -Mnomain' ;;
10256 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10257 tmp_addflag=' -i_dynamic' ;;
10258 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10259 tmp_addflag=' -i_dynamic -nofor_main' ;;
10260 ifc* | ifort*) # Intel Fortran compiler
10261 tmp_addflag=' -nofor_main' ;;
10262 lf95*) # Lahey Fortran 8.1
10263 whole_archive_flag_spec=
10264 tmp_sharedflag='--shared' ;;
10265 nagfor*) # NAGFOR 5.3
10266 tmp_sharedflag='-Wl,-shared' ;;
10267 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10268 tmp_sharedflag='-qmkshrobj'
10269 tmp_addflag= ;;
10270 nvcc*) # Cuda Compiler Driver 2.2
10271 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'
10272 compiler_needs_object=yes
10273 ;;
10274 esac
10275 case `$CC -V 2>&1 | sed 5q` in
10276 *Sun\ C*) # Sun C 5.9
10277 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'
10278 compiler_needs_object=yes
10279 tmp_sharedflag='-G' ;;
10280 *Sun\ F*) # Sun Fortran 8.3
10281 tmp_sharedflag='-G' ;;
10282 esac
10283 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10284
10285 if test yes = "$supports_anon_versioning"; then
10286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10288 echo "local: *; };" >> $output_objdir/$libname.ver~
10289 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10290 fi
10291
10292 case $cc_basename in
10293 tcc*)
10294 export_dynamic_flag_spec='-rdynamic'
10295 ;;
10296 xlf* | bgf* | bgxlf* | mpixlf*)
10297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10300 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10301 if test yes = "$supports_anon_versioning"; then
10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10304 echo "local: *; };" >> $output_objdir/$libname.ver~
10305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10306 fi
10307 ;;
10308 esac
10309 else
10310 ld_shlibs=no
10311 fi
10312 ;;
10313
10314 netbsd*)
10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10317 wlarc=
10318 else
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10321 fi
10322 ;;
10323
10324 solaris*)
10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10326 ld_shlibs=no
10327 cat <<_LT_EOF 1>&2
10328
10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10330 *** create shared libraries on Solaris systems. Therefore, libtool
10331 *** is disabling shared libraries support. We urge you to upgrade GNU
10332 *** binutils to release 2.9.1 or newer. Another option is to modify
10333 *** your PATH or compiler configuration so that the native linker is
10334 *** used, and then restart.
10335
10336 _LT_EOF
10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10340 else
10341 ld_shlibs=no
10342 fi
10343 ;;
10344
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10346 case `$LD -v 2>&1` in
10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10348 ld_shlibs=no
10349 cat <<_LT_EOF 1>&2
10350
10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10352 *** reliably create shared libraries on SCO systems. Therefore, libtool
10353 *** is disabling shared libraries support. We urge you to upgrade GNU
10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10355 *** your PATH or compiler configuration so that the native linker is
10356 *** used, and then restart.
10357
10358 _LT_EOF
10359 ;;
10360 *)
10361 # For security reasons, it is highly recommended that you always
10362 # use absolute paths for naming shared libraries, and exclude the
10363 # DT_RUNPATH tag from executables and libraries. But doing so
10364 # requires that you compile everything twice, which is a pain.
10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10369 else
10370 ld_shlibs=no
10371 fi
10372 ;;
10373 esac
10374 ;;
10375
10376 sunos4*)
10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 wlarc=
10379 hardcode_direct=yes
10380 hardcode_shlibpath_var=no
10381 ;;
10382
10383 *)
10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10386 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10387 else
10388 ld_shlibs=no
10389 fi
10390 ;;
10391 esac
10392
10393 if test no = "$ld_shlibs"; then
10394 runpath_var=
10395 hardcode_libdir_flag_spec=
10396 export_dynamic_flag_spec=
10397 whole_archive_flag_spec=
10398 fi
10399 else
10400 # PORTME fill in a description of your system's linker (not GNU ld)
10401 case $host_os in
10402 aix3*)
10403 allow_undefined_flag=unsupported
10404 always_export_symbols=yes
10405 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'
10406 # Note: this linker hardcodes the directories in LIBPATH if there
10407 # are no directories specified by -L.
10408 hardcode_minus_L=yes
10409 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10410 # Neither direct hardcoding nor static linking is supported with a
10411 # broken collect2.
10412 hardcode_direct=unsupported
10413 fi
10414 ;;
10415
10416 aix[4-9]*)
10417 if test ia64 = "$host_cpu"; then
10418 # On IA64, the linker does run time linking by default, so we don't
10419 # have to do anything special.
10420 aix_use_runtimelinking=no
10421 exp_sym_flag='-Bexport'
10422 no_entry_flag=
10423 else
10424 # If we're using GNU nm, then we don't want the "-C" option.
10425 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10426 # Without the "-l" option, or with the "-B" option, AIX nm treats
10427 # weak defined symbols like other global defined symbols, whereas
10428 # GNU nm marks them as "W".
10429 # While the 'weak' keyword is ignored in the Export File, we need
10430 # it in the Import File for the 'aix-soname' feature, so we have
10431 # to replace the "-B" option with "-P" for AIX nm.
10432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10433 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'
10434 else
10435 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10436 fi
10437 aix_use_runtimelinking=no
10438
10439 # Test if we are trying to use run time linking or normal
10440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10441 # have runtime linking enabled, and use it for executables.
10442 # For shared libraries, we enable/disable runtime linking
10443 # depending on the kind of the shared library created -
10444 # when "with_aix_soname,aix_use_runtimelinking" is:
10445 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10446 # "aix,yes" lib.so shared, rtl:yes, for executables
10447 # lib.a static archive
10448 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10449 # lib.a(lib.so.V) shared, rtl:no, for executables
10450 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10451 # lib.a(lib.so.V) shared, rtl:no
10452 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10453 # lib.a static archive
10454 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10455 for ld_flag in $LDFLAGS; do
10456 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10457 aix_use_runtimelinking=yes
10458 break
10459 fi
10460 done
10461 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10462 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10463 # so we don't have lib.a shared libs to link our executables.
10464 # We have to force runtime linking in this case.
10465 aix_use_runtimelinking=yes
10466 LDFLAGS="$LDFLAGS -Wl,-brtl"
10467 fi
10468 ;;
10469 esac
10470
10471 exp_sym_flag='-bexport'
10472 no_entry_flag='-bnoentry'
10473 fi
10474
10475 # When large executables or shared objects are built, AIX ld can
10476 # have problems creating the table of contents. If linking a library
10477 # or program results in "error TOC overflow" add -mminimal-toc to
10478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10480
10481 archive_cmds=''
10482 hardcode_direct=yes
10483 hardcode_direct_absolute=yes
10484 hardcode_libdir_separator=':'
10485 link_all_deplibs=yes
10486 file_list_spec='$wl-f,'
10487 case $with_aix_soname,$aix_use_runtimelinking in
10488 aix,*) ;; # traditional, no import file
10489 svr4,* | *,yes) # use import file
10490 # The Import File defines what to hardcode.
10491 hardcode_direct=no
10492 hardcode_direct_absolute=no
10493 ;;
10494 esac
10495
10496 if test yes = "$GCC"; then
10497 case $host_os in aix4.[012]|aix4.[012].*)
10498 # We only want to do this on AIX 4.2 and lower, the check
10499 # below for broken collect2 doesn't work under 4.3+
10500 collect2name=`$CC -print-prog-name=collect2`
10501 if test -f "$collect2name" &&
10502 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10503 then
10504 # We have reworked collect2
10505 :
10506 else
10507 # We have old collect2
10508 hardcode_direct=unsupported
10509 # It fails to find uninstalled libraries when the uninstalled
10510 # path is not listed in the libpath. Setting hardcode_minus_L
10511 # to unsupported forces relinking
10512 hardcode_minus_L=yes
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_libdir_separator=
10515 fi
10516 ;;
10517 esac
10518 shared_flag='-shared'
10519 if test yes = "$aix_use_runtimelinking"; then
10520 shared_flag="$shared_flag "'$wl-G'
10521 fi
10522 # Need to ensure runtime linking is disabled for the traditional
10523 # shared library, or the linker may eventually find shared libraries
10524 # /with/ Import File - we do not want to mix them.
10525 shared_flag_aix='-shared'
10526 shared_flag_svr4='-shared $wl-G'
10527 else
10528 # not using gcc
10529 if test ia64 = "$host_cpu"; then
10530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10531 # chokes on -Wl,-G. The following line is correct:
10532 shared_flag='-G'
10533 else
10534 if test yes = "$aix_use_runtimelinking"; then
10535 shared_flag='$wl-G'
10536 else
10537 shared_flag='$wl-bM:SRE'
10538 fi
10539 shared_flag_aix='$wl-bM:SRE'
10540 shared_flag_svr4='$wl-G'
10541 fi
10542 fi
10543
10544 export_dynamic_flag_spec='$wl-bexpall'
10545 # It seems that -bexpall does not export symbols beginning with
10546 # underscore (_), so it is better to generate a list of symbols to export.
10547 always_export_symbols=yes
10548 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10549 # Warning - without using the other runtime loading flags (-brtl),
10550 # -berok will link without error, but may produce a broken library.
10551 allow_undefined_flag='-berok'
10552 # Determine the default libpath from the value encoded in an
10553 # empty executable.
10554 if test set = "${lt_cv_aix_libpath+set}"; then
10555 aix_libpath=$lt_cv_aix_libpath
10556 else
10557 if ${lt_cv_aix_libpath_+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562
10563 int
10564 main ()
10565 {
10566
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 if ac_fn_c_try_link "$LINENO"; then :
10572
10573 lt_aix_libpath_sed='
10574 /Import File Strings/,/^$/ {
10575 /^0/ {
10576 s/^0 *\([^ ]*\) *$/\1/
10577 p
10578 }
10579 }'
10580 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10581 # Check for a 64-bit object if we didn't find anything.
10582 if test -z "$lt_cv_aix_libpath_"; then
10583 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10584 fi
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 if test -z "$lt_cv_aix_libpath_"; then
10589 lt_cv_aix_libpath_=/usr/lib:/lib
10590 fi
10591
10592 fi
10593
10594 aix_libpath=$lt_cv_aix_libpath_
10595 fi
10596
10597 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10598 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
10599 else
10600 if test ia64 = "$host_cpu"; then
10601 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10602 allow_undefined_flag="-z nodefs"
10603 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"
10604 else
10605 # Determine the default libpath from the value encoded in an
10606 # empty executable.
10607 if test set = "${lt_cv_aix_libpath+set}"; then
10608 aix_libpath=$lt_cv_aix_libpath
10609 else
10610 if ${lt_cv_aix_libpath_+:} false; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615
10616 int
10617 main ()
10618 {
10619
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625
10626 lt_aix_libpath_sed='
10627 /Import File Strings/,/^$/ {
10628 /^0/ {
10629 s/^0 *\([^ ]*\) *$/\1/
10630 p
10631 }
10632 }'
10633 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10634 # Check for a 64-bit object if we didn't find anything.
10635 if test -z "$lt_cv_aix_libpath_"; then
10636 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10637 fi
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 if test -z "$lt_cv_aix_libpath_"; then
10642 lt_cv_aix_libpath_=/usr/lib:/lib
10643 fi
10644
10645 fi
10646
10647 aix_libpath=$lt_cv_aix_libpath_
10648 fi
10649
10650 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10651 # Warning - without using the other run time loading flags,
10652 # -berok will link without error, but may produce a broken library.
10653 no_undefined_flag=' $wl-bernotok'
10654 allow_undefined_flag=' $wl-berok'
10655 if test yes = "$with_gnu_ld"; then
10656 # We only use this code for GNU lds that support --whole-archive.
10657 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10658 else
10659 # Exported symbols can be pulled into shared objects from archives
10660 whole_archive_flag_spec='$convenience'
10661 fi
10662 archive_cmds_need_lc=yes
10663 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10664 # -brtl affects multiple linker settings, -berok does not and is overridden later
10665 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10666 if test svr4 != "$with_aix_soname"; then
10667 # This is similar to how AIX traditionally builds its shared libraries.
10668 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'
10669 fi
10670 if test aix != "$with_aix_soname"; then
10671 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'
10672 else
10673 # used by -dlpreopen to get the symbols
10674 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10675 fi
10676 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10677 fi
10678 fi
10679 ;;
10680
10681 amigaos*)
10682 case $host_cpu in
10683 powerpc)
10684 # see comment about AmigaOS4 .so support
10685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10686 archive_expsym_cmds=''
10687 ;;
10688 m68k)
10689 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)'
10690 hardcode_libdir_flag_spec='-L$libdir'
10691 hardcode_minus_L=yes
10692 ;;
10693 esac
10694 ;;
10695
10696 bsdi[45]*)
10697 export_dynamic_flag_spec=-rdynamic
10698 ;;
10699
10700 cygwin* | mingw* | pw32* | cegcc*)
10701 # When not using gcc, we currently assume that we are using
10702 # Microsoft Visual C++.
10703 # hardcode_libdir_flag_spec is actually meaningless, as there is
10704 # no search path for DLLs.
10705 case $cc_basename in
10706 cl*)
10707 # Native MSVC
10708 hardcode_libdir_flag_spec=' '
10709 allow_undefined_flag=unsupported
10710 always_export_symbols=yes
10711 file_list_spec='@'
10712 # Tell ltmain to make .lib files, not .a files.
10713 libext=lib
10714 # Tell ltmain to make .dll files, not .so files.
10715 shrext_cmds=.dll
10716 # FIXME: Setting linknames here is a bad hack.
10717 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10718 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10719 cp "$export_symbols" "$output_objdir/$soname.def";
10720 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10721 else
10722 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10723 fi~
10724 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10725 linknames='
10726 # The linker will not automatically build a static lib if we build a DLL.
10727 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10728 enable_shared_with_static_runtimes=yes
10729 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10731 # Don't use ranlib
10732 old_postinstall_cmds='chmod 644 $oldlib'
10733 postlink_cmds='lt_outputfile="@OUTPUT@"~
10734 lt_tool_outputfile="@TOOL_OUTPUT@"~
10735 case $lt_outputfile in
10736 *.exe|*.EXE) ;;
10737 *)
10738 lt_outputfile=$lt_outputfile.exe
10739 lt_tool_outputfile=$lt_tool_outputfile.exe
10740 ;;
10741 esac~
10742 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10743 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10744 $RM "$lt_outputfile.manifest";
10745 fi'
10746 ;;
10747 *)
10748 # Assume MSVC wrapper
10749 hardcode_libdir_flag_spec=' '
10750 allow_undefined_flag=unsupported
10751 # Tell ltmain to make .lib files, not .a files.
10752 libext=lib
10753 # Tell ltmain to make .dll files, not .so files.
10754 shrext_cmds=.dll
10755 # FIXME: Setting linknames here is a bad hack.
10756 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10757 # The linker will automatically build a .lib file if we build a DLL.
10758 old_archive_from_new_cmds='true'
10759 # FIXME: Should let the user specify the lib program.
10760 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10761 enable_shared_with_static_runtimes=yes
10762 ;;
10763 esac
10764 ;;
10765
10766 darwin* | rhapsody*)
10767
10768
10769 archive_cmds_need_lc=no
10770 hardcode_direct=no
10771 hardcode_automatic=yes
10772 hardcode_shlibpath_var=unsupported
10773 if test yes = "$lt_cv_ld_force_load"; then
10774 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\"`'
10775
10776 else
10777 whole_archive_flag_spec=''
10778 fi
10779 link_all_deplibs=yes
10780 allow_undefined_flag=$_lt_dar_allow_undefined
10781 case $cc_basename in
10782 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10783 *) _lt_dar_can_shared=$GCC ;;
10784 esac
10785 if test yes = "$_lt_dar_can_shared"; then
10786 output_verbose_link_cmd=func_echo_all
10787 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10788 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10789 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"
10790 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"
10791
10792 else
10793 ld_shlibs=no
10794 fi
10795
10796 ;;
10797
10798 dgux*)
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_shlibpath_var=no
10802 ;;
10803
10804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10805 # support. Future versions do this automatically, but an explicit c++rt0.o
10806 # does not break anything, and helps significantly (at the cost of a little
10807 # extra space).
10808 freebsd2.2*)
10809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10810 hardcode_libdir_flag_spec='-R$libdir'
10811 hardcode_direct=yes
10812 hardcode_shlibpath_var=no
10813 ;;
10814
10815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10816 freebsd2.*)
10817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_direct=yes
10819 hardcode_minus_L=yes
10820 hardcode_shlibpath_var=no
10821 ;;
10822
10823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10824 freebsd* | dragonfly*)
10825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10826 hardcode_libdir_flag_spec='-R$libdir'
10827 hardcode_direct=yes
10828 hardcode_shlibpath_var=no
10829 ;;
10830
10831 hpux9*)
10832 if test yes = "$GCC"; then
10833 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'
10834 else
10835 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'
10836 fi
10837 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10838 hardcode_libdir_separator=:
10839 hardcode_direct=yes
10840
10841 # hardcode_minus_L: Not really in the search PATH,
10842 # but as the default location of the library.
10843 hardcode_minus_L=yes
10844 export_dynamic_flag_spec='$wl-E'
10845 ;;
10846
10847 hpux10*)
10848 if test yes,no = "$GCC,$with_gnu_ld"; then
10849 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10850 else
10851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10852 fi
10853 if test no = "$with_gnu_ld"; then
10854 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10855 hardcode_libdir_separator=:
10856 hardcode_direct=yes
10857 hardcode_direct_absolute=yes
10858 export_dynamic_flag_spec='$wl-E'
10859 # hardcode_minus_L: Not really in the search PATH,
10860 # but as the default location of the library.
10861 hardcode_minus_L=yes
10862 fi
10863 ;;
10864
10865 hpux11*)
10866 if test yes,no = "$GCC,$with_gnu_ld"; then
10867 case $host_cpu in
10868 hppa*64*)
10869 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 ;;
10871 ia64*)
10872 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10873 ;;
10874 *)
10875 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10876 ;;
10877 esac
10878 else
10879 case $host_cpu in
10880 hppa*64*)
10881 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 ;;
10883 ia64*)
10884 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10885 ;;
10886 *)
10887
10888 # Older versions of the 11.00 compiler do not understand -b yet
10889 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10891 $as_echo_n "checking if $CC understands -b... " >&6; }
10892 if ${lt_cv_prog_compiler__b+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 lt_cv_prog_compiler__b=no
10896 save_LDFLAGS=$LDFLAGS
10897 LDFLAGS="$LDFLAGS -b"
10898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10900 # The linker can only warn and ignore the option if not recognized
10901 # So say no if there are warnings
10902 if test -s conftest.err; then
10903 # Append any errors to the config.log.
10904 cat conftest.err 1>&5
10905 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10907 if diff conftest.exp conftest.er2 >/dev/null; then
10908 lt_cv_prog_compiler__b=yes
10909 fi
10910 else
10911 lt_cv_prog_compiler__b=yes
10912 fi
10913 fi
10914 $RM -r conftest*
10915 LDFLAGS=$save_LDFLAGS
10916
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10919 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10920
10921 if test yes = "$lt_cv_prog_compiler__b"; then
10922 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10923 else
10924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10925 fi
10926
10927 ;;
10928 esac
10929 fi
10930 if test no = "$with_gnu_ld"; then
10931 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10932 hardcode_libdir_separator=:
10933
10934 case $host_cpu in
10935 hppa*64*|ia64*)
10936 hardcode_direct=no
10937 hardcode_shlibpath_var=no
10938 ;;
10939 *)
10940 hardcode_direct=yes
10941 hardcode_direct_absolute=yes
10942 export_dynamic_flag_spec='$wl-E'
10943
10944 # hardcode_minus_L: Not really in the search PATH,
10945 # but as the default location of the library.
10946 hardcode_minus_L=yes
10947 ;;
10948 esac
10949 fi
10950 ;;
10951
10952 irix5* | irix6* | nonstopux*)
10953 if test yes = "$GCC"; then
10954 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'
10955 # Try to use the -exported_symbol ld option, if it does not
10956 # work, assume that -exports_file does not work either and
10957 # implicitly export all symbols.
10958 # This should be the same for all languages, so no per-tag cache variable.
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10960 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10961 if ${lt_cv_irix_exported_symbol+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 save_LDFLAGS=$LDFLAGS
10965 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968 int foo (void) { return 0; }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 lt_cv_irix_exported_symbol=yes
10972 else
10973 lt_cv_irix_exported_symbol=no
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LDFLAGS=$save_LDFLAGS
10978 fi
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10980 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10981 if test yes = "$lt_cv_irix_exported_symbol"; then
10982 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'
10983 fi
10984 else
10985 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'
10986 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'
10987 fi
10988 archive_cmds_need_lc='no'
10989 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10990 hardcode_libdir_separator=:
10991 inherit_rpath=yes
10992 link_all_deplibs=yes
10993 ;;
10994
10995 linux*)
10996 case $cc_basename in
10997 tcc*)
10998 # Fabrice Bellard et al's Tiny C Compiler
10999 ld_shlibs=yes
11000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11001 ;;
11002 esac
11003 ;;
11004
11005 netbsd*)
11006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11008 else
11009 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11010 fi
11011 hardcode_libdir_flag_spec='-R$libdir'
11012 hardcode_direct=yes
11013 hardcode_shlibpath_var=no
11014 ;;
11015
11016 newsos6)
11017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_direct=yes
11019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11020 hardcode_libdir_separator=:
11021 hardcode_shlibpath_var=no
11022 ;;
11023
11024 *nto* | *qnx*)
11025 ;;
11026
11027 openbsd* | bitrig*)
11028 if test -f /usr/libexec/ld.so; then
11029 hardcode_direct=yes
11030 hardcode_shlibpath_var=no
11031 hardcode_direct_absolute=yes
11032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11035 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11036 export_dynamic_flag_spec='$wl-E'
11037 else
11038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11039 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11040 fi
11041 else
11042 ld_shlibs=no
11043 fi
11044 ;;
11045
11046 os2*)
11047 hardcode_libdir_flag_spec='-L$libdir'
11048 hardcode_minus_L=yes
11049 allow_undefined_flag=unsupported
11050 shrext_cmds=.dll
11051 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11052 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11053 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11054 $ECHO EXPORTS >> $output_objdir/$libname.def~
11055 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11057 emximp -o $lib $output_objdir/$libname.def'
11058 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11059 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11060 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11061 $ECHO EXPORTS >> $output_objdir/$libname.def~
11062 prefix_cmds="$SED"~
11063 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11064 prefix_cmds="$prefix_cmds -e 1d";
11065 fi~
11066 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11067 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11068 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11069 emximp -o $lib $output_objdir/$libname.def'
11070 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11071 enable_shared_with_static_runtimes=yes
11072 ;;
11073
11074 osf3*)
11075 if test yes = "$GCC"; then
11076 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11077 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'
11078 else
11079 allow_undefined_flag=' -expect_unresolved \*'
11080 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'
11081 fi
11082 archive_cmds_need_lc='no'
11083 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11084 hardcode_libdir_separator=:
11085 ;;
11086
11087 osf4* | osf5*) # as osf3* with the addition of -msym flag
11088 if test yes = "$GCC"; then
11089 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11090 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'
11091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11092 else
11093 allow_undefined_flag=' -expect_unresolved \*'
11094 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'
11095 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~
11096 $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'
11097
11098 # Both c and cxx compiler support -rpath directly
11099 hardcode_libdir_flag_spec='-rpath $libdir'
11100 fi
11101 archive_cmds_need_lc='no'
11102 hardcode_libdir_separator=:
11103 ;;
11104
11105 solaris*)
11106 no_undefined_flag=' -z defs'
11107 if test yes = "$GCC"; then
11108 wlarc='$wl'
11109 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11111 $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'
11112 else
11113 case `$CC -V 2>&1` in
11114 *"Compilers 5.0"*)
11115 wlarc=''
11116 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11118 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11119 ;;
11120 *)
11121 wlarc='$wl'
11122 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11124 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11125 ;;
11126 esac
11127 fi
11128 hardcode_libdir_flag_spec='-R$libdir'
11129 hardcode_shlibpath_var=no
11130 case $host_os in
11131 solaris2.[0-5] | solaris2.[0-5].*) ;;
11132 *)
11133 # The compiler driver will combine and reorder linker options,
11134 # but understands '-z linker_flag'. GCC discards it without '$wl',
11135 # but is careful enough not to reorder.
11136 # Supported since Solaris 2.6 (maybe 2.5.1?)
11137 if test yes = "$GCC"; then
11138 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11139 else
11140 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11141 fi
11142 ;;
11143 esac
11144 link_all_deplibs=yes
11145 ;;
11146
11147 sunos4*)
11148 if test sequent = "$host_vendor"; then
11149 # Use $CC to link under sequent, because it throws in some extra .o
11150 # files that make .init and .fini sections work.
11151 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11152 else
11153 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11154 fi
11155 hardcode_libdir_flag_spec='-L$libdir'
11156 hardcode_direct=yes
11157 hardcode_minus_L=yes
11158 hardcode_shlibpath_var=no
11159 ;;
11160
11161 sysv4)
11162 case $host_vendor in
11163 sni)
11164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11165 hardcode_direct=yes # is this really true???
11166 ;;
11167 siemens)
11168 ## LD is ld it makes a PLAMLIB
11169 ## CC just makes a GrossModule.
11170 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11171 reload_cmds='$CC -r -o $output$reload_objs'
11172 hardcode_direct=no
11173 ;;
11174 motorola)
11175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11176 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11177 ;;
11178 esac
11179 runpath_var='LD_RUN_PATH'
11180 hardcode_shlibpath_var=no
11181 ;;
11182
11183 sysv4.3*)
11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_shlibpath_var=no
11186 export_dynamic_flag_spec='-Bexport'
11187 ;;
11188
11189 sysv4*MP*)
11190 if test -d /usr/nec; then
11191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11192 hardcode_shlibpath_var=no
11193 runpath_var=LD_RUN_PATH
11194 hardcode_runpath_var=yes
11195 ld_shlibs=yes
11196 fi
11197 ;;
11198
11199 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11200 no_undefined_flag='$wl-z,text'
11201 archive_cmds_need_lc=no
11202 hardcode_shlibpath_var=no
11203 runpath_var='LD_RUN_PATH'
11204
11205 if test yes = "$GCC"; then
11206 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11207 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11208 else
11209 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11211 fi
11212 ;;
11213
11214 sysv5* | sco3.2v5* | sco5v6*)
11215 # Note: We CANNOT use -z defs as we might desire, because we do not
11216 # link with -lc, and that would cause any symbols used from libc to
11217 # always be unresolved, which means just about no library would
11218 # ever link correctly. If we're not using GNU ld we use -z text
11219 # though, which does catch some bad symbols but isn't as heavy-handed
11220 # as -z defs.
11221 no_undefined_flag='$wl-z,text'
11222 allow_undefined_flag='$wl-z,nodefs'
11223 archive_cmds_need_lc=no
11224 hardcode_shlibpath_var=no
11225 hardcode_libdir_flag_spec='$wl-R,$libdir'
11226 hardcode_libdir_separator=':'
11227 link_all_deplibs=yes
11228 export_dynamic_flag_spec='$wl-Bexport'
11229 runpath_var='LD_RUN_PATH'
11230
11231 if test yes = "$GCC"; then
11232 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11233 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 else
11235 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11236 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 fi
11238 ;;
11239
11240 uts4*)
11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_libdir_flag_spec='-L$libdir'
11243 hardcode_shlibpath_var=no
11244 ;;
11245
11246 *)
11247 ld_shlibs=no
11248 ;;
11249 esac
11250
11251 if test sni = "$host_vendor"; then
11252 case $host in
11253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11254 export_dynamic_flag_spec='$wl-Blargedynsym'
11255 ;;
11256 esac
11257 fi
11258 fi
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11261 $as_echo "$ld_shlibs" >&6; }
11262 test no = "$ld_shlibs" && can_build_shared=no
11263
11264 with_gnu_ld=$with_gnu_ld
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280 #
11281 # Do we need to explicitly link libc?
11282 #
11283 case "x$archive_cmds_need_lc" in
11284 x|xyes)
11285 # Assume -lc should be added
11286 archive_cmds_need_lc=yes
11287
11288 if test yes,yes = "$GCC,$enable_shared"; then
11289 case $archive_cmds in
11290 *'~'*)
11291 # FIXME: we may have to deal with multi-command sequences.
11292 ;;
11293 '$CC '*)
11294 # Test whether the compiler implicitly links with -lc since on some
11295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11296 # to ld, don't add -lc before -lgcc.
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11298 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11299 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 $RM conftest*
11303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11304
11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11306 (eval $ac_compile) 2>&5
11307 ac_status=$?
11308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; } 2>conftest.err; then
11310 soname=conftest
11311 lib=conftest
11312 libobjs=conftest.$ac_objext
11313 deplibs=
11314 wl=$lt_prog_compiler_wl
11315 pic_flag=$lt_prog_compiler_pic
11316 compiler_flags=-v
11317 linker_flags=-v
11318 verstring=
11319 output_objdir=.
11320 libname=conftest
11321 lt_save_allow_undefined_flag=$allow_undefined_flag
11322 allow_undefined_flag=
11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11324 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; }
11328 then
11329 lt_cv_archive_cmds_need_lc=no
11330 else
11331 lt_cv_archive_cmds_need_lc=yes
11332 fi
11333 allow_undefined_flag=$lt_save_allow_undefined_flag
11334 else
11335 cat conftest.err 1>&5
11336 fi
11337 $RM conftest*
11338
11339 fi
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11341 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11342 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11343 ;;
11344 esac
11345 fi
11346 ;;
11347 esac
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11501 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11502
11503 if test yes = "$GCC"; then
11504 case $host_os in
11505 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11506 *) lt_awk_arg='/^libraries:/' ;;
11507 esac
11508 case $host_os in
11509 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11510 *) lt_sed_strip_eq='s|=/|/|g' ;;
11511 esac
11512 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11513 case $lt_search_path_spec in
11514 *\;*)
11515 # if the path contains ";" then we assume it to be the separator
11516 # otherwise default to the standard path separator (i.e. ":") - it is
11517 # assumed that no part of a normal pathname contains ";" but that should
11518 # okay in the real world where ";" in dirpaths is itself problematic.
11519 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11520 ;;
11521 *)
11522 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11523 ;;
11524 esac
11525 # Ok, now we have the path, separated by spaces, we can step through it
11526 # and add multilib dir if necessary...
11527 lt_tmp_lt_search_path_spec=
11528 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11529 # ...but if some path component already ends with the multilib dir we assume
11530 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11531 case "$lt_multi_os_dir; $lt_search_path_spec " in
11532 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11533 lt_multi_os_dir=
11534 ;;
11535 esac
11536 for lt_sys_path in $lt_search_path_spec; do
11537 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11538 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11539 elif test -n "$lt_multi_os_dir"; then
11540 test -d "$lt_sys_path" && \
11541 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11542 fi
11543 done
11544 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11545 BEGIN {RS = " "; FS = "/|\n";} {
11546 lt_foo = "";
11547 lt_count = 0;
11548 for (lt_i = NF; lt_i > 0; lt_i--) {
11549 if ($lt_i != "" && $lt_i != ".") {
11550 if ($lt_i == "..") {
11551 lt_count++;
11552 } else {
11553 if (lt_count == 0) {
11554 lt_foo = "/" $lt_i lt_foo;
11555 } else {
11556 lt_count--;
11557 }
11558 }
11559 }
11560 }
11561 if (lt_foo != "") { lt_freq[lt_foo]++; }
11562 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11563 }'`
11564 # AWK program above erroneously prepends '/' to C:/dos/paths
11565 # for these hosts.
11566 case $host_os in
11567 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11568 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11569 esac
11570 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11571 else
11572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11573 fi
11574 library_names_spec=
11575 libname_spec='lib$name'
11576 soname_spec=
11577 shrext_cmds=.so
11578 postinstall_cmds=
11579 postuninstall_cmds=
11580 finish_cmds=
11581 finish_eval=
11582 shlibpath_var=
11583 shlibpath_overrides_runpath=unknown
11584 version_type=none
11585 dynamic_linker="$host_os ld.so"
11586 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11587 need_lib_prefix=unknown
11588 hardcode_into_libs=no
11589
11590 # when you set need_version to no, make sure it does not cause -set_version
11591 # flags to be left without arguments
11592 need_version=unknown
11593
11594
11595
11596 case $host_os in
11597 aix3*)
11598 version_type=linux # correct to gnu/linux during the next big refactor
11599 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11600 shlibpath_var=LIBPATH
11601
11602 # AIX 3 has no versioning support, so we append a major version to the name.
11603 soname_spec='$libname$release$shared_ext$major'
11604 ;;
11605
11606 aix[4-9]*)
11607 version_type=linux # correct to gnu/linux during the next big refactor
11608 need_lib_prefix=no
11609 need_version=no
11610 hardcode_into_libs=yes
11611 if test ia64 = "$host_cpu"; then
11612 # AIX 5 supports IA64
11613 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 else
11616 # With GCC up to 2.95.x, collect2 would create an import file
11617 # for dependence libraries. The import file would start with
11618 # the line '#! .'. This would cause the generated library to
11619 # depend on '.', always an invalid library. This was fixed in
11620 # development snapshots of GCC prior to 3.0.
11621 case $host_os in
11622 aix4 | aix4.[01] | aix4.[01].*)
11623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11624 echo ' yes '
11625 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11626 :
11627 else
11628 can_build_shared=no
11629 fi
11630 ;;
11631 esac
11632 # Using Import Files as archive members, it is possible to support
11633 # filename-based versioning of shared library archives on AIX. While
11634 # this would work for both with and without runtime linking, it will
11635 # prevent static linking of such archives. So we do filename-based
11636 # shared library versioning with .so extension only, which is used
11637 # when both runtime linking and shared linking is enabled.
11638 # Unfortunately, runtime linking may impact performance, so we do
11639 # not want this to be the default eventually. Also, we use the
11640 # versioned .so libs for executables only if there is the -brtl
11641 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11642 # To allow for filename-based versioning support, we need to create
11643 # libNAME.so.V as an archive file, containing:
11644 # *) an Import File, referring to the versioned filename of the
11645 # archive as well as the shared archive member, telling the
11646 # bitwidth (32 or 64) of that shared object, and providing the
11647 # list of exported symbols of that shared object, eventually
11648 # decorated with the 'weak' keyword
11649 # *) the shared object with the F_LOADONLY flag set, to really avoid
11650 # it being seen by the linker.
11651 # At run time we better use the real file rather than another symlink,
11652 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11653
11654 case $with_aix_soname,$aix_use_runtimelinking in
11655 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11656 # soname into executable. Probably we can add versioning support to
11657 # collect2, so additional links can be useful in future.
11658 aix,yes) # traditional libtool
11659 dynamic_linker='AIX unversionable lib.so'
11660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11661 # instead of lib<name>.a to let people know that these are not
11662 # typical AIX shared libraries.
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 ;;
11665 aix,no) # traditional AIX only
11666 dynamic_linker='AIX lib.a(lib.so.V)'
11667 # We preserve .a as extension for shared libraries through AIX4.2
11668 # and later when we are not doing run time linking.
11669 library_names_spec='$libname$release.a $libname.a'
11670 soname_spec='$libname$release$shared_ext$major'
11671 ;;
11672 svr4,*) # full svr4 only
11673 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11674 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11675 # We do not specify a path in Import Files, so LIBPATH fires.
11676 shlibpath_overrides_runpath=yes
11677 ;;
11678 *,yes) # both, prefer svr4
11679 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11680 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11681 # unpreferred sharedlib libNAME.a needs extra handling
11682 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"'
11683 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"'
11684 # We do not specify a path in Import Files, so LIBPATH fires.
11685 shlibpath_overrides_runpath=yes
11686 ;;
11687 *,no) # both, prefer aix
11688 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11689 library_names_spec='$libname$release.a $libname.a'
11690 soname_spec='$libname$release$shared_ext$major'
11691 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11692 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)'
11693 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"'
11694 ;;
11695 esac
11696 shlibpath_var=LIBPATH
11697 fi
11698 ;;
11699
11700 amigaos*)
11701 case $host_cpu in
11702 powerpc)
11703 # Since July 2007 AmigaOS4 officially supports .so libraries.
11704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 ;;
11707 m68k)
11708 library_names_spec='$libname.ixlibrary $libname.a'
11709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11710 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'
11711 ;;
11712 esac
11713 ;;
11714
11715 beos*)
11716 library_names_spec='$libname$shared_ext'
11717 dynamic_linker="$host_os ld.so"
11718 shlibpath_var=LIBRARY_PATH
11719 ;;
11720
11721 bsdi[45]*)
11722 version_type=linux # correct to gnu/linux during the next big refactor
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11730 # the default ld.so.conf also contains /usr/contrib/lib and
11731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11732 # libtool to hard-code these into programs
11733 ;;
11734
11735 cygwin* | mingw* | pw32* | cegcc*)
11736 version_type=windows
11737 shrext_cmds=.dll
11738 need_version=no
11739 need_lib_prefix=no
11740
11741 case $GCC,$cc_basename in
11742 yes,*)
11743 # gcc
11744 library_names_spec='$libname.dll.a'
11745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11746 postinstall_cmds='base_file=`basename \$file`~
11747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11748 dldir=$destdir/`dirname \$dlpath`~
11749 test -d \$dldir || mkdir -p \$dldir~
11750 $install_prog $dir/$dlname \$dldir/$dlname~
11751 chmod a+x \$dldir/$dlname~
11752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11754 fi'
11755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11756 dlpath=$dir/\$dldll~
11757 $RM \$dlpath'
11758 shlibpath_overrides_runpath=yes
11759
11760 case $host_os in
11761 cygwin*)
11762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11763 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11764
11765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11766 ;;
11767 mingw* | cegcc*)
11768 # MinGW DLLs use traditional 'lib' prefix
11769 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11770 ;;
11771 pw32*)
11772 # pw32 DLLs use 'pw' prefix rather than 'lib'
11773 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11774 ;;
11775 esac
11776 dynamic_linker='Win32 ld.exe'
11777 ;;
11778
11779 *,cl*)
11780 # Native MSVC
11781 libname_spec='$name'
11782 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11783 library_names_spec='$libname.dll.lib'
11784
11785 case $build_os in
11786 mingw*)
11787 sys_lib_search_path_spec=
11788 lt_save_ifs=$IFS
11789 IFS=';'
11790 for lt_path in $LIB
11791 do
11792 IFS=$lt_save_ifs
11793 # Let DOS variable expansion print the short 8.3 style file name.
11794 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11795 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11796 done
11797 IFS=$lt_save_ifs
11798 # Convert to MSYS style.
11799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11800 ;;
11801 cygwin*)
11802 # Convert to unix form, then to dos form, then back to unix form
11803 # but this time dos style (no spaces!) so that the unix form looks
11804 # like /cygdrive/c/PROGRA~1:/cygdr...
11805 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11806 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11807 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11808 ;;
11809 *)
11810 sys_lib_search_path_spec=$LIB
11811 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11812 # It is most probably a Windows format PATH.
11813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11814 else
11815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11816 fi
11817 # FIXME: find the short name or the path components, as spaces are
11818 # common. (e.g. "Program Files" -> "PROGRA~1")
11819 ;;
11820 esac
11821
11822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11823 postinstall_cmds='base_file=`basename \$file`~
11824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11825 dldir=$destdir/`dirname \$dlpath`~
11826 test -d \$dldir || mkdir -p \$dldir~
11827 $install_prog $dir/$dlname \$dldir/$dlname'
11828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11829 dlpath=$dir/\$dldll~
11830 $RM \$dlpath'
11831 shlibpath_overrides_runpath=yes
11832 dynamic_linker='Win32 link.exe'
11833 ;;
11834
11835 *)
11836 # Assume MSVC wrapper
11837 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11838 dynamic_linker='Win32 ld.exe'
11839 ;;
11840 esac
11841 # FIXME: first we should search . and the directory the executable is in
11842 shlibpath_var=PATH
11843 ;;
11844
11845 darwin* | rhapsody*)
11846 dynamic_linker="$host_os dyld"
11847 version_type=darwin
11848 need_lib_prefix=no
11849 need_version=no
11850 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11851 soname_spec='$libname$release$major$shared_ext'
11852 shlibpath_overrides_runpath=yes
11853 shlibpath_var=DYLD_LIBRARY_PATH
11854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11855
11856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11858 ;;
11859
11860 dgux*)
11861 version_type=linux # correct to gnu/linux during the next big refactor
11862 need_lib_prefix=no
11863 need_version=no
11864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865 soname_spec='$libname$release$shared_ext$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11867 ;;
11868
11869 freebsd* | dragonfly*)
11870 # DragonFly does not have aout. When/if they implement a new
11871 # versioning mechanism, adjust this.
11872 if test -x /usr/bin/objformat; then
11873 objformat=`/usr/bin/objformat`
11874 else
11875 case $host_os in
11876 freebsd[23].*) objformat=aout ;;
11877 *) objformat=elf ;;
11878 esac
11879 fi
11880 version_type=freebsd-$objformat
11881 case $version_type in
11882 freebsd-elf*)
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11884 soname_spec='$libname$release$shared_ext$major'
11885 need_version=no
11886 need_lib_prefix=no
11887 ;;
11888 freebsd-*)
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11890 need_version=yes
11891 ;;
11892 esac
11893 shlibpath_var=LD_LIBRARY_PATH
11894 case $host_os in
11895 freebsd2.*)
11896 shlibpath_overrides_runpath=yes
11897 ;;
11898 freebsd3.[01]* | freebsdelf3.[01]*)
11899 shlibpath_overrides_runpath=yes
11900 hardcode_into_libs=yes
11901 ;;
11902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11904 shlibpath_overrides_runpath=no
11905 hardcode_into_libs=yes
11906 ;;
11907 *) # from 4.6 on, and DragonFly
11908 shlibpath_overrides_runpath=yes
11909 hardcode_into_libs=yes
11910 ;;
11911 esac
11912 ;;
11913
11914 haiku*)
11915 version_type=linux # correct to gnu/linux during the next big refactor
11916 need_lib_prefix=no
11917 need_version=no
11918 dynamic_linker="$host_os runtime_loader"
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920 soname_spec='$libname$release$shared_ext$major'
11921 shlibpath_var=LIBRARY_PATH
11922 shlibpath_overrides_runpath=no
11923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11924 hardcode_into_libs=yes
11925 ;;
11926
11927 hpux9* | hpux10* | hpux11*)
11928 # Give a soname corresponding to the major version so that dld.sl refuses to
11929 # link against other versions.
11930 version_type=sunos
11931 need_lib_prefix=no
11932 need_version=no
11933 case $host_cpu in
11934 ia64*)
11935 shrext_cmds='.so'
11936 hardcode_into_libs=yes
11937 dynamic_linker="$host_os dld.so"
11938 shlibpath_var=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941 soname_spec='$libname$release$shared_ext$major'
11942 if test 32 = "$HPUX_IA64_MODE"; then
11943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11944 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11945 else
11946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11947 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11948 fi
11949 ;;
11950 hppa*64*)
11951 shrext_cmds='.sl'
11952 hardcode_into_libs=yes
11953 dynamic_linker="$host_os dld.sl"
11954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 soname_spec='$libname$release$shared_ext$major'
11958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11960 ;;
11961 *)
11962 shrext_cmds='.sl'
11963 dynamic_linker="$host_os dld.sl"
11964 shlibpath_var=SHLIB_PATH
11965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 ;;
11969 esac
11970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11971 postinstall_cmds='chmod 555 $lib'
11972 # or fails outright, so override atomically:
11973 install_override_mode=555
11974 ;;
11975
11976 interix[3-9]*)
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 need_lib_prefix=no
11979 need_version=no
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
11982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=no
11985 hardcode_into_libs=yes
11986 ;;
11987
11988 irix5* | irix6* | nonstopux*)
11989 case $host_os in
11990 nonstopux*) version_type=nonstopux ;;
11991 *)
11992 if test yes = "$lt_cv_prog_gnu_ld"; then
11993 version_type=linux # correct to gnu/linux during the next big refactor
11994 else
11995 version_type=irix
11996 fi ;;
11997 esac
11998 need_lib_prefix=no
11999 need_version=no
12000 soname_spec='$libname$release$shared_ext$major'
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12002 case $host_os in
12003 irix5* | nonstopux*)
12004 libsuff= shlibsuff=
12005 ;;
12006 *)
12007 case $LD in # libtool.m4 will add one of these switches to LD
12008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12009 libsuff= shlibsuff= libmagic=32-bit;;
12010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12011 libsuff=32 shlibsuff=N32 libmagic=N32;;
12012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12014 *) libsuff= shlibsuff= libmagic=never-match;;
12015 esac
12016 ;;
12017 esac
12018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12019 shlibpath_overrides_runpath=no
12020 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12021 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12022 hardcode_into_libs=yes
12023 ;;
12024
12025 # No shared lib support for Linux oldld, aout, or coff.
12026 linux*oldld* | linux*aout* | linux*coff*)
12027 dynamic_linker=no
12028 ;;
12029
12030 linux*android*)
12031 version_type=none # Android doesn't support versioned libraries.
12032 need_lib_prefix=no
12033 need_version=no
12034 library_names_spec='$libname$release$shared_ext'
12035 soname_spec='$libname$release$shared_ext'
12036 finish_cmds=
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes
12039
12040 # This implies no fast_install, which is unacceptable.
12041 # Some rework will be needed to allow for fast_install
12042 # before this can be enabled.
12043 hardcode_into_libs=yes
12044
12045 dynamic_linker='Android linker'
12046 # Don't embed -rpath directories since the linker doesn't support them.
12047 hardcode_libdir_flag_spec='-L$libdir'
12048 ;;
12049
12050 # This must be glibc/ELF.
12051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12052 version_type=linux # correct to gnu/linux during the next big refactor
12053 need_lib_prefix=no
12054 need_version=no
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext$major'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=no
12060
12061 # Some binutils ld are patched to set DT_RUNPATH
12062 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 lt_cv_shlibpath_overrides_runpath=no
12066 save_LDFLAGS=$LDFLAGS
12067 save_libdir=$libdir
12068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072
12073 int
12074 main ()
12075 {
12076
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12082 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12083 lt_cv_shlibpath_overrides_runpath=yes
12084 fi
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 LDFLAGS=$save_LDFLAGS
12089 libdir=$save_libdir
12090
12091 fi
12092
12093 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12094
12095 # This implies no fast_install, which is unacceptable.
12096 # Some rework will be needed to allow for fast_install
12097 # before this can be enabled.
12098 hardcode_into_libs=yes
12099
12100 # Add ABI-specific directories to the system library path.
12101 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12102
12103 # Ideally, we could use ldconfig to report *all* directores which are
12104 # searched for libraries, however this is still not possible. Aside from not
12105 # being certain /sbin/ldconfig is available, command
12106 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12107 # even though it is searched at run-time. Try to do the best guess by
12108 # appending ld.so.conf contents (and includes) to the search path.
12109 if test -f /etc/ld.so.conf; then
12110 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' ' '`
12111 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12112 fi
12113
12114 # We used to test for /lib/ld.so.1 and disable shared libraries on
12115 # powerpc, because MkLinux only supported shared libraries with the
12116 # GNU dynamic linker. Since this was broken with cross compilers,
12117 # most powerpc-linux boxes support dynamic linking these days and
12118 # people can always --disable-shared, the test was removed, and we
12119 # assume the GNU/Linux dynamic linker is in use.
12120 dynamic_linker='GNU/Linux ld.so'
12121 ;;
12122
12123 netbsd*)
12124 version_type=sunos
12125 need_lib_prefix=no
12126 need_version=no
12127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12130 dynamic_linker='NetBSD (a.out) ld.so'
12131 else
12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 soname_spec='$libname$release$shared_ext$major'
12134 dynamic_linker='NetBSD ld.elf_so'
12135 fi
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes
12138 hardcode_into_libs=yes
12139 ;;
12140
12141 newsos6)
12142 version_type=linux # correct to gnu/linux during the next big refactor
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=yes
12146 ;;
12147
12148 *nto* | *qnx*)
12149 version_type=qnx
12150 need_lib_prefix=no
12151 need_version=no
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12157 dynamic_linker='ldqnx.so'
12158 ;;
12159
12160 openbsd* | bitrig*)
12161 version_type=sunos
12162 sys_lib_dlsearch_path_spec=/usr/lib
12163 need_lib_prefix=no
12164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12165 need_version=no
12166 else
12167 need_version=yes
12168 fi
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 ;;
12174
12175 os2*)
12176 libname_spec='$name'
12177 version_type=windows
12178 shrext_cmds=.dll
12179 need_version=no
12180 need_lib_prefix=no
12181 # OS/2 can only load a DLL with a base name of 8 characters or less.
12182 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12183 v=$($ECHO $release$versuffix | tr -d .-);
12184 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12185 $ECHO $n$v`$shared_ext'
12186 library_names_spec='${libname}_dll.$libext'
12187 dynamic_linker='OS/2 ld.exe'
12188 shlibpath_var=BEGINLIBPATH
12189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12191 postinstall_cmds='base_file=`basename \$file`~
12192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12193 dldir=$destdir/`dirname \$dlpath`~
12194 test -d \$dldir || mkdir -p \$dldir~
12195 $install_prog $dir/$dlname \$dldir/$dlname~
12196 chmod a+x \$dldir/$dlname~
12197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12199 fi'
12200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12201 dlpath=$dir/\$dldll~
12202 $RM \$dlpath'
12203 ;;
12204
12205 osf3* | osf4* | osf5*)
12206 version_type=osf
12207 need_lib_prefix=no
12208 need_version=no
12209 soname_spec='$libname$release$shared_ext$major'
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12214 ;;
12215
12216 rdos*)
12217 dynamic_linker=no
12218 ;;
12219
12220 solaris*)
12221 version_type=linux # correct to gnu/linux during the next big refactor
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225 soname_spec='$libname$release$shared_ext$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12228 hardcode_into_libs=yes
12229 # ldd complains unless libraries are executable
12230 postinstall_cmds='chmod +x $lib'
12231 ;;
12232
12233 sunos4*)
12234 version_type=sunos
12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 if test yes = "$with_gnu_ld"; then
12240 need_lib_prefix=no
12241 fi
12242 need_version=yes
12243 ;;
12244
12245 sysv4 | sysv4.3*)
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 case $host_vendor in
12251 sni)
12252 shlibpath_overrides_runpath=no
12253 need_lib_prefix=no
12254 runpath_var=LD_RUN_PATH
12255 ;;
12256 siemens)
12257 need_lib_prefix=no
12258 ;;
12259 motorola)
12260 need_lib_prefix=no
12261 need_version=no
12262 shlibpath_overrides_runpath=no
12263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12264 ;;
12265 esac
12266 ;;
12267
12268 sysv4*MP*)
12269 if test -d /usr/nec; then
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12272 soname_spec='$libname$shared_ext.$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 fi
12275 ;;
12276
12277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12278 version_type=sco
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12282 soname_spec='$libname$release$shared_ext$major'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 hardcode_into_libs=yes
12286 if test yes = "$with_gnu_ld"; then
12287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12288 else
12289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12290 case $host_os in
12291 sco3.2v5*)
12292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12293 ;;
12294 esac
12295 fi
12296 sys_lib_dlsearch_path_spec='/usr/lib'
12297 ;;
12298
12299 tpf*)
12300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12301 version_type=linux # correct to gnu/linux during the next big refactor
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=no
12307 hardcode_into_libs=yes
12308 ;;
12309
12310 uts4*)
12311 version_type=linux # correct to gnu/linux during the next big refactor
12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313 soname_spec='$libname$release$shared_ext$major'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 ;;
12316
12317 *)
12318 dynamic_linker=no
12319 ;;
12320 esac
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12322 $as_echo "$dynamic_linker" >&6; }
12323 test no = "$dynamic_linker" && can_build_shared=no
12324
12325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12326 if test yes = "$GCC"; then
12327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12328 fi
12329
12330 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12331 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12332 fi
12333
12334 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12335 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12336 fi
12337
12338 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12339 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12340
12341 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12342 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12343
12344 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12345 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12444 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12445 hardcode_action=
12446 if test -n "$hardcode_libdir_flag_spec" ||
12447 test -n "$runpath_var" ||
12448 test yes = "$hardcode_automatic"; then
12449
12450 # We can hardcode non-existent directories.
12451 if test no != "$hardcode_direct" &&
12452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12453 # have to relink, otherwise we might link with an installed library
12454 # when we should be linking with a yet-to-be-installed one
12455 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12456 test no != "$hardcode_minus_L"; then
12457 # Linking always hardcodes the temporary library directory.
12458 hardcode_action=relink
12459 else
12460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12461 hardcode_action=immediate
12462 fi
12463 else
12464 # We cannot hardcode anything, or else we can only hardcode existing
12465 # directories.
12466 hardcode_action=unsupported
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12469 $as_echo "$hardcode_action" >&6; }
12470
12471 if test relink = "$hardcode_action" ||
12472 test yes = "$inherit_rpath"; then
12473 # Fast installation is not supported
12474 enable_fast_install=no
12475 elif test yes = "$shlibpath_overrides_runpath" ||
12476 test no = "$enable_shared"; then
12477 # Fast installation is not necessary
12478 enable_fast_install=needless
12479 fi
12480
12481
12482
12483
12484
12485
12486 if test yes != "$enable_dlopen"; then
12487 enable_dlopen=unknown
12488 enable_dlopen_self=unknown
12489 enable_dlopen_self_static=unknown
12490 else
12491 lt_cv_dlopen=no
12492 lt_cv_dlopen_libs=
12493
12494 case $host_os in
12495 beos*)
12496 lt_cv_dlopen=load_add_on
12497 lt_cv_dlopen_libs=
12498 lt_cv_dlopen_self=yes
12499 ;;
12500
12501 mingw* | pw32* | cegcc*)
12502 lt_cv_dlopen=LoadLibrary
12503 lt_cv_dlopen_libs=
12504 ;;
12505
12506 cygwin*)
12507 lt_cv_dlopen=dlopen
12508 lt_cv_dlopen_libs=
12509 ;;
12510
12511 darwin*)
12512 # if libdl is installed we need to link against it
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12514 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12515 if ${ac_cv_lib_dl_dlopen+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-ldl $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char dlopen ();
12530 int
12531 main ()
12532 {
12533 return dlopen ();
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_lib_dl_dlopen=yes
12540 else
12541 ac_cv_lib_dl_dlopen=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12548 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12549 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12550 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12551 else
12552
12553 lt_cv_dlopen=dyld
12554 lt_cv_dlopen_libs=
12555 lt_cv_dlopen_self=yes
12556
12557 fi
12558
12559 ;;
12560
12561 tpf*)
12562 # Don't try to run any link tests for TPF. We know it's impossible
12563 # because TPF is a cross-compiler, and we know how we open DSOs.
12564 lt_cv_dlopen=dlopen
12565 lt_cv_dlopen_libs=
12566 lt_cv_dlopen_self=no
12567 ;;
12568
12569 *)
12570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12571 if test "x$ac_cv_func_shl_load" = xyes; then :
12572 lt_cv_dlopen=shl_load
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12575 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12576 if ${ac_cv_lib_dld_shl_load+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-ldld $LIBS"
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char shl_load ();
12591 int
12592 main ()
12593 {
12594 return shl_load ();
12595 ;
12596 return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_dld_shl_load=yes
12601 else
12602 ac_cv_lib_dld_shl_load=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12609 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12610 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12611 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12612 else
12613 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12614 if test "x$ac_cv_func_dlopen" = xyes; then :
12615 lt_cv_dlopen=dlopen
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12619 if ${ac_cv_lib_dl_dlopen+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-ldl $LIBS"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char dlopen ();
12634 int
12635 main ()
12636 {
12637 return dlopen ();
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 ac_cv_lib_dl_dlopen=yes
12644 else
12645 ac_cv_lib_dl_dlopen=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12654 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12657 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12658 if ${ac_cv_lib_svld_dlopen+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lsvld $LIBS"
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char dlopen ();
12673 int
12674 main ()
12675 {
12676 return dlopen ();
12677 ;
12678 return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 ac_cv_lib_svld_dlopen=yes
12683 else
12684 ac_cv_lib_svld_dlopen=no
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12691 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12692 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12693 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12696 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12697 if ${ac_cv_lib_dld_dld_link+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-ldld $LIBS"
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char dld_link ();
12712 int
12713 main ()
12714 {
12715 return dld_link ();
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_link "$LINENO"; then :
12721 ac_cv_lib_dld_dld_link=yes
12722 else
12723 ac_cv_lib_dld_dld_link=no
12724 fi
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12730 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12731 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12732 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12733 fi
12734
12735
12736 fi
12737
12738
12739 fi
12740
12741
12742 fi
12743
12744
12745 fi
12746
12747
12748 fi
12749
12750 ;;
12751 esac
12752
12753 if test no = "$lt_cv_dlopen"; then
12754 enable_dlopen=no
12755 else
12756 enable_dlopen=yes
12757 fi
12758
12759 case $lt_cv_dlopen in
12760 dlopen)
12761 save_CPPFLAGS=$CPPFLAGS
12762 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12763
12764 save_LDFLAGS=$LDFLAGS
12765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12766
12767 save_LIBS=$LIBS
12768 LIBS="$lt_cv_dlopen_libs $LIBS"
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12771 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12772 if ${lt_cv_dlopen_self+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 if test yes = "$cross_compiling"; then :
12776 lt_cv_dlopen_self=cross
12777 else
12778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779 lt_status=$lt_dlunknown
12780 cat > conftest.$ac_ext <<_LT_EOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12783
12784 #if HAVE_DLFCN_H
12785 #include <dlfcn.h>
12786 #endif
12787
12788 #include <stdio.h>
12789
12790 #ifdef RTLD_GLOBAL
12791 # define LT_DLGLOBAL RTLD_GLOBAL
12792 #else
12793 # ifdef DL_GLOBAL
12794 # define LT_DLGLOBAL DL_GLOBAL
12795 # else
12796 # define LT_DLGLOBAL 0
12797 # endif
12798 #endif
12799
12800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801 find out it does not work in some platform. */
12802 #ifndef LT_DLLAZY_OR_NOW
12803 # ifdef RTLD_LAZY
12804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12805 # else
12806 # ifdef DL_LAZY
12807 # define LT_DLLAZY_OR_NOW DL_LAZY
12808 # else
12809 # ifdef RTLD_NOW
12810 # define LT_DLLAZY_OR_NOW RTLD_NOW
12811 # else
12812 # ifdef DL_NOW
12813 # define LT_DLLAZY_OR_NOW DL_NOW
12814 # else
12815 # define LT_DLLAZY_OR_NOW 0
12816 # endif
12817 # endif
12818 # endif
12819 # endif
12820 #endif
12821
12822 /* When -fvisibility=hidden is used, assume the code has been annotated
12823 correspondingly for the symbols needed. */
12824 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12825 int fnord () __attribute__((visibility("default")));
12826 #endif
12827
12828 int fnord () { return 42; }
12829 int main ()
12830 {
12831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832 int status = $lt_dlunknown;
12833
12834 if (self)
12835 {
12836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12837 else
12838 {
12839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12840 else puts (dlerror ());
12841 }
12842 /* dlclose (self); */
12843 }
12844 else
12845 puts (dlerror ());
12846
12847 return status;
12848 }
12849 _LT_EOF
12850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12851 (eval $ac_link) 2>&5
12852 ac_status=$?
12853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12855 (./conftest; exit; ) >&5 2>/dev/null
12856 lt_status=$?
12857 case x$lt_status in
12858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12860 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12861 esac
12862 else :
12863 # compilation failed
12864 lt_cv_dlopen_self=no
12865 fi
12866 fi
12867 rm -fr conftest*
12868
12869
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12872 $as_echo "$lt_cv_dlopen_self" >&6; }
12873
12874 if test yes = "$lt_cv_dlopen_self"; then
12875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12877 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12878 if ${lt_cv_dlopen_self_static+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 if test yes = "$cross_compiling"; then :
12882 lt_cv_dlopen_self_static=cross
12883 else
12884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12885 lt_status=$lt_dlunknown
12886 cat > conftest.$ac_ext <<_LT_EOF
12887 #line $LINENO "configure"
12888 #include "confdefs.h"
12889
12890 #if HAVE_DLFCN_H
12891 #include <dlfcn.h>
12892 #endif
12893
12894 #include <stdio.h>
12895
12896 #ifdef RTLD_GLOBAL
12897 # define LT_DLGLOBAL RTLD_GLOBAL
12898 #else
12899 # ifdef DL_GLOBAL
12900 # define LT_DLGLOBAL DL_GLOBAL
12901 # else
12902 # define LT_DLGLOBAL 0
12903 # endif
12904 #endif
12905
12906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12907 find out it does not work in some platform. */
12908 #ifndef LT_DLLAZY_OR_NOW
12909 # ifdef RTLD_LAZY
12910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12911 # else
12912 # ifdef DL_LAZY
12913 # define LT_DLLAZY_OR_NOW DL_LAZY
12914 # else
12915 # ifdef RTLD_NOW
12916 # define LT_DLLAZY_OR_NOW RTLD_NOW
12917 # else
12918 # ifdef DL_NOW
12919 # define LT_DLLAZY_OR_NOW DL_NOW
12920 # else
12921 # define LT_DLLAZY_OR_NOW 0
12922 # endif
12923 # endif
12924 # endif
12925 # endif
12926 #endif
12927
12928 /* When -fvisibility=hidden is used, assume the code has been annotated
12929 correspondingly for the symbols needed. */
12930 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12931 int fnord () __attribute__((visibility("default")));
12932 #endif
12933
12934 int fnord () { return 42; }
12935 int main ()
12936 {
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12939
12940 if (self)
12941 {
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12943 else
12944 {
12945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12946 else puts (dlerror ());
12947 }
12948 /* dlclose (self); */
12949 }
12950 else
12951 puts (dlerror ());
12952
12953 return status;
12954 }
12955 _LT_EOF
12956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12957 (eval $ac_link) 2>&5
12958 ac_status=$?
12959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12961 (./conftest; exit; ) >&5 2>/dev/null
12962 lt_status=$?
12963 case x$lt_status in
12964 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12965 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12966 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12967 esac
12968 else :
12969 # compilation failed
12970 lt_cv_dlopen_self_static=no
12971 fi
12972 fi
12973 rm -fr conftest*
12974
12975
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12978 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12979 fi
12980
12981 CPPFLAGS=$save_CPPFLAGS
12982 LDFLAGS=$save_LDFLAGS
12983 LIBS=$save_LIBS
12984 ;;
12985 esac
12986
12987 case $lt_cv_dlopen_self in
12988 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12989 *) enable_dlopen_self=unknown ;;
12990 esac
12991
12992 case $lt_cv_dlopen_self_static in
12993 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12994 *) enable_dlopen_self_static=unknown ;;
12995 esac
12996 fi
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014 striplib=
13015 old_striplib=
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13017 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13018 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13019 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13020 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13023 else
13024 # FIXME - insert some real tests, host_os isn't really good enough
13025 case $host_os in
13026 darwin*)
13027 if test -n "$STRIP"; then
13028 striplib="$STRIP -x"
13029 old_striplib="$STRIP -S"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13035 fi
13036 ;;
13037 *)
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 ;;
13041 esac
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055 # Report what library types will actually be built
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13057 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13059 $as_echo "$can_build_shared" >&6; }
13060
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13062 $as_echo_n "checking whether to build shared libraries... " >&6; }
13063 test no = "$can_build_shared" && enable_shared=no
13064
13065 # On AIX, shared libraries and static libraries use the same namespace, and
13066 # are all built from PIC.
13067 case $host_os in
13068 aix3*)
13069 test yes = "$enable_shared" && enable_static=no
13070 if test -n "$RANLIB"; then
13071 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13072 postinstall_cmds='$RANLIB $lib'
13073 fi
13074 ;;
13075
13076 aix[4-9]*)
13077 if test ia64 != "$host_cpu"; then
13078 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13079 yes,aix,yes) ;; # shared object as lib.so file only
13080 yes,svr4,*) ;; # shared object as lib.so archive member only
13081 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13082 esac
13083 fi
13084 ;;
13085 esac
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13087 $as_echo "$enable_shared" >&6; }
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13090 $as_echo_n "checking whether to build static libraries... " >&6; }
13091 # Make sure either enable_shared or enable_static is yes.
13092 test yes = "$enable_shared" || enable_static=yes
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13094 $as_echo "$enable_static" >&6; }
13095
13096
13097
13098
13099 fi
13100 ac_ext=c
13101 ac_cpp='$CPP $CPPFLAGS'
13102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13105
13106 CC=$lt_save_CC
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122 ac_config_commands="$ac_config_commands libtool"
13123
13124
13125
13126
13127 # Only expand once:
13128
13129
13130
13131
13132
13133 #### Locate APXS
13134 # Accept parameter of --with-apxs. If not supplied, search path for apxs or apxs2
13135
13136 # Check whether --with-apxs was given.
13137 if test "${with_apxs+set}" = set; then :
13138 withval=$with_apxs; APXS=$with_apxs
13139
13140 else
13141 for ac_prog in apxs apxs2
13142 do
13143 # Extract the first word of "$ac_prog", so it can be a program name with args.
13144 set dummy $ac_prog; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_APXS+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 case $APXS in
13151 [\\/]* | ?:[\\/]*)
13152 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
13153 ;;
13154 *)
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13157 do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166 done
13167 done
13168 IFS=$as_save_IFS
13169
13170 ;;
13171 esac
13172 fi
13173 APXS=$ac_cv_path_APXS
13174 if test -n "$APXS"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
13176 $as_echo "$APXS" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 fi
13181
13182
13183 test -n "$APXS" && break
13184 done
13185
13186 fi
13187
13188
13189 if test "x$APXS" != "x" -a -x "$APXS" ; then :
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: apxs found at $APXS" >&5
13192 $as_echo "$as_me: apxs found at $APXS" >&6;}
13193 APXS_CPPFLAGS=`$APXS -q CFLAGS`
13194
13195 APXS_LDFLAGS=`$APXS -q LDFLAGS_SHLIB`
13196
13197 APXS_LIBS=`$APXS -q LIBS_SHLIB`
13198
13199 APXS_INCLUDES=-I`$APXS -q INCLUDEDIR`
13200
13201 APXS_CPPFLAGS_SHLIB=`$APXS -q CFLAGS_SHLIB`
13202
13203 APXS_LD_SHLIB=`$APXS -q LD_SHLIB`
13204
13205 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
13206
13207 APXS_SYSCONFDIR=`$APXS -q SYSCONFDIR`
13208
13209 APXS_PREFIX=`$APXS -q PREFIX`
13210
13211
13212 else
13213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13215 as_fn_error $? "\"useable apxs not found - please use --with-apxs=/path/to/apxs\"
13216 See \`config.log' for more details" "$LINENO" 5; }
13217
13218 fi
13219 #### Done locating APXS
13220
13221 #### Locate APR
13222 # Accept parameter of --with-apr. If not supplied, search path for apr-1-config
13223
13224 # Check whether --with-apr was given.
13225 if test "${with_apr+set}" = set; then :
13226 withval=$with_apr; APR=$with_apr
13227
13228 else
13229 for ac_prog in apr-1-config
13230 do
13231 # Extract the first word of "$ac_prog", so it can be a program name with args.
13232 set dummy $ac_prog; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_path_APR+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 case $APR in
13239 [\\/]* | ?:[\\/]*)
13240 ac_cv_path_APR="$APR" # Let the user override the test with a path.
13241 ;;
13242 *)
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250 ac_cv_path_APR="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 ;;
13259 esac
13260 fi
13261 APR=$ac_cv_path_APR
13262 if test -n "$APR"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR" >&5
13264 $as_echo "$APR" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 test -n "$APR" && break
13272 done
13273
13274 fi
13275
13276
13277 if test "x$APR" != "x" -a -x "$APR" ; then :
13278
13279 APR_CPPFLAGS=`$APR --cppflags`
13280
13281 APR_INCLUDES=`$APR --includes`
13282
13283 APR_LDFLAGS=`$APR --link-libtool --libs`
13284
13285
13286 else
13287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13289 as_fn_error $? "\"useable apr-1-config not found - please use --with-apr=/path/to/apr-1-config\"
13290 See \`config.log' for more details" "$LINENO" 5; }
13291
13292 fi
13293
13294 # Checks for libraries.
13295
13296
13297 #### unit testing with Check
13298
13299 # Check whether --with-check was given.
13300 if test "${with_check+set}" = set; then :
13301 withval=$with_check;
13302 else
13303 with_check=no
13304 fi
13305
13306
13307
13308
13309
13310
13311
13312
13313 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13314 if test -n "$ac_tool_prefix"; then
13315 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13316 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 case $PKG_CONFIG in
13323 [\\/]* | ?:[\\/]*)
13324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13325 ;;
13326 *)
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13329 do
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338 done
13339 done
13340 IFS=$as_save_IFS
13341
13342 ;;
13343 esac
13344 fi
13345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13346 if test -n "$PKG_CONFIG"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13348 $as_echo "$PKG_CONFIG" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352 fi
13353
13354
13355 fi
13356 if test -z "$ac_cv_path_PKG_CONFIG"; then
13357 ac_pt_PKG_CONFIG=$PKG_CONFIG
13358 # Extract the first word of "pkg-config", so it can be a program name with args.
13359 set dummy pkg-config; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 case $ac_pt_PKG_CONFIG in
13366 [\\/]* | ?:[\\/]*)
13367 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13368 ;;
13369 *)
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381 done
13382 done
13383 IFS=$as_save_IFS
13384
13385 ;;
13386 esac
13387 fi
13388 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13389 if test -n "$ac_pt_PKG_CONFIG"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13391 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397 if test "x$ac_pt_PKG_CONFIG" = x; then
13398 PKG_CONFIG=""
13399 else
13400 case $cross_compiling:$ac_tool_warned in
13401 yes:)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404 ac_tool_warned=yes ;;
13405 esac
13406 PKG_CONFIG=$ac_pt_PKG_CONFIG
13407 fi
13408 else
13409 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13410 fi
13411
13412 fi
13413 if test -n "$PKG_CONFIG"; then
13414 _pkg_min_version=0.9.0
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13416 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13417 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13419 $as_echo "yes" >&6; }
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13423 PKG_CONFIG=""
13424 fi
13425 fi
13426 if test "x$with_check" != xno; then :
13427
13428 pkg_failed=no
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
13430 $as_echo_n "checking for CHECK... " >&6; }
13431
13432 if test -n "$CHECK_CFLAGS"; then
13433 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
13434 elif test -n "$PKG_CONFIG"; then
13435 if test -n "$PKG_CONFIG" && \
13436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13437 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }; then
13441 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
13442 else
13443 pkg_failed=yes
13444 fi
13445 else
13446 pkg_failed=untried
13447 fi
13448 if test -n "$CHECK_LIBS"; then
13449 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
13450 elif test -n "$PKG_CONFIG"; then
13451 if test -n "$PKG_CONFIG" && \
13452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13453 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456 test $ac_status = 0; }; then
13457 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
13458 else
13459 pkg_failed=yes
13460 fi
13461 else
13462 pkg_failed=untried
13463 fi
13464
13465
13466
13467 if test $pkg_failed = yes; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13470
13471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13472 _pkg_short_errors_supported=yes
13473 else
13474 _pkg_short_errors_supported=no
13475 fi
13476 if test $_pkg_short_errors_supported = yes; then
13477 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.4" 2>&1`
13478 else
13479 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.4" 2>&1`
13480 fi
13481 # Put the nasty error message in config.log where it belongs
13482 echo "$CHECK_PKG_ERRORS" >&5
13483
13484 as_fn_error $? "Could not find the Check library required to build test suite for mod_auth_cas" "$LINENO" 5
13485 elif test $pkg_failed = untried; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 as_fn_error $? "Could not find the Check library required to build test suite for mod_auth_cas" "$LINENO" 5
13489 else
13490 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
13491 CHECK_LIBS=$pkg_cv_CHECK_LIBS
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493 $as_echo "yes" >&6; }
13494 with_check=yes
13495 fi
13496
13497 fi
13498
13499 if test x$with_check = xyes; then
13500 CHECK_TRUE=
13501 CHECK_FALSE='#'
13502 else
13503 CHECK_TRUE='#'
13504 CHECK_FALSE=
13505 fi
13506
13507
13508 # Check whether --enable-test-coverage was given.
13509 if test "${enable_test_coverage+set}" = set; then :
13510 enableval=$enable_test_coverage;
13511 else
13512 enable_test_coverage=no
13513 fi
13514
13515
13516 if test "xenable_test_coverage" != xno; then :
13517 if test "x$with_check" = xyes; then :
13518 TEST_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Test coverage requested when not building tests (--with-check=no)" >&5
13521 $as_echo "$as_me: WARNING: Test coverage requested when not building tests (--with-check=no)" >&2;}
13522
13523 fi
13524
13525 fi
13526
13527
13528
13529 #### Find OpenSSL
13530
13531
13532 found=false
13533
13534 # Check whether --with-openssl was given.
13535 if test "${with_openssl+set}" = set; then :
13536 withval=$with_openssl;
13537 case "$withval" in
13538 "" | y | ye | yes | n | no)
13539 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13540 ;;
13541 *) ssldirs="$withval"
13542 ;;
13543 esac
13544
13545 else
13546
13547 # if pkg-config is installed and openssl has installed a .pc file,
13548 # then use that information and don't search ssldirs
13549 # Extract the first word of "pkg-config", so it can be a program name with args.
13550 set dummy pkg-config; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 case $PKG_CONFIG in
13557 [\\/]* | ?:[\\/]*)
13558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13559 ;;
13560 *)
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13571 fi
13572 done
13573 done
13574 IFS=$as_save_IFS
13575
13576 ;;
13577 esac
13578 fi
13579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13580 if test -n "$PKG_CONFIG"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13582 $as_echo "$PKG_CONFIG" >&6; }
13583 else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586 fi
13587
13588
13589 if test x"$PKG_CONFIG" != x""; then
13590 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13591 if test $? = 0; then
13592 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13593 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13594 found=true
13595 fi
13596 fi
13597
13598 # no such luck; use some default ssldirs
13599 if ! $found; then
13600 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13601 fi
13602
13603
13604 fi
13605
13606
13607
13608 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13609 # an 'openssl' subdirectory
13610
13611 if ! $found; then
13612 OPENSSL_INCLUDES=
13613 for ssldir in $ssldirs; do
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13615 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13616 if test -f "$ssldir/include/openssl/ssl.h"; then
13617 OPENSSL_INCLUDES="-I$ssldir/include"
13618 OPENSSL_LDFLAGS="-L$ssldir/lib"
13619 OPENSSL_LIBS="-lssl -lcrypto"
13620 found=true
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13623 break
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628 done
13629
13630 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13631 # it will just work!
13632 fi
13633
13634 # try the preprocessor and linker with our new flags,
13635 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13638 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13639 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13640 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13641
13642 save_LIBS="$LIBS"
13643 save_LDFLAGS="$LDFLAGS"
13644 save_CPPFLAGS="$CPPFLAGS"
13645 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13646 LIBS="$OPENSSL_LIBS $LIBS"
13647 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 #include <openssl/ssl.h>
13651 int
13652 main ()
13653 {
13654 SSL_new(NULL)
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"; then :
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662 $as_echo "yes" >&6; }
13663
13664
13665 else
13666
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669
13670
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 CPPFLAGS="$save_CPPFLAGS"
13675 LDFLAGS="$save_LDFLAGS"
13676 LIBS="$save_LIBS"
13677
13678
13679
13680
13681
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
13684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
13685 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lcrypto $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char CRYPTO_new_ex_data ();
13700 int
13701 main ()
13702 {
13703 return CRYPTO_new_ex_data ();
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
13710 else
13711 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
13718 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
13719 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define HAVE_LIBCRYPTO 1
13722 _ACEOF
13723
13724 LIBS="-lcrypto $LIBS"
13725
13726 else
13727 as_fn_error $? "OpenSSL libraries required" "$LINENO" 5
13728 fi
13729
13730 for ac_header in openssl/crypto.h openssl/x509.h openssl/pem.h openssl/ssl.h openssl/err.h
13731 do :
13732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13733 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13735 cat >>confdefs.h <<_ACEOF
13736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13737 _ACEOF
13738
13739 else
13740 as_fn_error $? "OpenSSL headers required" "$LINENO" 5
13741 fi
13742
13743 done
13744
13745
13746 #### Check for libcurl
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772 # Check whether --with-libcurl was given.
13773 if test "${with_libcurl+set}" = set; then :
13774 withval=$with_libcurl; _libcurl_with=$withval
13775 else
13776 _libcurl_with=yes
13777 fi
13778
13779
13780 if test "$_libcurl_with" != "no" ; then
13781
13782 for ac_prog in gawk mawk nawk awk
13783 do
13784 # Extract the first word of "$ac_prog", so it can be a program name with args.
13785 set dummy $ac_prog; ac_word=$2
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787 $as_echo_n "checking for $ac_word... " >&6; }
13788 if ${ac_cv_prog_AWK+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 if test -n "$AWK"; then
13792 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13793 else
13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795 for as_dir in $PATH
13796 do
13797 IFS=$as_save_IFS
13798 test -z "$as_dir" && as_dir=.
13799 for ac_exec_ext in '' $ac_executable_extensions; do
13800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13801 ac_cv_prog_AWK="$ac_prog"
13802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13803 break 2
13804 fi
13805 done
13806 done
13807 IFS=$as_save_IFS
13808
13809 fi
13810 fi
13811 AWK=$ac_cv_prog_AWK
13812 if test -n "$AWK"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13814 $as_echo "$AWK" >&6; }
13815 else
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817 $as_echo "no" >&6; }
13818 fi
13819
13820
13821 test -n "$AWK" && break
13822 done
13823
13824
13825 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
13826
13827 _libcurl_try_link=yes
13828
13829 if test -d "$_libcurl_with" ; then
13830 LIBCURL_CPPFLAGS="-I$withval/include"
13831 _libcurl_ldflags="-L$withval/lib"
13832 # Extract the first word of "curl-config", so it can be a program name with args.
13833 set dummy curl-config; ac_word=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if ${ac_cv_path__libcurl_config+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 case $_libcurl_config in
13840 [\\/]* | ?:[\\/]*)
13841 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
13842 ;;
13843 *)
13844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845 for as_dir in "$withval/bin"
13846 do
13847 IFS=$as_save_IFS
13848 test -z "$as_dir" && as_dir=.
13849 for ac_exec_ext in '' $ac_executable_extensions; do
13850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13851 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 break 2
13854 fi
13855 done
13856 done
13857 IFS=$as_save_IFS
13858
13859 ;;
13860 esac
13861 fi
13862 _libcurl_config=$ac_cv_path__libcurl_config
13863 if test -n "$_libcurl_config"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
13865 $as_echo "$_libcurl_config" >&6; }
13866 else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13869 fi
13870
13871
13872 else
13873 # Extract the first word of "curl-config", so it can be a program name with args.
13874 set dummy curl-config; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_path__libcurl_config+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 case $_libcurl_config in
13881 [\\/]* | ?:[\\/]*)
13882 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
13883 ;;
13884 *)
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 ;;
13901 esac
13902 fi
13903 _libcurl_config=$ac_cv_path__libcurl_config
13904 if test -n "$_libcurl_config"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
13906 $as_echo "$_libcurl_config" >&6; }
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911
13912
13913 fi
13914
13915 if test x$_libcurl_config != "x" ; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
13917 $as_echo_n "checking for the version of libcurl... " >&6; }
13918 if ${libcurl_cv_lib_curl_version+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
13924 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
13925
13926 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
13927 _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
13928
13929 if test $_libcurl_wanted -gt 0 ; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
13931 $as_echo_n "checking for libcurl >= version ... " >&6; }
13932 if ${libcurl_cv_lib_version_ok+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935
13936 if test $_libcurl_version -ge $_libcurl_wanted ; then
13937 libcurl_cv_lib_version_ok=yes
13938 else
13939 libcurl_cv_lib_version_ok=no
13940 fi
13941
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
13944 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
13945 fi
13946
13947 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
13948 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
13949 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
13950 fi
13951 if test x"$LIBCURL" = "x" ; then
13952 LIBCURL=`$_libcurl_config --libs`
13953
13954 # This is so silly, but Apple actually has a bug in their
13955 # curl-config script. Fixed in Tiger, but there are still
13956 # lots of Panther installs around.
13957 case "${host}" in
13958 powerpc-apple-darwin7*)
13959 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
13960 ;;
13961 esac
13962 fi
13963
13964 # All curl-config scripts support --feature
13965 _libcurl_features=`$_libcurl_config --feature`
13966
13967 # Is it modern enough to have --protocols? (7.12.4)
13968 if test $_libcurl_version -ge 461828 ; then
13969 _libcurl_protocols=`$_libcurl_config --protocols`
13970 fi
13971 else
13972 _libcurl_try_link=no
13973 fi
13974
13975 unset _libcurl_wanted
13976 fi
13977
13978 if test $_libcurl_try_link = yes ; then
13979
13980 # we didn't find curl-config, so let's see if the user-supplied
13981 # link line (or failing that, "-lcurl") is enough.
13982 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
13983
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
13985 $as_echo_n "checking whether libcurl is usable... " >&6; }
13986 if ${libcurl_cv_lib_curl_usable+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989
13990 _libcurl_save_cppflags=$CPPFLAGS
13991 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
13992 _libcurl_save_libs=$LIBS
13993 LIBS="$LIBCURL $LIBS"
13994
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <curl/curl.h>
13998 int
13999 main ()
14000 {
14001
14002 /* Try and use a few common options to force a failure if we are
14003 missing symbols or can't link. */
14004 int x;
14005 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
14006 x=CURL_ERROR_SIZE;
14007 x=CURLOPT_WRITEFUNCTION;
14008 x=CURLOPT_FILE;
14009 x=CURLOPT_ERRORBUFFER;
14010 x=CURLOPT_STDERR;
14011 x=CURLOPT_VERBOSE;
14012 if (x) ;
14013
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 libcurl_cv_lib_curl_usable=yes
14020 else
14021 libcurl_cv_lib_curl_usable=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025
14026 CPPFLAGS=$_libcurl_save_cppflags
14027 LIBS=$_libcurl_save_libs
14028 unset _libcurl_save_cppflags
14029 unset _libcurl_save_libs
14030
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
14033 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
14034
14035 if test $libcurl_cv_lib_curl_usable = yes ; then
14036
14037 # Does curl_free() exist in this version of libcurl?
14038 # If not, fake it with free()
14039
14040 _libcurl_save_cppflags=$CPPFLAGS
14041 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
14042 _libcurl_save_libs=$LIBS
14043 LIBS="$LIBS $LIBCURL"
14044
14045 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
14046 if test "x$ac_cv_func_curl_free" = xyes; then :
14047
14048 else
14049
14050 $as_echo "#define curl_free free" >>confdefs.h
14051
14052 fi
14053
14054
14055 CPPFLAGS=$_libcurl_save_cppflags
14056 LIBS=$_libcurl_save_libs
14057 unset _libcurl_save_cppflags
14058 unset _libcurl_save_libs
14059
14060
14061 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
14062
14063
14064
14065
14066 for _libcurl_feature in $_libcurl_features ; do
14067 cat >>confdefs.h <<_ACEOF
14068 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
14069 _ACEOF
14070
14071 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
14072 done
14073
14074 if test "x$_libcurl_protocols" = "x" ; then
14075
14076 # We don't have --protocols, so just assume that all
14077 # protocols are available
14078 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
14079
14080 if test x$libcurl_feature_SSL = xyes ; then
14081 _libcurl_protocols="$_libcurl_protocols HTTPS"
14082
14083 # FTPS wasn't standards-compliant until version
14084 # 7.11.0 (0x070b00 == 461568)
14085 if test $_libcurl_version -ge 461568; then
14086 _libcurl_protocols="$_libcurl_protocols FTPS"
14087 fi
14088 fi
14089
14090 # RTSP, IMAP, POP3 and SMTP were added in
14091 # 7.20.0 (0x071400 == 463872)
14092 if test $_libcurl_version -ge 463872; then
14093 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
14094 fi
14095 fi
14096
14097 for _libcurl_protocol in $_libcurl_protocols ; do
14098 cat >>confdefs.h <<_ACEOF
14099 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
14100 _ACEOF
14101
14102 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
14103 done
14104 else
14105 unset LIBCURL
14106 unset LIBCURL_CPPFLAGS
14107 fi
14108 fi
14109
14110 unset _libcurl_try_link
14111 unset _libcurl_version_parse
14112 unset _libcurl_config
14113 unset _libcurl_feature
14114 unset _libcurl_features
14115 unset _libcurl_protocol
14116 unset _libcurl_protocols
14117 unset _libcurl_version
14118 unset _libcurl_ldflags
14119 fi
14120
14121 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
14122 # This is the IF-NO path
14123 as_fn_error $? "libcurl development files required" "$LINENO" 5
14124 else
14125 # This is the IF-YES path
14126 :
14127 fi
14128
14129 unset _libcurl_with
14130
14131
14132 # Checks for libpcre
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
14134 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
14135 if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lpcre $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char pcre_compile ();
14150 int
14151 main ()
14152 {
14153 return pcre_compile ();
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_pcre_pcre_compile=yes
14160 else
14161 ac_cv_lib_pcre_pcre_compile=no
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS=$ac_check_lib_save_LIBS
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
14168 $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
14169 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define HAVE_LIBPCRE 1
14172 _ACEOF
14173
14174 LIBS="-lpcre $LIBS"
14175
14176 else
14177 as_fn_error $? "libpcre required" "$LINENO" 5
14178 fi
14179
14180
14181 # Checks for header files.
14182 for ac_header in netdb.h stddef.h sys/socket.h unistd.h
14183 do :
14184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14185 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14187 cat >>confdefs.h <<_ACEOF
14188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14189 _ACEOF
14190
14191 fi
14192
14193 done
14194
14195
14196 # Checks for typedefs, structures, and compiler characteristics.
14197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14198 if test "x$ac_cv_type_size_t" = xyes; then :
14199
14200 else
14201
14202 cat >>confdefs.h <<_ACEOF
14203 #define size_t unsigned int
14204 _ACEOF
14205
14206 fi
14207
14208
14209 # Checks for library functions.
14210 for ac_func in gethostbyname memset socket strcasecmp strchr strncasecmp strstr
14211 do :
14212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14215 cat >>confdefs.h <<_ACEOF
14216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14217 _ACEOF
14218
14219 fi
14220 done
14221
14222
14223 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
14224
14225 cat >confcache <<\_ACEOF
14226 # This file is a shell script that caches the results of configure
14227 # tests run on this system so they can be shared between configure
14228 # scripts and configure runs, see configure's option --config-cache.
14229 # It is not useful on other systems. If it contains results you don't
14230 # want to keep, you may remove or edit it.
14231 #
14232 # config.status only pays attention to the cache file if you give it
14233 # the --recheck option to rerun configure.
14234 #
14235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14237 # following values.
14238
14239 _ACEOF
14240
14241 # The following way of writing the cache mishandles newlines in values,
14242 # but we know of no workaround that is simple, portable, and efficient.
14243 # So, we kill variables containing newlines.
14244 # Ultrix sh set writes to stderr and can't be redirected directly,
14245 # and sets the high bit in the cache file unless we assign to the vars.
14246 (
14247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14248 eval ac_val=\$$ac_var
14249 case $ac_val in #(
14250 *${as_nl}*)
14251 case $ac_var in #(
14252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14254 esac
14255 case $ac_var in #(
14256 _ | IFS | as_nl) ;; #(
14257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14258 *) { eval $ac_var=; unset $ac_var;} ;;
14259 esac ;;
14260 esac
14261 done
14262
14263 (set) 2>&1 |
14264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14265 *${as_nl}ac_space=\ *)
14266 # `set' does not quote correctly, so add quotes: double-quote
14267 # substitution turns \\\\ into \\, and sed turns \\ into \.
14268 sed -n \
14269 "s/'/'\\\\''/g;
14270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14271 ;; #(
14272 *)
14273 # `set' quotes correctly as required by POSIX, so do not add quotes.
14274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14275 ;;
14276 esac |
14277 sort
14278 ) |
14279 sed '
14280 /^ac_cv_env_/b end
14281 t clear
14282 :clear
14283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14284 t end
14285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14286 :end' >>confcache
14287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14288 if test -w "$cache_file"; then
14289 if test "x$cache_file" != "x/dev/null"; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14291 $as_echo "$as_me: updating cache $cache_file" >&6;}
14292 if test ! -f "$cache_file" || test -h "$cache_file"; then
14293 cat confcache >"$cache_file"
14294 else
14295 case $cache_file in #(
14296 */* | ?:*)
14297 mv -f confcache "$cache_file"$$ &&
14298 mv -f "$cache_file"$$ "$cache_file" ;; #(
14299 *)
14300 mv -f confcache "$cache_file" ;;
14301 esac
14302 fi
14303 fi
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14306 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14307 fi
14308 fi
14309 rm -f confcache
14310
14311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14312 # Let make expand exec_prefix.
14313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14314
14315 DEFS=-DHAVE_CONFIG_H
14316
14317 ac_libobjs=
14318 ac_ltlibobjs=
14319 U=
14320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14321 # 1. Remove the extension, and $U if already installed.
14322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14325 # will be set to the directory where LIBOBJS objects are built.
14326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14328 done
14329 LIBOBJS=$ac_libobjs
14330
14331 LTLIBOBJS=$ac_ltlibobjs
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14335 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14336 if test -n "$am_sleep_pid"; then
14337 # Hide warnings about reused PIDs.
14338 wait $am_sleep_pid 2>/dev/null
14339 fi
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14341 $as_echo "done" >&6; }
14342 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14343 as_fn_error $? "conditional \"AMDEP\" was never defined.
14344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14345 fi
14346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14347 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14349 fi
14350 if test -n "$EXEEXT"; then
14351 am__EXEEXT_TRUE=
14352 am__EXEEXT_FALSE='#'
14353 else
14354 am__EXEEXT_TRUE='#'
14355 am__EXEEXT_FALSE=
14356 fi
14357
14358 if test -z "${CHECK_TRUE}" && test -z "${CHECK_FALSE}"; then
14359 as_fn_error $? "conditional \"CHECK\" was never defined.
14360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14361 fi
14362
14363 : "${CONFIG_STATUS=./config.status}"
14364 ac_write_fail=0
14365 ac_clean_files_save=$ac_clean_files
14366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14368 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14369 as_write_fail=0
14370 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14371 #! $SHELL
14372 # Generated by $as_me.
14373 # Run this file to recreate the current configuration.
14374 # Compiler output produced by configure, useful for debugging
14375 # configure, is in config.log if it exists.
14376
14377 debug=false
14378 ac_cs_recheck=false
14379 ac_cs_silent=false
14380
14381 SHELL=\${CONFIG_SHELL-$SHELL}
14382 export SHELL
14383 _ASEOF
14384 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14385 ## -------------------- ##
14386 ## M4sh Initialization. ##
14387 ## -------------------- ##
14388
14389 # Be more Bourne compatible
14390 DUALCASE=1; export DUALCASE # for MKS sh
14391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14392 emulate sh
14393 NULLCMD=:
14394 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14395 # is contrary to our usage. Disable this feature.
14396 alias -g '${1+"$@"}'='"$@"'
14397 setopt NO_GLOB_SUBST
14398 else
14399 case `(set -o) 2>/dev/null` in #(
14400 *posix*) :
14401 set -o posix ;; #(
14402 *) :
14403 ;;
14404 esac
14405 fi
14406
14407
14408 as_nl='
14409 '
14410 export as_nl
14411 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14412 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14414 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14415 # Prefer a ksh shell builtin over an external printf program on Solaris,
14416 # but without wasting forks for bash or zsh.
14417 if test -z "$BASH_VERSION$ZSH_VERSION" \
14418 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14419 as_echo='print -r --'
14420 as_echo_n='print -rn --'
14421 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14422 as_echo='printf %s\n'
14423 as_echo_n='printf %s'
14424 else
14425 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14426 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14427 as_echo_n='/usr/ucb/echo -n'
14428 else
14429 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14430 as_echo_n_body='eval
14431 arg=$1;
14432 case $arg in #(
14433 *"$as_nl"*)
14434 expr "X$arg" : "X\\(.*\\)$as_nl";
14435 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14436 esac;
14437 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14438 '
14439 export as_echo_n_body
14440 as_echo_n='sh -c $as_echo_n_body as_echo'
14441 fi
14442 export as_echo_body
14443 as_echo='sh -c $as_echo_body as_echo'
14444 fi
14445
14446 # The user is always right.
14447 if test "${PATH_SEPARATOR+set}" != set; then
14448 PATH_SEPARATOR=:
14449 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14450 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14451 PATH_SEPARATOR=';'
14452 }
14453 fi
14454
14455
14456 # IFS
14457 # We need space, tab and new line, in precisely that order. Quoting is
14458 # there to prevent editors from complaining about space-tab.
14459 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14460 # splitting by setting IFS to empty value.)
14461 IFS=" "" $as_nl"
14462
14463 # Find who we are. Look in the path if we contain no directory separator.
14464 as_myself=
14465 case $0 in #((
14466 *[\\/]* ) as_myself=$0 ;;
14467 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14469 do
14470 IFS=$as_save_IFS
14471 test -z "$as_dir" && as_dir=.
14472 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14473 done
14474 IFS=$as_save_IFS
14475
14476 ;;
14477 esac
14478 # We did not find ourselves, most probably we were run as `sh COMMAND'
14479 # in which case we are not to be found in the path.
14480 if test "x$as_myself" = x; then
14481 as_myself=$0
14482 fi
14483 if test ! -f "$as_myself"; then
14484 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14485 exit 1
14486 fi
14487
14488 # Unset variables that we do not need and which cause bugs (e.g. in
14489 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14490 # suppresses any "Segmentation fault" message there. '((' could
14491 # trigger a bug in pdksh 5.2.14.
14492 for as_var in BASH_ENV ENV MAIL MAILPATH
14493 do eval test x\${$as_var+set} = xset \
14494 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14495 done
14496 PS1='$ '
14497 PS2='> '
14498 PS4='+ '
14499
14500 # NLS nuisances.
14501 LC_ALL=C
14502 export LC_ALL
14503 LANGUAGE=C
14504 export LANGUAGE
14505
14506 # CDPATH.
14507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14508
14509
14510 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14511 # ----------------------------------------
14512 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14513 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14514 # script with STATUS, using 1 if that was 0.
14515 as_fn_error ()
14516 {
14517 as_status=$1; test $as_status -eq 0 && as_status=1
14518 if test "$4"; then
14519 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14520 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14521 fi
14522 $as_echo "$as_me: error: $2" >&2
14523 as_fn_exit $as_status
14524 } # as_fn_error
14525
14526
14527 # as_fn_set_status STATUS
14528 # -----------------------
14529 # Set $? to STATUS, without forking.
14530 as_fn_set_status ()
14531 {
14532 return $1
14533 } # as_fn_set_status
14534
14535 # as_fn_exit STATUS
14536 # -----------------
14537 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14538 as_fn_exit ()
14539 {
14540 set +e
14541 as_fn_set_status $1
14542 exit $1
14543 } # as_fn_exit
14544
14545 # as_fn_unset VAR
14546 # ---------------
14547 # Portably unset VAR.
14548 as_fn_unset ()
14549 {
14550 { eval $1=; unset $1;}
14551 }
14552 as_unset=as_fn_unset
14553 # as_fn_append VAR VALUE
14554 # ----------------------
14555 # Append the text in VALUE to the end of the definition contained in VAR. Take
14556 # advantage of any shell optimizations that allow amortized linear growth over
14557 # repeated appends, instead of the typical quadratic growth present in naive
14558 # implementations.
14559 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14560 eval 'as_fn_append ()
14561 {
14562 eval $1+=\$2
14563 }'
14564 else
14565 as_fn_append ()
14566 {
14567 eval $1=\$$1\$2
14568 }
14569 fi # as_fn_append
14570
14571 # as_fn_arith ARG...
14572 # ------------------
14573 # Perform arithmetic evaluation on the ARGs, and store the result in the
14574 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14575 # must be portable across $(()) and expr.
14576 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14577 eval 'as_fn_arith ()
14578 {
14579 as_val=$(( $* ))
14580 }'
14581 else
14582 as_fn_arith ()
14583 {
14584 as_val=`expr "$@" || test $? -eq 1`
14585 }
14586 fi # as_fn_arith
14587
14588
14589 if expr a : '\(a\)' >/dev/null 2>&1 &&
14590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14591 as_expr=expr
14592 else
14593 as_expr=false
14594 fi
14595
14596 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14597 as_basename=basename
14598 else
14599 as_basename=false
14600 fi
14601
14602 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14603 as_dirname=dirname
14604 else
14605 as_dirname=false
14606 fi
14607
14608 as_me=`$as_basename -- "$0" ||
14609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14610 X"$0" : 'X\(//\)$' \| \
14611 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14612 $as_echo X/"$0" |
14613 sed '/^.*\/\([^/][^/]*\)\/*$/{
14614 s//\1/
14615 q
14616 }
14617 /^X\/\(\/\/\)$/{
14618 s//\1/
14619 q
14620 }
14621 /^X\/\(\/\).*/{
14622 s//\1/
14623 q
14624 }
14625 s/.*/./; q'`
14626
14627 # Avoid depending upon Character Ranges.
14628 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14629 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14630 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14631 as_cr_digits='0123456789'
14632 as_cr_alnum=$as_cr_Letters$as_cr_digits
14633
14634 ECHO_C= ECHO_N= ECHO_T=
14635 case `echo -n x` in #(((((
14636 -n*)
14637 case `echo 'xy\c'` in
14638 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14639 xy) ECHO_C='\c';;
14640 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14641 ECHO_T=' ';;
14642 esac;;
14643 *)
14644 ECHO_N='-n';;
14645 esac
14646
14647 rm -f conf$$ conf$$.exe conf$$.file
14648 if test -d conf$$.dir; then
14649 rm -f conf$$.dir/conf$$.file
14650 else
14651 rm -f conf$$.dir
14652 mkdir conf$$.dir 2>/dev/null
14653 fi
14654 if (echo >conf$$.file) 2>/dev/null; then
14655 if ln -s conf$$.file conf$$ 2>/dev/null; then
14656 as_ln_s='ln -s'
14657 # ... but there are two gotchas:
14658 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14659 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14660 # In both cases, we have to default to `cp -pR'.
14661 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14662 as_ln_s='cp -pR'
14663 elif ln conf$$.file conf$$ 2>/dev/null; then
14664 as_ln_s=ln
14665 else
14666 as_ln_s='cp -pR'
14667 fi
14668 else
14669 as_ln_s='cp -pR'
14670 fi
14671 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14672 rmdir conf$$.dir 2>/dev/null
14673
14674
14675 # as_fn_mkdir_p
14676 # -------------
14677 # Create "$as_dir" as a directory, including parents if necessary.
14678 as_fn_mkdir_p ()
14679 {
14680
14681 case $as_dir in #(
14682 -*) as_dir=./$as_dir;;
14683 esac
14684 test -d "$as_dir" || eval $as_mkdir_p || {
14685 as_dirs=
14686 while :; do
14687 case $as_dir in #(
14688 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14689 *) as_qdir=$as_dir;;
14690 esac
14691 as_dirs="'$as_qdir' $as_dirs"
14692 as_dir=`$as_dirname -- "$as_dir" ||
14693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694 X"$as_dir" : 'X\(//\)[^/]' \| \
14695 X"$as_dir" : 'X\(//\)$' \| \
14696 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14697 $as_echo X"$as_dir" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699 s//\1/
14700 q
14701 }
14702 /^X\(\/\/\)[^/].*/{
14703 s//\1/
14704 q
14705 }
14706 /^X\(\/\/\)$/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\).*/{
14711 s//\1/
14712 q
14713 }
14714 s/.*/./; q'`
14715 test -d "$as_dir" && break
14716 done
14717 test -z "$as_dirs" || eval "mkdir $as_dirs"
14718 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14719
14720
14721 } # as_fn_mkdir_p
14722 if mkdir -p . 2>/dev/null; then
14723 as_mkdir_p='mkdir -p "$as_dir"'
14724 else
14725 test -d ./-p && rmdir ./-p
14726 as_mkdir_p=false
14727 fi
14728
14729
14730 # as_fn_executable_p FILE
14731 # -----------------------
14732 # Test if FILE is an executable regular file.
14733 as_fn_executable_p ()
14734 {
14735 test -f "$1" && test -x "$1"
14736 } # as_fn_executable_p
14737 as_test_x='test -x'
14738 as_executable_p=as_fn_executable_p
14739
14740 # Sed expression to map a string onto a valid CPP name.
14741 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14742
14743 # Sed expression to map a string onto a valid variable name.
14744 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14745
14746
14747 exec 6>&1
14748 ## ----------------------------------- ##
14749 ## Main body of $CONFIG_STATUS script. ##
14750 ## ----------------------------------- ##
14751 _ASEOF
14752 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14753
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755 # Save the log message, to keep $0 and so on meaningful, and to
14756 # report actual input values of CONFIG_FILES etc. instead of their
14757 # values after options handling.
14758 ac_log="
14759 This file was extended by mod_auth_cas $as_me 1.2, which was
14760 generated by GNU Autoconf 2.69. Invocation command line was
14761
14762 CONFIG_FILES = $CONFIG_FILES
14763 CONFIG_HEADERS = $CONFIG_HEADERS
14764 CONFIG_LINKS = $CONFIG_LINKS
14765 CONFIG_COMMANDS = $CONFIG_COMMANDS
14766 $ $0 $@
14767
14768 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14769 "
14770
14771 _ACEOF
14772
14773 case $ac_config_files in *"
14774 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14775 esac
14776
14777 case $ac_config_headers in *"
14778 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14779 esac
14780
14781
14782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14783 # Files that config.status was made for.
14784 config_files="$ac_config_files"
14785 config_headers="$ac_config_headers"
14786 config_commands="$ac_config_commands"
14787
14788 _ACEOF
14789
14790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14791 ac_cs_usage="\
14792 \`$as_me' instantiates files and other configuration actions
14793 from templates according to the current configuration. Unless the files
14794 and actions are specified as TAGs, all are instantiated by default.
14795
14796 Usage: $0 [OPTION]... [TAG]...
14797
14798 -h, --help print this help, then exit
14799 -V, --version print version number and configuration settings, then exit
14800 --config print configuration, then exit
14801 -q, --quiet, --silent
14802 do not print progress messages
14803 -d, --debug don't remove temporary files
14804 --recheck update $as_me by reconfiguring in the same conditions
14805 --file=FILE[:TEMPLATE]
14806 instantiate the configuration file FILE
14807 --header=FILE[:TEMPLATE]
14808 instantiate the configuration header FILE
14809
14810 Configuration files:
14811 $config_files
14812
14813 Configuration headers:
14814 $config_headers
14815
14816 Configuration commands:
14817 $config_commands
14818
14819 Report bugs to <[email protected]>."
14820
14821 _ACEOF
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14824 ac_cs_version="\\
14825 mod_auth_cas config.status 1.2
14826 configured by $0, generated by GNU Autoconf 2.69,
14827 with options \\"\$ac_cs_config\\"
14828
14829 Copyright (C) 2012 Free Software Foundation, Inc.
14830 This config.status script is free software; the Free Software Foundation
14831 gives unlimited permission to copy, distribute and modify it."
14832
14833 ac_pwd='$ac_pwd'
14834 srcdir='$srcdir'
14835 INSTALL='$INSTALL'
14836 MKDIR_P='$MKDIR_P'
14837 AWK='$AWK'
14838 test -n "\$AWK" || AWK=awk
14839 _ACEOF
14840
14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842 # The default lists apply if the user does not specify any file.
14843 ac_need_defaults=:
14844 while test $# != 0
14845 do
14846 case $1 in
14847 --*=?*)
14848 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14849 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14850 ac_shift=:
14851 ;;
14852 --*=)
14853 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14854 ac_optarg=
14855 ac_shift=:
14856 ;;
14857 *)
14858 ac_option=$1
14859 ac_optarg=$2
14860 ac_shift=shift
14861 ;;
14862 esac
14863
14864 case $ac_option in
14865 # Handling of the options.
14866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14867 ac_cs_recheck=: ;;
14868 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14869 $as_echo "$ac_cs_version"; exit ;;
14870 --config | --confi | --conf | --con | --co | --c )
14871 $as_echo "$ac_cs_config"; exit ;;
14872 --debug | --debu | --deb | --de | --d | -d )
14873 debug=: ;;
14874 --file | --fil | --fi | --f )
14875 $ac_shift
14876 case $ac_optarg in
14877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14878 '') as_fn_error $? "missing file argument" ;;
14879 esac
14880 as_fn_append CONFIG_FILES " '$ac_optarg'"
14881 ac_need_defaults=false;;
14882 --header | --heade | --head | --hea )
14883 $ac_shift
14884 case $ac_optarg in
14885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14886 esac
14887 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14888 ac_need_defaults=false;;
14889 --he | --h)
14890 # Conflict between --help and --header
14891 as_fn_error $? "ambiguous option: \`$1'
14892 Try \`$0 --help' for more information.";;
14893 --help | --hel | -h )
14894 $as_echo "$ac_cs_usage"; exit ;;
14895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14897 ac_cs_silent=: ;;
14898
14899 # This is an error.
14900 -*) as_fn_error $? "unrecognized option: \`$1'
14901 Try \`$0 --help' for more information." ;;
14902
14903 *) as_fn_append ac_config_targets " $1"
14904 ac_need_defaults=false ;;
14905
14906 esac
14907 shift
14908 done
14909
14910 ac_configure_extra_args=
14911
14912 if $ac_cs_silent; then
14913 exec 6>/dev/null
14914 ac_configure_extra_args="$ac_configure_extra_args --silent"
14915 fi
14916
14917 _ACEOF
14918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14919 if \$ac_cs_recheck; then
14920 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14921 shift
14922 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14923 CONFIG_SHELL='$SHELL'
14924 export CONFIG_SHELL
14925 exec "\$@"
14926 fi
14927
14928 _ACEOF
14929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14930 exec 5>>config.log
14931 {
14932 echo
14933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14934 ## Running $as_me. ##
14935 _ASBOX
14936 $as_echo "$ac_log"
14937 } >&5
14938
14939 _ACEOF
14940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14941 #
14942 # INIT-COMMANDS
14943 #
14944 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14945
14946
14947 # The HP-UX ksh and POSIX shell print the target directory to stdout
14948 # if CDPATH is set.
14949 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14950
14951 sed_quote_subst='$sed_quote_subst'
14952 double_quote_subst='$double_quote_subst'
14953 delay_variable_subst='$delay_variable_subst'
14954 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14955 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14956 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14957 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14958 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14959 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14960 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14961 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14962 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14963 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14964 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14965 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14966 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14967 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14968 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14969 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14970 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14971 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14972 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14973 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14974 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14975 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14976 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14977 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14978 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14979 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14980 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14981 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14982 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14983 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14984 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14985 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14986 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14987 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14988 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14989 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14990 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14991 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14992 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14993 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14994 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14995 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14996 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14997 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14998 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14999 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15000 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15001 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15002 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15003 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15004 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15005 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15006 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15007 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15008 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15009 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15010 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15011 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15012 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"`'
15013 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15014 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15015 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15016 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15017 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15018 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15019 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15020 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15021 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15022 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15023 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15024 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15025 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15026 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15027 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15028 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15029 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15030 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15031 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15032 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15033 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15034 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15035 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15036 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15037 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15038 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15039 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15040 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15041 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15042 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15043 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15044 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15045 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15046 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15047 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15048 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15049 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15050 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15051 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15052 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15053 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15054 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15055 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15056 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15057 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15058 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15059 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15060 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15061 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15062 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15063 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15064 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15065 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15066 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15067 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15068 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15069 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15070 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15071 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15072 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15073 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15074 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15075 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15076 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15077 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15078 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15079 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15080 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15081 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15082 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15083 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15084 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15085 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15086 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15087 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15088 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15089
15090 LTCC='$LTCC'
15091 LTCFLAGS='$LTCFLAGS'
15092 compiler='$compiler_DEFAULT'
15093
15094 # A function that is used when there is no print builtin or printf.
15095 func_fallback_echo ()
15096 {
15097 eval 'cat <<_LTECHO_EOF
15098 \$1
15099 _LTECHO_EOF'
15100 }
15101
15102 # Quote evaled strings.
15103 for var in SHELL \
15104 ECHO \
15105 PATH_SEPARATOR \
15106 SED \
15107 GREP \
15108 EGREP \
15109 FGREP \
15110 LD \
15111 NM \
15112 LN_S \
15113 lt_SP2NL \
15114 lt_NL2SP \
15115 reload_flag \
15116 OBJDUMP \
15117 deplibs_check_method \
15118 file_magic_cmd \
15119 file_magic_glob \
15120 want_nocaseglob \
15121 DLLTOOL \
15122 sharedlib_from_linklib_cmd \
15123 AR \
15124 AR_FLAGS \
15125 archiver_list_spec \
15126 STRIP \
15127 RANLIB \
15128 CC \
15129 CFLAGS \
15130 compiler \
15131 lt_cv_sys_global_symbol_pipe \
15132 lt_cv_sys_global_symbol_to_cdecl \
15133 lt_cv_sys_global_symbol_to_import \
15134 lt_cv_sys_global_symbol_to_c_name_address \
15135 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15136 lt_cv_nm_interface \
15137 nm_file_list_spec \
15138 lt_cv_truncate_bin \
15139 lt_prog_compiler_no_builtin_flag \
15140 lt_prog_compiler_pic \
15141 lt_prog_compiler_wl \
15142 lt_prog_compiler_static \
15143 lt_cv_prog_compiler_c_o \
15144 need_locks \
15145 MANIFEST_TOOL \
15146 DSYMUTIL \
15147 NMEDIT \
15148 LIPO \
15149 OTOOL \
15150 OTOOL64 \
15151 shrext_cmds \
15152 export_dynamic_flag_spec \
15153 whole_archive_flag_spec \
15154 compiler_needs_object \
15155 with_gnu_ld \
15156 allow_undefined_flag \
15157 no_undefined_flag \
15158 hardcode_libdir_flag_spec \
15159 hardcode_libdir_separator \
15160 exclude_expsyms \
15161 include_expsyms \
15162 file_list_spec \
15163 variables_saved_for_relink \
15164 libname_spec \
15165 library_names_spec \
15166 soname_spec \
15167 install_override_mode \
15168 finish_eval \
15169 old_striplib \
15170 striplib; do
15171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15172 *[\\\\\\\`\\"\\\$]*)
15173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15174 ;;
15175 *)
15176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15177 ;;
15178 esac
15179 done
15180
15181 # Double-quote double-evaled strings.
15182 for var in reload_cmds \
15183 old_postinstall_cmds \
15184 old_postuninstall_cmds \
15185 old_archive_cmds \
15186 extract_expsyms_cmds \
15187 old_archive_from_new_cmds \
15188 old_archive_from_expsyms_cmds \
15189 archive_cmds \
15190 archive_expsym_cmds \
15191 module_cmds \
15192 module_expsym_cmds \
15193 export_symbols_cmds \
15194 prelink_cmds \
15195 postlink_cmds \
15196 postinstall_cmds \
15197 postuninstall_cmds \
15198 finish_cmds \
15199 sys_lib_search_path_spec \
15200 configure_time_dlsearch_path \
15201 configure_time_lt_sys_library_path; do
15202 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15203 *[\\\\\\\`\\"\\\$]*)
15204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15205 ;;
15206 *)
15207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15208 ;;
15209 esac
15210 done
15211
15212 ac_aux_dir='$ac_aux_dir'
15213
15214 # See if we are running on zsh, and set the options that allow our
15215 # commands through without removal of \ escapes INIT.
15216 if test -n "\${ZSH_VERSION+set}"; then
15217 setopt NO_GLOB_SUBST
15218 fi
15219
15220
15221 PACKAGE='$PACKAGE'
15222 VERSION='$VERSION'
15223 RM='$RM'
15224 ofile='$ofile'
15225
15226
15227
15228
15229 _ACEOF
15230
15231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232
15233 # Handling of arguments.
15234 for ac_config_target in $ac_config_targets
15235 do
15236 case $ac_config_target in
15237 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15238 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15239 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15240 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15241 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15242 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15243
15244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15245 esac
15246 done
15247
15248
15249 # If the user did not use the arguments to specify the items to instantiate,
15250 # then the envvar interface is used. Set only those that are not.
15251 # We use the long form for the default assignment because of an extremely
15252 # bizarre bug on SunOS 4.1.3.
15253 if $ac_need_defaults; then
15254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15257 fi
15258
15259 # Have a temporary directory for convenience. Make it in the build tree
15260 # simply because there is no reason against having it here, and in addition,
15261 # creating and moving files from /tmp can sometimes cause problems.
15262 # Hook for its removal unless debugging.
15263 # Note that there is a small window in which the directory will not be cleaned:
15264 # after its creation but before its name has been assigned to `$tmp'.
15265 $debug ||
15266 {
15267 tmp= ac_tmp=
15268 trap 'exit_status=$?
15269 : "${ac_tmp:=$tmp}"
15270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15271 ' 0
15272 trap 'as_fn_exit 1' 1 2 13 15
15273 }
15274 # Create a (secure) tmp directory for tmp files.
15275
15276 {
15277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15278 test -d "$tmp"
15279 } ||
15280 {
15281 tmp=./conf$$-$RANDOM
15282 (umask 077 && mkdir "$tmp")
15283 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15284 ac_tmp=$tmp
15285
15286 # Set up the scripts for CONFIG_FILES section.
15287 # No need to generate them if there are no CONFIG_FILES.
15288 # This happens for instance with `./config.status config.h'.
15289 if test -n "$CONFIG_FILES"; then
15290
15291
15292 ac_cr=`echo X | tr X '\015'`
15293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15294 # But we know of no other shell where ac_cr would be empty at this
15295 # point, so we can use a bashism as a fallback.
15296 if test "x$ac_cr" = x; then
15297 eval ac_cr=\$\'\\r\'
15298 fi
15299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15301 ac_cs_awk_cr='\\r'
15302 else
15303 ac_cs_awk_cr=$ac_cr
15304 fi
15305
15306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15307 _ACEOF
15308
15309
15310 {
15311 echo "cat >conf$$subs.awk <<_ACEOF" &&
15312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15313 echo "_ACEOF"
15314 } >conf$$subs.sh ||
15315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15317 ac_delim='%!_!# '
15318 for ac_last_try in false false false false false :; do
15319 . ./conf$$subs.sh ||
15320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15321
15322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15323 if test $ac_delim_n = $ac_delim_num; then
15324 break
15325 elif $ac_last_try; then
15326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15327 else
15328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15329 fi
15330 done
15331 rm -f conf$$subs.sh
15332
15333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15335 _ACEOF
15336 sed -n '
15337 h
15338 s/^/S["/; s/!.*/"]=/
15339 p
15340 g
15341 s/^[^!]*!//
15342 :repl
15343 t repl
15344 s/'"$ac_delim"'$//
15345 t delim
15346 :nl
15347 h
15348 s/\(.\{148\}\)..*/\1/
15349 t more1
15350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15351 p
15352 n
15353 b repl
15354 :more1
15355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356 p
15357 g
15358 s/.\{148\}//
15359 t nl
15360 :delim
15361 h
15362 s/\(.\{148\}\)..*/\1/
15363 t more2
15364 s/["\\]/\\&/g; s/^/"/; s/$/"/
15365 p
15366 b
15367 :more2
15368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15369 p
15370 g
15371 s/.\{148\}//
15372 t delim
15373 ' <conf$$subs.awk | sed '
15374 /^[^""]/{
15375 N
15376 s/\n//
15377 }
15378 ' >>$CONFIG_STATUS || ac_write_fail=1
15379 rm -f conf$$subs.awk
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 _ACAWK
15382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15383 for (key in S) S_is_set[key] = 1
15384 FS = ""
15385
15386 }
15387 {
15388 line = $ 0
15389 nfields = split(line, field, "@")
15390 substed = 0
15391 len = length(field[1])
15392 for (i = 2; i < nfields; i++) {
15393 key = field[i]
15394 keylen = length(key)
15395 if (S_is_set[key]) {
15396 value = S[key]
15397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15398 len += length(value) + length(field[++i])
15399 substed = 1
15400 } else
15401 len += 1 + keylen
15402 }
15403
15404 print line
15405 }
15406
15407 _ACAWK
15408 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15412 else
15413 cat
15414 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15416 _ACEOF
15417
15418 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15419 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15420 # trailing colons and then remove the whole line if VPATH becomes empty
15421 # (actually we leave an empty line to preserve line numbers).
15422 if test "x$srcdir" = x.; then
15423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15424 h
15425 s///
15426 s/^/:/
15427 s/[ ]*$/:/
15428 s/:\$(srcdir):/:/g
15429 s/:\${srcdir}:/:/g
15430 s/:@srcdir@:/:/g
15431 s/^:*//
15432 s/:*$//
15433 x
15434 s/\(=[ ]*\).*/\1/
15435 G
15436 s/\n//
15437 s/^[^=]*=[ ]*$//
15438 }'
15439 fi
15440
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 fi # test -n "$CONFIG_FILES"
15443
15444 # Set up the scripts for CONFIG_HEADERS section.
15445 # No need to generate them if there are no CONFIG_HEADERS.
15446 # This happens for instance with `./config.status Makefile'.
15447 if test -n "$CONFIG_HEADERS"; then
15448 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15449 BEGIN {
15450 _ACEOF
15451
15452 # Transform confdefs.h into an awk script `defines.awk', embedded as
15453 # here-document in config.status, that substitutes the proper values into
15454 # config.h.in to produce config.h.
15455
15456 # Create a delimiter string that does not exist in confdefs.h, to ease
15457 # handling of long lines.
15458 ac_delim='%!_!# '
15459 for ac_last_try in false false :; do
15460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15461 if test -z "$ac_tt"; then
15462 break
15463 elif $ac_last_try; then
15464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15465 else
15466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15467 fi
15468 done
15469
15470 # For the awk script, D is an array of macro values keyed by name,
15471 # likewise P contains macro parameters if any. Preserve backslash
15472 # newline sequences.
15473
15474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15475 sed -n '
15476 s/.\{148\}/&'"$ac_delim"'/g
15477 t rset
15478 :rset
15479 s/^[ ]*#[ ]*define[ ][ ]*/ /
15480 t def
15481 d
15482 :def
15483 s/\\$//
15484 t bsnl
15485 s/["\\]/\\&/g
15486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15487 D["\1"]=" \3"/p
15488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15489 d
15490 :bsnl
15491 s/["\\]/\\&/g
15492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15493 D["\1"]=" \3\\\\\\n"\\/p
15494 t cont
15495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15496 t cont
15497 d
15498 :cont
15499 n
15500 s/.\{148\}/&'"$ac_delim"'/g
15501 t clear
15502 :clear
15503 s/\\$//
15504 t bsnlc
15505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15506 d
15507 :bsnlc
15508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15509 b cont
15510 ' <confdefs.h | sed '
15511 s/'"$ac_delim"'/"\\\
15512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15513
15514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15515 for (key in D) D_is_set[key] = 1
15516 FS = ""
15517 }
15518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15519 line = \$ 0
15520 split(line, arg, " ")
15521 if (arg[1] == "#") {
15522 defundef = arg[2]
15523 mac1 = arg[3]
15524 } else {
15525 defundef = substr(arg[1], 2)
15526 mac1 = arg[2]
15527 }
15528 split(mac1, mac2, "(") #)
15529 macro = mac2[1]
15530 prefix = substr(line, 1, index(line, defundef) - 1)
15531 if (D_is_set[macro]) {
15532 # Preserve the white space surrounding the "#".
15533 print prefix "define", macro P[macro] D[macro]
15534 next
15535 } else {
15536 # Replace #undef with comments. This is necessary, for example,
15537 # in the case of _POSIX_SOURCE, which is predefined and required
15538 # on some systems where configure will not decide to define it.
15539 if (defundef == "undef") {
15540 print "/*", prefix defundef, macro, "*/"
15541 next
15542 }
15543 }
15544 }
15545 { print }
15546 _ACAWK
15547 _ACEOF
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15550 fi # test -n "$CONFIG_HEADERS"
15551
15552
15553 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15554 shift
15555 for ac_tag
15556 do
15557 case $ac_tag in
15558 :[FHLC]) ac_mode=$ac_tag; continue;;
15559 esac
15560 case $ac_mode$ac_tag in
15561 :[FHL]*:*);;
15562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15563 :[FH]-) ac_tag=-:-;;
15564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15565 esac
15566 ac_save_IFS=$IFS
15567 IFS=:
15568 set x $ac_tag
15569 IFS=$ac_save_IFS
15570 shift
15571 ac_file=$1
15572 shift
15573
15574 case $ac_mode in
15575 :L) ac_source=$1;;
15576 :[FH])
15577 ac_file_inputs=
15578 for ac_f
15579 do
15580 case $ac_f in
15581 -) ac_f="$ac_tmp/stdin";;
15582 *) # Look for the file first in the build tree, then in the source tree
15583 # (if the path is not absolute). The absolute path cannot be DOS-style,
15584 # because $ac_f cannot contain `:'.
15585 test -f "$ac_f" ||
15586 case $ac_f in
15587 [\\/$]*) false;;
15588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15589 esac ||
15590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15591 esac
15592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15593 as_fn_append ac_file_inputs " '$ac_f'"
15594 done
15595
15596 # Let's still pretend it is `configure' which instantiates (i.e., don't
15597 # use $as_me), people would be surprised to read:
15598 # /* config.h. Generated by config.status. */
15599 configure_input='Generated from '`
15600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15601 `' by configure.'
15602 if test x"$ac_file" != x-; then
15603 configure_input="$ac_file. $configure_input"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15605 $as_echo "$as_me: creating $ac_file" >&6;}
15606 fi
15607 # Neutralize special characters interpreted by sed in replacement strings.
15608 case $configure_input in #(
15609 *\&* | *\|* | *\\* )
15610 ac_sed_conf_input=`$as_echo "$configure_input" |
15611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15612 *) ac_sed_conf_input=$configure_input;;
15613 esac
15614
15615 case $ac_tag in
15616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15618 esac
15619 ;;
15620 esac
15621
15622 ac_dir=`$as_dirname -- "$ac_file" ||
15623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15624 X"$ac_file" : 'X\(//\)[^/]' \| \
15625 X"$ac_file" : 'X\(//\)$' \| \
15626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15627 $as_echo X"$ac_file" |
15628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15629 s//\1/
15630 q
15631 }
15632 /^X\(\/\/\)[^/].*/{
15633 s//\1/
15634 q
15635 }
15636 /^X\(\/\/\)$/{
15637 s//\1/
15638 q
15639 }
15640 /^X\(\/\).*/{
15641 s//\1/
15642 q
15643 }
15644 s/.*/./; q'`
15645 as_dir="$ac_dir"; as_fn_mkdir_p
15646 ac_builddir=.
15647
15648 case "$ac_dir" in
15649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15650 *)
15651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15652 # A ".." for each directory in $ac_dir_suffix.
15653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15654 case $ac_top_builddir_sub in
15655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15657 esac ;;
15658 esac
15659 ac_abs_top_builddir=$ac_pwd
15660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15661 # for backward compatibility:
15662 ac_top_builddir=$ac_top_build_prefix
15663
15664 case $srcdir in
15665 .) # We are building in place.
15666 ac_srcdir=.
15667 ac_top_srcdir=$ac_top_builddir_sub
15668 ac_abs_top_srcdir=$ac_pwd ;;
15669 [\\/]* | ?:[\\/]* ) # Absolute name.
15670 ac_srcdir=$srcdir$ac_dir_suffix;
15671 ac_top_srcdir=$srcdir
15672 ac_abs_top_srcdir=$srcdir ;;
15673 *) # Relative name.
15674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15675 ac_top_srcdir=$ac_top_build_prefix$srcdir
15676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15677 esac
15678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15679
15680
15681 case $ac_mode in
15682 :F)
15683 #
15684 # CONFIG_FILE
15685 #
15686
15687 case $INSTALL in
15688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15690 esac
15691 ac_MKDIR_P=$MKDIR_P
15692 case $MKDIR_P in
15693 [\\/$]* | ?:[\\/]* ) ;;
15694 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15695 esac
15696 _ACEOF
15697
15698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15699 # If the template does not know about datarootdir, expand it.
15700 # FIXME: This hack should be removed a few years after 2.60.
15701 ac_datarootdir_hack=; ac_datarootdir_seen=
15702 ac_sed_dataroot='
15703 /datarootdir/ {
15704 p
15705 q
15706 }
15707 /@datadir@/p
15708 /@docdir@/p
15709 /@infodir@/p
15710 /@localedir@/p
15711 /@mandir@/p'
15712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15713 *datarootdir*) ac_datarootdir_seen=yes;;
15714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15717 _ACEOF
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 ac_datarootdir_hack='
15720 s&@datadir@&$datadir&g
15721 s&@docdir@&$docdir&g
15722 s&@infodir@&$infodir&g
15723 s&@localedir@&$localedir&g
15724 s&@mandir@&$mandir&g
15725 s&\\\${datarootdir}&$datarootdir&g' ;;
15726 esac
15727 _ACEOF
15728
15729 # Neutralize VPATH when `$srcdir' = `.'.
15730 # Shell code in configure.ac might set extrasub.
15731 # FIXME: do we really want to maintain this feature?
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 ac_sed_extra="$ac_vpsub
15734 $extrasub
15735 _ACEOF
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 :t
15738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15739 s|@configure_input@|$ac_sed_conf_input|;t t
15740 s&@top_builddir@&$ac_top_builddir_sub&;t t
15741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15742 s&@srcdir@&$ac_srcdir&;t t
15743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15744 s&@top_srcdir@&$ac_top_srcdir&;t t
15745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15746 s&@builddir@&$ac_builddir&;t t
15747 s&@abs_builddir@&$ac_abs_builddir&;t t
15748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15749 s&@INSTALL@&$ac_INSTALL&;t t
15750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15751 $ac_datarootdir_hack
15752 "
15753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15755
15756 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15761 which seems to be undefined. Please make sure it is defined" >&5
15762 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15763 which seems to be undefined. Please make sure it is defined" >&2;}
15764
15765 rm -f "$ac_tmp/stdin"
15766 case $ac_file in
15767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15769 esac \
15770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15771 ;;
15772 :H)
15773 #
15774 # CONFIG_HEADER
15775 #
15776 if test x"$ac_file" != x-; then
15777 {
15778 $as_echo "/* $configure_input */" \
15779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15780 } >"$ac_tmp/config.h" \
15781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15784 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15785 else
15786 rm -f "$ac_file"
15787 mv "$ac_tmp/config.h" "$ac_file" \
15788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15789 fi
15790 else
15791 $as_echo "/* $configure_input */" \
15792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15793 || as_fn_error $? "could not create -" "$LINENO" 5
15794 fi
15795 # Compute "$ac_file"'s index in $config_headers.
15796 _am_arg="$ac_file"
15797 _am_stamp_count=1
15798 for _am_header in $config_headers :; do
15799 case $_am_header in
15800 $_am_arg | $_am_arg:* )
15801 break ;;
15802 * )
15803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15804 esac
15805 done
15806 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15807 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15808 X"$_am_arg" : 'X\(//\)[^/]' \| \
15809 X"$_am_arg" : 'X\(//\)$' \| \
15810 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15811 $as_echo X"$_am_arg" |
15812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15813 s//\1/
15814 q
15815 }
15816 /^X\(\/\/\)[^/].*/{
15817 s//\1/
15818 q
15819 }
15820 /^X\(\/\/\)$/{
15821 s//\1/
15822 q
15823 }
15824 /^X\(\/\).*/{
15825 s//\1/
15826 q
15827 }
15828 s/.*/./; q'`/stamp-h$_am_stamp_count
15829 ;;
15830
15831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15832 $as_echo "$as_me: executing $ac_file commands" >&6;}
15833 ;;
15834 esac
15835
15836
15837 case $ac_file$ac_mode in
15838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15839 # Older Autoconf quotes --file arguments for eval, but not when files
15840 # are listed without --file. Let's play safe and only enable the eval
15841 # if we detect the quoting.
15842 case $CONFIG_FILES in
15843 *\'*) eval set x "$CONFIG_FILES" ;;
15844 *) set x $CONFIG_FILES ;;
15845 esac
15846 shift
15847 for mf
15848 do
15849 # Strip MF so we end up with the name of the file.
15850 mf=`echo "$mf" | sed -e 's/:.*$//'`
15851 # Check whether this is an Automake generated Makefile or not.
15852 # We used to match only the files named 'Makefile.in', but
15853 # some people rename them; so instead we look at the file content.
15854 # Grep'ing the first line is not enough: some people post-process
15855 # each Makefile.in and add a new line on top of each file to say so.
15856 # Grep'ing the whole file is not good either: AIX grep has a line
15857 # limit of 2048, but all sed's we know have understand at least 4000.
15858 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15859 dirpart=`$as_dirname -- "$mf" ||
15860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15861 X"$mf" : 'X\(//\)[^/]' \| \
15862 X"$mf" : 'X\(//\)$' \| \
15863 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15864 $as_echo X"$mf" |
15865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15866 s//\1/
15867 q
15868 }
15869 /^X\(\/\/\)[^/].*/{
15870 s//\1/
15871 q
15872 }
15873 /^X\(\/\/\)$/{
15874 s//\1/
15875 q
15876 }
15877 /^X\(\/\).*/{
15878 s//\1/
15879 q
15880 }
15881 s/.*/./; q'`
15882 else
15883 continue
15884 fi
15885 # Extract the definition of DEPDIR, am__include, and am__quote
15886 # from the Makefile without running 'make'.
15887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15888 test -z "$DEPDIR" && continue
15889 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15890 test -z "$am__include" && continue
15891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15892 # Find all dependency output files, they are included files with
15893 # $(DEPDIR) in their names. We invoke sed twice because it is the
15894 # simplest approach to changing $(DEPDIR) to its actual value in the
15895 # expansion.
15896 for file in `sed -n "
15897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15899 # Make sure the directory exists.
15900 test -f "$dirpart/$file" && continue
15901 fdir=`$as_dirname -- "$file" ||
15902 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15903 X"$file" : 'X\(//\)[^/]' \| \
15904 X"$file" : 'X\(//\)$' \| \
15905 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15906 $as_echo X"$file" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\(\/\/\)[^/].*/{
15912 s//\1/
15913 q
15914 }
15915 /^X\(\/\/\)$/{
15916 s//\1/
15917 q
15918 }
15919 /^X\(\/\).*/{
15920 s//\1/
15921 q
15922 }
15923 s/.*/./; q'`
15924 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15925 # echo "creating $dirpart/$file"
15926 echo '# dummy' > "$dirpart/$file"
15927 done
15928 done
15929 }
15930 ;;
15931 "libtool":C)
15932
15933 # See if we are running on zsh, and set the options that allow our
15934 # commands through without removal of \ escapes.
15935 if test -n "${ZSH_VERSION+set}"; then
15936 setopt NO_GLOB_SUBST
15937 fi
15938
15939 cfgfile=${ofile}T
15940 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15941 $RM "$cfgfile"
15942
15943 cat <<_LT_EOF >> "$cfgfile"
15944 #! $SHELL
15945 # Generated automatically by $as_me ($PACKAGE) $VERSION
15946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15947 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15948
15949 # Provide generalized library-building support services.
15950 # Written by Gordon Matzigkeit, 1996
15951
15952 # Copyright (C) 2014 Free Software Foundation, Inc.
15953 # This is free software; see the source for copying conditions. There is NO
15954 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15955
15956 # GNU Libtool is free software; you can redistribute it and/or modify
15957 # it under the terms of the GNU General Public License as published by
15958 # the Free Software Foundation; either version 2 of of the License, or
15959 # (at your option) any later version.
15960 #
15961 # As a special exception to the GNU General Public License, if you
15962 # distribute this file as part of a program or library that is built
15963 # using GNU Libtool, you may include this file under the same
15964 # distribution terms that you use for the rest of that program.
15965 #
15966 # GNU Libtool is distributed in the hope that it will be useful, but
15967 # WITHOUT ANY WARRANTY; without even the implied warranty of
15968 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15969 # GNU General Public License for more details.
15970 #
15971 # You should have received a copy of the GNU General Public License
15972 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15973
15974
15975 # The names of the tagged configurations supported by this script.
15976 available_tags=''
15977
15978 # Configured defaults for sys_lib_dlsearch_path munging.
15979 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15980
15981 # ### BEGIN LIBTOOL CONFIG
15982
15983 # Which release of libtool.m4 was used?
15984 macro_version=$macro_version
15985 macro_revision=$macro_revision
15986
15987 # Whether or not to build shared libraries.
15988 build_libtool_libs=$enable_shared
15989
15990 # Whether or not to build static libraries.
15991 build_old_libs=$enable_static
15992
15993 # What type of objects to build.
15994 pic_mode=$pic_mode
15995
15996 # Whether or not to optimize for fast installation.
15997 fast_install=$enable_fast_install
15998
15999 # Shared archive member basename,for filename based shared library versioning on AIX.
16000 shared_archive_member_spec=$shared_archive_member_spec
16001
16002 # Shell to use when invoking shell scripts.
16003 SHELL=$lt_SHELL
16004
16005 # An echo program that protects backslashes.
16006 ECHO=$lt_ECHO
16007
16008 # The PATH separator for the build system.
16009 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16010
16011 # The host system.
16012 host_alias=$host_alias
16013 host=$host
16014 host_os=$host_os
16015
16016 # The build system.
16017 build_alias=$build_alias
16018 build=$build
16019 build_os=$build_os
16020
16021 # A sed program that does not truncate output.
16022 SED=$lt_SED
16023
16024 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16025 Xsed="\$SED -e 1s/^X//"
16026
16027 # A grep program that handles long lines.
16028 GREP=$lt_GREP
16029
16030 # An ERE matcher.
16031 EGREP=$lt_EGREP
16032
16033 # A literal string matcher.
16034 FGREP=$lt_FGREP
16035
16036 # A BSD- or MS-compatible name lister.
16037 NM=$lt_NM
16038
16039 # Whether we need soft or hard links.
16040 LN_S=$lt_LN_S
16041
16042 # What is the maximum length of a command?
16043 max_cmd_len=$max_cmd_len
16044
16045 # Object file suffix (normally "o").
16046 objext=$ac_objext
16047
16048 # Executable file suffix (normally "").
16049 exeext=$exeext
16050
16051 # whether the shell understands "unset".
16052 lt_unset=$lt_unset
16053
16054 # turn spaces into newlines.
16055 SP2NL=$lt_lt_SP2NL
16056
16057 # turn newlines into spaces.
16058 NL2SP=$lt_lt_NL2SP
16059
16060 # convert \$build file names to \$host format.
16061 to_host_file_cmd=$lt_cv_to_host_file_cmd
16062
16063 # convert \$build files to toolchain format.
16064 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16065
16066 # An object symbol dumper.
16067 OBJDUMP=$lt_OBJDUMP
16068
16069 # Method to check whether dependent libraries are shared objects.
16070 deplibs_check_method=$lt_deplibs_check_method
16071
16072 # Command to use when deplibs_check_method = "file_magic".
16073 file_magic_cmd=$lt_file_magic_cmd
16074
16075 # How to find potential files when deplibs_check_method = "file_magic".
16076 file_magic_glob=$lt_file_magic_glob
16077
16078 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16079 want_nocaseglob=$lt_want_nocaseglob
16080
16081 # DLL creation program.
16082 DLLTOOL=$lt_DLLTOOL
16083
16084 # Command to associate shared and link libraries.
16085 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16086
16087 # The archiver.
16088 AR=$lt_AR
16089
16090 # Flags to create an archive.
16091 AR_FLAGS=$lt_AR_FLAGS
16092
16093 # How to feed a file listing to the archiver.
16094 archiver_list_spec=$lt_archiver_list_spec
16095
16096 # A symbol stripping program.
16097 STRIP=$lt_STRIP
16098
16099 # Commands used to install an old-style archive.
16100 RANLIB=$lt_RANLIB
16101 old_postinstall_cmds=$lt_old_postinstall_cmds
16102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16103
16104 # Whether to use a lock for old archive extraction.
16105 lock_old_archive_extraction=$lock_old_archive_extraction
16106
16107 # A C compiler.
16108 LTCC=$lt_CC
16109
16110 # LTCC compiler flags.
16111 LTCFLAGS=$lt_CFLAGS
16112
16113 # Take the output of nm and produce a listing of raw symbols and C names.
16114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16115
16116 # Transform the output of nm in a proper C declaration.
16117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16118
16119 # Transform the output of nm into a list of symbols to manually relocate.
16120 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16121
16122 # Transform the output of nm in a C name address pair.
16123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16124
16125 # Transform the output of nm in a C name address pair when lib prefix is needed.
16126 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16127
16128 # The name lister interface.
16129 nm_interface=$lt_lt_cv_nm_interface
16130
16131 # Specify filename containing input files for \$NM.
16132 nm_file_list_spec=$lt_nm_file_list_spec
16133
16134 # The root where to search for dependent libraries,and where our libraries should be installed.
16135 lt_sysroot=$lt_sysroot
16136
16137 # Command to truncate a binary pipe.
16138 lt_truncate_bin=$lt_lt_cv_truncate_bin
16139
16140 # The name of the directory that contains temporary libtool files.
16141 objdir=$objdir
16142
16143 # Used to examine libraries when file_magic_cmd begins with "file".
16144 MAGIC_CMD=$MAGIC_CMD
16145
16146 # Must we lock files when doing compilation?
16147 need_locks=$lt_need_locks
16148
16149 # Manifest tool.
16150 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16151
16152 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16153 DSYMUTIL=$lt_DSYMUTIL
16154
16155 # Tool to change global to local symbols on Mac OS X.
16156 NMEDIT=$lt_NMEDIT
16157
16158 # Tool to manipulate fat objects and archives on Mac OS X.
16159 LIPO=$lt_LIPO
16160
16161 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16162 OTOOL=$lt_OTOOL
16163
16164 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16165 OTOOL64=$lt_OTOOL64
16166
16167 # Old archive suffix (normally "a").
16168 libext=$libext
16169
16170 # Shared library suffix (normally ".so").
16171 shrext_cmds=$lt_shrext_cmds
16172
16173 # The commands to extract the exported symbol list from a shared archive.
16174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16175
16176 # Variables whose values should be saved in libtool wrapper scripts and
16177 # restored at link time.
16178 variables_saved_for_relink=$lt_variables_saved_for_relink
16179
16180 # Do we need the "lib" prefix for modules?
16181 need_lib_prefix=$need_lib_prefix
16182
16183 # Do we need a version for libraries?
16184 need_version=$need_version
16185
16186 # Library versioning type.
16187 version_type=$version_type
16188
16189 # Shared library runtime path variable.
16190 runpath_var=$runpath_var
16191
16192 # Shared library path variable.
16193 shlibpath_var=$shlibpath_var
16194
16195 # Is shlibpath searched before the hard-coded library search path?
16196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16197
16198 # Format of library name prefix.
16199 libname_spec=$lt_libname_spec
16200
16201 # List of archive names. First name is the real one, the rest are links.
16202 # The last name is the one that the linker finds with -lNAME
16203 library_names_spec=$lt_library_names_spec
16204
16205 # The coded name of the library, if different from the real name.
16206 soname_spec=$lt_soname_spec
16207
16208 # Permission mode override for installation of shared libraries.
16209 install_override_mode=$lt_install_override_mode
16210
16211 # Command to use after installation of a shared archive.
16212 postinstall_cmds=$lt_postinstall_cmds
16213
16214 # Command to use after uninstallation of a shared archive.
16215 postuninstall_cmds=$lt_postuninstall_cmds
16216
16217 # Commands used to finish a libtool library installation in a directory.
16218 finish_cmds=$lt_finish_cmds
16219
16220 # As "finish_cmds", except a single script fragment to be evaled but
16221 # not shown.
16222 finish_eval=$lt_finish_eval
16223
16224 # Whether we should hardcode library paths into libraries.
16225 hardcode_into_libs=$hardcode_into_libs
16226
16227 # Compile-time system search path for libraries.
16228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16229
16230 # Detected run-time system search path for libraries.
16231 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16232
16233 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16234 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16235
16236 # Whether dlopen is supported.
16237 dlopen_support=$enable_dlopen
16238
16239 # Whether dlopen of programs is supported.
16240 dlopen_self=$enable_dlopen_self
16241
16242 # Whether dlopen of statically linked programs is supported.
16243 dlopen_self_static=$enable_dlopen_self_static
16244
16245 # Commands to strip libraries.
16246 old_striplib=$lt_old_striplib
16247 striplib=$lt_striplib
16248
16249
16250 # The linker used to build libraries.
16251 LD=$lt_LD
16252
16253 # How to create reloadable object files.
16254 reload_flag=$lt_reload_flag
16255 reload_cmds=$lt_reload_cmds
16256
16257 # Commands used to build an old-style archive.
16258 old_archive_cmds=$lt_old_archive_cmds
16259
16260 # A language specific compiler.
16261 CC=$lt_compiler
16262
16263 # Is the compiler the GNU compiler?
16264 with_gcc=$GCC
16265
16266 # Compiler flag to turn off builtin functions.
16267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16268
16269 # Additional compiler flags for building library objects.
16270 pic_flag=$lt_lt_prog_compiler_pic
16271
16272 # How to pass a linker flag through the compiler.
16273 wl=$lt_lt_prog_compiler_wl
16274
16275 # Compiler flag to prevent dynamic linking.
16276 link_static_flag=$lt_lt_prog_compiler_static
16277
16278 # Does compiler simultaneously support -c and -o options?
16279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16280
16281 # Whether or not to add -lc for building shared libraries.
16282 build_libtool_need_lc=$archive_cmds_need_lc
16283
16284 # Whether or not to disallow shared libs when runtime libs are static.
16285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16286
16287 # Compiler flag to allow reflexive dlopens.
16288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16289
16290 # Compiler flag to generate shared objects directly from archives.
16291 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16292
16293 # Whether the compiler copes with passing no objects directly.
16294 compiler_needs_object=$lt_compiler_needs_object
16295
16296 # Create an old-style archive from a shared archive.
16297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16298
16299 # Create a temporary old-style archive to link instead of a shared archive.
16300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16301
16302 # Commands used to build a shared archive.
16303 archive_cmds=$lt_archive_cmds
16304 archive_expsym_cmds=$lt_archive_expsym_cmds
16305
16306 # Commands used to build a loadable module if different from building
16307 # a shared archive.
16308 module_cmds=$lt_module_cmds
16309 module_expsym_cmds=$lt_module_expsym_cmds
16310
16311 # Whether we are building with GNU ld or not.
16312 with_gnu_ld=$lt_with_gnu_ld
16313
16314 # Flag that allows shared libraries with undefined symbols to be built.
16315 allow_undefined_flag=$lt_allow_undefined_flag
16316
16317 # Flag that enforces no undefined symbols.
16318 no_undefined_flag=$lt_no_undefined_flag
16319
16320 # Flag to hardcode \$libdir into a binary during linking.
16321 # This must work even if \$libdir does not exist
16322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16323
16324 # Whether we need a single "-rpath" flag with a separated argument.
16325 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16326
16327 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16328 # DIR into the resulting binary.
16329 hardcode_direct=$hardcode_direct
16330
16331 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16332 # DIR into the resulting binary and the resulting library dependency is
16333 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16334 # library is relocated.
16335 hardcode_direct_absolute=$hardcode_direct_absolute
16336
16337 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16338 # into the resulting binary.
16339 hardcode_minus_L=$hardcode_minus_L
16340
16341 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16342 # into the resulting binary.
16343 hardcode_shlibpath_var=$hardcode_shlibpath_var
16344
16345 # Set to "yes" if building a shared library automatically hardcodes DIR
16346 # into the library and all subsequent libraries and executables linked
16347 # against it.
16348 hardcode_automatic=$hardcode_automatic
16349
16350 # Set to yes if linker adds runtime paths of dependent libraries
16351 # to runtime path list.
16352 inherit_rpath=$inherit_rpath
16353
16354 # Whether libtool must link a program against all its dependency libraries.
16355 link_all_deplibs=$link_all_deplibs
16356
16357 # Set to "yes" if exported symbols are required.
16358 always_export_symbols=$always_export_symbols
16359
16360 # The commands to list exported symbols.
16361 export_symbols_cmds=$lt_export_symbols_cmds
16362
16363 # Symbols that should not be listed in the preloaded symbols.
16364 exclude_expsyms=$lt_exclude_expsyms
16365
16366 # Symbols that must always be exported.
16367 include_expsyms=$lt_include_expsyms
16368
16369 # Commands necessary for linking programs (against libraries) with templates.
16370 prelink_cmds=$lt_prelink_cmds
16371
16372 # Commands necessary for finishing linking programs.
16373 postlink_cmds=$lt_postlink_cmds
16374
16375 # Specify filename containing input files.
16376 file_list_spec=$lt_file_list_spec
16377
16378 # How to hardcode a shared library path into an executable.
16379 hardcode_action=$hardcode_action
16380
16381 # ### END LIBTOOL CONFIG
16382
16383 _LT_EOF
16384
16385 cat <<'_LT_EOF' >> "$cfgfile"
16386
16387 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16388
16389 # func_munge_path_list VARIABLE PATH
16390 # -----------------------------------
16391 # VARIABLE is name of variable containing _space_ separated list of
16392 # directories to be munged by the contents of PATH, which is string
16393 # having a format:
16394 # "DIR[:DIR]:"
16395 # string "DIR[ DIR]" will be prepended to VARIABLE
16396 # ":DIR[:DIR]"
16397 # string "DIR[ DIR]" will be appended to VARIABLE
16398 # "DIRP[:DIRP]::[DIRA:]DIRA"
16399 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16400 # "DIRA[ DIRA]" will be appended to VARIABLE
16401 # "DIR[:DIR]"
16402 # VARIABLE will be replaced by "DIR[ DIR]"
16403 func_munge_path_list ()
16404 {
16405 case x$2 in
16406 x)
16407 ;;
16408 *:)
16409 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16410 ;;
16411 x:*)
16412 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16413 ;;
16414 *::*)
16415 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16416 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16417 ;;
16418 *)
16419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16420 ;;
16421 esac
16422 }
16423
16424
16425 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16426 func_cc_basename ()
16427 {
16428 for cc_temp in $*""; do
16429 case $cc_temp in
16430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16432 \-*) ;;
16433 *) break;;
16434 esac
16435 done
16436 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16437 }
16438
16439
16440 # ### END FUNCTIONS SHARED WITH CONFIGURE
16441
16442 _LT_EOF
16443
16444 case $host_os in
16445 aix3*)
16446 cat <<\_LT_EOF >> "$cfgfile"
16447 # AIX sometimes has problems with the GCC collect2 program. For some
16448 # reason, if we set the COLLECT_NAMES environment variable, the problems
16449 # vanish in a puff of smoke.
16450 if test set != "${COLLECT_NAMES+set}"; then
16451 COLLECT_NAMES=
16452 export COLLECT_NAMES
16453 fi
16454 _LT_EOF
16455 ;;
16456 esac
16457
16458
16459 ltmain=$ac_aux_dir/ltmain.sh
16460
16461
16462 # We use sed instead of cat because bash on DJGPP gets confused if
16463 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16464 # text mode, it properly converts lines to CR/LF. This bash problem
16465 # is reportedly fixed, but why not run on old versions too?
16466 sed '$q' "$ltmain" >> "$cfgfile" \
16467 || (rm -f "$cfgfile"; exit 1)
16468
16469 mv -f "$cfgfile" "$ofile" ||
16470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16471 chmod +x "$ofile"
16472
16473 ;;
16474
16475 esac
16476 done # for ac_tag
16477
16478
16479 as_fn_exit 0
16480 _ACEOF
16481 ac_clean_files=$ac_clean_files_save
16482
16483 test $ac_write_fail = 0 ||
16484 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16485
16486
16487 # configure is writing to config.log, and then calls config.status.
16488 # config.status does its own redirection, appending to config.log.
16489 # Unfortunately, on DOS this fails, as config.log is still kept open
16490 # by configure, so config.status won't be able to write to it; its
16491 # output is simply discarded. So we exec the FD to /dev/null,
16492 # effectively closing config.log, so it can be properly (re)opened and
16493 # appended to by config.status. When coming back to configure, we
16494 # need to make the FD available again.
16495 if test "$no_create" != yes; then
16496 ac_cs_success=:
16497 ac_config_status_args=
16498 test "$silent" = yes &&
16499 ac_config_status_args="$ac_config_status_args --quiet"
16500 exec 5>/dev/null
16501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16502 exec 5>>config.log
16503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16504 # would make configure fail if this is the last instruction.
16505 $ac_cs_success || as_fn_exit 1
16506 fi
16507 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16509 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16510 fi
16511