Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 2.32 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for LCAS 1.3.20.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # 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 # Copyright (c) 2009 The EU EGEE Project
15 # See LICENCE file for details
16 #
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 as_nop=:
24 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 then :
26 emulate sh
27 NULLCMD=:
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else $as_nop
33 case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 *) :
37 ;;
38 esac
39 fi
40
41
42
43 # Reset variables that may have inherited troublesome values from
44 # the environment.
45
46 # IFS needs to be set, to space, tab, and newline, in precisely that order.
47 # (If _AS_PATH_WALK were called with IFS unset, it would have the
48 # side effect of setting IFS to empty, thus disabling word splitting.)
49 # Quoting is to prevent editors from complaining about space-tab.
50 as_nl='
51 '
52 export as_nl
53 IFS=" "" $as_nl"
54
55 PS1='$ '
56 PS2='> '
57 PS4='+ '
58
59 # Ensure predictable behavior from utilities with locale-dependent output.
60 LC_ALL=C
61 export LC_ALL
62 LANGUAGE=C
63 export LANGUAGE
64
65 # We cannot yet rely on "unset" to work, but we need these variables
66 # to be unset--not just set to an empty or harmless value--now, to
67 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
68 # also avoids known problems related to "unset" and subshell syntax
69 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
70 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
71 do eval test \${$as_var+y} \
72 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
73 done
74
75 # Ensure that fds 0, 1, and 2 are open.
76 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
77 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
78 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
79
80 # The user is always right.
81 if ${PATH_SEPARATOR+false} :; then
82 PATH_SEPARATOR=:
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 PATH_SEPARATOR=';'
86 }
87 fi
88
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 case $as_dir in #(((
99 '') as_dir=./ ;;
100 */) ;;
101 *) as_dir=$as_dir/ ;;
102 esac
103 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119
120 # Use a proper internal environment variable to ensure we don't fall
121 # into an infinite loop, continuously re-executing ourselves.
122 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
123 _as_can_reexec=no; export _as_can_reexec;
124 # We cannot yet assume a decent shell, so we have to provide a
125 # neutralization value for shells without unset; and this also
126 # works around shells that cannot unset nonexistent variables.
127 # Preserve -v and -x to the replacement shell.
128 BASH_ENV=/dev/null
129 ENV=/dev/null
130 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
131 case $- in # ((((
132 *v*x* | *x*v* ) as_opts=-vx ;;
133 *v* ) as_opts=-v ;;
134 *x* ) as_opts=-x ;;
135 * ) as_opts= ;;
136 esac
137 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed `exec'.
140 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="as_nop=:
147 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 then :
149 emulate sh
150 NULLCMD=:
151 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
152 # is contrary to our usage. Disable this feature.
153 alias -g '\${1+\"\$@\"}'='\"\$@\"'
154 setopt NO_GLOB_SUBST
155 else \$as_nop
156 case \`(set -o) 2>/dev/null\` in #(
157 *posix*) :
158 set -o posix ;; #(
159 *) :
160 ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else \$as_nop
179 exitcode=1; echo positional parameters were not saved.
180 fi
181 test x\$exitcode = x0 || exit 1
182 blah=\$(echo \$(echo blah))
183 test x\"\$blah\" = xblah || exit 1
184 test -x / || exit 1"
185 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189
190 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 PATH=/empty FPATH=/empty; export PATH FPATH
195 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
196 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
197 test \$(( 1 + 1 )) = 2 || exit 1"
198 if (eval "$as_required") 2>/dev/null
199 then :
200 as_have_required=yes
201 else $as_nop
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else $as_nop
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else $as_nop
242 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed `exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] about your system,
282 $0: including any error possibly output before this
283 $0: message. Then install a modern shell, or manually run
284 $0: the script under such a shell if you do have one."
285 fi
286 exit 1
287 fi
288 fi
289 fi
290 SHELL=${CONFIG_SHELL-/bin/sh}
291 export SHELL
292 # Unset more variables known to interfere with behavior of common tools.
293 CLICOLOR_FORCE= GREP_OPTIONS=
294 unset CLICOLOR_FORCE GREP_OPTIONS
295
296 ## --------------------- ##
297 ## M4sh Shell Functions. ##
298 ## --------------------- ##
299 # as_fn_unset VAR
300 # ---------------
301 # Portably unset VAR.
302 as_fn_unset ()
303 {
304 { eval $1=; unset $1;}
305 }
306 as_unset=as_fn_unset
307
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326 # as_fn_nop
327 # ---------
328 # Do nothing but, unlike ":", preserve the value of $?.
329 as_fn_nop ()
330 {
331 return $?
332 }
333 as_nop=as_fn_nop
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf "%s\n" X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else $as_nop
403 as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 }
407 fi # as_fn_append
408
409 # as_fn_arith ARG...
410 # ------------------
411 # Perform arithmetic evaluation on the ARGs, and store the result in the
412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
413 # must be portable across $(()) and expr.
414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
415 then :
416 eval 'as_fn_arith ()
417 {
418 as_val=$(( $* ))
419 }'
420 else $as_nop
421 as_fn_arith ()
422 {
423 as_val=`expr "$@" || test $? -eq 1`
424 }
425 fi # as_fn_arith
426
427 # as_fn_nop
428 # ---------
429 # Do nothing but, unlike ":", preserve the value of $?.
430 as_fn_nop ()
431 {
432 return $?
433 }
434 as_nop=as_fn_nop
435
436 # as_fn_error STATUS ERROR [LINENO LOG_FD]
437 # ----------------------------------------
438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
440 # script with STATUS, using 1 if that was 0.
441 as_fn_error ()
442 {
443 as_status=$1; test $as_status -eq 0 && as_status=1
444 if test "$4"; then
445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 fi
448 printf "%s\n" "$as_me: error: $2" >&2
449 as_fn_exit $as_status
450 } # as_fn_error
451
452 if expr a : '\(a\)' >/dev/null 2>&1 &&
453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 as_expr=expr
455 else
456 as_expr=false
457 fi
458
459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 as_basename=basename
461 else
462 as_basename=false
463 fi
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 as_me=`$as_basename -- "$0" ||
472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
473 X"$0" : 'X\(//\)$' \| \
474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
475 printf "%s\n" X/"$0" |
476 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 s//\1/
478 q
479 }
480 /^X\/\(\/\/\)$/{
481 s//\1/
482 q
483 }
484 /^X\/\(\/\).*/{
485 s//\1/
486 q
487 }
488 s/.*/./; q'`
489
490 # Avoid depending upon Character Ranges.
491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
494 as_cr_digits='0123456789'
495 as_cr_alnum=$as_cr_Letters$as_cr_digits
496
497
498 as_lineno_1=$LINENO as_lineno_1a=$LINENO
499 as_lineno_2=$LINENO as_lineno_2a=$LINENO
500 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
501 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
502 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 sed -n '
504 p
505 /[$]LINENO/=
506 ' <$as_myself |
507 sed '
508 s/[$]LINENO.*/&-/
509 t lineno
510 b
511 :lineno
512 N
513 :loop
514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 t loop
516 s/-\n.*//
517 ' >$as_me.lineno &&
518 chmod +x "$as_me.lineno" ||
519 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520
521 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
522 # already done that, so ensure we don't try to do so again and fall
523 # in an infinite loop. This has already happened in practice.
524 _as_can_reexec=no; export _as_can_reexec
525 # Don't try to exec as it changes $[0], causing all sort of problems
526 # (the dirname of $[0] is not the place where we might find the
527 # original and so on. Autoconf is especially sensitive to this).
528 . "./$as_me.lineno"
529 # Exit status is that of the last command.
530 exit
531 }
532
533
534 # Determine whether it's possible to make 'echo' print without a newline.
535 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
536 # for compatibility with existing Makefiles.
537 ECHO_C= ECHO_N= ECHO_T=
538 case `echo -n x` in #(((((
539 -n*)
540 case `echo 'xy\c'` in
541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 xy) ECHO_C='\c';;
543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
544 ECHO_T=' ';;
545 esac;;
546 *)
547 ECHO_N='-n';;
548 esac
549
550 # For backward compatibility with old third-party macros, we provide
551 # the shell variables $as_echo and $as_echo_n. New code should use
552 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
553 as_echo='printf %s\n'
554 as_echo_n='printf %s'
555
556
557 rm -f conf$$ conf$$.exe conf$$.file
558 if test -d conf$$.dir; then
559 rm -f conf$$.dir/conf$$.file
560 else
561 rm -f conf$$.dir
562 mkdir conf$$.dir 2>/dev/null
563 fi
564 if (echo >conf$$.file) 2>/dev/null; then
565 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 as_ln_s='ln -s'
567 # ... but there are two gotchas:
568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
570 # In both cases, we have to default to `cp -pR'.
571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 as_ln_s='cp -pR'
573 elif ln conf$$.file conf$$ 2>/dev/null; then
574 as_ln_s=ln
575 else
576 as_ln_s='cp -pR'
577 fi
578 else
579 as_ln_s='cp -pR'
580 fi
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
583
584 if mkdir -p . 2>/dev/null; then
585 as_mkdir_p='mkdir -p "$as_dir"'
586 else
587 test -d ./-p && rmdir ./-p
588 as_mkdir_p=false
589 fi
590
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
593
594 # Sed expression to map a string onto a valid CPP name.
595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596
597 # Sed expression to map a string onto a valid variable name.
598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='LCAS'
625 PACKAGE_TARNAME='lcas'
626 PACKAGE_VERSION='1.3.20'
627 PACKAGE_STRING='LCAS 1.3.20'
628 PACKAGE_BUGREPORT=''
629 PACKAGE_URL=''
630
631 ac_unique_file="src/lcas_config.h.in"
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stddef.h>
635 #ifdef HAVE_STDIO_H
636 # include <stdio.h>
637 #endif
638 #ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 #endif
641 #ifdef HAVE_STRING_H
642 # include <string.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_STRINGS_H
651 # include <strings.h>
652 #endif
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef HAVE_UNISTD_H
660 # include <unistd.h>
661 #endif"
662
663 ac_header_c_list=
664 ac_func_c_list=
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LCAS_MOD_HOME
669 LCAS_LIB_HOME
670 LCAS_ETC_HOME
671 ADD_THESE_DEFINES
672 LCAS_FLAVOUR_NAME
673 LCAS_FLAVOUR
674 NOGLOBUS_FALSE
675 NOGLOBUS_TRUE
676 GLOBUS_GSSAPI_GSI_NOTHR_LIBS
677 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS
678 GLOBUS_GSSAPI_GSI_THR_LIBS
679 GLOBUS_GSSAPI_GSI_THR_CFLAGS
680 GLOBUS_GSSAPI_GSI_LIBS
681 GLOBUS_GSSAPI_GSI_CFLAGS
682 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS
683 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS
684 GLOBUS_GSI_CREDENTIAL_THR_LIBS
685 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS
686 GLOBUS_GSI_CREDENTIAL_LIBS
687 GLOBUS_GSI_CREDENTIAL_CFLAGS
688 GLOBUS_COMMON_NOTHR_LIBS
689 GLOBUS_COMMON_NOTHR_CFLAGS
690 GLOBUS_COMMON_THR_LIBS
691 GLOBUS_COMMON_THR_CFLAGS
692 GLOBUS_COMMON_LIBS
693 GLOBUS_COMMON_CFLAGS
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 GLOBUS_NOTHR_FLAVOR
698 GLOBUS_THR_FLAVOR
699 GLOBUS_FLAVOR
700 ENABLE_HEADERS_FALSE
701 ENABLE_HEADERS_TRUE
702 LIBOBJS
703 LT_SYS_LIBRARY_PATH
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
709 MANIFEST_TOOL
710 RANLIB
711 ac_ct_AR
712 AR
713 DLLTOOL
714 OBJDUMP
715 FILECMD
716 NM
717 ac_ct_DUMPBIN
718 DUMPBIN
719 LD
720 FGREP
721 EGREP
722 GREP
723 SED
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 LIBTOOL
733 LN_S
734 am__fastdepCC_FALSE
735 am__fastdepCC_TRUE
736 CCDEPMODE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 am__include
742 DEPDIR
743 OBJEXT
744 EXEEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
749 CC
750 DISTBIN
751 WORKDIR
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 CSCOPE
757 ETAGS
758 CTAGS
759 am__untar
760 am__tar
761 AMTAR
762 am__leading_dot
763 SET_MAKE
764 AWK
765 mkdir_p
766 MKDIR_P
767 INSTALL_STRIP_PROGRAM
768 STRIP
769 install_sh
770 MAKEINFO
771 AUTOHEADER
772 AUTOMAKE
773 AUTOCONF
774 ACLOCAL
775 VERSION
776 PACKAGE
777 CYGPATH_W
778 am__isrc
779 INSTALL_DATA
780 INSTALL_SCRIPT
781 INSTALL_PROGRAM
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 runstatedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL
821 am__quote'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_dependency_tracking
827 enable_shared
828 enable_static
829 with_pic
830 enable_fast_install
831 with_aix_soname
832 with_gnu_ld
833 with_sysroot
834 enable_libtool_lock
835 enable_headers
836 enable_gsi_mode
837 with_globus_prefix
838 with_globus_libdir
839 with_globus_flavor
840 with_globus_thr_flavor
841 with_globus_nothr_flavor
842 with_globus_flavorincdir
843 with_lcas_moduledir
844 '
845 ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 LT_SYS_LIBRARY_PATH
854 PKG_CONFIG
855 PKG_CONFIG_PATH
856 PKG_CONFIG_LIBDIR
857 GLOBUS_COMMON_CFLAGS
858 GLOBUS_COMMON_LIBS
859 GLOBUS_GSI_CREDENTIAL_CFLAGS
860 GLOBUS_GSI_CREDENTIAL_LIBS
861 GLOBUS_GSSAPI_GSI_CFLAGS
862 GLOBUS_GSSAPI_GSI_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: \`$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures LCAS 1.3.20 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/lcas]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of LCAS 1.3.20:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --enable-headers build headers
1502 --enable-gsi-mode create lcas flavour that provides a GSI interface
1503 (default)
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-aix-soname=aix|svr4|both
1511 shared library versioning (aka "SONAME") variant to
1512 provide on AIX, [default=aix].
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1515 compiler's sysroot if not specified).
1516 --with-globus-prefix=PFX
1517 prefix where GLOBUS is installed.
1518 --with-globus-libdir=DIR
1519 directory where GLOBUS libraries are installed
1520 (default either GLOBUS-PREFIX/lib or
1521 GLOBUS-PREFIX/lib64).
1522 --with-globus-flavor globus flavor
1523 --with-globus-thr-flavor
1524 globus threaded flavor
1525 --with-globus-nothr-flavor
1526 globus non-threaded flavor
1527 --with-globus-flavorincdir
1528 flavored includedir, i.e. location of
1529 globus_config.h
1530 --with-lcas-moduledir=DIR
1531 Specify the default install location of the LCAS
1532 plug-ins, when relative: prefix with LIBDIR
1533 [default=LIBDIR/lcas]
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 LT_SYS_LIBRARY_PATH
1544 User-defined run-time library search path.
1545 PKG_CONFIG path to pkg-config utility
1546 PKG_CONFIG_PATH
1547 directories to add to pkg-config's search path
1548 PKG_CONFIG_LIBDIR
1549 path overriding pkg-config's built-in search path
1550 GLOBUS_COMMON_CFLAGS
1551 C compiler flags for GLOBUS_COMMON, overriding pkg-config
1552 GLOBUS_COMMON_LIBS
1553 linker flags for GLOBUS_COMMON, overriding pkg-config
1554 GLOBUS_GSI_CREDENTIAL_CFLAGS
1555 C compiler flags for GLOBUS_GSI_CREDENTIAL, overriding
1556 pkg-config
1557 GLOBUS_GSI_CREDENTIAL_LIBS
1558 linker flags for GLOBUS_GSI_CREDENTIAL, overriding pkg-config
1559 GLOBUS_GSSAPI_GSI_CFLAGS
1560 C compiler flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1561 GLOBUS_GSSAPI_GSI_LIBS
1562 linker flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to the package provider.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for configure.gnu first; this name is used for a wrapper for
1614 # Metaconfig's "Configure" on case-insensitive file systems.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630 cat <<\_ACEOF
1631 LCAS configure 1.3.20
1632 generated by GNU Autoconf 2.71
1633
1634 Copyright (C) 2021 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637
1638 Copyright (c) 2009 The EU EGEE Project
1639 See LICENCE file for details
1640
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext
1675 then :
1676 ac_retval=0
1677 else $as_nop
1678 printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest$ac_exeext
1716 }
1717 then :
1718 ac_retval=0
1719 else $as_nop
1720 printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else $as_nop
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"
1754 then :
1755 eval "$3=yes"
1756 else $as_nop
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 printf %s "checking for $2... " >&6; }
1776 if eval test \${$3+y}
1777 then :
1778 printf %s "(cached) " >&6
1779 else $as_nop
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1785
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below. */
1788
1789 #include <limits.h>
1790 #undef $2
1791
1792 /* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795 #ifdef __cplusplus
1796 extern "C"
1797 #endif
1798 char $2 ();
1799 /* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802 #if defined __stub_$2 || defined __stub___$2
1803 choke me
1804 #endif
1805
1806 int
1807 main (void)
1808 {
1809 return $2 ();
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_link "$LINENO"
1815 then :
1816 eval "$3=yes"
1817 else $as_nop
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1831 # -------------------------------------------
1832 # Tests whether TYPE exists after having included INCLUDES, setting cache
1833 # variable VAR accordingly.
1834 ac_fn_c_check_type ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 printf %s "checking for $2... " >&6; }
1839 if eval test \${$3+y}
1840 then :
1841 printf %s "(cached) " >&6
1842 else $as_nop
1843 eval "$3=no"
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 int
1848 main (void)
1849 {
1850 if (sizeof ($2))
1851 return 0;
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 int
1862 main (void)
1863 {
1864 if (sizeof (($2)))
1865 return 0;
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"
1871 then :
1872
1873 else $as_nop
1874 eval "$3=yes"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 printf "%s\n" "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_type
1886
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1890 # executables *can* be run.
1891 ac_fn_c_try_run ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 printf "%s\n" "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 printf "%s\n" "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }
1915 then :
1916 ac_retval=0
1917 else $as_nop
1918 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1919 printf "%s\n" "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=$ac_status
1923 fi
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_run
1929 ac_configure_args_raw=
1930 for ac_arg
1931 do
1932 case $ac_arg in
1933 *\'*)
1934 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 as_fn_append ac_configure_args_raw " '$ac_arg'"
1937 done
1938
1939 case $ac_configure_args_raw in
1940 *$as_nl*)
1941 ac_safe_unquote= ;;
1942 *)
1943 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1944 ac_unsafe_a="$ac_unsafe_z#~"
1945 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1946 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1947 esac
1948
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by LCAS $as_me 1.3.20, which was
1954 generated by GNU Autoconf 2.71. Invocation command line was
1955
1956 $ $0$ac_configure_args_raw
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 case $as_dir in #(((
1990 '') as_dir=./ ;;
1991 */) ;;
1992 *) as_dir=$as_dir/ ;;
1993 esac
1994 printf "%s\n" "PATH: $as_dir"
1995 done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021 for ac_arg
2022 do
2023 case $ac_arg in
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2027 continue ;;
2028 *\'*)
2029 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 case $ac_pass in
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 2)
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2037 else
2038 case $ac_arg in
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 esac
2046 ;;
2047 -* ) ac_must_keep_next=true ;;
2048 esac
2049 fi
2050 as_fn_append ac_configure_args " '$ac_arg'"
2051 ;;
2052 esac
2053 done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Sanitize IFS.
2065 IFS=" "" $as_nl"
2066 # Save into config.log some information that might help in debugging.
2067 {
2068 echo
2069
2070 printf "%s\n" "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2075 (
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2098 *)
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 ;;
2101 esac |
2102 sort
2103 )
2104 echo
2105
2106 printf "%s\n" "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109 echo
2110 for ac_var in $ac_subst_vars
2111 do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 printf "%s\n" "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2119
2120 if test -n "$ac_subst_files"; then
2121 printf "%s\n" "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124 echo
2125 for ac_var in $ac_subst_files
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 printf "%s\n" "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134 fi
2135
2136 if test -s confdefs.h; then
2137 printf "%s\n" "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140 echo
2141 cat confdefs.h
2142 echo
2143 fi
2144 test "$ac_signal" != 0 &&
2145 printf "%s\n" "$as_me: caught signal $ac_signal"
2146 printf "%s\n" "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 printf "%s\n" "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2165
2166 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2167
2168 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2169
2170 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2171
2172 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2173
2174 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2175
2176
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2179 if test -n "$CONFIG_SITE"; then
2180 ac_site_files="$CONFIG_SITE"
2181 elif test "x$prefix" != xNONE; then
2182 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2183 else
2184 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2185 fi
2186
2187 for ac_site_file in $ac_site_files
2188 do
2189 case $ac_site_file in #(
2190 */*) :
2191 ;; #(
2192 *) :
2193 ac_site_file=./$ac_site_file ;;
2194 esac
2195 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2198 sed 's/^/| /' "$ac_site_file" >&5
2199 . "$ac_site_file" \
2200 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2202 as_fn_error $? "failed to load site script $ac_site_file
2203 See \`config.log' for more details" "$LINENO" 5; }
2204 fi
2205 done
2206
2207 if test -r "$cache_file"; then
2208 # Some versions of bash will fail to source /dev/null (special files
2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2213 case $cache_file in
2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215 *) . "./$cache_file";;
2216 esac
2217 fi
2218 else
2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2221 >$cache_file
2222 fi
2223
2224 # Test code for whether the C compiler supports C89 (global declarations)
2225 ac_c_conftest_c89_globals='
2226 /* Does the compiler advertise C89 conformance?
2227 Do not test the value of __STDC__, because some compilers set it to 0
2228 while being otherwise adequately conformant. */
2229 #if !defined __STDC__
2230 # error "Compiler does not advertise C89 conformance"
2231 #endif
2232
2233 #include <stddef.h>
2234 #include <stdarg.h>
2235 struct stat;
2236 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2237 struct buf { int x; };
2238 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2239 static char *e (p, i)
2240 char **p;
2241 int i;
2242 {
2243 return p[i];
2244 }
2245 static char *f (char * (*g) (char **, int), char **p, ...)
2246 {
2247 char *s;
2248 va_list v;
2249 va_start (v,p);
2250 s = g (p, va_arg (v,int));
2251 va_end (v);
2252 return s;
2253 }
2254
2255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2256 function prototypes and stuff, but not \xHH hex character constants.
2257 These do not provoke an error unfortunately, instead are silently treated
2258 as an "x". The following induces an error, until -std is added to get
2259 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2260 array size at least. It is necessary to write \x00 == 0 to get something
2261 that is true only with -std. */
2262 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2263
2264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2265 inside strings and character constants. */
2266 #define FOO(x) '\''x'\''
2267 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2268
2269 int test (int i, double x);
2270 struct s1 {int (*f) (int a);};
2271 struct s2 {int (*f) (double a);};
2272 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2273 int, int);'
2274
2275 # Test code for whether the C compiler supports C89 (body of main).
2276 ac_c_conftest_c89_main='
2277 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2278 '
2279
2280 # Test code for whether the C compiler supports C99 (global declarations)
2281 ac_c_conftest_c99_globals='
2282 // Does the compiler advertise C99 conformance?
2283 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2284 # error "Compiler does not advertise C99 conformance"
2285 #endif
2286
2287 #include <stdbool.h>
2288 extern int puts (const char *);
2289 extern int printf (const char *, ...);
2290 extern int dprintf (int, const char *, ...);
2291 extern void *malloc (size_t);
2292
2293 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2294 // dprintf is used instead of fprintf to avoid needing to declare
2295 // FILE and stderr.
2296 #define debug(...) dprintf (2, __VA_ARGS__)
2297 #define showlist(...) puts (#__VA_ARGS__)
2298 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2299 static void
2300 test_varargs_macros (void)
2301 {
2302 int x = 1234;
2303 int y = 5678;
2304 debug ("Flag");
2305 debug ("X = %d\n", x);
2306 showlist (The first, second, and third items.);
2307 report (x>y, "x is %d but y is %d", x, y);
2308 }
2309
2310 // Check long long types.
2311 #define BIG64 18446744073709551615ull
2312 #define BIG32 4294967295ul
2313 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2314 #if !BIG_OK
2315 #error "your preprocessor is broken"
2316 #endif
2317 #if BIG_OK
2318 #else
2319 #error "your preprocessor is broken"
2320 #endif
2321 static long long int bignum = -9223372036854775807LL;
2322 static unsigned long long int ubignum = BIG64;
2323
2324 struct incomplete_array
2325 {
2326 int datasize;
2327 double data[];
2328 };
2329
2330 struct named_init {
2331 int number;
2332 const wchar_t *name;
2333 double average;
2334 };
2335
2336 typedef const char *ccp;
2337
2338 static inline int
2339 test_restrict (ccp restrict text)
2340 {
2341 // See if C++-style comments work.
2342 // Iterate through items via the restricted pointer.
2343 // Also check for declarations in for loops.
2344 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2345 continue;
2346 return 0;
2347 }
2348
2349 // Check varargs and va_copy.
2350 static bool
2351 test_varargs (const char *format, ...)
2352 {
2353 va_list args;
2354 va_start (args, format);
2355 va_list args_copy;
2356 va_copy (args_copy, args);
2357
2358 const char *str = "";
2359 int number = 0;
2360 float fnumber = 0;
2361
2362 while (*format)
2363 {
2364 switch (*format++)
2365 {
2366 case '\''s'\'': // string
2367 str = va_arg (args_copy, const char *);
2368 break;
2369 case '\''d'\'': // int
2370 number = va_arg (args_copy, int);
2371 break;
2372 case '\''f'\'': // float
2373 fnumber = va_arg (args_copy, double);
2374 break;
2375 default:
2376 break;
2377 }
2378 }
2379 va_end (args_copy);
2380 va_end (args);
2381
2382 return *str && number && fnumber;
2383 }
2384 '
2385
2386 # Test code for whether the C compiler supports C99 (body of main).
2387 ac_c_conftest_c99_main='
2388 // Check bool.
2389 _Bool success = false;
2390 success |= (argc != 0);
2391
2392 // Check restrict.
2393 if (test_restrict ("String literal") == 0)
2394 success = true;
2395 char *restrict newvar = "Another string";
2396
2397 // Check varargs.
2398 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2399 test_varargs_macros ();
2400
2401 // Check flexible array members.
2402 struct incomplete_array *ia =
2403 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2404 ia->datasize = 10;
2405 for (int i = 0; i < ia->datasize; ++i)
2406 ia->data[i] = i * 1.234;
2407
2408 // Check named initializers.
2409 struct named_init ni = {
2410 .number = 34,
2411 .name = L"Test wide string",
2412 .average = 543.34343,
2413 };
2414
2415 ni.number = 58;
2416
2417 int dynamic_array[ni.number];
2418 dynamic_array[0] = argv[0][0];
2419 dynamic_array[ni.number - 1] = 543;
2420
2421 // work around unused variable warnings
2422 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2423 || dynamic_array[ni.number - 1] != 543);
2424 '
2425
2426 # Test code for whether the C compiler supports C11 (global declarations)
2427 ac_c_conftest_c11_globals='
2428 // Does the compiler advertise C11 conformance?
2429 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2430 # error "Compiler does not advertise C11 conformance"
2431 #endif
2432
2433 // Check _Alignas.
2434 char _Alignas (double) aligned_as_double;
2435 char _Alignas (0) no_special_alignment;
2436 extern char aligned_as_int;
2437 char _Alignas (0) _Alignas (int) aligned_as_int;
2438
2439 // Check _Alignof.
2440 enum
2441 {
2442 int_alignment = _Alignof (int),
2443 int_array_alignment = _Alignof (int[100]),
2444 char_alignment = _Alignof (char)
2445 };
2446 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2447
2448 // Check _Noreturn.
2449 int _Noreturn does_not_return (void) { for (;;) continue; }
2450
2451 // Check _Static_assert.
2452 struct test_static_assert
2453 {
2454 int x;
2455 _Static_assert (sizeof (int) <= sizeof (long int),
2456 "_Static_assert does not work in struct");
2457 long int y;
2458 };
2459
2460 // Check UTF-8 literals.
2461 #define u8 syntax error!
2462 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2463
2464 // Check duplicate typedefs.
2465 typedef long *long_ptr;
2466 typedef long int *long_ptr;
2467 typedef long_ptr long_ptr;
2468
2469 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2470 struct anonymous
2471 {
2472 union {
2473 struct { int i; int j; };
2474 struct { int k; long int l; } w;
2475 };
2476 int m;
2477 } v1;
2478 '
2479
2480 # Test code for whether the C compiler supports C11 (body of main).
2481 ac_c_conftest_c11_main='
2482 _Static_assert ((offsetof (struct anonymous, i)
2483 == offsetof (struct anonymous, w.k)),
2484 "Anonymous union alignment botch");
2485 v1.i = 2;
2486 v1.w.k = 5;
2487 ok |= v1.i != 5;
2488 '
2489
2490 # Test code for whether the C compiler supports C11 (complete).
2491 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2492 ${ac_c_conftest_c99_globals}
2493 ${ac_c_conftest_c11_globals}
2494
2495 int
2496 main (int argc, char **argv)
2497 {
2498 int ok = 0;
2499 ${ac_c_conftest_c89_main}
2500 ${ac_c_conftest_c99_main}
2501 ${ac_c_conftest_c11_main}
2502 return ok;
2503 }
2504 "
2505
2506 # Test code for whether the C compiler supports C99 (complete).
2507 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2508 ${ac_c_conftest_c99_globals}
2509
2510 int
2511 main (int argc, char **argv)
2512 {
2513 int ok = 0;
2514 ${ac_c_conftest_c89_main}
2515 ${ac_c_conftest_c99_main}
2516 return ok;
2517 }
2518 "
2519
2520 # Test code for whether the C compiler supports C89 (complete).
2521 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2522
2523 int
2524 main (int argc, char **argv)
2525 {
2526 int ok = 0;
2527 ${ac_c_conftest_c89_main}
2528 return ok;
2529 }
2530 "
2531
2532 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2533 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2534 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2535 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2536 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2537 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2538 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2539 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2540 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2541 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2542 as_fn_append ac_func_c_list " alarm HAVE_ALARM"
2543 as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
2544
2545 # Auxiliary files required by this configure script.
2546 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2547
2548 # Locations in which to look for auxiliary files.
2549 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2550
2551 # Search for a directory containing all of the required auxiliary files,
2552 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2553 # If we don't find one directory that contains all the files we need,
2554 # we report the set of missing files from the *first* directory in
2555 # $ac_aux_dir_candidates and give up.
2556 ac_missing_aux_files=""
2557 ac_first_candidate=:
2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 as_found=false
2561 for as_dir in $ac_aux_dir_candidates
2562 do
2563 IFS=$as_save_IFS
2564 case $as_dir in #(((
2565 '') as_dir=./ ;;
2566 */) ;;
2567 *) as_dir=$as_dir/ ;;
2568 esac
2569 as_found=:
2570
2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2572 ac_aux_dir_found=yes
2573 ac_install_sh=
2574 for ac_aux in $ac_aux_files
2575 do
2576 # As a special case, if "install-sh" is required, that requirement
2577 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2578 # and $ac_install_sh is set appropriately for whichever one is found.
2579 if test x"$ac_aux" = x"install-sh"
2580 then
2581 if test -f "${as_dir}install-sh"; then
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2583 ac_install_sh="${as_dir}install-sh -c"
2584 elif test -f "${as_dir}install.sh"; then
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2586 ac_install_sh="${as_dir}install.sh -c"
2587 elif test -f "${as_dir}shtool"; then
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2589 ac_install_sh="${as_dir}shtool install -c"
2590 else
2591 ac_aux_dir_found=no
2592 if $ac_first_candidate; then
2593 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2594 else
2595 break
2596 fi
2597 fi
2598 else
2599 if test -f "${as_dir}${ac_aux}"; then
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2601 else
2602 ac_aux_dir_found=no
2603 if $ac_first_candidate; then
2604 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2605 else
2606 break
2607 fi
2608 fi
2609 fi
2610 done
2611 if test "$ac_aux_dir_found" = yes; then
2612 ac_aux_dir="$as_dir"
2613 break
2614 fi
2615 ac_first_candidate=false
2616
2617 as_found=false
2618 done
2619 IFS=$as_save_IFS
2620 if $as_found
2621 then :
2622
2623 else $as_nop
2624 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2625 fi
2626
2627
2628 # These three variables are undocumented and unsupported,
2629 # and are intended to be withdrawn in a future Autoconf release.
2630 # They can cause serious problems if a builder's source tree is in a directory
2631 # whose full name contains unusual characters.
2632 if test -f "${ac_aux_dir}config.guess"; then
2633 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2634 fi
2635 if test -f "${ac_aux_dir}config.sub"; then
2636 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2637 fi
2638 if test -f "$ac_aux_dir/configure"; then
2639 ac_configure="$SHELL ${ac_aux_dir}configure"
2640 fi
2641
2642 # Check that the precious variables saved in the cache have kept the same
2643 # value.
2644 ac_cache_corrupted=false
2645 for ac_var in $ac_precious_vars; do
2646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2647 eval ac_new_set=\$ac_env_${ac_var}_set
2648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2649 eval ac_new_val=\$ac_env_${ac_var}_value
2650 case $ac_old_set,$ac_new_set in
2651 set,)
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2653 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2654 ac_cache_corrupted=: ;;
2655 ,set)
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2657 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,);;
2660 *)
2661 if test "x$ac_old_val" != "x$ac_new_val"; then
2662 # differences in whitespace do not lead to failure.
2663 ac_old_val_w=`echo x $ac_old_val`
2664 ac_new_val_w=`echo x $ac_new_val`
2665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2667 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2668 ac_cache_corrupted=:
2669 else
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2671 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2672 eval $ac_var=\$ac_old_val
2673 fi
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2675 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2677 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2678 fi;;
2679 esac
2680 # Pass precious variables to config.status.
2681 if test "$ac_new_set" = set; then
2682 case $ac_new_val in
2683 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2684 *) ac_arg=$ac_var=$ac_new_val ;;
2685 esac
2686 case " $ac_configure_args " in
2687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2689 esac
2690 fi
2691 done
2692 if $ac_cache_corrupted; then
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2696 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2697 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2698 and start over" "$LINENO" 5
2699 fi
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711
2712 am__api_version='1.16'
2713
2714
2715
2716 # Find a good install program. We prefer a C program (faster),
2717 # so one script is as good as another. But avoid the broken or
2718 # incompatible versions:
2719 # SysV /etc/install, /usr/sbin/install
2720 # SunOS /usr/etc/install
2721 # IRIX /sbin/install
2722 # AIX /bin/install
2723 # AmigaOS /C/install, which installs bootblocks on floppy discs
2724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2727 # OS/2's system install, which has a completely different semantic
2728 # ./install, which can be erroneously created by make from ./install.sh.
2729 # Reject install programs that cannot install multiple files.
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2731 printf %s "checking for a BSD-compatible install... " >&6; }
2732 if test -z "$INSTALL"; then
2733 if test ${ac_cv_path_install+y}
2734 then :
2735 printf %s "(cached) " >&6
2736 else $as_nop
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 case $as_dir in #(((
2742 '') as_dir=./ ;;
2743 */) ;;
2744 *) as_dir=$as_dir/ ;;
2745 esac
2746 # Account for fact that we put trailing slashes in our PATH walk.
2747 case $as_dir in #((
2748 ./ | /[cC]/* | \
2749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2750 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2751 /usr/ucb/* ) ;;
2752 *)
2753 # OSF1 and SCO ODT 3.0 have their own names for install.
2754 # Don't use installbsd from OSF since it installs stuff as root
2755 # by default.
2756 for ac_prog in ginstall scoinst install; do
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2759 if test $ac_prog = install &&
2760 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2761 # AIX install. It has an incompatible calling convention.
2762 :
2763 elif test $ac_prog = install &&
2764 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765 # program-specific install script used by HP pwplus--don't use.
2766 :
2767 else
2768 rm -rf conftest.one conftest.two conftest.dir
2769 echo one > conftest.one
2770 echo two > conftest.two
2771 mkdir conftest.dir
2772 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2773 test -s conftest.one && test -s conftest.two &&
2774 test -s conftest.dir/conftest.one &&
2775 test -s conftest.dir/conftest.two
2776 then
2777 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2778 break 3
2779 fi
2780 fi
2781 fi
2782 done
2783 done
2784 ;;
2785 esac
2786
2787 done
2788 IFS=$as_save_IFS
2789
2790 rm -rf conftest.one conftest.two conftest.dir
2791
2792 fi
2793 if test ${ac_cv_path_install+y}; then
2794 INSTALL=$ac_cv_path_install
2795 else
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for INSTALL within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 INSTALL=$ac_install_sh
2801 fi
2802 fi
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2804 printf "%s\n" "$INSTALL" >&6; }
2805
2806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2807 # It thinks the first close brace ends the variable substitution.
2808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2809
2810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2811
2812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2813
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2815 printf %s "checking whether build environment is sane... " >&6; }
2816 # Reject unsafe characters in $srcdir or the absolute working directory
2817 # name. Accept space and tab only in the latter.
2818 am_lf='
2819 '
2820 case `pwd` in
2821 *[\\\"\#\$\&\'\`$am_lf]*)
2822 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2823 esac
2824 case $srcdir in
2825 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2826 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2827 esac
2828
2829 # Do 'set' in a subshell so we don't clobber the current shell's
2830 # arguments. Must try -L first in case configure is actually a
2831 # symlink; some systems play weird games with the mod time of symlinks
2832 # (eg FreeBSD returns the mod time of the symlink's containing
2833 # directory).
2834 if (
2835 am_has_slept=no
2836 for am_try in 1 2; do
2837 echo "timestamp, slept: $am_has_slept" > conftest.file
2838 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2839 if test "$*" = "X"; then
2840 # -L didn't work.
2841 set X `ls -t "$srcdir/configure" conftest.file`
2842 fi
2843 if test "$*" != "X $srcdir/configure conftest.file" \
2844 && test "$*" != "X conftest.file $srcdir/configure"; then
2845
2846 # If neither matched, then we have a broken ls. This can happen
2847 # if, for instance, CONFIG_SHELL is bash and it inherits a
2848 # broken ls alias from the environment. This has actually
2849 # happened. Such a system could not be considered "sane".
2850 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2851 alias in your environment" "$LINENO" 5
2852 fi
2853 if test "$2" = conftest.file || test $am_try -eq 2; then
2854 break
2855 fi
2856 # Just in case.
2857 sleep 1
2858 am_has_slept=yes
2859 done
2860 test "$2" = conftest.file
2861 )
2862 then
2863 # Ok.
2864 :
2865 else
2866 as_fn_error $? "newly created file is older than distributed files!
2867 Check your system clock" "$LINENO" 5
2868 fi
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2870 printf "%s\n" "yes" >&6; }
2871 # If we didn't sleep, we still need to ensure time stamps of config.status and
2872 # generated files are strictly newer.
2873 am_sleep_pid=
2874 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2875 ( sleep 1 ) &
2876 am_sleep_pid=$!
2877 fi
2878
2879 rm -f conftest.file
2880
2881 test "$program_prefix" != NONE &&
2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883 # Use a double $ so make ignores it.
2884 test "$program_suffix" != NONE &&
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886 # Double any \ or $.
2887 # By default was `s,x,x', remove it if useless.
2888 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2890
2891
2892 # Expand $ac_aux_dir to an absolute path.
2893 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2894
2895
2896 if test x"${MISSING+set}" != xset; then
2897 MISSING="\${SHELL} '$am_aux_dir/missing'"
2898 fi
2899 # Use eval to expand $SHELL
2900 if eval "$MISSING --is-lightweight"; then
2901 am_missing_run="$MISSING "
2902 else
2903 am_missing_run=
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2905 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2906 fi
2907
2908 if test x"${install_sh+set}" != xset; then
2909 case $am_aux_dir in
2910 *\ * | *\ *)
2911 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2912 *)
2913 install_sh="\${SHELL} $am_aux_dir/install-sh"
2914 esac
2915 fi
2916
2917 # Installed binaries are usually stripped using 'strip' when the user
2918 # run "make install-strip". However 'strip' might not be the right
2919 # tool to use in cross-compilation environments, therefore Automake
2920 # will honor the 'STRIP' environment variable to overrule this program.
2921 if test "$cross_compiling" != no; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}strip; ac_word=$2
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 printf %s "checking for $ac_word... " >&6; }
2927 if test ${ac_cv_prog_STRIP+y}
2928 then :
2929 printf %s "(cached) " >&6
2930 else $as_nop
2931 if test -n "$STRIP"; then
2932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 case $as_dir in #(((
2939 '') as_dir=./ ;;
2940 */) ;;
2941 *) as_dir=$as_dir/ ;;
2942 esac
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 STRIP=$ac_cv_prog_STRIP
2956 if test -n "$STRIP"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2958 printf "%s\n" "$STRIP" >&6; }
2959 else
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$ac_cv_prog_STRIP"; then
2967 ac_ct_STRIP=$STRIP
2968 # Extract the first word of "strip", so it can be a program name with args.
2969 set dummy strip; ac_word=$2
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 printf %s "checking for $ac_word... " >&6; }
2972 if test ${ac_cv_prog_ac_ct_STRIP+y}
2973 then :
2974 printf %s "(cached) " >&6
2975 else $as_nop
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 case $as_dir in #(((
2984 '') as_dir=./ ;;
2985 */) ;;
2986 *) as_dir=$as_dir/ ;;
2987 esac
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_STRIP="strip"
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3001 if test -n "$ac_ct_STRIP"; then
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3003 printf "%s\n" "$ac_ct_STRIP" >&6; }
3004 else
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 printf "%s\n" "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_STRIP" = x; then
3010 STRIP=":"
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 STRIP=$ac_ct_STRIP
3019 fi
3020 else
3021 STRIP="$ac_cv_prog_STRIP"
3022 fi
3023
3024 fi
3025 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3026
3027
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3029 printf %s "checking for a race-free mkdir -p... " >&6; }
3030 if test -z "$MKDIR_P"; then
3031 if test ${ac_cv_path_mkdir+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else $as_nop
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3037 do
3038 IFS=$as_save_IFS
3039 case $as_dir in #(((
3040 '') as_dir=./ ;;
3041 */) ;;
3042 *) as_dir=$as_dir/ ;;
3043 esac
3044 for ac_prog in mkdir gmkdir; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3047 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3048 'mkdir ('*'coreutils) '* | \
3049 'BusyBox '* | \
3050 'mkdir (fileutils) '4.1*)
3051 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3052 break 3;;
3053 esac
3054 done
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060
3061 test -d ./--version && rmdir ./--version
3062 if test ${ac_cv_path_mkdir+y}; then
3063 MKDIR_P="$ac_cv_path_mkdir -p"
3064 else
3065 # As a last resort, use the slow shell script. Don't cache a
3066 # value for MKDIR_P within a source directory, because that will
3067 # break other packages using the cache if that directory is
3068 # removed, or if the value is a relative name.
3069 MKDIR_P="$ac_install_sh -d"
3070 fi
3071 fi
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3073 printf "%s\n" "$MKDIR_P" >&6; }
3074
3075 for ac_prog in gawk mawk nawk awk
3076 do
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 printf %s "checking for $ac_word... " >&6; }
3081 if test ${ac_cv_prog_AWK+y}
3082 then :
3083 printf %s "(cached) " >&6
3084 else $as_nop
3085 if test -n "$AWK"; then
3086 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 case $as_dir in #(((
3093 '') as_dir=./ ;;
3094 */) ;;
3095 *) as_dir=$as_dir/ ;;
3096 esac
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AWK="$ac_prog"
3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 AWK=$ac_cv_prog_AWK
3110 if test -n "$AWK"; then
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3112 printf "%s\n" "$AWK" >&6; }
3113 else
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 printf "%s\n" "no" >&6; }
3116 fi
3117
3118
3119 test -n "$AWK" && break
3120 done
3121
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3123 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3124 set x ${MAKE-make}
3125 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3126 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3127 then :
3128 printf %s "(cached) " >&6
3129 else $as_nop
3130 cat >conftest.make <<\_ACEOF
3131 SHELL = /bin/sh
3132 all:
3133 @echo '@@@%%%=$(MAKE)=@@@%%%'
3134 _ACEOF
3135 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3136 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3137 *@@@%%%=?*=@@@%%%*)
3138 eval ac_cv_prog_make_${ac_make}_set=yes;;
3139 *)
3140 eval ac_cv_prog_make_${ac_make}_set=no;;
3141 esac
3142 rm -f conftest.make
3143 fi
3144 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 printf "%s\n" "yes" >&6; }
3147 SET_MAKE=
3148 else
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3151 SET_MAKE="MAKE=${MAKE-make}"
3152 fi
3153
3154 rm -rf .tst 2>/dev/null
3155 mkdir .tst 2>/dev/null
3156 if test -d .tst; then
3157 am__leading_dot=.
3158 else
3159 am__leading_dot=_
3160 fi
3161 rmdir .tst 2>/dev/null
3162
3163 # Check whether --enable-silent-rules was given.
3164 if test ${enable_silent_rules+y}
3165 then :
3166 enableval=$enable_silent_rules;
3167 fi
3168
3169 case $enable_silent_rules in # (((
3170 yes) AM_DEFAULT_VERBOSITY=0;;
3171 no) AM_DEFAULT_VERBOSITY=1;;
3172 *) AM_DEFAULT_VERBOSITY=1;;
3173 esac
3174 am_make=${MAKE-make}
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176 printf %s "checking whether $am_make supports nested variables... " >&6; }
3177 if test ${am_cv_make_support_nested_variables+y}
3178 then :
3179 printf %s "(cached) " >&6
3180 else $as_nop
3181 if printf "%s\n" 'TRUE=$(BAR$(V))
3182 BAR0=false
3183 BAR1=true
3184 V=1
3185 am__doit:
3186 @$(TRUE)
3187 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3188 am_cv_make_support_nested_variables=yes
3189 else
3190 am_cv_make_support_nested_variables=no
3191 fi
3192 fi
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3194 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3195 if test $am_cv_make_support_nested_variables = yes; then
3196 AM_V='$(V)'
3197 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3198 else
3199 AM_V=$AM_DEFAULT_VERBOSITY
3200 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3201 fi
3202 AM_BACKSLASH='\'
3203
3204 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3205 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3206 # is not polluted with repeated "-I."
3207 am__isrc=' -I$(srcdir)'
3208 # test to see if srcdir already configured
3209 if test -f $srcdir/config.status; then
3210 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3211 fi
3212 fi
3213
3214 # test whether we have cygpath
3215 if test -z "$CYGPATH_W"; then
3216 if (cygpath --version) >/dev/null 2>/dev/null; then
3217 CYGPATH_W='cygpath -w'
3218 else
3219 CYGPATH_W=echo
3220 fi
3221 fi
3222
3223
3224 # Define the identity of the package.
3225 PACKAGE='lcas'
3226 VERSION='1.3.20'
3227
3228
3229 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3230
3231
3232 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3233
3234 # Some tools Automake needs.
3235
3236 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3237
3238
3239 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3240
3241
3242 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3243
3244
3245 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3246
3247
3248 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3249
3250 # For better backward compatibility. To be removed once Automake 1.9.x
3251 # dies out for good. For more background, see:
3252 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3253 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3254 mkdir_p='$(MKDIR_P)'
3255
3256 # We need awk for the "check" target (and possibly the TAP driver). The
3257 # system "awk" is bad on some platforms.
3258 # Always define AMTAR for backward compatibility. Yes, it's still used
3259 # in the wild :-( We should find a proper way to deprecate it ...
3260 AMTAR='$${TAR-tar}'
3261
3262
3263 # We'll loop over all known methods to create a tar archive until one works.
3264 _am_tools='gnutar pax cpio none'
3265
3266 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3267
3268
3269
3270
3271
3272 # Variables for tags utilities; see am/tags.am
3273 if test -z "$CTAGS"; then
3274 CTAGS=ctags
3275 fi
3276
3277 if test -z "$ETAGS"; then
3278 ETAGS=etags
3279 fi
3280
3281 if test -z "$CSCOPE"; then
3282 CSCOPE=cscope
3283 fi
3284
3285
3286
3287 # POSIX will say in a future version that running "rm -f" with no argument
3288 # is OK; and we want to be able to make that assumption in our Makefile
3289 # recipes. So use an aggressive probe to check that the usage we want is
3290 # actually supported "in the wild" to an acceptable degree.
3291 # See automake bug#10828.
3292 # To make any issue more visible, cause the running configure to be aborted
3293 # by default if the 'rm' program in use doesn't match our expectations; the
3294 # user can still override this though.
3295 if rm -f && rm -fr && rm -rf; then : OK; else
3296 cat >&2 <<'END'
3297 Oops!
3298
3299 Your 'rm' program seems unable to run without file operands specified
3300 on the command line, even when the '-f' option is present. This is contrary
3301 to the behaviour of most rm programs out there, and not conforming with
3302 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3303
3304 Please tell [email protected] about your system, including the value
3305 of your $PATH and any error possibly output before this message. This
3306 can help us improve future automake versions.
3307
3308 END
3309 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3310 echo 'Configuration will proceed anyway, since you have set the' >&2
3311 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3312 echo >&2
3313 else
3314 cat >&2 <<'END'
3315 Aborting the configuration process, to ensure you take notice of the issue.
3316
3317 You can download and install GNU coreutils to get an 'rm' implementation
3318 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3319
3320 If you want to complete the configuration process using your problematic
3321 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3322 to "yes", and re-run configure.
3323
3324 END
3325 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3326 fi
3327 fi
3328
3329
3330
3331 # Notices.
3332
3333
3334
3335 #Environment.
3336 WORKDIR=`pwd`
3337
3338
3339 DISTBIN=$WORKDIR/../../dist
3340
3341
3342 # Checks for programs.
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 printf %s "checking for $ac_word... " >&6; }
3362 if test ${ac_cv_prog_CC+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else $as_nop
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372 IFS=$as_save_IFS
3373 case $as_dir in #(((
3374 '') as_dir=./ ;;
3375 */) ;;
3376 *) as_dir=$as_dir/ ;;
3377 esac
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 printf "%s\n" "$CC" >&6; }
3394 else
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 printf "%s\n" "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_CC"; then
3402 ac_ct_CC=$CC
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 printf %s "checking for $ac_word... " >&6; }
3407 if test ${ac_cv_prog_ac_ct_CC+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else $as_nop
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 case $as_dir in #(((
3419 '') as_dir=./ ;;
3420 */) ;;
3421 *) as_dir=$as_dir/ ;;
3422 esac
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_CC="gcc"
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 printf "%s\n" "$ac_ct_CC" >&6; }
3439 else
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 printf "%s\n" "no" >&6; }
3442 fi
3443
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3454 fi
3455 else
3456 CC="$ac_cv_prog_CC"
3457 fi
3458
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_CC+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="${ac_tool_prefix}cc"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 printf "%s\n" "$CC" >&6; }
3497 else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 printf "%s\n" "no" >&6; }
3500 fi
3501
3502
3503 fi
3504 fi
3505 if test -z "$CC"; then
3506 # Extract the first word of "cc", so it can be a program name with args.
3507 set dummy cc; ac_word=$2
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 printf %s "checking for $ac_word... " >&6; }
3510 if test ${ac_cv_prog_CC+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else $as_nop
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 ac_prog_rejected=no
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected=yes
3531 continue
3532 fi
3533 ac_cv_prog_CC="cc"
3534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy $ac_cv_prog_CC
3544 shift
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3549 shift
3550 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3551 fi
3552 fi
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 printf "%s\n" "$CC" >&6; }
3559 else
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 printf "%s\n" "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog in cl.exe
3569 do
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_CC+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 printf "%s\n" "$CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 test -n "$CC" && break
3613 done
3614 fi
3615 if test -z "$CC"; then
3616 ac_ct_CC=$CC
3617 for ac_prog in cl.exe
3618 do
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 printf %s "checking for $ac_word... " >&6; }
3623 if test ${ac_cv_prog_ac_ct_CC+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else $as_nop
3627 if test -n "$ac_ct_CC"; then
3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 case $as_dir in #(((
3635 '') as_dir=./ ;;
3636 */) ;;
3637 *) as_dir=$as_dir/ ;;
3638 esac
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3641 ac_cv_prog_ac_ct_CC="$ac_prog"
3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 printf "%s\n" "$ac_ct_CC" >&6; }
3655 else
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658 fi
3659
3660
3661 test -n "$ac_ct_CC" && break
3662 done
3663
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668 yes:)
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 CC=$ac_ct_CC
3674 fi
3675 fi
3676
3677 fi
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}clang; ac_word=$2
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 printf %s "checking for $ac_word... " >&6; }
3684 if test ${ac_cv_prog_CC+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else $as_nop
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 case $as_dir in #(((
3696 '') as_dir=./ ;;
3697 */) ;;
3698 *) as_dir=$as_dir/ ;;
3699 esac
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_CC="${ac_tool_prefix}clang"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 printf "%s\n" "$CC" >&6; }
3716 else
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 printf "%s\n" "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$ac_cv_prog_CC"; then
3724 ac_ct_CC=$CC
3725 # Extract the first word of "clang", so it can be a program name with args.
3726 set dummy clang; ac_word=$2
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 printf %s "checking for $ac_word... " >&6; }
3729 if test ${ac_cv_prog_ac_ct_CC+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else $as_nop
3733 if test -n "$ac_ct_CC"; then
3734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739 IFS=$as_save_IFS
3740 case $as_dir in #(((
3741 '') as_dir=./ ;;
3742 */) ;;
3743 *) as_dir=$as_dir/ ;;
3744 esac
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_ac_ct_CC="clang"
3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 printf "%s\n" "$ac_ct_CC" >&6; }
3761 else
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 else
3778 CC="$ac_cv_prog_CC"
3779 fi
3780
3781 fi
3782
3783
3784 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "no acceptable C compiler found in \$PATH
3787 See \`config.log' for more details" "$LINENO" 5; }
3788
3789 # Provide some information about the compiler.
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3791 set X $ac_compile
3792 ac_compiler=$2
3793 for ac_option in --version -v -V -qversion -version; do
3794 { { ac_try="$ac_compiler $ac_option >&5"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 printf "%s\n" "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 ac_status=$?
3803 if test -s conftest.err; then
3804 sed '10a\
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3808 fi
3809 rm -f conftest.er1 conftest.err
3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 done
3813
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main (void)
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 ac_clean_files_save=$ac_clean_files
3826 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3827 # Try to create an executable without -o first, disregard a.out.
3828 # It will help us diagnose broken compilers, and finding out an intuition
3829 # of exeext.
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3831 printf %s "checking whether the C compiler works... " >&6; }
3832 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834 # The possible output files:
3835 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837 ac_rmfiles=
3838 for ac_file in $ac_files
3839 do
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 esac
3844 done
3845 rm -f $ac_rmfiles
3846
3847 if { { ac_try="$ac_link_default"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 printf "%s\n" "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3855 ac_status=$?
3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3865 do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 ;;
3870 [ab].out )
3871 # We found the default executable, but exeext='' is most
3872 # certainly right.
3873 break;;
3874 *.* )
3875 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3876 then :; else
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 fi
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3883 # actually working.
3884 break;;
3885 * )
3886 break;;
3887 esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891 else $as_nop
3892 ac_file=''
3893 fi
3894 if test -z "$ac_file"
3895 then :
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 printf "%s\n" "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3903 as_fn_error 77 "C compiler cannot create executables
3904 See \`config.log' for more details" "$LINENO" 5; }
3905 else $as_nop
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907 printf "%s\n" "yes" >&6; }
3908 fi
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3910 printf %s "checking for C compiler default output file name... " >&6; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912 printf "%s\n" "$ac_file" >&6; }
3913 ac_exeext=$ac_cv_exeext
3914
3915 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3916 ac_clean_files=$ac_clean_files_save
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918 printf %s "checking for suffix of executables... " >&6; }
3919 if { { ac_try="$ac_link"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 printf "%s\n" "$ac_try_echo"; } >&5
3926 (eval "$ac_link") 2>&5
3927 ac_status=$?
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3930 then :
3931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3933 # work properly (i.e., refer to `conftest.exe'), while it won't with
3934 # `rm'.
3935 for ac_file in conftest.exe conftest conftest.*; do
3936 test -f "$ac_file" || continue
3937 case $ac_file in
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940 break;;
3941 * ) break;;
3942 esac
3943 done
3944 else $as_nop
3945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 fi
3950 rm -f conftest conftest$ac_cv_exeext
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3952 printf "%s\n" "$ac_cv_exeext" >&6; }
3953
3954 rm -f conftest.$ac_ext
3955 EXEEXT=$ac_cv_exeext
3956 ac_exeext=$EXEEXT
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <stdio.h>
3960 int
3961 main (void)
3962 {
3963 FILE *f = fopen ("conftest.out", "w");
3964 return ferror (f) || fclose (f) != 0;
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 ac_clean_files="$ac_clean_files conftest.out"
3971 # Check that the compiler produces executables we can run. If not, either
3972 # the compiler is broken, or we cross compile.
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3974 printf %s "checking whether we are cross compiling... " >&6; }
3975 if test "$cross_compiling" != yes; then
3976 { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 printf "%s\n" "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }
3987 if { ac_try='./conftest$ac_cv_exeext'
3988 { { case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 printf "%s\n" "$ac_try_echo"; } >&5
3994 (eval "$ac_try") 2>&5
3995 ac_status=$?
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; }; then
3998 cross_compiling=no
3999 else
4000 if test "$cross_compiling" = maybe; then
4001 cross_compiling=yes
4002 else
4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error 77 "cannot run C compiled programs.
4006 If you meant to cross compile, use \`--host'.
4007 See \`config.log' for more details" "$LINENO" 5; }
4008 fi
4009 fi
4010 fi
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4012 printf "%s\n" "$cross_compiling" >&6; }
4013
4014 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4015 ac_clean_files=$ac_clean_files_save
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4017 printf %s "checking for suffix of object files... " >&6; }
4018 if test ${ac_cv_objext+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else $as_nop
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main (void)
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 printf "%s\n" "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4042 ac_status=$?
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }
4045 then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 break;;
4052 esac
4053 done
4054 else $as_nop
4055 printf "%s\n" "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details" "$LINENO" 5; }
4062 fi
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 fi
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 printf "%s\n" "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4068 ac_objext=$OBJEXT
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4070 printf %s "checking whether the compiler supports GNU C... " >&6; }
4071 if test ${ac_cv_c_compiler_gnu+y}
4072 then :
4073 printf %s "(cached) " >&6
4074 else $as_nop
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 int
4079 main (void)
4080 {
4081 #ifndef __GNUC__
4082 choke me
4083 #endif
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"
4090 then :
4091 ac_compiler_gnu=yes
4092 else $as_nop
4093 ac_compiler_gnu=no
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098 fi
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103 if test $ac_compiler_gnu = yes; then
4104 GCC=yes
4105 else
4106 GCC=
4107 fi
4108 ac_test_CFLAGS=${CFLAGS+y}
4109 ac_save_CFLAGS=$CFLAGS
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4111 printf %s "checking whether $CC accepts -g... " >&6; }
4112 if test ${ac_cv_prog_cc_g+y}
4113 then :
4114 printf %s "(cached) " >&6
4115 else $as_nop
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main (void)
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133 ac_cv_prog_cc_g=yes
4134 else $as_nop
4135 CFLAGS=""
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138
4139 int
4140 main (void)
4141 {
4142
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"
4148 then :
4149
4150 else $as_nop
4151 ac_c_werror_flag=$ac_save_c_werror_flag
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main (void)
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_g=yes
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4174 fi
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4177 if test $ac_test_CFLAGS; then
4178 CFLAGS=$ac_save_CFLAGS
4179 elif test $ac_cv_prog_cc_g = yes; then
4180 if test "$GCC" = yes; then
4181 CFLAGS="-g -O2"
4182 else
4183 CFLAGS="-g"
4184 fi
4185 else
4186 if test "$GCC" = yes; then
4187 CFLAGS="-O2"
4188 else
4189 CFLAGS=
4190 fi
4191 fi
4192 ac_prog_cc_stdc=no
4193 if test x$ac_prog_cc_stdc = xno
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4196 printf %s "checking for $CC option to enable C11 features... " >&6; }
4197 if test ${ac_cv_prog_cc_c11+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else $as_nop
4201 ac_cv_prog_cc_c11=no
4202 ac_save_CC=$CC
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 $ac_c_conftest_c11_program
4206 _ACEOF
4207 for ac_arg in '' -std=gnu11
4208 do
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212 ac_cv_prog_cc_c11=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam
4215 test "x$ac_cv_prog_cc_c11" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219 fi
4220
4221 if test "x$ac_cv_prog_cc_c11" = xno
4222 then :
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 printf "%s\n" "unsupported" >&6; }
4225 else $as_nop
4226 if test "x$ac_cv_prog_cc_c11" = x
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 printf "%s\n" "none needed" >&6; }
4230 else $as_nop
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4232 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4233 CC="$CC $ac_cv_prog_cc_c11"
4234 fi
4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4236 ac_prog_cc_stdc=c11
4237 fi
4238 fi
4239 if test x$ac_prog_cc_stdc = xno
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4242 printf %s "checking for $CC option to enable C99 features... " >&6; }
4243 if test ${ac_cv_prog_cc_c99+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 ac_cv_prog_cc_c99=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 $ac_c_conftest_c99_program
4252 _ACEOF
4253 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_c99=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam
4261 test "x$ac_cv_prog_cc_c99" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265 fi
4266
4267 if test "x$ac_cv_prog_cc_c99" = xno
4268 then :
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 printf "%s\n" "unsupported" >&6; }
4271 else $as_nop
4272 if test "x$ac_cv_prog_cc_c99" = x
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 printf "%s\n" "none needed" >&6; }
4276 else $as_nop
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4279 CC="$CC $ac_cv_prog_cc_c99"
4280 fi
4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4282 ac_prog_cc_stdc=c99
4283 fi
4284 fi
4285 if test x$ac_prog_cc_stdc = xno
4286 then :
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4288 printf %s "checking for $CC option to enable C89 features... " >&6; }
4289 if test ${ac_cv_prog_cc_c89+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else $as_nop
4293 ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 $ac_c_conftest_c89_program
4298 _ACEOF
4299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 do
4301 CC="$ac_save_CC $ac_arg"
4302 if ac_fn_c_try_compile "$LINENO"
4303 then :
4304 ac_cv_prog_cc_c89=$ac_arg
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.beam
4307 test "x$ac_cv_prog_cc_c89" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4311 fi
4312
4313 if test "x$ac_cv_prog_cc_c89" = xno
4314 then :
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 printf "%s\n" "unsupported" >&6; }
4317 else $as_nop
4318 if test "x$ac_cv_prog_cc_c89" = x
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 printf "%s\n" "none needed" >&6; }
4322 else $as_nop
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4324 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 fi
4327 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4328 ac_prog_cc_stdc=c89
4329 fi
4330 fi
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4345 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4346 if test ${am_cv_prog_cc_c_o+y}
4347 then :
4348 printf %s "(cached) " >&6
4349 else $as_nop
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main (void)
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 # Make sure it works both with $CC and with simple cc.
4362 # Following AC_PROG_CC_C_O, we do the test twice because some
4363 # compilers refuse to overwrite an existing .o file with -o,
4364 # though they will create one.
4365 am_cv_prog_cc_c_o=yes
4366 for am_i in 1 2; do
4367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } \
4372 && test -f conftest2.$ac_objext; then
4373 : OK
4374 else
4375 am_cv_prog_cc_c_o=no
4376 break
4377 fi
4378 done
4379 rm -f core conftest*
4380 unset am_i
4381 fi
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4383 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4384 if test "$am_cv_prog_cc_c_o" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4391 fi
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398 DEPDIR="${am__leading_dot}deps"
4399
4400 ac_config_commands="$ac_config_commands depfiles"
4401
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4403 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4404 cat > confinc.mk << 'END'
4405 am__doit:
4406 @echo this is the am__doit target >confinc.out
4407 .PHONY: am__doit
4408 END
4409 am__include="#"
4410 am__quote=
4411 # BSD make does it like this.
4412 echo '.include "confinc.mk" # ignored' > confmf.BSD
4413 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4414 echo 'include confinc.mk # ignored' > confmf.GNU
4415 _am_result=no
4416 for s in GNU BSD; do
4417 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4418 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }
4422 case $?:`cat confinc.out 2>/dev/null` in #(
4423 '0:this is the am__doit target') :
4424 case $s in #(
4425 BSD) :
4426 am__include='.include' am__quote='"' ;; #(
4427 *) :
4428 am__include='include' am__quote='' ;;
4429 esac ;; #(
4430 *) :
4431 ;;
4432 esac
4433 if test "$am__include" != "#"; then
4434 _am_result="yes ($s style)"
4435 break
4436 fi
4437 done
4438 rm -f confinc.* confmf.*
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4440 printf "%s\n" "${_am_result}" >&6; }
4441
4442 # Check whether --enable-dependency-tracking was given.
4443 if test ${enable_dependency_tracking+y}
4444 then :
4445 enableval=$enable_dependency_tracking;
4446 fi
4447
4448 if test "x$enable_dependency_tracking" != xno; then
4449 am_depcomp="$ac_aux_dir/depcomp"
4450 AMDEPBACKSLASH='\'
4451 am__nodep='_no'
4452 fi
4453 if test "x$enable_dependency_tracking" != xno; then
4454 AMDEP_TRUE=
4455 AMDEP_FALSE='#'
4456 else
4457 AMDEP_TRUE='#'
4458 AMDEP_FALSE=
4459 fi
4460
4461
4462
4463 depcc="$CC" am_compiler_list=
4464
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4466 printf %s "checking dependency style of $depcc... " >&6; }
4467 if test ${am_cv_CC_dependencies_compiler_type+y}
4468 then :
4469 printf %s "(cached) " >&6
4470 else $as_nop
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named 'D' -- because '-MD' means "put the output
4476 # in D".
4477 rm -rf conftest.dir
4478 mkdir conftest.dir
4479 # Copy depcomp to subdir because otherwise we won't find it if we're
4480 # using a relative directory.
4481 cp "$am_depcomp" conftest.dir
4482 cd conftest.dir
4483 # We will build objects and dependencies in a subdirectory because
4484 # it helps to detect inapplicable dependency modes. For instance
4485 # both Tru64's cc and ICC support -MD to output dependencies as a
4486 # side effect of compilation, but ICC will put the dependencies in
4487 # the current directory while Tru64 will put them in the object
4488 # directory.
4489 mkdir sub
4490
4491 am_cv_CC_dependencies_compiler_type=none
4492 if test "$am_compiler_list" = ""; then
4493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4494 fi
4495 am__universal=false
4496 case " $depcc " in #(
4497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498 esac
4499
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4504 #
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4508 : > sub/conftest.c
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512 # Solaris 10 /bin/sh.
4513 echo '/* dummy */' > sub/conftst$i.h
4514 done
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
4517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle '-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs.
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4523 case $depmode in
4524 gcc)
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4527 ;;
4528 nosideeffect)
4529 # After this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested.
4531 if test "x$enable_dependency_tracking" = xyes; then
4532 continue
4533 else
4534 break
4535 fi
4536 ;;
4537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538 # This compiler won't grok '-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4542 am__minus_obj=
4543 ;;
4544 none) break ;;
4545 esac
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4565 break
4566 fi
4567 fi
4568 done
4569
4570 cd ..
4571 rm -rf conftest.dir
4572 else
4573 am_cv_CC_dependencies_compiler_type=none
4574 fi
4575
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580
4581 if
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4584 am__fastdepCC_TRUE=
4585 am__fastdepCC_FALSE='#'
4586 else
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4589 fi
4590
4591
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4593 printf %s "checking whether ln -s works... " >&6; }
4594 LN_S=$as_ln_s
4595 if test "$LN_S" = "ln -s"; then
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597 printf "%s\n" "yes" >&6; }
4598 else
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4600 printf "%s\n" "no, using $LN_S" >&6; }
4601 fi
4602
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4604 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4605 set x ${MAKE-make}
4606 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4607 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4608 then :
4609 printf %s "(cached) " >&6
4610 else $as_nop
4611 cat >conftest.make <<\_ACEOF
4612 SHELL = /bin/sh
4613 all:
4614 @echo '@@@%%%=$(MAKE)=@@@%%%'
4615 _ACEOF
4616 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4618 *@@@%%%=?*=@@@%%%*)
4619 eval ac_cv_prog_make_${ac_make}_set=yes;;
4620 *)
4621 eval ac_cv_prog_make_${ac_make}_set=no;;
4622 esac
4623 rm -f conftest.make
4624 fi
4625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4627 printf "%s\n" "yes" >&6; }
4628 SET_MAKE=
4629 else
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 printf "%s\n" "no" >&6; }
4632 SET_MAKE="MAKE=${MAKE-make}"
4633 fi
4634
4635 case `pwd` in
4636 *\ * | *\ *)
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4638 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4639 esac
4640
4641
4642
4643 macro_version='2.4.7'
4644 macro_revision='2.4.7'
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659 ltmain=$ac_aux_dir/ltmain.sh
4660
4661
4662
4663 # Make sure we can run config.sub.
4664 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4665 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4666
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4668 printf %s "checking build system type... " >&6; }
4669 if test ${ac_cv_build+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else $as_nop
4673 ac_build_alias=$build_alias
4674 test "x$ac_build_alias" = x &&
4675 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4676 test "x$ac_build_alias" = x &&
4677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4678 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4679 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4680
4681 fi
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4683 printf "%s\n" "$ac_cv_build" >&6; }
4684 case $ac_cv_build in
4685 *-*-*) ;;
4686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4687 esac
4688 build=$ac_cv_build
4689 ac_save_IFS=$IFS; IFS='-'
4690 set x $ac_cv_build
4691 shift
4692 build_cpu=$1
4693 build_vendor=$2
4694 shift; shift
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4697 build_os=$*
4698 IFS=$ac_save_IFS
4699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4700
4701
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4703 printf %s "checking host system type... " >&6; }
4704 if test ${ac_cv_host+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else $as_nop
4708 if test "x$host_alias" = x; then
4709 ac_cv_host=$ac_cv_build
4710 else
4711 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4712 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4713 fi
4714
4715 fi
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4717 printf "%s\n" "$ac_cv_host" >&6; }
4718 case $ac_cv_host in
4719 *-*-*) ;;
4720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4721 esac
4722 host=$ac_cv_host
4723 ac_save_IFS=$IFS; IFS='-'
4724 set x $ac_cv_host
4725 shift
4726 host_cpu=$1
4727 host_vendor=$2
4728 shift; shift
4729 # Remember, the first character of IFS is used to create $*,
4730 # except with old shells:
4731 host_os=$*
4732 IFS=$ac_save_IFS
4733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4734
4735
4736 # Backslashify metacharacters that are still active within
4737 # double-quoted strings.
4738 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4739
4740 # Same as above, but do not quote variable references.
4741 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4742
4743 # Sed substitution to delay expansion of an escaped shell variable in a
4744 # double_quote_subst'ed string.
4745 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4746
4747 # Sed substitution to delay expansion of an escaped single quote.
4748 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4749
4750 # Sed substitution to avoid accidental globbing in evaled expressions
4751 no_glob_subst='s/\*/\\\*/g'
4752
4753 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4754 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4756
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4758 printf %s "checking how to print strings... " >&6; }
4759 # Test print first, because it will be a builtin if present.
4760 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4761 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4762 ECHO='print -r --'
4763 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4764 ECHO='printf %s\n'
4765 else
4766 # Use this function as a fallback that always works.
4767 func_fallback_echo ()
4768 {
4769 eval 'cat <<_LTECHO_EOF
4770 $1
4771 _LTECHO_EOF'
4772 }
4773 ECHO='func_fallback_echo'
4774 fi
4775
4776 # func_echo_all arg...
4777 # Invoke $ECHO with all args, space-separated.
4778 func_echo_all ()
4779 {
4780 $ECHO ""
4781 }
4782
4783 case $ECHO in
4784 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4785 printf "%s\n" "printf" >&6; } ;;
4786 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4787 printf "%s\n" "print -r" >&6; } ;;
4788 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4789 printf "%s\n" "cat" >&6; } ;;
4790 esac
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4806 printf %s "checking for a sed that does not truncate output... " >&6; }
4807 if test ${ac_cv_path_SED+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
4811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4812 for ac_i in 1 2 3 4 5 6 7; do
4813 ac_script="$ac_script$as_nl$ac_script"
4814 done
4815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4816 { ac_script=; unset ac_script;}
4817 if test -z "$SED"; then
4818 ac_path_SED_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_prog in sed gsed
4830 do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4833 as_fn_executable_p "$ac_path_SED" || continue
4834 # Check for GNU ac_path_SED and select it if it is found.
4835 # Check for GNU $ac_path_SED
4836 case `"$ac_path_SED" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4839 *)
4840 ac_count=0
4841 printf %s 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 printf "%s\n" '' >> "conftest.nl"
4848 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_SED_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_SED="$ac_path_SED"
4854 ac_path_SED_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862 $ac_path_SED_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_SED"; then
4868 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4869 fi
4870 else
4871 ac_cv_path_SED=$SED
4872 fi
4873
4874 fi
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4876 printf "%s\n" "$ac_cv_path_SED" >&6; }
4877 SED="$ac_cv_path_SED"
4878 rm -f conftest.sed
4879
4880 test -z "$SED" && SED=sed
4881 Xsed="$SED -e 1s/^X//"
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4894 printf %s "checking for grep that handles long lines and -e... " >&6; }
4895 if test ${ac_cv_path_GREP+y}
4896 then :
4897 printf %s "(cached) " >&6
4898 else $as_nop
4899 if test -z "$GREP"; then
4900 ac_path_GREP_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 do
4905 IFS=$as_save_IFS
4906 case $as_dir in #(((
4907 '') as_dir=./ ;;
4908 */) ;;
4909 *) as_dir=$as_dir/ ;;
4910 esac
4911 for ac_prog in grep ggrep
4912 do
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4915 as_fn_executable_p "$ac_path_GREP" || continue
4916 # Check for GNU ac_path_GREP and select it if it is found.
4917 # Check for GNU $ac_path_GREP
4918 case `"$ac_path_GREP" --version 2>&1` in
4919 *GNU*)
4920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4921 *)
4922 ac_count=0
4923 printf %s 0123456789 >"conftest.in"
4924 while :
4925 do
4926 cat "conftest.in" "conftest.in" >"conftest.tmp"
4927 mv "conftest.tmp" "conftest.in"
4928 cp "conftest.in" "conftest.nl"
4929 printf "%s\n" 'GREP' >> "conftest.nl"
4930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4932 as_fn_arith $ac_count + 1 && ac_count=$as_val
4933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4934 # Best one so far, save it but keep looking for a better one
4935 ac_cv_path_GREP="$ac_path_GREP"
4936 ac_path_GREP_max=$ac_count
4937 fi
4938 # 10*(2^10) chars as input seems more than enough
4939 test $ac_count -gt 10 && break
4940 done
4941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942 esac
4943
4944 $ac_path_GREP_found && break 3
4945 done
4946 done
4947 done
4948 IFS=$as_save_IFS
4949 if test -z "$ac_cv_path_GREP"; then
4950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4951 fi
4952 else
4953 ac_cv_path_GREP=$GREP
4954 fi
4955
4956 fi
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4958 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4959 GREP="$ac_cv_path_GREP"
4960
4961
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4963 printf %s "checking for egrep... " >&6; }
4964 if test ${ac_cv_path_EGREP+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else $as_nop
4968 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4969 then ac_cv_path_EGREP="$GREP -E"
4970 else
4971 if test -z "$EGREP"; then
4972 ac_path_EGREP_found=false
4973 # Loop through the user's path and test for each of PROGNAME-LIST
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4976 do
4977 IFS=$as_save_IFS
4978 case $as_dir in #(((
4979 '') as_dir=./ ;;
4980 */) ;;
4981 *) as_dir=$as_dir/ ;;
4982 esac
4983 for ac_prog in egrep
4984 do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4987 as_fn_executable_p "$ac_path_EGREP" || continue
4988 # Check for GNU ac_path_EGREP and select it if it is found.
4989 # Check for GNU $ac_path_EGREP
4990 case `"$ac_path_EGREP" --version 2>&1` in
4991 *GNU*)
4992 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4993 *)
4994 ac_count=0
4995 printf %s 0123456789 >"conftest.in"
4996 while :
4997 do
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 printf "%s\n" 'EGREP' >> "conftest.nl"
5002 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_EGREP="$ac_path_EGREP"
5008 ac_path_EGREP_max=$ac_count
5009 fi
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5012 done
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5015
5016 $ac_path_EGREP_found && break 3
5017 done
5018 done
5019 done
5020 IFS=$as_save_IFS
5021 if test -z "$ac_cv_path_EGREP"; then
5022 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023 fi
5024 else
5025 ac_cv_path_EGREP=$EGREP
5026 fi
5027
5028 fi
5029 fi
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5031 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5032 EGREP="$ac_cv_path_EGREP"
5033
5034
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5036 printf %s "checking for fgrep... " >&6; }
5037 if test ${ac_cv_path_FGREP+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else $as_nop
5041 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5042 then ac_cv_path_FGREP="$GREP -F"
5043 else
5044 if test -z "$FGREP"; then
5045 ac_path_FGREP_found=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5049 do
5050 IFS=$as_save_IFS
5051 case $as_dir in #(((
5052 '') as_dir=./ ;;
5053 */) ;;
5054 *) as_dir=$as_dir/ ;;
5055 esac
5056 for ac_prog in fgrep
5057 do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5060 as_fn_executable_p "$ac_path_FGREP" || continue
5061 # Check for GNU ac_path_FGREP and select it if it is found.
5062 # Check for GNU $ac_path_FGREP
5063 case `"$ac_path_FGREP" --version 2>&1` in
5064 *GNU*)
5065 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5066 *)
5067 ac_count=0
5068 printf %s 0123456789 >"conftest.in"
5069 while :
5070 do
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 printf "%s\n" 'FGREP' >> "conftest.nl"
5075 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_FGREP="$ac_path_FGREP"
5081 ac_path_FGREP_max=$ac_count
5082 fi
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5088
5089 $ac_path_FGREP_found && break 3
5090 done
5091 done
5092 done
5093 IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_FGREP"; then
5095 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 fi
5097 else
5098 ac_cv_path_FGREP=$FGREP
5099 fi
5100
5101 fi
5102 fi
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5104 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5105 FGREP="$ac_cv_path_FGREP"
5106
5107
5108 test -z "$GREP" && GREP=grep
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 # Check whether --with-gnu-ld was given.
5129 if test ${with_gnu_ld+y}
5130 then :
5131 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5132 else $as_nop
5133 with_gnu_ld=no
5134 fi
5135
5136 ac_prog=ld
5137 if test yes = "$GCC"; then
5138 # Check if gcc -print-prog-name=ld gives a path.
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5140 printf %s "checking for ld used by $CC... " >&6; }
5141 case $host in
5142 *-*-mingw*)
5143 # gcc leaves a trailing carriage return, which upsets mingw
5144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5145 *)
5146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5147 esac
5148 case $ac_prog in
5149 # Accept absolute paths.
5150 [\\/]* | ?:[\\/]*)
5151 re_direlt='/[^/][^/]*/\.\./'
5152 # Canonicalize the pathname of ld
5153 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5155 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5156 done
5157 test -z "$LD" && LD=$ac_prog
5158 ;;
5159 "")
5160 # If it fails, then pretend we aren't using GCC.
5161 ac_prog=ld
5162 ;;
5163 *)
5164 # If it is relative, then search for the first ld in PATH.
5165 with_gnu_ld=unknown
5166 ;;
5167 esac
5168 elif test yes = "$with_gnu_ld"; then
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5170 printf %s "checking for GNU ld... " >&6; }
5171 else
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5173 printf %s "checking for non-GNU ld... " >&6; }
5174 fi
5175 if test ${lt_cv_path_LD+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else $as_nop
5179 if test -z "$LD"; then
5180 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5181 for ac_dir in $PATH; do
5182 IFS=$lt_save_ifs
5183 test -z "$ac_dir" && ac_dir=.
5184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5185 lt_cv_path_LD=$ac_dir/$ac_prog
5186 # Check to see if the program is GNU ld. I'd rather use --version,
5187 # but apparently some variants of GNU ld only accept -v.
5188 # Break only if it was the GNU/non-GNU ld that we prefer.
5189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5190 *GNU* | *'with BFD'*)
5191 test no != "$with_gnu_ld" && break
5192 ;;
5193 *)
5194 test yes != "$with_gnu_ld" && break
5195 ;;
5196 esac
5197 fi
5198 done
5199 IFS=$lt_save_ifs
5200 else
5201 lt_cv_path_LD=$LD # Let the user override the test with a path.
5202 fi
5203 fi
5204
5205 LD=$lt_cv_path_LD
5206 if test -n "$LD"; then
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5208 printf "%s\n" "$LD" >&6; }
5209 else
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 printf "%s\n" "no" >&6; }
5212 fi
5213 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5215 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5216 if test ${lt_cv_prog_gnu_ld+y}
5217 then :
5218 printf %s "(cached) " >&6
5219 else $as_nop
5220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5221 case `$LD -v 2>&1 </dev/null` in
5222 *GNU* | *'with BFD'*)
5223 lt_cv_prog_gnu_ld=yes
5224 ;;
5225 *)
5226 lt_cv_prog_gnu_ld=no
5227 ;;
5228 esac
5229 fi
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5231 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5232 with_gnu_ld=$lt_cv_prog_gnu_ld
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5243 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5244 if test ${lt_cv_path_NM+y}
5245 then :
5246 printf %s "(cached) " >&6
5247 else $as_nop
5248 if test -n "$NM"; then
5249 # Let the user override the test.
5250 lt_cv_path_NM=$NM
5251 else
5252 lt_nm_to_check=${ac_tool_prefix}nm
5253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5254 lt_nm_to_check="$lt_nm_to_check nm"
5255 fi
5256 for lt_tmp_nm in $lt_nm_to_check; do
5257 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5259 IFS=$lt_save_ifs
5260 test -z "$ac_dir" && ac_dir=.
5261 tmp_nm=$ac_dir/$lt_tmp_nm
5262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5263 # Check to see if the nm accepts a BSD-compat flag.
5264 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5265 # nm: unknown option "B" ignored
5266 # Tru64's nm complains that /dev/null is an invalid object file
5267 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5268 case $build_os in
5269 mingw*) lt_bad_file=conftest.nm/nofile ;;
5270 *) lt_bad_file=/dev/null ;;
5271 esac
5272 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5273 *$lt_bad_file* | *'Invalid file or object type'*)
5274 lt_cv_path_NM="$tmp_nm -B"
5275 break 2
5276 ;;
5277 *)
5278 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5279 */dev/null*)
5280 lt_cv_path_NM="$tmp_nm -p"
5281 break 2
5282 ;;
5283 *)
5284 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5285 continue # so that we can try to find one that supports BSD flags
5286 ;;
5287 esac
5288 ;;
5289 esac
5290 fi
5291 done
5292 IFS=$lt_save_ifs
5293 done
5294 : ${lt_cv_path_NM=no}
5295 fi
5296 fi
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5298 printf "%s\n" "$lt_cv_path_NM" >&6; }
5299 if test no != "$lt_cv_path_NM"; then
5300 NM=$lt_cv_path_NM
5301 else
5302 # Didn't find any BSD compatible name lister, look for dumpbin.
5303 if test -n "$DUMPBIN"; then :
5304 # Let the user override the test.
5305 else
5306 if test -n "$ac_tool_prefix"; then
5307 for ac_prog in dumpbin "link -dump"
5308 do
5309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 printf %s "checking for $ac_word... " >&6; }
5313 if test ${ac_cv_prog_DUMPBIN+y}
5314 then :
5315 printf %s "(cached) " >&6
5316 else $as_nop
5317 if test -n "$DUMPBIN"; then
5318 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 case $as_dir in #(((
5325 '') as_dir=./ ;;
5326 */) ;;
5327 *) as_dir=$as_dir/ ;;
5328 esac
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 DUMPBIN=$ac_cv_prog_DUMPBIN
5342 if test -n "$DUMPBIN"; then
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5344 printf "%s\n" "$DUMPBIN" >&6; }
5345 else
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 printf "%s\n" "no" >&6; }
5348 fi
5349
5350
5351 test -n "$DUMPBIN" && break
5352 done
5353 fi
5354 if test -z "$DUMPBIN"; then
5355 ac_ct_DUMPBIN=$DUMPBIN
5356 for ac_prog in dumpbin "link -dump"
5357 do
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359 set dummy $ac_prog; ac_word=$2
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 printf %s "checking for $ac_word... " >&6; }
5362 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 if test -n "$ac_ct_DUMPBIN"; then
5367 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 case $as_dir in #(((
5374 '') as_dir=./ ;;
5375 */) ;;
5376 *) as_dir=$as_dir/ ;;
5377 esac
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391 if test -n "$ac_ct_DUMPBIN"; then
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5393 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5394 else
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 printf "%s\n" "no" >&6; }
5397 fi
5398
5399
5400 test -n "$ac_ct_DUMPBIN" && break
5401 done
5402
5403 if test "x$ac_ct_DUMPBIN" = x; then
5404 DUMPBIN=":"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412 DUMPBIN=$ac_ct_DUMPBIN
5413 fi
5414 fi
5415
5416 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5417 *COFF*)
5418 DUMPBIN="$DUMPBIN -symbols -headers"
5419 ;;
5420 *)
5421 DUMPBIN=:
5422 ;;
5423 esac
5424 fi
5425
5426 if test : != "$DUMPBIN"; then
5427 NM=$DUMPBIN
5428 fi
5429 fi
5430 test -z "$NM" && NM=nm
5431
5432
5433
5434
5435
5436
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5438 printf %s "checking the name lister ($NM) interface... " >&6; }
5439 if test ${lt_cv_nm_interface+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else $as_nop
5443 lt_cv_nm_interface="BSD nm"
5444 echo "int some_variable = 0;" > conftest.$ac_ext
5445 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5446 (eval "$ac_compile" 2>conftest.err)
5447 cat conftest.err >&5
5448 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5449 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5450 cat conftest.err >&5
5451 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5452 cat conftest.out >&5
5453 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5454 lt_cv_nm_interface="MS dumpbin"
5455 fi
5456 rm -f conftest*
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5459 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5460
5461 # find the maximum length of command line arguments
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5463 printf %s "checking the maximum length of command line arguments... " >&6; }
5464 if test ${lt_cv_sys_max_cmd_len+y}
5465 then :
5466 printf %s "(cached) " >&6
5467 else $as_nop
5468 i=0
5469 teststring=ABCD
5470
5471 case $build_os in
5472 msdosdjgpp*)
5473 # On DJGPP, this test can blow up pretty badly due to problems in libc
5474 # (any single argument exceeding 2000 bytes causes a buffer overrun
5475 # during glob expansion). Even if it were fixed, the result of this
5476 # check would be larger than it should be.
5477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5478 ;;
5479
5480 gnu*)
5481 # Under GNU Hurd, this test is not required because there is
5482 # no limit to the length of command line arguments.
5483 # Libtool will interpret -1 as no limit whatsoever
5484 lt_cv_sys_max_cmd_len=-1;
5485 ;;
5486
5487 cygwin* | mingw* | cegcc*)
5488 # On Win9x/ME, this test blows up -- it succeeds, but takes
5489 # about 5 minutes as the teststring grows exponentially.
5490 # Worse, since 9x/ME are not pre-emptively multitasking,
5491 # you end up with a "frozen" computer, even though with patience
5492 # the test eventually succeeds (with a max line length of 256k).
5493 # Instead, let's just punt: use the minimum linelength reported by
5494 # all of the supported platforms: 8192 (on NT/2K/XP).
5495 lt_cv_sys_max_cmd_len=8192;
5496 ;;
5497
5498 mint*)
5499 # On MiNT this can take a long time and run out of memory.
5500 lt_cv_sys_max_cmd_len=8192;
5501 ;;
5502
5503 amigaos*)
5504 # On AmigaOS with pdksh, this test takes hours, literally.
5505 # So we just punt and use a minimum line length of 8192.
5506 lt_cv_sys_max_cmd_len=8192;
5507 ;;
5508
5509 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5510 # This has been around since 386BSD, at least. Likely further.
5511 if test -x /sbin/sysctl; then
5512 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5513 elif test -x /usr/sbin/sysctl; then
5514 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5515 else
5516 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5517 fi
5518 # And add a safety zone
5519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5521 ;;
5522
5523 interix*)
5524 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5525 lt_cv_sys_max_cmd_len=196608
5526 ;;
5527
5528 os2*)
5529 # The test takes a long time on OS/2.
5530 lt_cv_sys_max_cmd_len=8192
5531 ;;
5532
5533 osf*)
5534 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5535 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5536 # nice to cause kernel panics so lets avoid the loop below.
5537 # First set a reasonable default.
5538 lt_cv_sys_max_cmd_len=16384
5539 #
5540 if test -x /sbin/sysconfig; then
5541 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5542 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5543 esac
5544 fi
5545 ;;
5546 sco3.2v5*)
5547 lt_cv_sys_max_cmd_len=102400
5548 ;;
5549 sysv5* | sco5v6* | sysv4.2uw2*)
5550 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5551 if test -n "$kargmax"; then
5552 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5553 else
5554 lt_cv_sys_max_cmd_len=32768
5555 fi
5556 ;;
5557 *)
5558 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5559 if test -n "$lt_cv_sys_max_cmd_len" && \
5560 test undefined != "$lt_cv_sys_max_cmd_len"; then
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5563 else
5564 # Make teststring a little bigger before we do anything with it.
5565 # a 1K string should be a reasonable start.
5566 for i in 1 2 3 4 5 6 7 8; do
5567 teststring=$teststring$teststring
5568 done
5569 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570 # If test is not a shell built-in, we'll probably end up computing a
5571 # maximum length that is only half of the actual maximum length, but
5572 # we can't tell.
5573 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5574 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5575 test 17 != "$i" # 1/2 MB should be enough
5576 do
5577 i=`expr $i + 1`
5578 teststring=$teststring$teststring
5579 done
5580 # Only check the string length outside the loop.
5581 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5582 teststring=
5583 # Add a significant safety factor because C++ compilers can tack on
5584 # massive amounts of additional arguments before passing them to the
5585 # linker. It appears as though 1/2 is a usable value.
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587 fi
5588 ;;
5589 esac
5590
5591 fi
5592
5593 if test -n "$lt_cv_sys_max_cmd_len"; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5595 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5596 else
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5598 printf "%s\n" "none" >&6; }
5599 fi
5600 max_cmd_len=$lt_cv_sys_max_cmd_len
5601
5602
5603
5604
5605
5606
5607 : ${CP="cp -f"}
5608 : ${MV="mv -f"}
5609 : ${RM="rm -f"}
5610
5611 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5612 lt_unset=unset
5613 else
5614 lt_unset=false
5615 fi
5616
5617
5618
5619
5620
5621 # test EBCDIC or ASCII
5622 case `echo X|tr X '\101'` in
5623 A) # ASCII based system
5624 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5625 lt_SP2NL='tr \040 \012'
5626 lt_NL2SP='tr \015\012 \040\040'
5627 ;;
5628 *) # EBCDIC based system
5629 lt_SP2NL='tr \100 \n'
5630 lt_NL2SP='tr \r\n \100\100'
5631 ;;
5632 esac
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5643 printf %s "checking how to convert $build file names to $host format... " >&6; }
5644 if test ${lt_cv_to_host_file_cmd+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else $as_nop
5648 case $host in
5649 *-*-mingw* )
5650 case $build in
5651 *-*-mingw* ) # actually msys
5652 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5653 ;;
5654 *-*-cygwin* )
5655 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5656 ;;
5657 * ) # otherwise, assume *nix
5658 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5659 ;;
5660 esac
5661 ;;
5662 *-*-cygwin* )
5663 case $build in
5664 *-*-mingw* ) # actually msys
5665 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5666 ;;
5667 *-*-cygwin* )
5668 lt_cv_to_host_file_cmd=func_convert_file_noop
5669 ;;
5670 * ) # otherwise, assume *nix
5671 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5672 ;;
5673 esac
5674 ;;
5675 * ) # unhandled hosts (and "normal" native builds)
5676 lt_cv_to_host_file_cmd=func_convert_file_noop
5677 ;;
5678 esac
5679
5680 fi
5681
5682 to_host_file_cmd=$lt_cv_to_host_file_cmd
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5684 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5685
5686
5687
5688
5689
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5691 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5692 if test ${lt_cv_to_tool_file_cmd+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else $as_nop
5696 #assume ordinary cross tools, or native build.
5697 lt_cv_to_tool_file_cmd=func_convert_file_noop
5698 case $host in
5699 *-*-mingw* )
5700 case $build in
5701 *-*-mingw* ) # actually msys
5702 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5703 ;;
5704 esac
5705 ;;
5706 esac
5707
5708 fi
5709
5710 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5712 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5713
5714
5715
5716
5717
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5719 printf %s "checking for $LD option to reload object files... " >&6; }
5720 if test ${lt_cv_ld_reload_flag+y}
5721 then :
5722 printf %s "(cached) " >&6
5723 else $as_nop
5724 lt_cv_ld_reload_flag='-r'
5725 fi
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5727 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5728 reload_flag=$lt_cv_ld_reload_flag
5729 case $reload_flag in
5730 "" | " "*) ;;
5731 *) reload_flag=" $reload_flag" ;;
5732 esac
5733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5734 case $host_os in
5735 cygwin* | mingw* | pw32* | cegcc*)
5736 if test yes != "$GCC"; then
5737 reload_cmds=false
5738 fi
5739 ;;
5740 darwin*)
5741 if test yes = "$GCC"; then
5742 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5743 else
5744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5745 fi
5746 ;;
5747 esac
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}file; ac_word=$2
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 printf %s "checking for $ac_word... " >&6; }
5762 if test ${ac_cv_prog_FILECMD+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else $as_nop
5766 if test -n "$FILECMD"; then
5767 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 case $as_dir in #(((
5774 '') as_dir=./ ;;
5775 */) ;;
5776 *) as_dir=$as_dir/ ;;
5777 esac
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 FILECMD=$ac_cv_prog_FILECMD
5791 if test -n "$FILECMD"; then
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5793 printf "%s\n" "$FILECMD" >&6; }
5794 else
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 printf "%s\n" "no" >&6; }
5797 fi
5798
5799
5800 fi
5801 if test -z "$ac_cv_prog_FILECMD"; then
5802 ac_ct_FILECMD=$FILECMD
5803 # Extract the first word of "file", so it can be a program name with args.
5804 set dummy file; ac_word=$2
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 printf %s "checking for $ac_word... " >&6; }
5807 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5808 then :
5809 printf %s "(cached) " >&6
5810 else $as_nop
5811 if test -n "$ac_ct_FILECMD"; then
5812 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 case $as_dir in #(((
5819 '') as_dir=./ ;;
5820 */) ;;
5821 *) as_dir=$as_dir/ ;;
5822 esac
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_ac_ct_FILECMD="file"
5826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5836 if test -n "$ac_ct_FILECMD"; then
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5838 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5839 else
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 printf "%s\n" "no" >&6; }
5842 fi
5843
5844 if test "x$ac_ct_FILECMD" = x; then
5845 FILECMD=":"
5846 else
5847 case $cross_compiling:$ac_tool_warned in
5848 yes:)
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851 ac_tool_warned=yes ;;
5852 esac
5853 FILECMD=$ac_ct_FILECMD
5854 fi
5855 else
5856 FILECMD="$ac_cv_prog_FILECMD"
5857 fi
5858
5859
5860
5861
5862
5863
5864
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 printf %s "checking for $ac_word... " >&6; }
5870 if test ${ac_cv_prog_OBJDUMP+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else $as_nop
5874 if test -n "$OBJDUMP"; then
5875 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 case $as_dir in #(((
5882 '') as_dir=./ ;;
5883 */) ;;
5884 *) as_dir=$as_dir/ ;;
5885 esac
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 OBJDUMP=$ac_cv_prog_OBJDUMP
5899 if test -n "$OBJDUMP"; then
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5901 printf "%s\n" "$OBJDUMP" >&6; }
5902 else
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 printf "%s\n" "no" >&6; }
5905 fi
5906
5907
5908 fi
5909 if test -z "$ac_cv_prog_OBJDUMP"; then
5910 ac_ct_OBJDUMP=$OBJDUMP
5911 # Extract the first word of "objdump", so it can be a program name with args.
5912 set dummy objdump; ac_word=$2
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 printf %s "checking for $ac_word... " >&6; }
5915 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else $as_nop
5919 if test -n "$ac_ct_OBJDUMP"; then
5920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 case $as_dir in #(((
5927 '') as_dir=./ ;;
5928 */) ;;
5929 *) as_dir=$as_dir/ ;;
5930 esac
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5944 if test -n "$ac_ct_OBJDUMP"; then
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5946 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5947 else
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 printf "%s\n" "no" >&6; }
5950 fi
5951
5952 if test "x$ac_ct_OBJDUMP" = x; then
5953 OBJDUMP="false"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 OBJDUMP=$ac_ct_OBJDUMP
5962 fi
5963 else
5964 OBJDUMP="$ac_cv_prog_OBJDUMP"
5965 fi
5966
5967 test -z "$OBJDUMP" && OBJDUMP=objdump
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5978 printf %s "checking how to recognize dependent libraries... " >&6; }
5979 if test ${lt_cv_deplibs_check_method+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else $as_nop
5983 lt_cv_file_magic_cmd='$MAGIC_CMD'
5984 lt_cv_file_magic_test_file=
5985 lt_cv_deplibs_check_method='unknown'
5986 # Need to set the preceding variable on all platforms that support
5987 # interlibrary dependencies.
5988 # 'none' -- dependencies not supported.
5989 # 'unknown' -- same as none, but documents that we really don't know.
5990 # 'pass_all' -- all dependencies passed with no checks.
5991 # 'test_compile' -- check by making test program.
5992 # 'file_magic [[regex]]' -- check by looking for files in library path
5993 # that responds to the $file_magic_cmd with a given extended regex.
5994 # If you have 'file' or equivalent on your system and you're not sure
5995 # whether 'pass_all' will *always* work, you probably want this one.
5996
5997 case $host_os in
5998 aix[4-9]*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001
6002 beos*)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005
6006 bsdi[45]*)
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6008 lt_cv_file_magic_cmd='$FILECMD -L'
6009 lt_cv_file_magic_test_file=/shlib/libc.so
6010 ;;
6011
6012 cygwin*)
6013 # func_win32_libid is a shell function defined in ltmain.sh
6014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6015 lt_cv_file_magic_cmd='func_win32_libid'
6016 ;;
6017
6018 mingw* | pw32*)
6019 # Base MSYS/MinGW do not provide the 'file' command needed by
6020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6021 # unless we find 'file', for example because we are cross-compiling.
6022 if ( file / ) >/dev/null 2>&1; then
6023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6024 lt_cv_file_magic_cmd='func_win32_libid'
6025 else
6026 # Keep this pattern in sync with the one in func_win32_libid.
6027 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6028 lt_cv_file_magic_cmd='$OBJDUMP -f'
6029 fi
6030 ;;
6031
6032 cegcc*)
6033 # use the weaker test based on 'objdump'. See mingw*.
6034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6036 ;;
6037
6038 darwin* | rhapsody*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042 freebsd* | dragonfly* | midnightbsd*)
6043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6044 case $host_cpu in
6045 i*86 )
6046 # Not sure whether the presence of OpenBSD here was a mistake.
6047 # Let's accept both of them until this is cleared up.
6048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6049 lt_cv_file_magic_cmd=$FILECMD
6050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6051 ;;
6052 esac
6053 else
6054 lt_cv_deplibs_check_method=pass_all
6055 fi
6056 ;;
6057
6058 haiku*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 hpux10.20* | hpux11*)
6063 lt_cv_file_magic_cmd=$FILECMD
6064 case $host_cpu in
6065 ia64*)
6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6067 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6068 ;;
6069 hppa*64*)
6070 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]'
6071 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6072 ;;
6073 *)
6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6075 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6076 ;;
6077 esac
6078 ;;
6079
6080 interix[3-9]*)
6081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6083 ;;
6084
6085 irix5* | irix6* | nonstopux*)
6086 case $LD in
6087 *-32|*"-32 ") libmagic=32-bit;;
6088 *-n32|*"-n32 ") libmagic=N32;;
6089 *-64|*"-64 ") libmagic=64-bit;;
6090 *) libmagic=never-match;;
6091 esac
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 # This must be glibc/ELF.
6096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100 netbsd* | netbsdelf*-gnu)
6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 else
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6105 fi
6106 ;;
6107
6108 newos6*)
6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6110 lt_cv_file_magic_cmd=$FILECMD
6111 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6112 ;;
6113
6114 *nto* | *qnx*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 openbsd* | bitrig*)
6119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6121 else
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123 fi
6124 ;;
6125
6126 osf3* | osf4* | osf5*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
6130 rdos*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 solaris*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141
6142 sysv4 | sysv4.3*)
6143 case $host_vendor in
6144 motorola)
6145 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]'
6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6147 ;;
6148 ncr)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151 sequent)
6152 lt_cv_file_magic_cmd='/bin/file'
6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6154 ;;
6155 sni)
6156 lt_cv_file_magic_cmd='/bin/file'
6157 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6158 lt_cv_file_magic_test_file=/lib/libc.so
6159 ;;
6160 siemens)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163 pc)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166 esac
6167 ;;
6168
6169 tpf*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 os2*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175 esac
6176
6177 fi
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6179 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6180
6181 file_magic_glob=
6182 want_nocaseglob=no
6183 if test "$build" = "$host"; then
6184 case $host_os in
6185 mingw* | pw32*)
6186 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6187 want_nocaseglob=yes
6188 else
6189 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6190 fi
6191 ;;
6192 esac
6193 fi
6194
6195 file_magic_cmd=$lt_cv_file_magic_cmd
6196 deplibs_check_method=$lt_cv_deplibs_check_method
6197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 printf %s "checking for $ac_word... " >&6; }
6225 if test ${ac_cv_prog_DLLTOOL+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else $as_nop
6229 if test -n "$DLLTOOL"; then
6230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 case $as_dir in #(((
6237 '') as_dir=./ ;;
6238 */) ;;
6239 *) as_dir=$as_dir/ ;;
6240 esac
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 DLLTOOL=$ac_cv_prog_DLLTOOL
6254 if test -n "$DLLTOOL"; then
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6256 printf "%s\n" "$DLLTOOL" >&6; }
6257 else
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 printf "%s\n" "no" >&6; }
6260 fi
6261
6262
6263 fi
6264 if test -z "$ac_cv_prog_DLLTOOL"; then
6265 ac_ct_DLLTOOL=$DLLTOOL
6266 # Extract the first word of "dlltool", so it can be a program name with args.
6267 set dummy dlltool; ac_word=$2
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 printf %s "checking for $ac_word... " >&6; }
6270 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6271 then :
6272 printf %s "(cached) " >&6
6273 else $as_nop
6274 if test -n "$ac_ct_DLLTOOL"; then
6275 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 case $as_dir in #(((
6282 '') as_dir=./ ;;
6283 */) ;;
6284 *) as_dir=$as_dir/ ;;
6285 esac
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6299 if test -n "$ac_ct_DLLTOOL"; then
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6301 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6302 else
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 printf "%s\n" "no" >&6; }
6305 fi
6306
6307 if test "x$ac_ct_DLLTOOL" = x; then
6308 DLLTOOL="false"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 DLLTOOL=$ac_ct_DLLTOOL
6317 fi
6318 else
6319 DLLTOOL="$ac_cv_prog_DLLTOOL"
6320 fi
6321
6322 test -z "$DLLTOOL" && DLLTOOL=dlltool
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6334 printf %s "checking how to associate runtime and link libraries... " >&6; }
6335 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6336 then :
6337 printf %s "(cached) " >&6
6338 else $as_nop
6339 lt_cv_sharedlib_from_linklib_cmd='unknown'
6340
6341 case $host_os in
6342 cygwin* | mingw* | pw32* | cegcc*)
6343 # two different shell functions defined in ltmain.sh;
6344 # decide which one to use based on capabilities of $DLLTOOL
6345 case `$DLLTOOL --help 2>&1` in
6346 *--identify-strict*)
6347 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6348 ;;
6349 *)
6350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6351 ;;
6352 esac
6353 ;;
6354 *)
6355 # fallback: assume linklib IS sharedlib
6356 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6357 ;;
6358 esac
6359
6360 fi
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6362 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6363 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6364 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6365
6366
6367
6368
6369
6370
6371
6372
6373 if test -n "$ac_tool_prefix"; then
6374 for ac_prog in ar
6375 do
6376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 printf %s "checking for $ac_word... " >&6; }
6380 if test ${ac_cv_prog_AR+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else $as_nop
6384 if test -n "$AR"; then
6385 ac_cv_prog_AR="$AR" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 case $as_dir in #(((
6392 '') as_dir=./ ;;
6393 */) ;;
6394 *) as_dir=$as_dir/ ;;
6395 esac
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 AR=$ac_cv_prog_AR
6409 if test -n "$AR"; then
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6411 printf "%s\n" "$AR" >&6; }
6412 else
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 printf "%s\n" "no" >&6; }
6415 fi
6416
6417
6418 test -n "$AR" && break
6419 done
6420 fi
6421 if test -z "$AR"; then
6422 ac_ct_AR=$AR
6423 for ac_prog in ar
6424 do
6425 # Extract the first word of "$ac_prog", so it can be a program name with args.
6426 set dummy $ac_prog; ac_word=$2
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 printf %s "checking for $ac_word... " >&6; }
6429 if test ${ac_cv_prog_ac_ct_AR+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else $as_nop
6433 if test -n "$ac_ct_AR"; then
6434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 case $as_dir in #(((
6441 '') as_dir=./ ;;
6442 */) ;;
6443 *) as_dir=$as_dir/ ;;
6444 esac
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_AR="$ac_prog"
6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 printf "%s\n" "$ac_ct_AR" >&6; }
6461 else
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 printf "%s\n" "no" >&6; }
6464 fi
6465
6466
6467 test -n "$ac_ct_AR" && break
6468 done
6469
6470 if test "x$ac_ct_AR" = x; then
6471 AR="false"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479 AR=$ac_ct_AR
6480 fi
6481 fi
6482
6483 : ${AR=ar}
6484
6485
6486
6487
6488
6489
6490 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6491 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6492 # higher priority because thats what people were doing historically (setting
6493 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6494 # variable obsoleted/removed.
6495
6496 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6497 lt_ar_flags=$AR_FLAGS
6498
6499
6500
6501
6502
6503
6504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6506
6507
6508
6509
6510
6511
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6513 printf %s "checking for archiver @FILE support... " >&6; }
6514 if test ${lt_cv_ar_at_file+y}
6515 then :
6516 printf %s "(cached) " >&6
6517 else $as_nop
6518 lt_cv_ar_at_file=no
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521
6522 int
6523 main (void)
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"
6531 then :
6532 echo conftest.$ac_objext > conftest.lst
6533 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6535 (eval $lt_ar_try) 2>&5
6536 ac_status=$?
6537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; }
6539 if test 0 -eq "$ac_status"; then
6540 # Ensure the archiver fails upon bogus file names.
6541 rm -f conftest.$ac_objext libconftest.a
6542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6543 (eval $lt_ar_try) 2>&5
6544 ac_status=$?
6545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }
6547 if test 0 -ne "$ac_status"; then
6548 lt_cv_ar_at_file=@
6549 fi
6550 fi
6551 rm -f conftest.* libconftest.a
6552
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6555
6556 fi
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6558 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6559
6560 if test no = "$lt_cv_ar_at_file"; then
6561 archiver_list_spec=
6562 else
6563 archiver_list_spec=$lt_cv_ar_at_file
6564 fi
6565
6566
6567
6568
6569
6570
6571
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}strip; ac_word=$2
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 printf %s "checking for $ac_word... " >&6; }
6577 if test ${ac_cv_prog_STRIP+y}
6578 then :
6579 printf %s "(cached) " >&6
6580 else $as_nop
6581 if test -n "$STRIP"; then
6582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 case $as_dir in #(((
6589 '') as_dir=./ ;;
6590 */) ;;
6591 *) as_dir=$as_dir/ ;;
6592 esac
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599 done
6600 done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 STRIP=$ac_cv_prog_STRIP
6606 if test -n "$STRIP"; then
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6608 printf "%s\n" "$STRIP" >&6; }
6609 else
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 printf "%s\n" "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_STRIP"; then
6617 ac_ct_STRIP=$STRIP
6618 # Extract the first word of "strip", so it can be a program name with args.
6619 set dummy strip; ac_word=$2
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 printf %s "checking for $ac_word... " >&6; }
6622 if test ${ac_cv_prog_ac_ct_STRIP+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else $as_nop
6626 if test -n "$ac_ct_STRIP"; then
6627 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 case $as_dir in #(((
6634 '') as_dir=./ ;;
6635 */) ;;
6636 *) as_dir=$as_dir/ ;;
6637 esac
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_ac_ct_STRIP="strip"
6641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6651 if test -n "$ac_ct_STRIP"; then
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6653 printf "%s\n" "$ac_ct_STRIP" >&6; }
6654 else
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 printf "%s\n" "no" >&6; }
6657 fi
6658
6659 if test "x$ac_ct_STRIP" = x; then
6660 STRIP=":"
6661 else
6662 case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668 STRIP=$ac_ct_STRIP
6669 fi
6670 else
6671 STRIP="$ac_cv_prog_STRIP"
6672 fi
6673
6674 test -z "$STRIP" && STRIP=:
6675
6676
6677
6678
6679
6680
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 printf %s "checking for $ac_word... " >&6; }
6686 if test ${ac_cv_prog_RANLIB+y}
6687 then :
6688 printf %s "(cached) " >&6
6689 else $as_nop
6690 if test -n "$RANLIB"; then
6691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 case $as_dir in #(((
6698 '') as_dir=./ ;;
6699 */) ;;
6700 *) as_dir=$as_dir/ ;;
6701 esac
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 RANLIB=$ac_cv_prog_RANLIB
6715 if test -n "$RANLIB"; then
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6717 printf "%s\n" "$RANLIB" >&6; }
6718 else
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 printf "%s\n" "no" >&6; }
6721 fi
6722
6723
6724 fi
6725 if test -z "$ac_cv_prog_RANLIB"; then
6726 ac_ct_RANLIB=$RANLIB
6727 # Extract the first word of "ranlib", so it can be a program name with args.
6728 set dummy ranlib; ac_word=$2
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 printf %s "checking for $ac_word... " >&6; }
6731 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6732 then :
6733 printf %s "(cached) " >&6
6734 else $as_nop
6735 if test -n "$ac_ct_RANLIB"; then
6736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 case $as_dir in #(((
6743 '') as_dir=./ ;;
6744 */) ;;
6745 *) as_dir=$as_dir/ ;;
6746 esac
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_RANLIB="ranlib"
6750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6760 if test -n "$ac_ct_RANLIB"; then
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6762 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6763 else
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 printf "%s\n" "no" >&6; }
6766 fi
6767
6768 if test "x$ac_ct_RANLIB" = x; then
6769 RANLIB=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 RANLIB=$ac_ct_RANLIB
6778 fi
6779 else
6780 RANLIB="$ac_cv_prog_RANLIB"
6781 fi
6782
6783 test -z "$RANLIB" && RANLIB=:
6784
6785
6786
6787
6788
6789
6790 # Determine commands to create old-style static archives.
6791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6792 old_postinstall_cmds='chmod 644 $oldlib'
6793 old_postuninstall_cmds=
6794
6795 if test -n "$RANLIB"; then
6796 case $host_os in
6797 bitrig* | openbsd*)
6798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6799 ;;
6800 *)
6801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6802 ;;
6803 esac
6804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6805 fi
6806
6807 case $host_os in
6808 darwin*)
6809 lock_old_archive_extraction=yes ;;
6810 *)
6811 lock_old_archive_extraction=no ;;
6812 esac
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 # If no C compiler was specified, use CC.
6853 LTCC=${LTCC-"$CC"}
6854
6855 # If no C compiler flags were specified, use CFLAGS.
6856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6857
6858 # Allow CC to be a program name with arguments.
6859 compiler=$CC
6860
6861
6862 # Check for command to grab the raw symbol name followed by C symbol from nm.
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6864 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6865 if test ${lt_cv_sys_global_symbol_pipe+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else $as_nop
6869
6870 # These are sane defaults that work on at least a few old systems.
6871 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6872
6873 # Character class describing NM global symbol codes.
6874 symcode='[BCDEGRST]'
6875
6876 # Regexp to match symbols that can be accessed directly from C.
6877 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6878
6879 # Define system-specific variables.
6880 case $host_os in
6881 aix*)
6882 symcode='[BCDT]'
6883 ;;
6884 cygwin* | mingw* | pw32* | cegcc*)
6885 symcode='[ABCDGISTW]'
6886 ;;
6887 hpux*)
6888 if test ia64 = "$host_cpu"; then
6889 symcode='[ABCDEGRST]'
6890 fi
6891 ;;
6892 irix* | nonstopux*)
6893 symcode='[BCDEGRST]'
6894 ;;
6895 osf*)
6896 symcode='[BCDEGQRST]'
6897 ;;
6898 solaris*)
6899 symcode='[BDRT]'
6900 ;;
6901 sco3.2v5*)
6902 symcode='[DT]'
6903 ;;
6904 sysv4.2uw2*)
6905 symcode='[DT]'
6906 ;;
6907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6908 symcode='[ABDT]'
6909 ;;
6910 sysv4)
6911 symcode='[DFNSTU]'
6912 ;;
6913 esac
6914
6915 # If we're using GNU nm, then use its standard symbol codes.
6916 case `$NM -V 2>&1` in
6917 *GNU* | *'with BFD'*)
6918 symcode='[ABCDGIRSTW]' ;;
6919 esac
6920
6921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6922 # Gets list of data symbols to import.
6923 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6924 # Adjust the below global symbol transforms to fixup imported variables.
6925 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6926 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6927 lt_c_name_lib_hook="\
6928 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6929 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6930 else
6931 # Disable hooks by default.
6932 lt_cv_sys_global_symbol_to_import=
6933 lt_cdecl_hook=
6934 lt_c_name_hook=
6935 lt_c_name_lib_hook=
6936 fi
6937
6938 # Transform an extracted symbol line into a proper C declaration.
6939 # Some systems (esp. on ia64) link data and code symbols differently,
6940 # so use this general approach.
6941 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6942 $lt_cdecl_hook\
6943 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6944 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6945
6946 # Transform an extracted symbol line into symbol name and symbol address
6947 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6948 $lt_c_name_hook\
6949 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6950 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6951
6952 # Transform an extracted symbol line into symbol name with lib prefix and
6953 # symbol address.
6954 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6955 $lt_c_name_lib_hook\
6956 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6957 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6958 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6959
6960 # Handle CRLF in mingw tool chain
6961 opt_cr=
6962 case $build_os in
6963 mingw*)
6964 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6965 ;;
6966 esac
6967
6968 # Try without a prefix underscore, then with it.
6969 for ac_symprfx in "" "_"; do
6970
6971 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6972 symxfrm="\\1 $ac_symprfx\\2 \\2"
6973
6974 # Write the raw and C identifiers.
6975 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6976 # Fake it for dumpbin and say T for any non-static function,
6977 # D for any global variable and I for any imported variable.
6978 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6979 # which start with @ or ?.
6980 lt_cv_sys_global_symbol_pipe="$AWK '"\
6981 " {last_section=section; section=\$ 3};"\
6982 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6983 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6984 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6985 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6986 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6987 " \$ 0!~/External *\|/{next};"\
6988 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6989 " {if(hide[section]) next};"\
6990 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6991 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6992 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6993 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6994 " ' prfx=^$ac_symprfx"
6995 else
6996 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6997 fi
6998 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6999
7000 # Check to see that the pipe works correctly.
7001 pipe_works=no
7002
7003 rm -f conftest*
7004 cat > conftest.$ac_ext <<_LT_EOF
7005 #ifdef __cplusplus
7006 extern "C" {
7007 #endif
7008 char nm_test_var;
7009 void nm_test_func(void);
7010 void nm_test_func(void){}
7011 #ifdef __cplusplus
7012 }
7013 #endif
7014 int main(){nm_test_var='a';nm_test_func();return(0);}
7015 _LT_EOF
7016
7017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7018 (eval $ac_compile) 2>&5
7019 ac_status=$?
7020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021 test $ac_status = 0; }; then
7022 # Now try to grab the symbols.
7023 nlist=conftest.nm
7024 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7025 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7026 # Try sorting and uniquifying the output.
7027 if sort "$nlist" | uniq > "$nlist"T; then
7028 mv -f "$nlist"T "$nlist"
7029 else
7030 rm -f "$nlist"T
7031 fi
7032
7033 # Make sure that we snagged all the symbols we need.
7034 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7035 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7036 cat <<_LT_EOF > conftest.$ac_ext
7037 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7038 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7039 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7040 relocations are performed -- see ld's documentation on pseudo-relocs. */
7041 # define LT_DLSYM_CONST
7042 #elif defined __osf__
7043 /* This system does not cope well with relocations in const data. */
7044 # define LT_DLSYM_CONST
7045 #else
7046 # define LT_DLSYM_CONST const
7047 #endif
7048
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052
7053 _LT_EOF
7054 # Now generate the symbol file.
7055 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7056
7057 cat <<_LT_EOF >> conftest.$ac_ext
7058
7059 /* The mapping between symbol names and symbols. */
7060 LT_DLSYM_CONST struct {
7061 const char *name;
7062 void *address;
7063 }
7064 lt__PROGRAM__LTX_preloaded_symbols[] =
7065 {
7066 { "@PROGRAM@", (void *) 0 },
7067 _LT_EOF
7068 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7069 cat <<\_LT_EOF >> conftest.$ac_ext
7070 {0, (void *) 0}
7071 };
7072
7073 /* This works around a problem in FreeBSD linker */
7074 #ifdef FREEBSD_WORKAROUND
7075 static const void *lt_preloaded_setup() {
7076 return lt__PROGRAM__LTX_preloaded_symbols;
7077 }
7078 #endif
7079
7080 #ifdef __cplusplus
7081 }
7082 #endif
7083 _LT_EOF
7084 # Now try linking the two files.
7085 mv conftest.$ac_objext conftstm.$ac_objext
7086 lt_globsym_save_LIBS=$LIBS
7087 lt_globsym_save_CFLAGS=$CFLAGS
7088 LIBS=conftstm.$ac_objext
7089 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7091 (eval $ac_link) 2>&5
7092 ac_status=$?
7093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7095 pipe_works=yes
7096 fi
7097 LIBS=$lt_globsym_save_LIBS
7098 CFLAGS=$lt_globsym_save_CFLAGS
7099 else
7100 echo "cannot find nm_test_func in $nlist" >&5
7101 fi
7102 else
7103 echo "cannot find nm_test_var in $nlist" >&5
7104 fi
7105 else
7106 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7107 fi
7108 else
7109 echo "$progname: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7111 fi
7112 rm -rf conftest* conftst*
7113
7114 # Do not use the global_symbol_pipe unless it works.
7115 if test yes = "$pipe_works"; then
7116 break
7117 else
7118 lt_cv_sys_global_symbol_pipe=
7119 fi
7120 done
7121
7122 fi
7123
7124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7125 lt_cv_sys_global_symbol_to_cdecl=
7126 fi
7127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7129 printf "%s\n" "failed" >&6; }
7130 else
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7132 printf "%s\n" "ok" >&6; }
7133 fi
7134
7135 # Response file support.
7136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7137 nm_file_list_spec='@'
7138 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7139 nm_file_list_spec='@'
7140 fi
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7179 printf %s "checking for sysroot... " >&6; }
7180
7181 # Check whether --with-sysroot was given.
7182 if test ${with_sysroot+y}
7183 then :
7184 withval=$with_sysroot;
7185 else $as_nop
7186 with_sysroot=no
7187 fi
7188
7189
7190 lt_sysroot=
7191 case $with_sysroot in #(
7192 yes)
7193 if test yes = "$GCC"; then
7194 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7195 fi
7196 ;; #(
7197 /*)
7198 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7199 ;; #(
7200 no|'')
7201 ;; #(
7202 *)
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7204 printf "%s\n" "$with_sysroot" >&6; }
7205 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7206 ;;
7207 esac
7208
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7210 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7211
7212
7213
7214
7215
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7217 printf %s "checking for a working dd... " >&6; }
7218 if test ${ac_cv_path_lt_DD+y}
7219 then :
7220 printf %s "(cached) " >&6
7221 else $as_nop
7222 printf 0123456789abcdef0123456789abcdef >conftest.i
7223 cat conftest.i conftest.i >conftest2.i
7224 : ${lt_DD:=$DD}
7225 if test -z "$lt_DD"; then
7226 ac_path_lt_DD_found=false
7227 # Loop through the user's path and test for each of PROGNAME-LIST
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 case $as_dir in #(((
7233 '') as_dir=./ ;;
7234 */) ;;
7235 *) as_dir=$as_dir/ ;;
7236 esac
7237 for ac_prog in dd
7238 do
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7241 as_fn_executable_p "$ac_path_lt_DD" || continue
7242 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7243 cmp -s conftest.i conftest.out \
7244 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7245 fi
7246 $ac_path_lt_DD_found && break 3
7247 done
7248 done
7249 done
7250 IFS=$as_save_IFS
7251 if test -z "$ac_cv_path_lt_DD"; then
7252 :
7253 fi
7254 else
7255 ac_cv_path_lt_DD=$lt_DD
7256 fi
7257
7258 rm -f conftest.i conftest2.i conftest.out
7259 fi
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7261 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7262
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7265 printf %s "checking how to truncate binary pipes... " >&6; }
7266 if test ${lt_cv_truncate_bin+y}
7267 then :
7268 printf %s "(cached) " >&6
7269 else $as_nop
7270 printf 0123456789abcdef0123456789abcdef >conftest.i
7271 cat conftest.i conftest.i >conftest2.i
7272 lt_cv_truncate_bin=
7273 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7274 cmp -s conftest.i conftest.out \
7275 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7276 fi
7277 rm -f conftest.i conftest2.i conftest.out
7278 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7279 fi
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7281 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7282
7283
7284
7285
7286
7287
7288
7289 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7290 func_cc_basename ()
7291 {
7292 for cc_temp in $*""; do
7293 case $cc_temp in
7294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7296 \-*) ;;
7297 *) break;;
7298 esac
7299 done
7300 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7301 }
7302
7303 # Check whether --enable-libtool-lock was given.
7304 if test ${enable_libtool_lock+y}
7305 then :
7306 enableval=$enable_libtool_lock;
7307 fi
7308
7309 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7310
7311 # Some flags need to be propagated to the compiler or linker for good
7312 # libtool support.
7313 case $host in
7314 ia64-*-hpux*)
7315 # Find out what ABI is being produced by ac_compile, and set mode
7316 # options accordingly.
7317 echo 'int i;' > conftest.$ac_ext
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319 (eval $ac_compile) 2>&5
7320 ac_status=$?
7321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; }; then
7323 case `$FILECMD conftest.$ac_objext` in
7324 *ELF-32*)
7325 HPUX_IA64_MODE=32
7326 ;;
7327 *ELF-64*)
7328 HPUX_IA64_MODE=64
7329 ;;
7330 esac
7331 fi
7332 rm -rf conftest*
7333 ;;
7334 *-*-irix6*)
7335 # Find out what ABI is being produced by ac_compile, and set linker
7336 # options accordingly.
7337 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 if test yes = "$lt_cv_prog_gnu_ld"; then
7344 case `$FILECMD conftest.$ac_objext` in
7345 *32-bit*)
7346 LD="${LD-ld} -melf32bsmip"
7347 ;;
7348 *N32*)
7349 LD="${LD-ld} -melf32bmipn32"
7350 ;;
7351 *64-bit*)
7352 LD="${LD-ld} -melf64bmip"
7353 ;;
7354 esac
7355 else
7356 case `$FILECMD conftest.$ac_objext` in
7357 *32-bit*)
7358 LD="${LD-ld} -32"
7359 ;;
7360 *N32*)
7361 LD="${LD-ld} -n32"
7362 ;;
7363 *64-bit*)
7364 LD="${LD-ld} -64"
7365 ;;
7366 esac
7367 fi
7368 fi
7369 rm -rf conftest*
7370 ;;
7371
7372 mips64*-*linux*)
7373 # Find out what ABI is being produced by ac_compile, and set linker
7374 # options accordingly.
7375 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 emul=elf
7382 case `$FILECMD conftest.$ac_objext` in
7383 *32-bit*)
7384 emul="${emul}32"
7385 ;;
7386 *64-bit*)
7387 emul="${emul}64"
7388 ;;
7389 esac
7390 case `$FILECMD conftest.$ac_objext` in
7391 *MSB*)
7392 emul="${emul}btsmip"
7393 ;;
7394 *LSB*)
7395 emul="${emul}ltsmip"
7396 ;;
7397 esac
7398 case `$FILECMD conftest.$ac_objext` in
7399 *N32*)
7400 emul="${emul}n32"
7401 ;;
7402 esac
7403 LD="${LD-ld} -m $emul"
7404 fi
7405 rm -rf conftest*
7406 ;;
7407
7408 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7409 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7410 # Find out what ABI is being produced by ac_compile, and set linker
7411 # options accordingly. Note that the listed cases only cover the
7412 # situations where additional linker options are needed (such as when
7413 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7414 # vice versa); the common cases where no linker options are needed do
7415 # not appear in the list.
7416 echo 'int i;' > conftest.$ac_ext
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 case `$FILECMD conftest.o` in
7423 *32-bit*)
7424 case $host in
7425 x86_64-*kfreebsd*-gnu)
7426 LD="${LD-ld} -m elf_i386_fbsd"
7427 ;;
7428 x86_64-*linux*)
7429 case `$FILECMD conftest.o` in
7430 *x86-64*)
7431 LD="${LD-ld} -m elf32_x86_64"
7432 ;;
7433 *)
7434 LD="${LD-ld} -m elf_i386"
7435 ;;
7436 esac
7437 ;;
7438 powerpc64le-*linux*)
7439 LD="${LD-ld} -m elf32lppclinux"
7440 ;;
7441 powerpc64-*linux*)
7442 LD="${LD-ld} -m elf32ppclinux"
7443 ;;
7444 s390x-*linux*)
7445 LD="${LD-ld} -m elf_s390"
7446 ;;
7447 sparc64-*linux*)
7448 LD="${LD-ld} -m elf32_sparc"
7449 ;;
7450 esac
7451 ;;
7452 *64-bit*)
7453 case $host in
7454 x86_64-*kfreebsd*-gnu)
7455 LD="${LD-ld} -m elf_x86_64_fbsd"
7456 ;;
7457 x86_64-*linux*)
7458 LD="${LD-ld} -m elf_x86_64"
7459 ;;
7460 powerpcle-*linux*)
7461 LD="${LD-ld} -m elf64lppc"
7462 ;;
7463 powerpc-*linux*)
7464 LD="${LD-ld} -m elf64ppc"
7465 ;;
7466 s390*-*linux*|s390*-*tpf*)
7467 LD="${LD-ld} -m elf64_s390"
7468 ;;
7469 sparc*-*linux*)
7470 LD="${LD-ld} -m elf64_sparc"
7471 ;;
7472 esac
7473 ;;
7474 esac
7475 fi
7476 rm -rf conftest*
7477 ;;
7478
7479 *-*-sco3.2v5*)
7480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7481 SAVE_CFLAGS=$CFLAGS
7482 CFLAGS="$CFLAGS -belf"
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7484 printf %s "checking whether the C compiler needs -belf... " >&6; }
7485 if test ${lt_cv_cc_needs_belf+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else $as_nop
7489 ac_ext=c
7490 ac_cpp='$CPP $CPPFLAGS'
7491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497
7498 int
7499 main (void)
7500 {
7501
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"
7507 then :
7508 lt_cv_cc_needs_belf=yes
7509 else $as_nop
7510 lt_cv_cc_needs_belf=no
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7513 conftest$ac_exeext conftest.$ac_ext
7514 ac_ext=c
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519
7520 fi
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7522 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7523 if test yes != "$lt_cv_cc_needs_belf"; then
7524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7525 CFLAGS=$SAVE_CFLAGS
7526 fi
7527 ;;
7528 *-*solaris*)
7529 # Find out what ABI is being produced by ac_compile, and set linker
7530 # options accordingly.
7531 echo 'int i;' > conftest.$ac_ext
7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7534 ac_status=$?
7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 case `$FILECMD conftest.o` in
7538 *64-bit*)
7539 case $lt_cv_prog_gnu_ld in
7540 yes*)
7541 case $host in
7542 i?86-*-solaris*|x86_64-*-solaris*)
7543 LD="${LD-ld} -m elf_x86_64"
7544 ;;
7545 sparc*-*-solaris*)
7546 LD="${LD-ld} -m elf64_sparc"
7547 ;;
7548 esac
7549 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7550 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7551 LD=${LD-ld}_sol2
7552 fi
7553 ;;
7554 *)
7555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7556 LD="${LD-ld} -64"
7557 fi
7558 ;;
7559 esac
7560 ;;
7561 esac
7562 fi
7563 rm -rf conftest*
7564 ;;
7565 esac
7566
7567 need_locks=$enable_libtool_lock
7568
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}mt; ac_word=$2
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 printf %s "checking for $ac_word... " >&6; }
7574 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7575 then :
7576 printf %s "(cached) " >&6
7577 else $as_nop
7578 if test -n "$MANIFEST_TOOL"; then
7579 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 case $as_dir in #(((
7586 '') as_dir=./ ;;
7587 */) ;;
7588 *) as_dir=$as_dir/ ;;
7589 esac
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7603 if test -n "$MANIFEST_TOOL"; then
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7605 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7606 else
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 printf "%s\n" "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7614 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7615 # Extract the first word of "mt", so it can be a program name with args.
7616 set dummy mt; ac_word=$2
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 printf %s "checking for $ac_word... " >&6; }
7619 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7620 then :
7621 printf %s "(cached) " >&6
7622 else $as_nop
7623 if test -n "$ac_ct_MANIFEST_TOOL"; then
7624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 case $as_dir in #(((
7631 '') as_dir=./ ;;
7632 */) ;;
7633 *) as_dir=$as_dir/ ;;
7634 esac
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7648 if test -n "$ac_ct_MANIFEST_TOOL"; then
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7650 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7651 else
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 printf "%s\n" "no" >&6; }
7654 fi
7655
7656 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7657 MANIFEST_TOOL=":"
7658 else
7659 case $cross_compiling:$ac_tool_warned in
7660 yes:)
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned=yes ;;
7664 esac
7665 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7666 fi
7667 else
7668 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7669 fi
7670
7671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7673 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7674 if test ${lt_cv_path_mainfest_tool+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else $as_nop
7678 lt_cv_path_mainfest_tool=no
7679 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7680 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7681 cat conftest.err >&5
7682 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7683 lt_cv_path_mainfest_tool=yes
7684 fi
7685 rm -f conftest*
7686 fi
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7688 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7689 if test yes != "$lt_cv_path_mainfest_tool"; then
7690 MANIFEST_TOOL=:
7691 fi
7692
7693
7694
7695
7696
7697
7698 case $host_os in
7699 rhapsody* | darwin*)
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 printf %s "checking for $ac_word... " >&6; }
7705 if test ${ac_cv_prog_DSYMUTIL+y}
7706 then :
7707 printf %s "(cached) " >&6
7708 else $as_nop
7709 if test -n "$DSYMUTIL"; then
7710 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715 IFS=$as_save_IFS
7716 case $as_dir in #(((
7717 '') as_dir=./ ;;
7718 */) ;;
7719 *) as_dir=$as_dir/ ;;
7720 esac
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7734 if test -n "$DSYMUTIL"; then
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7736 printf "%s\n" "$DSYMUTIL" >&6; }
7737 else
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 printf "%s\n" "no" >&6; }
7740 fi
7741
7742
7743 fi
7744 if test -z "$ac_cv_prog_DSYMUTIL"; then
7745 ac_ct_DSYMUTIL=$DSYMUTIL
7746 # Extract the first word of "dsymutil", so it can be a program name with args.
7747 set dummy dsymutil; ac_word=$2
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 printf %s "checking for $ac_word... " >&6; }
7750 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7751 then :
7752 printf %s "(cached) " >&6
7753 else $as_nop
7754 if test -n "$ac_ct_DSYMUTIL"; then
7755 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 case $as_dir in #(((
7762 '') as_dir=./ ;;
7763 */) ;;
7764 *) as_dir=$as_dir/ ;;
7765 esac
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7779 if test -n "$ac_ct_DSYMUTIL"; then
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7781 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7782 else
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 printf "%s\n" "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_DSYMUTIL" = x; then
7788 DSYMUTIL=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 DSYMUTIL=$ac_ct_DSYMUTIL
7797 fi
7798 else
7799 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7800 fi
7801
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 printf %s "checking for $ac_word... " >&6; }
7807 if test ${ac_cv_prog_NMEDIT+y}
7808 then :
7809 printf %s "(cached) " >&6
7810 else $as_nop
7811 if test -n "$NMEDIT"; then
7812 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 case $as_dir in #(((
7819 '') as_dir=./ ;;
7820 */) ;;
7821 *) as_dir=$as_dir/ ;;
7822 esac
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 NMEDIT=$ac_cv_prog_NMEDIT
7836 if test -n "$NMEDIT"; then
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7838 printf "%s\n" "$NMEDIT" >&6; }
7839 else
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 printf "%s\n" "no" >&6; }
7842 fi
7843
7844
7845 fi
7846 if test -z "$ac_cv_prog_NMEDIT"; then
7847 ac_ct_NMEDIT=$NMEDIT
7848 # Extract the first word of "nmedit", so it can be a program name with args.
7849 set dummy nmedit; ac_word=$2
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 printf %s "checking for $ac_word... " >&6; }
7852 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else $as_nop
7856 if test -n "$ac_ct_NMEDIT"; then
7857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 case $as_dir in #(((
7864 '') as_dir=./ ;;
7865 */) ;;
7866 *) as_dir=$as_dir/ ;;
7867 esac
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7881 if test -n "$ac_ct_NMEDIT"; then
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7883 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7884 else
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 printf "%s\n" "no" >&6; }
7887 fi
7888
7889 if test "x$ac_ct_NMEDIT" = x; then
7890 NMEDIT=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898 NMEDIT=$ac_ct_NMEDIT
7899 fi
7900 else
7901 NMEDIT="$ac_cv_prog_NMEDIT"
7902 fi
7903
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 printf %s "checking for $ac_word... " >&6; }
7909 if test ${ac_cv_prog_LIPO+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else $as_nop
7913 if test -n "$LIPO"; then
7914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 case $as_dir in #(((
7921 '') as_dir=./ ;;
7922 */) ;;
7923 *) as_dir=$as_dir/ ;;
7924 esac
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 LIPO=$ac_cv_prog_LIPO
7938 if test -n "$LIPO"; then
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7940 printf "%s\n" "$LIPO" >&6; }
7941 else
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 printf "%s\n" "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_LIPO"; then
7949 ac_ct_LIPO=$LIPO
7950 # Extract the first word of "lipo", so it can be a program name with args.
7951 set dummy lipo; ac_word=$2
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 printf %s "checking for $ac_word... " >&6; }
7954 if test ${ac_cv_prog_ac_ct_LIPO+y}
7955 then :
7956 printf %s "(cached) " >&6
7957 else $as_nop
7958 if test -n "$ac_ct_LIPO"; then
7959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 case $as_dir in #(((
7966 '') as_dir=./ ;;
7967 */) ;;
7968 *) as_dir=$as_dir/ ;;
7969 esac
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_ac_ct_LIPO="lipo"
7973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7983 if test -n "$ac_ct_LIPO"; then
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7985 printf "%s\n" "$ac_ct_LIPO" >&6; }
7986 else
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 printf "%s\n" "no" >&6; }
7989 fi
7990
7991 if test "x$ac_ct_LIPO" = x; then
7992 LIPO=":"
7993 else
7994 case $cross_compiling:$ac_tool_warned in
7995 yes:)
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7998 ac_tool_warned=yes ;;
7999 esac
8000 LIPO=$ac_ct_LIPO
8001 fi
8002 else
8003 LIPO="$ac_cv_prog_LIPO"
8004 fi
8005
8006 if test -n "$ac_tool_prefix"; then
8007 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8008 set dummy ${ac_tool_prefix}otool; ac_word=$2
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 printf %s "checking for $ac_word... " >&6; }
8011 if test ${ac_cv_prog_OTOOL+y}
8012 then :
8013 printf %s "(cached) " >&6
8014 else $as_nop
8015 if test -n "$OTOOL"; then
8016 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021 IFS=$as_save_IFS
8022 case $as_dir in #(((
8023 '') as_dir=./ ;;
8024 */) ;;
8025 *) as_dir=$as_dir/ ;;
8026 esac
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 OTOOL=$ac_cv_prog_OTOOL
8040 if test -n "$OTOOL"; then
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8042 printf "%s\n" "$OTOOL" >&6; }
8043 else
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 printf "%s\n" "no" >&6; }
8046 fi
8047
8048
8049 fi
8050 if test -z "$ac_cv_prog_OTOOL"; then
8051 ac_ct_OTOOL=$OTOOL
8052 # Extract the first word of "otool", so it can be a program name with args.
8053 set dummy otool; ac_word=$2
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 printf %s "checking for $ac_word... " >&6; }
8056 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else $as_nop
8060 if test -n "$ac_ct_OTOOL"; then
8061 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066 IFS=$as_save_IFS
8067 case $as_dir in #(((
8068 '') as_dir=./ ;;
8069 */) ;;
8070 *) as_dir=$as_dir/ ;;
8071 esac
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_ac_ct_OTOOL="otool"
8075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8085 if test -n "$ac_ct_OTOOL"; then
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8087 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8088 else
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 printf "%s\n" "no" >&6; }
8091 fi
8092
8093 if test "x$ac_ct_OTOOL" = x; then
8094 OTOOL=":"
8095 else
8096 case $cross_compiling:$ac_tool_warned in
8097 yes:)
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8101 esac
8102 OTOOL=$ac_ct_OTOOL
8103 fi
8104 else
8105 OTOOL="$ac_cv_prog_OTOOL"
8106 fi
8107
8108 if test -n "$ac_tool_prefix"; then
8109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 printf %s "checking for $ac_word... " >&6; }
8113 if test ${ac_cv_prog_OTOOL64+y}
8114 then :
8115 printf %s "(cached) " >&6
8116 else $as_nop
8117 if test -n "$OTOOL64"; then
8118 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123 IFS=$as_save_IFS
8124 case $as_dir in #(((
8125 '') as_dir=./ ;;
8126 */) ;;
8127 *) as_dir=$as_dir/ ;;
8128 esac
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8131 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 OTOOL64=$ac_cv_prog_OTOOL64
8142 if test -n "$OTOOL64"; then
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8144 printf "%s\n" "$OTOOL64" >&6; }
8145 else
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 printf "%s\n" "no" >&6; }
8148 fi
8149
8150
8151 fi
8152 if test -z "$ac_cv_prog_OTOOL64"; then
8153 ac_ct_OTOOL64=$OTOOL64
8154 # Extract the first word of "otool64", so it can be a program name with args.
8155 set dummy otool64; ac_word=$2
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 printf %s "checking for $ac_word... " >&6; }
8158 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8159 then :
8160 printf %s "(cached) " >&6
8161 else $as_nop
8162 if test -n "$ac_ct_OTOOL64"; then
8163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 case $as_dir in #(((
8170 '') as_dir=./ ;;
8171 */) ;;
8172 *) as_dir=$as_dir/ ;;
8173 esac
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_ac_ct_OTOOL64="otool64"
8177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8187 if test -n "$ac_ct_OTOOL64"; then
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8189 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8190 else
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 printf "%s\n" "no" >&6; }
8193 fi
8194
8195 if test "x$ac_ct_OTOOL64" = x; then
8196 OTOOL64=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202 ac_tool_warned=yes ;;
8203 esac
8204 OTOOL64=$ac_ct_OTOOL64
8205 fi
8206 else
8207 OTOOL64="$ac_cv_prog_OTOOL64"
8208 fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8237 printf %s "checking for -single_module linker flag... " >&6; }
8238 if test ${lt_cv_apple_cc_single_mod+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else $as_nop
8242 lt_cv_apple_cc_single_mod=no
8243 if test -z "$LT_MULTI_MODULE"; then
8244 # By default we will add the -single_module flag. You can override
8245 # by either setting the environment variable LT_MULTI_MODULE
8246 # non-empty at configure time, or by adding -multi_module to the
8247 # link flags.
8248 rm -rf libconftest.dylib*
8249 echo "int foo(void){return 1;}" > conftest.c
8250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8251 -dynamiclib -Wl,-single_module conftest.c" >&5
8252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8254 _lt_result=$?
8255 # If there is a non-empty error log, and "single_module"
8256 # appears in it, assume the flag caused a linker warning
8257 if test -s conftest.err && $GREP single_module conftest.err; then
8258 cat conftest.err >&5
8259 # Otherwise, if the output was created with a 0 exit code from
8260 # the compiler, it worked.
8261 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8262 lt_cv_apple_cc_single_mod=yes
8263 else
8264 cat conftest.err >&5
8265 fi
8266 rm -rf libconftest.dylib*
8267 rm -f conftest.*
8268 fi
8269 fi
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8271 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8272
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8274 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8275 if test ${lt_cv_ld_exported_symbols_list+y}
8276 then :
8277 printf %s "(cached) " >&6
8278 else $as_nop
8279 lt_cv_ld_exported_symbols_list=no
8280 save_LDFLAGS=$LDFLAGS
8281 echo "_main" > conftest.sym
8282 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285
8286 int
8287 main (void)
8288 {
8289
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_link "$LINENO"
8295 then :
8296 lt_cv_ld_exported_symbols_list=yes
8297 else $as_nop
8298 lt_cv_ld_exported_symbols_list=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8301 conftest$ac_exeext conftest.$ac_ext
8302 LDFLAGS=$save_LDFLAGS
8303
8304 fi
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8306 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8307
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8309 printf %s "checking for -force_load linker flag... " >&6; }
8310 if test ${lt_cv_ld_force_load+y}
8311 then :
8312 printf %s "(cached) " >&6
8313 else $as_nop
8314 lt_cv_ld_force_load=no
8315 cat > conftest.c << _LT_EOF
8316 int forced_loaded() { return 2;}
8317 _LT_EOF
8318 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8319 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8320 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8321 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8322 echo "$RANLIB libconftest.a" >&5
8323 $RANLIB libconftest.a 2>&5
8324 cat > conftest.c << _LT_EOF
8325 int main() { return 0;}
8326 _LT_EOF
8327 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8328 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8329 _lt_result=$?
8330 if test -s conftest.err && $GREP force_load conftest.err; then
8331 cat conftest.err >&5
8332 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8333 lt_cv_ld_force_load=yes
8334 else
8335 cat conftest.err >&5
8336 fi
8337 rm -f conftest.err libconftest.a conftest conftest.c
8338 rm -rf conftest.dSYM
8339
8340 fi
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8342 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8343 case $host_os in
8344 rhapsody* | darwin1.[012])
8345 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8346 darwin1.*)
8347 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8348 darwin*)
8349 case $MACOSX_DEPLOYMENT_TARGET,$host in
8350 10.[012],*|,*powerpc*-darwin[5-8]*)
8351 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8352 *)
8353 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8354 esac
8355 ;;
8356 esac
8357 if test yes = "$lt_cv_apple_cc_single_mod"; then
8358 _lt_dar_single_mod='$single_module'
8359 fi
8360 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8361 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8362 else
8363 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8364 fi
8365 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8366 _lt_dsymutil='~$DSYMUTIL $lib || :'
8367 else
8368 _lt_dsymutil=
8369 fi
8370 ;;
8371 esac
8372
8373 # func_munge_path_list VARIABLE PATH
8374 # -----------------------------------
8375 # VARIABLE is name of variable containing _space_ separated list of
8376 # directories to be munged by the contents of PATH, which is string
8377 # having a format:
8378 # "DIR[:DIR]:"
8379 # string "DIR[ DIR]" will be prepended to VARIABLE
8380 # ":DIR[:DIR]"
8381 # string "DIR[ DIR]" will be appended to VARIABLE
8382 # "DIRP[:DIRP]::[DIRA:]DIRA"
8383 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8384 # "DIRA[ DIRA]" will be appended to VARIABLE
8385 # "DIR[:DIR]"
8386 # VARIABLE will be replaced by "DIR[ DIR]"
8387 func_munge_path_list ()
8388 {
8389 case x$2 in
8390 x)
8391 ;;
8392 *:)
8393 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8394 ;;
8395 x:*)
8396 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8397 ;;
8398 *::*)
8399 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8400 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8401 ;;
8402 *)
8403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8404 ;;
8405 esac
8406 }
8407
8408 ac_header= ac_cache=
8409 for ac_item in $ac_header_c_list
8410 do
8411 if test $ac_cache; then
8412 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8413 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8414 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8415 fi
8416 ac_header= ac_cache=
8417 elif test $ac_header; then
8418 ac_cache=$ac_item
8419 else
8420 ac_header=$ac_item
8421 fi
8422 done
8423
8424
8425
8426
8427
8428
8429
8430
8431 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8432 then :
8433
8434 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8435
8436 fi
8437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8438 "
8439 if test "x$ac_cv_header_dlfcn_h" = xyes
8440 then :
8441 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8442
8443 fi
8444
8445
8446
8447
8448
8449 # Set options
8450
8451
8452
8453 enable_dlopen=no
8454
8455
8456 enable_win32_dll=no
8457
8458
8459 # Check whether --enable-shared was given.
8460 if test ${enable_shared+y}
8461 then :
8462 enableval=$enable_shared; p=${PACKAGE-default}
8463 case $enableval in
8464 yes) enable_shared=yes ;;
8465 no) enable_shared=no ;;
8466 *)
8467 enable_shared=no
8468 # Look at the argument we got. We use all the common list separators.
8469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8470 for pkg in $enableval; do
8471 IFS=$lt_save_ifs
8472 if test "X$pkg" = "X$p"; then
8473 enable_shared=yes
8474 fi
8475 done
8476 IFS=$lt_save_ifs
8477 ;;
8478 esac
8479 else $as_nop
8480 enable_shared=yes
8481 fi
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 # Check whether --enable-static was given.
8492 if test ${enable_static+y}
8493 then :
8494 enableval=$enable_static; p=${PACKAGE-default}
8495 case $enableval in
8496 yes) enable_static=yes ;;
8497 no) enable_static=no ;;
8498 *)
8499 enable_static=no
8500 # Look at the argument we got. We use all the common list separators.
8501 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8502 for pkg in $enableval; do
8503 IFS=$lt_save_ifs
8504 if test "X$pkg" = "X$p"; then
8505 enable_static=yes
8506 fi
8507 done
8508 IFS=$lt_save_ifs
8509 ;;
8510 esac
8511 else $as_nop
8512 enable_static=yes
8513 fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524 # Check whether --with-pic was given.
8525 if test ${with_pic+y}
8526 then :
8527 withval=$with_pic; lt_p=${PACKAGE-default}
8528 case $withval in
8529 yes|no) pic_mode=$withval ;;
8530 *)
8531 pic_mode=default
8532 # Look at the argument we got. We use all the common list separators.
8533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8534 for lt_pkg in $withval; do
8535 IFS=$lt_save_ifs
8536 if test "X$lt_pkg" = "X$lt_p"; then
8537 pic_mode=yes
8538 fi
8539 done
8540 IFS=$lt_save_ifs
8541 ;;
8542 esac
8543 else $as_nop
8544 pic_mode=default
8545 fi
8546
8547
8548
8549
8550
8551
8552
8553
8554 # Check whether --enable-fast-install was given.
8555 if test ${enable_fast_install+y}
8556 then :
8557 enableval=$enable_fast_install; p=${PACKAGE-default}
8558 case $enableval in
8559 yes) enable_fast_install=yes ;;
8560 no) enable_fast_install=no ;;
8561 *)
8562 enable_fast_install=no
8563 # Look at the argument we got. We use all the common list separators.
8564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8565 for pkg in $enableval; do
8566 IFS=$lt_save_ifs
8567 if test "X$pkg" = "X$p"; then
8568 enable_fast_install=yes
8569 fi
8570 done
8571 IFS=$lt_save_ifs
8572 ;;
8573 esac
8574 else $as_nop
8575 enable_fast_install=yes
8576 fi
8577
8578
8579
8580
8581
8582
8583
8584
8585 shared_archive_member_spec=
8586 case $host,$enable_shared in
8587 power*-*-aix[5-9]*,yes)
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8589 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8590
8591 # Check whether --with-aix-soname was given.
8592 if test ${with_aix_soname+y}
8593 then :
8594 withval=$with_aix_soname; case $withval in
8595 aix|svr4|both)
8596 ;;
8597 *)
8598 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8599 ;;
8600 esac
8601 lt_cv_with_aix_soname=$with_aix_soname
8602 else $as_nop
8603 if test ${lt_cv_with_aix_soname+y}
8604 then :
8605 printf %s "(cached) " >&6
8606 else $as_nop
8607 lt_cv_with_aix_soname=aix
8608 fi
8609
8610 with_aix_soname=$lt_cv_with_aix_soname
8611 fi
8612
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8614 printf "%s\n" "$with_aix_soname" >&6; }
8615 if test aix != "$with_aix_soname"; then
8616 # For the AIX way of multilib, we name the shared archive member
8617 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8618 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8619 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8620 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8621 if test 64 = "${OBJECT_MODE-32}"; then
8622 shared_archive_member_spec=shr_64
8623 else
8624 shared_archive_member_spec=shr
8625 fi
8626 fi
8627 ;;
8628 *)
8629 with_aix_soname=aix
8630 ;;
8631 esac
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 # This can be used to rebuild libtool when needed
8643 LIBTOOL_DEPS=$ltmain
8644
8645 # Always use our own libtool.
8646 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 test -z "$LN_S" && LN_S="ln -s"
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 if test -n "${ZSH_VERSION+set}"; then
8693 setopt NO_GLOB_SUBST
8694 fi
8695
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8697 printf %s "checking for objdir... " >&6; }
8698 if test ${lt_cv_objdir+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else $as_nop
8702 rm -f .libs 2>/dev/null
8703 mkdir .libs 2>/dev/null
8704 if test -d .libs; then
8705 lt_cv_objdir=.libs
8706 else
8707 # MS-DOS does not allow filenames that begin with a dot.
8708 lt_cv_objdir=_libs
8709 fi
8710 rmdir .libs 2>/dev/null
8711 fi
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8713 printf "%s\n" "$lt_cv_objdir" >&6; }
8714 objdir=$lt_cv_objdir
8715
8716
8717
8718
8719
8720 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8721
8722
8723
8724
8725 case $host_os in
8726 aix3*)
8727 # AIX sometimes has problems with the GCC collect2 program. For some
8728 # reason, if we set the COLLECT_NAMES environment variable, the problems
8729 # vanish in a puff of smoke.
8730 if test set != "${COLLECT_NAMES+set}"; then
8731 COLLECT_NAMES=
8732 export COLLECT_NAMES
8733 fi
8734 ;;
8735 esac
8736
8737 # Global variables:
8738 ofile=libtool
8739 can_build_shared=yes
8740
8741 # All known linkers require a '.a' archive for static linking (except MSVC and
8742 # ICC, which need '.lib').
8743 libext=a
8744
8745 with_gnu_ld=$lt_cv_prog_gnu_ld
8746
8747 old_CC=$CC
8748 old_CFLAGS=$CFLAGS
8749
8750 # Set sane defaults for various variables
8751 test -z "$CC" && CC=cc
8752 test -z "$LTCC" && LTCC=$CC
8753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8754 test -z "$LD" && LD=ld
8755 test -z "$ac_objext" && ac_objext=o
8756
8757 func_cc_basename $compiler
8758 cc_basename=$func_cc_basename_result
8759
8760
8761 # Only perform the check for file, if the check method requires it
8762 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8763 case $deplibs_check_method in
8764 file_magic*)
8765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8767 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8768 if test ${lt_cv_path_MAGIC_CMD+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else $as_nop
8772 case $MAGIC_CMD in
8773 [\\/*] | ?:[\\/]*)
8774 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8775 ;;
8776 *)
8777 lt_save_MAGIC_CMD=$MAGIC_CMD
8778 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8780 for ac_dir in $ac_dummy; do
8781 IFS=$lt_save_ifs
8782 test -z "$ac_dir" && ac_dir=.
8783 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8784 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8785 if test -n "$file_magic_test_file"; then
8786 case $deplibs_check_method in
8787 "file_magic "*)
8788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8789 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8791 $EGREP "$file_magic_regex" > /dev/null; then
8792 :
8793 else
8794 cat <<_LT_EOF 1>&2
8795
8796 *** Warning: the command libtool uses to detect shared libraries,
8797 *** $file_magic_cmd, produces output that libtool cannot recognize.
8798 *** The result is that libtool may fail to recognize shared libraries
8799 *** as such. This will affect the creation of libtool libraries that
8800 *** depend on shared libraries, but programs linked with such libtool
8801 *** libraries will work regardless of this problem. Nevertheless, you
8802 *** may want to report the problem to your system manager and/or to
8803 *** [email protected]
8804
8805 _LT_EOF
8806 fi ;;
8807 esac
8808 fi
8809 break
8810 fi
8811 done
8812 IFS=$lt_save_ifs
8813 MAGIC_CMD=$lt_save_MAGIC_CMD
8814 ;;
8815 esac
8816 fi
8817
8818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8819 if test -n "$MAGIC_CMD"; then
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8821 printf "%s\n" "$MAGIC_CMD" >&6; }
8822 else
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 printf "%s\n" "no" >&6; }
8825 fi
8826
8827
8828
8829
8830
8831 if test -z "$lt_cv_path_MAGIC_CMD"; then
8832 if test -n "$ac_tool_prefix"; then
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8834 printf %s "checking for file... " >&6; }
8835 if test ${lt_cv_path_MAGIC_CMD+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else $as_nop
8839 case $MAGIC_CMD in
8840 [\\/*] | ?:[\\/]*)
8841 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8842 ;;
8843 *)
8844 lt_save_MAGIC_CMD=$MAGIC_CMD
8845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8846 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8847 for ac_dir in $ac_dummy; do
8848 IFS=$lt_save_ifs
8849 test -z "$ac_dir" && ac_dir=.
8850 if test -f "$ac_dir/file"; then
8851 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8852 if test -n "$file_magic_test_file"; then
8853 case $deplibs_check_method in
8854 "file_magic "*)
8855 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8856 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8858 $EGREP "$file_magic_regex" > /dev/null; then
8859 :
8860 else
8861 cat <<_LT_EOF 1>&2
8862
8863 *** Warning: the command libtool uses to detect shared libraries,
8864 *** $file_magic_cmd, produces output that libtool cannot recognize.
8865 *** The result is that libtool may fail to recognize shared libraries
8866 *** as such. This will affect the creation of libtool libraries that
8867 *** depend on shared libraries, but programs linked with such libtool
8868 *** libraries will work regardless of this problem. Nevertheless, you
8869 *** may want to report the problem to your system manager and/or to
8870 *** [email protected]
8871
8872 _LT_EOF
8873 fi ;;
8874 esac
8875 fi
8876 break
8877 fi
8878 done
8879 IFS=$lt_save_ifs
8880 MAGIC_CMD=$lt_save_MAGIC_CMD
8881 ;;
8882 esac
8883 fi
8884
8885 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8886 if test -n "$MAGIC_CMD"; then
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8888 printf "%s\n" "$MAGIC_CMD" >&6; }
8889 else
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 printf "%s\n" "no" >&6; }
8892 fi
8893
8894
8895 else
8896 MAGIC_CMD=:
8897 fi
8898 fi
8899
8900 fi
8901 ;;
8902 esac
8903
8904 # Use C for the default configuration in the libtool script
8905
8906 lt_save_CC=$CC
8907 ac_ext=c
8908 ac_cpp='$CPP $CPPFLAGS'
8909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8912
8913
8914 # Source file extension for C test sources.
8915 ac_ext=c
8916
8917 # Object file extension for compiled C test sources.
8918 objext=o
8919 objext=$objext
8920
8921 # Code to be used in simple compile tests
8922 lt_simple_compile_test_code="int some_variable = 0;"
8923
8924 # Code to be used in simple link tests
8925 lt_simple_link_test_code='int main(){return(0);}'
8926
8927
8928
8929
8930
8931
8932
8933 # If no C compiler was specified, use CC.
8934 LTCC=${LTCC-"$CC"}
8935
8936 # If no C compiler flags were specified, use CFLAGS.
8937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8938
8939 # Allow CC to be a program name with arguments.
8940 compiler=$CC
8941
8942 # Save the default compiler, since it gets overwritten when the other
8943 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8944 compiler_DEFAULT=$CC
8945
8946 # save warnings/boilerplate of simple test code
8947 ac_outfile=conftest.$ac_objext
8948 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8950 _lt_compiler_boilerplate=`cat conftest.err`
8951 $RM conftest*
8952
8953 ac_outfile=conftest.$ac_objext
8954 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8956 _lt_linker_boilerplate=`cat conftest.err`
8957 $RM -r conftest*
8958
8959
8960 ## CAVEAT EMPTOR:
8961 ## There is no encapsulation within the following macros, do not change
8962 ## the running order or otherwise move them around unless you know exactly
8963 ## what you are doing...
8964 if test -n "$compiler"; then
8965
8966 lt_prog_compiler_no_builtin_flag=
8967
8968 if test yes = "$GCC"; then
8969 case $cc_basename in
8970 nvcc*)
8971 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8972 *)
8973 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8974 esac
8975
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8977 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8978 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8979 then :
8980 printf %s "(cached) " >&6
8981 else $as_nop
8982 lt_cv_prog_compiler_rtti_exceptions=no
8983 ac_outfile=conftest.$ac_objext
8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8986 # Insert the option either (1) after the last *FLAGS variable, or
8987 # (2) before a word containing "conftest.", or (3) at the end.
8988 # Note that $ac_compile itself does not contain backslashes and begins
8989 # with a dollar sign (not a hyphen), so the echo should work correctly.
8990 # The option is referenced via a variable to avoid confusing sed.
8991 lt_compile=`echo "$ac_compile" | $SED \
8992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994 -e 's:$: $lt_compiler_flag:'`
8995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996 (eval "$lt_compile" 2>conftest.err)
8997 ac_status=$?
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 if (exit $ac_status) && test -s "$ac_outfile"; then
9001 # The compiler can only warn and ignore the option if not recognized
9002 # So say no if there are warnings other than the usual output.
9003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_rtti_exceptions=yes
9007 fi
9008 fi
9009 $RM conftest*
9010
9011 fi
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9013 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9014
9015 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9016 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9017 else
9018 :
9019 fi
9020
9021 fi
9022
9023
9024
9025
9026
9027
9028 lt_prog_compiler_wl=
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_static=
9031
9032
9033 if test yes = "$GCC"; then
9034 lt_prog_compiler_wl='-Wl,'
9035 lt_prog_compiler_static='-static'
9036
9037 case $host_os in
9038 aix*)
9039 # All AIX code is PIC.
9040 if test ia64 = "$host_cpu"; then
9041 # AIX 5 now supports IA64 processor
9042 lt_prog_compiler_static='-Bstatic'
9043 fi
9044 lt_prog_compiler_pic='-fPIC'
9045 ;;
9046
9047 amigaos*)
9048 case $host_cpu in
9049 powerpc)
9050 # see comment about AmigaOS4 .so support
9051 lt_prog_compiler_pic='-fPIC'
9052 ;;
9053 m68k)
9054 # FIXME: we need at least 68020 code to build shared libraries, but
9055 # adding the '-m68020' flag to GCC prevents building anything better,
9056 # like '-m68040'.
9057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9058 ;;
9059 esac
9060 ;;
9061
9062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9063 # PIC is the default for these OSes.
9064 ;;
9065
9066 mingw* | cygwin* | pw32* | os2* | cegcc*)
9067 # This hack is so that the source file can tell whether it is being
9068 # built for inclusion in a dll (and should export symbols for example).
9069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9070 # (--disable-auto-import) libraries
9071 lt_prog_compiler_pic='-DDLL_EXPORT'
9072 case $host_os in
9073 os2*)
9074 lt_prog_compiler_static='$wl-static'
9075 ;;
9076 esac
9077 ;;
9078
9079 darwin* | rhapsody*)
9080 # PIC is the default on this platform
9081 # Common symbols not allowed in MH_DYLIB files
9082 lt_prog_compiler_pic='-fno-common'
9083 ;;
9084
9085 haiku*)
9086 # PIC is the default for Haiku.
9087 # The "-static" flag exists, but is broken.
9088 lt_prog_compiler_static=
9089 ;;
9090
9091 hpux*)
9092 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9093 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9094 # sets the default TLS model and affects inlining.
9095 case $host_cpu in
9096 hppa*64*)
9097 # +Z the default
9098 ;;
9099 *)
9100 lt_prog_compiler_pic='-fPIC'
9101 ;;
9102 esac
9103 ;;
9104
9105 interix[3-9]*)
9106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9107 # Instead, we relocate shared libraries at runtime.
9108 ;;
9109
9110 msdosdjgpp*)
9111 # Just because we use GCC doesn't mean we suddenly get shared libraries
9112 # on systems that don't support them.
9113 lt_prog_compiler_can_build_shared=no
9114 enable_shared=no
9115 ;;
9116
9117 *nto* | *qnx*)
9118 # QNX uses GNU C++, but need to define -shared option too, otherwise
9119 # it will coredump.
9120 lt_prog_compiler_pic='-fPIC -shared'
9121 ;;
9122
9123 sysv4*MP*)
9124 if test -d /usr/nec; then
9125 lt_prog_compiler_pic=-Kconform_pic
9126 fi
9127 ;;
9128
9129 *)
9130 lt_prog_compiler_pic='-fPIC'
9131 ;;
9132 esac
9133
9134 case $cc_basename in
9135 nvcc*) # Cuda Compiler Driver 2.2
9136 lt_prog_compiler_wl='-Xlinker '
9137 if test -n "$lt_prog_compiler_pic"; then
9138 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9139 fi
9140 ;;
9141 esac
9142 else
9143 # PORTME Check for flag to pass linker flags through the system compiler.
9144 case $host_os in
9145 aix*)
9146 lt_prog_compiler_wl='-Wl,'
9147 if test ia64 = "$host_cpu"; then
9148 # AIX 5 now supports IA64 processor
9149 lt_prog_compiler_static='-Bstatic'
9150 else
9151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9152 fi
9153 ;;
9154
9155 darwin* | rhapsody*)
9156 # PIC is the default on this platform
9157 # Common symbols not allowed in MH_DYLIB files
9158 lt_prog_compiler_pic='-fno-common'
9159 case $cc_basename in
9160 nagfor*)
9161 # NAG Fortran compiler
9162 lt_prog_compiler_wl='-Wl,-Wl,,'
9163 lt_prog_compiler_pic='-PIC'
9164 lt_prog_compiler_static='-Bstatic'
9165 ;;
9166 esac
9167 ;;
9168
9169 mingw* | cygwin* | pw32* | os2* | cegcc*)
9170 # This hack is so that the source file can tell whether it is being
9171 # built for inclusion in a dll (and should export symbols for example).
9172 lt_prog_compiler_pic='-DDLL_EXPORT'
9173 case $host_os in
9174 os2*)
9175 lt_prog_compiler_static='$wl-static'
9176 ;;
9177 esac
9178 ;;
9179
9180 hpux9* | hpux10* | hpux11*)
9181 lt_prog_compiler_wl='-Wl,'
9182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9183 # not for PA HP-UX.
9184 case $host_cpu in
9185 hppa*64*|ia64*)
9186 # +Z the default
9187 ;;
9188 *)
9189 lt_prog_compiler_pic='+Z'
9190 ;;
9191 esac
9192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9193 lt_prog_compiler_static='$wl-a ${wl}archive'
9194 ;;
9195
9196 irix5* | irix6* | nonstopux*)
9197 lt_prog_compiler_wl='-Wl,'
9198 # PIC (with -KPIC) is the default.
9199 lt_prog_compiler_static='-non_shared'
9200 ;;
9201
9202 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9203 case $cc_basename in
9204 # old Intel for x86_64, which still supported -KPIC.
9205 ecc*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_pic='-KPIC'
9208 lt_prog_compiler_static='-static'
9209 ;;
9210 # flang / f18. f95 an alias for gfortran or flang on Debian
9211 flang* | f18* | f95*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-fPIC'
9214 lt_prog_compiler_static='-static'
9215 ;;
9216 # icc used to be incompatible with GCC.
9217 # ICC 10 doesn't accept -KPIC any more.
9218 icc* | ifort*)
9219 lt_prog_compiler_wl='-Wl,'
9220 lt_prog_compiler_pic='-fPIC'
9221 lt_prog_compiler_static='-static'
9222 ;;
9223 # Lahey Fortran 8.1.
9224 lf95*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='--shared'
9227 lt_prog_compiler_static='--static'
9228 ;;
9229 nagfor*)
9230 # NAG Fortran compiler
9231 lt_prog_compiler_wl='-Wl,-Wl,,'
9232 lt_prog_compiler_pic='-PIC'
9233 lt_prog_compiler_static='-Bstatic'
9234 ;;
9235 tcc*)
9236 # Fabrice Bellard et al's Tiny C Compiler
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='-fPIC'
9239 lt_prog_compiler_static='-static'
9240 ;;
9241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9242 # Portland Group compilers (*not* the Pentium gcc compiler,
9243 # which looks to be a dead project)
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-fpic'
9246 lt_prog_compiler_static='-Bstatic'
9247 ;;
9248 ccc*)
9249 lt_prog_compiler_wl='-Wl,'
9250 # All Alpha code is PIC.
9251 lt_prog_compiler_static='-non_shared'
9252 ;;
9253 xl* | bgxl* | bgf* | mpixl*)
9254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-qpic'
9257 lt_prog_compiler_static='-qstaticlink'
9258 ;;
9259 *)
9260 case `$CC -V 2>&1 | $SED 5q` in
9261 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-Bstatic'
9265 lt_prog_compiler_wl=''
9266 ;;
9267 *Sun\ F* | *Sun*Fortran*)
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-Bstatic'
9270 lt_prog_compiler_wl='-Qoption ld '
9271 ;;
9272 *Sun\ C*)
9273 # Sun C 5.9
9274 lt_prog_compiler_pic='-KPIC'
9275 lt_prog_compiler_static='-Bstatic'
9276 lt_prog_compiler_wl='-Wl,'
9277 ;;
9278 *Intel*\ [CF]*Compiler*)
9279 lt_prog_compiler_wl='-Wl,'
9280 lt_prog_compiler_pic='-fPIC'
9281 lt_prog_compiler_static='-static'
9282 ;;
9283 *Portland\ Group*)
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-fpic'
9286 lt_prog_compiler_static='-Bstatic'
9287 ;;
9288 esac
9289 ;;
9290 esac
9291 ;;
9292
9293 newsos6)
9294 lt_prog_compiler_pic='-KPIC'
9295 lt_prog_compiler_static='-Bstatic'
9296 ;;
9297
9298 *nto* | *qnx*)
9299 # QNX uses GNU C++, but need to define -shared option too, otherwise
9300 # it will coredump.
9301 lt_prog_compiler_pic='-fPIC -shared'
9302 ;;
9303
9304 osf3* | osf4* | osf5*)
9305 lt_prog_compiler_wl='-Wl,'
9306 # All OSF/1 code is PIC.
9307 lt_prog_compiler_static='-non_shared'
9308 ;;
9309
9310 rdos*)
9311 lt_prog_compiler_static='-non_shared'
9312 ;;
9313
9314 solaris*)
9315 lt_prog_compiler_pic='-KPIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 case $cc_basename in
9318 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9319 lt_prog_compiler_wl='-Qoption ld ';;
9320 *)
9321 lt_prog_compiler_wl='-Wl,';;
9322 esac
9323 ;;
9324
9325 sunos4*)
9326 lt_prog_compiler_wl='-Qoption ld '
9327 lt_prog_compiler_pic='-PIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 ;;
9330
9331 sysv4 | sysv4.2uw2* | sysv4.3*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='-KPIC'
9334 lt_prog_compiler_static='-Bstatic'
9335 ;;
9336
9337 sysv4*MP*)
9338 if test -d /usr/nec; then
9339 lt_prog_compiler_pic='-Kconform_pic'
9340 lt_prog_compiler_static='-Bstatic'
9341 fi
9342 ;;
9343
9344 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349
9350 unicos*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_can_build_shared=no
9353 ;;
9354
9355 uts4*)
9356 lt_prog_compiler_pic='-pic'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359
9360 *)
9361 lt_prog_compiler_can_build_shared=no
9362 ;;
9363 esac
9364 fi
9365
9366 case $host_os in
9367 # For platforms that do not support PIC, -DPIC is meaningless:
9368 *djgpp*)
9369 lt_prog_compiler_pic=
9370 ;;
9371 *)
9372 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9373 ;;
9374 esac
9375
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9377 printf %s "checking for $compiler option to produce PIC... " >&6; }
9378 if test ${lt_cv_prog_compiler_pic+y}
9379 then :
9380 printf %s "(cached) " >&6
9381 else $as_nop
9382 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9383 fi
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9385 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9386 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9387
9388 #
9389 # Check to make sure the PIC flag actually works.
9390 #
9391 if test -n "$lt_prog_compiler_pic"; then
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9393 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9394 if test ${lt_cv_prog_compiler_pic_works+y}
9395 then :
9396 printf %s "(cached) " >&6
9397 else $as_nop
9398 lt_cv_prog_compiler_pic_works=no
9399 ac_outfile=conftest.$ac_objext
9400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9401 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9402 # Insert the option either (1) after the last *FLAGS variable, or
9403 # (2) before a word containing "conftest.", or (3) at the end.
9404 # Note that $ac_compile itself does not contain backslashes and begins
9405 # with a dollar sign (not a hyphen), so the echo should work correctly.
9406 # The option is referenced via a variable to avoid confusing sed.
9407 lt_compile=`echo "$ac_compile" | $SED \
9408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9410 -e 's:$: $lt_compiler_flag:'`
9411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9412 (eval "$lt_compile" 2>conftest.err)
9413 ac_status=$?
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 if (exit $ac_status) && test -s "$ac_outfile"; then
9417 # The compiler can only warn and ignore the option if not recognized
9418 # So say no if there are warnings other than the usual output.
9419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9422 lt_cv_prog_compiler_pic_works=yes
9423 fi
9424 fi
9425 $RM conftest*
9426
9427 fi
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9429 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9430
9431 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9432 case $lt_prog_compiler_pic in
9433 "" | " "*) ;;
9434 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9435 esac
9436 else
9437 lt_prog_compiler_pic=
9438 lt_prog_compiler_can_build_shared=no
9439 fi
9440
9441 fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453 #
9454 # Check to make sure the static flag actually works.
9455 #
9456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9458 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9459 if test ${lt_cv_prog_compiler_static_works+y}
9460 then :
9461 printf %s "(cached) " >&6
9462 else $as_nop
9463 lt_cv_prog_compiler_static_works=no
9464 save_LDFLAGS=$LDFLAGS
9465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_static_works=yes
9477 fi
9478 else
9479 lt_cv_prog_compiler_static_works=yes
9480 fi
9481 fi
9482 $RM -r conftest*
9483 LDFLAGS=$save_LDFLAGS
9484
9485 fi
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9487 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9488
9489 if test yes = "$lt_cv_prog_compiler_static_works"; then
9490 :
9491 else
9492 lt_prog_compiler_static=
9493 fi
9494
9495
9496
9497
9498
9499
9500
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9502 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9503 if test ${lt_cv_prog_compiler_c_o+y}
9504 then :
9505 printf %s "(cached) " >&6
9506 else $as_nop
9507 lt_cv_prog_compiler_c_o=no
9508 $RM -r conftest 2>/dev/null
9509 mkdir conftest
9510 cd conftest
9511 mkdir out
9512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513
9514 lt_compiler_flag="-o out/conftest2.$ac_objext"
9515 # Insert the option either (1) after the last *FLAGS variable, or
9516 # (2) before a word containing "conftest.", or (3) at the end.
9517 # Note that $ac_compile itself does not contain backslashes and begins
9518 # with a dollar sign (not a hyphen), so the echo should work correctly.
9519 lt_compile=`echo "$ac_compile" | $SED \
9520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9522 -e 's:$: $lt_compiler_flag:'`
9523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9524 (eval "$lt_compile" 2>out/conftest.err)
9525 ac_status=$?
9526 cat out/conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9529 then
9530 # The compiler can only warn and ignore the option if not recognized
9531 # So say no if there are warnings
9532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9535 lt_cv_prog_compiler_c_o=yes
9536 fi
9537 fi
9538 chmod u+w . 2>&5
9539 $RM conftest*
9540 # SGI C++ compiler will create directory out/ii_files/ for
9541 # template instantiation
9542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9543 $RM out/* && rmdir out
9544 cd ..
9545 $RM -r conftest
9546 $RM conftest*
9547
9548 fi
9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9550 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9551
9552
9553
9554
9555
9556
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9558 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9559 if test ${lt_cv_prog_compiler_c_o+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else $as_nop
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9565 mkdir conftest
9566 cd conftest
9567 mkdir out
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out/conftest.err)
9581 ac_status=$?
9582 cat out/conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585 then
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9592 fi
9593 fi
9594 chmod u+w . 2>&5
9595 $RM conftest*
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9600 cd ..
9601 $RM -r conftest
9602 $RM conftest*
9603
9604 fi
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
9609
9610
9611 hard_links=nottested
9612 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9613 # do not overwrite the value of need_locks provided by the user
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615 printf %s "checking if we can lock with hard links... " >&6; }
9616 hard_links=yes
9617 $RM conftest*
9618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619 touch conftest.a
9620 ln conftest.a conftest.b 2>&5 || hard_links=no
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623 printf "%s\n" "$hard_links" >&6; }
9624 if test no = "$hard_links"; then
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9626 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9627 need_locks=warn
9628 fi
9629 else
9630 need_locks=no
9631 fi
9632
9633
9634
9635
9636
9637
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9640
9641 runpath_var=
9642 allow_undefined_flag=
9643 always_export_symbols=no
9644 archive_cmds=
9645 archive_expsym_cmds=
9646 compiler_needs_object=no
9647 enable_shared_with_static_runtimes=no
9648 export_dynamic_flag_spec=
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic=no
9651 hardcode_direct=no
9652 hardcode_direct_absolute=no
9653 hardcode_libdir_flag_spec=
9654 hardcode_libdir_separator=
9655 hardcode_minus_L=no
9656 hardcode_shlibpath_var=unsupported
9657 inherit_rpath=no
9658 link_all_deplibs=unknown
9659 module_cmds=
9660 module_expsym_cmds=
9661 old_archive_from_new_cmds=
9662 old_archive_from_expsyms_cmds=
9663 thread_safe_flag_spec=
9664 whole_archive_flag_spec=
9665 # include_expsyms should be a list of space-separated symbols to be *always*
9666 # included in the symbol list
9667 include_expsyms=
9668 # exclude_expsyms can be an extended regexp of symbols to exclude
9669 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9670 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9671 # as well as any symbol that contains 'd'.
9672 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9674 # platforms (ab)use it in PIC code, but their linkers get confused if
9675 # the symbol is explicitly referenced. Since portable code cannot
9676 # rely on this symbol name, it's probably fine to never include it in
9677 # preloaded symbol tables.
9678 # Exclude shared library initialization/finalization symbols.
9679 extract_expsyms_cmds=
9680
9681 case $host_os in
9682 cygwin* | mingw* | pw32* | cegcc*)
9683 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9684 # When not using gcc, we currently assume that we are using
9685 # Microsoft Visual C++ or Intel C++ Compiler.
9686 if test yes != "$GCC"; then
9687 with_gnu_ld=no
9688 fi
9689 ;;
9690 interix*)
9691 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9692 with_gnu_ld=yes
9693 ;;
9694 openbsd* | bitrig*)
9695 with_gnu_ld=no
9696 ;;
9697 linux* | k*bsd*-gnu | gnu*)
9698 link_all_deplibs=no
9699 ;;
9700 esac
9701
9702 ld_shlibs=yes
9703
9704 # On some targets, GNU ld is compatible enough with the native linker
9705 # that we're better off using the native interface for both.
9706 lt_use_gnu_ld_interface=no
9707 if test yes = "$with_gnu_ld"; then
9708 case $host_os in
9709 aix*)
9710 # The AIX port of GNU ld has always aspired to compatibility
9711 # with the native linker. However, as the warning in the GNU ld
9712 # block says, versions before 2.19.5* couldn't really create working
9713 # shared libraries, regardless of the interface used.
9714 case `$LD -v 2>&1` in
9715 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9716 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9717 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9718 *)
9719 lt_use_gnu_ld_interface=yes
9720 ;;
9721 esac
9722 ;;
9723 *)
9724 lt_use_gnu_ld_interface=yes
9725 ;;
9726 esac
9727 fi
9728
9729 if test yes = "$lt_use_gnu_ld_interface"; then
9730 # If archive_cmds runs LD, not CC, wlarc should be empty
9731 wlarc='$wl'
9732
9733 # Set some defaults for GNU ld with shared library support. These
9734 # are reset later if shared libraries are not supported. Putting them
9735 # here allows them to be overridden if necessary.
9736 runpath_var=LD_RUN_PATH
9737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9738 export_dynamic_flag_spec='$wl--export-dynamic'
9739 # ancient GNU ld didn't support --whole-archive et. al.
9740 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9741 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9742 else
9743 whole_archive_flag_spec=
9744 fi
9745 supports_anon_versioning=no
9746 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9747 *GNU\ gold*) supports_anon_versioning=yes ;;
9748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9751 *\ 2.11.*) ;; # other 2.11 versions
9752 *) supports_anon_versioning=yes ;;
9753 esac
9754
9755 # See if GNU ld supports shared libraries.
9756 case $host_os in
9757 aix[3-9]*)
9758 # On AIX/PPC, the GNU linker is very broken
9759 if test ia64 != "$host_cpu"; then
9760 ld_shlibs=no
9761 cat <<_LT_EOF 1>&2
9762
9763 *** Warning: the GNU linker, at least up to release 2.19, is reported
9764 *** to be unable to reliably create shared libraries on AIX.
9765 *** Therefore, libtool is disabling shared libraries support. If you
9766 *** really care for shared libraries, you may want to install binutils
9767 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9768 *** You will then need to restart the configuration process.
9769
9770 _LT_EOF
9771 fi
9772 ;;
9773
9774 amigaos*)
9775 case $host_cpu in
9776 powerpc)
9777 # see comment about AmigaOS4 .so support
9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9779 archive_expsym_cmds=''
9780 ;;
9781 m68k)
9782 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)'
9783 hardcode_libdir_flag_spec='-L$libdir'
9784 hardcode_minus_L=yes
9785 ;;
9786 esac
9787 ;;
9788
9789 beos*)
9790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9791 allow_undefined_flag=unsupported
9792 # Joseph Beckenbach <[email protected]> says some releases of gcc
9793 # support --undefined. This deserves some investigation. FIXME
9794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9795 else
9796 ld_shlibs=no
9797 fi
9798 ;;
9799
9800 cygwin* | mingw* | pw32* | cegcc*)
9801 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9802 # as there is no search path for DLLs.
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 export_dynamic_flag_spec='$wl--export-all-symbols'
9805 allow_undefined_flag=unsupported
9806 always_export_symbols=no
9807 enable_shared_with_static_runtimes=yes
9808 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'
9809 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9810
9811 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9813 # If the export-symbols file already is a .def file, use it as
9814 # is; otherwise, prepend EXPORTS...
9815 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9816 cp $export_symbols $output_objdir/$soname.def;
9817 else
9818 echo EXPORTS > $output_objdir/$soname.def;
9819 cat $export_symbols >> $output_objdir/$soname.def;
9820 fi~
9821 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9822 else
9823 ld_shlibs=no
9824 fi
9825 ;;
9826
9827 haiku*)
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9829 link_all_deplibs=yes
9830 ;;
9831
9832 os2*)
9833 hardcode_libdir_flag_spec='-L$libdir'
9834 hardcode_minus_L=yes
9835 allow_undefined_flag=unsupported
9836 shrext_cmds=.dll
9837 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9838 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9839 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9840 $ECHO EXPORTS >> $output_objdir/$libname.def~
9841 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9842 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9843 emximp -o $lib $output_objdir/$libname.def'
9844 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9847 $ECHO EXPORTS >> $output_objdir/$libname.def~
9848 prefix_cmds="$SED"~
9849 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9850 prefix_cmds="$prefix_cmds -e 1d";
9851 fi~
9852 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9853 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9855 emximp -o $lib $output_objdir/$libname.def'
9856 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9857 enable_shared_with_static_runtimes=yes
9858 file_list_spec='@'
9859 ;;
9860
9861 interix[3-9]*)
9862 hardcode_direct=no
9863 hardcode_shlibpath_var=no
9864 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9865 export_dynamic_flag_spec='$wl-E'
9866 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9867 # Instead, shared libraries are loaded at an image base (0x10000000 by
9868 # default) and relocated if they conflict, which is a slow very memory
9869 # consuming and fragmenting process. To avoid this, we pick a random,
9870 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9871 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9873 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'
9874 ;;
9875
9876 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9877 tmp_diet=no
9878 if test linux-dietlibc = "$host_os"; then
9879 case $cc_basename in
9880 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9881 esac
9882 fi
9883 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9884 && test no = "$tmp_diet"
9885 then
9886 tmp_addflag=' $pic_flag'
9887 tmp_sharedflag='-shared'
9888 case $cc_basename,$host_cpu in
9889 pgcc*) # Portland Group C compiler
9890 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'
9891 tmp_addflag=' $pic_flag'
9892 ;;
9893 pgf77* | pgf90* | pgf95* | pgfortran*)
9894 # Portland Group f77 and f90 compilers
9895 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'
9896 tmp_addflag=' $pic_flag -Mnomain' ;;
9897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9898 tmp_addflag=' -i_dynamic' ;;
9899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9900 tmp_addflag=' -i_dynamic -nofor_main' ;;
9901 ifc* | ifort*) # Intel Fortran compiler
9902 tmp_addflag=' -nofor_main' ;;
9903 lf95*) # Lahey Fortran 8.1
9904 whole_archive_flag_spec=
9905 tmp_sharedflag='--shared' ;;
9906 nagfor*) # NAGFOR 5.3
9907 tmp_sharedflag='-Wl,-shared' ;;
9908 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9909 tmp_sharedflag='-qmkshrobj'
9910 tmp_addflag= ;;
9911 nvcc*) # Cuda Compiler Driver 2.2
9912 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'
9913 compiler_needs_object=yes
9914 ;;
9915 esac
9916 case `$CC -V 2>&1 | $SED 5q` in
9917 *Sun\ C*) # Sun C 5.9
9918 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'
9919 compiler_needs_object=yes
9920 tmp_sharedflag='-G' ;;
9921 *Sun\ F*) # Sun Fortran 8.3
9922 tmp_sharedflag='-G' ;;
9923 esac
9924 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9925
9926 if test yes = "$supports_anon_versioning"; then
9927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9928 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9929 echo "local: *; };" >> $output_objdir/$libname.ver~
9930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9931 fi
9932
9933 case $cc_basename in
9934 tcc*)
9935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9936 export_dynamic_flag_spec='-rdynamic'
9937 ;;
9938 xlf* | bgf* | bgxlf* | mpixlf*)
9939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9942 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9943 if test yes = "$supports_anon_versioning"; then
9944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9945 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9946 echo "local: *; };" >> $output_objdir/$libname.ver~
9947 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9948 fi
9949 ;;
9950 esac
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9955
9956 netbsd* | netbsdelf*-gnu)
9957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9959 wlarc=
9960 else
9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9963 fi
9964 ;;
9965
9966 solaris*)
9967 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9968 ld_shlibs=no
9969 cat <<_LT_EOF 1>&2
9970
9971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9972 *** create shared libraries on Solaris systems. Therefore, libtool
9973 *** is disabling shared libraries support. We urge you to upgrade GNU
9974 *** binutils to release 2.9.1 or newer. Another option is to modify
9975 *** your PATH or compiler configuration so that the native linker is
9976 *** used, and then restart.
9977
9978 _LT_EOF
9979 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9984 fi
9985 ;;
9986
9987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9988 case `$LD -v 2>&1` in
9989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9990 ld_shlibs=no
9991 cat <<_LT_EOF 1>&2
9992
9993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9994 *** reliably create shared libraries on SCO systems. Therefore, libtool
9995 *** is disabling shared libraries support. We urge you to upgrade GNU
9996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9997 *** your PATH or compiler configuration so that the native linker is
9998 *** used, and then restart.
9999
10000 _LT_EOF
10001 ;;
10002 *)
10003 # For security reasons, it is highly recommended that you always
10004 # use absolute paths for naming shared libraries, and exclude the
10005 # DT_RUNPATH tag from executables and libraries. But doing so
10006 # requires that you compile everything twice, which is a pain.
10007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10011 else
10012 ld_shlibs=no
10013 fi
10014 ;;
10015 esac
10016 ;;
10017
10018 sunos4*)
10019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020 wlarc=
10021 hardcode_direct=yes
10022 hardcode_shlibpath_var=no
10023 ;;
10024
10025 *)
10026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10028 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10029 else
10030 ld_shlibs=no
10031 fi
10032 ;;
10033 esac
10034
10035 if test no = "$ld_shlibs"; then
10036 runpath_var=
10037 hardcode_libdir_flag_spec=
10038 export_dynamic_flag_spec=
10039 whole_archive_flag_spec=
10040 fi
10041 else
10042 # PORTME fill in a description of your system's linker (not GNU ld)
10043 case $host_os in
10044 aix3*)
10045 allow_undefined_flag=unsupported
10046 always_export_symbols=yes
10047 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'
10048 # Note: this linker hardcodes the directories in LIBPATH if there
10049 # are no directories specified by -L.
10050 hardcode_minus_L=yes
10051 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10052 # Neither direct hardcoding nor static linking is supported with a
10053 # broken collect2.
10054 hardcode_direct=unsupported
10055 fi
10056 ;;
10057
10058 aix[4-9]*)
10059 if test ia64 = "$host_cpu"; then
10060 # On IA64, the linker does run time linking by default, so we don't
10061 # have to do anything special.
10062 aix_use_runtimelinking=no
10063 exp_sym_flag='-Bexport'
10064 no_entry_flag=
10065 else
10066 # If we're using GNU nm, then we don't want the "-C" option.
10067 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10068 # Without the "-l" option, or with the "-B" option, AIX nm treats
10069 # weak defined symbols like other global defined symbols, whereas
10070 # GNU nm marks them as "W".
10071 # While the 'weak' keyword is ignored in the Export File, we need
10072 # it in the Import File for the 'aix-soname' feature, so we have
10073 # to replace the "-B" option with "-P" for AIX nm.
10074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10075 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'
10076 else
10077 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10078 fi
10079 aix_use_runtimelinking=no
10080
10081 # Test if we are trying to use run time linking or normal
10082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10083 # have runtime linking enabled, and use it for executables.
10084 # For shared libraries, we enable/disable runtime linking
10085 # depending on the kind of the shared library created -
10086 # when "with_aix_soname,aix_use_runtimelinking" is:
10087 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10088 # "aix,yes" lib.so shared, rtl:yes, for executables
10089 # lib.a static archive
10090 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10091 # lib.a(lib.so.V) shared, rtl:no, for executables
10092 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10093 # lib.a(lib.so.V) shared, rtl:no
10094 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10095 # lib.a static archive
10096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10097 for ld_flag in $LDFLAGS; do
10098 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10099 aix_use_runtimelinking=yes
10100 break
10101 fi
10102 done
10103 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10104 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10105 # so we don't have lib.a shared libs to link our executables.
10106 # We have to force runtime linking in this case.
10107 aix_use_runtimelinking=yes
10108 LDFLAGS="$LDFLAGS -Wl,-brtl"
10109 fi
10110 ;;
10111 esac
10112
10113 exp_sym_flag='-bexport'
10114 no_entry_flag='-bnoentry'
10115 fi
10116
10117 # When large executables or shared objects are built, AIX ld can
10118 # have problems creating the table of contents. If linking a library
10119 # or program results in "error TOC overflow" add -mminimal-toc to
10120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10122
10123 archive_cmds=''
10124 hardcode_direct=yes
10125 hardcode_direct_absolute=yes
10126 hardcode_libdir_separator=':'
10127 link_all_deplibs=yes
10128 file_list_spec='$wl-f,'
10129 case $with_aix_soname,$aix_use_runtimelinking in
10130 aix,*) ;; # traditional, no import file
10131 svr4,* | *,yes) # use import file
10132 # The Import File defines what to hardcode.
10133 hardcode_direct=no
10134 hardcode_direct_absolute=no
10135 ;;
10136 esac
10137
10138 if test yes = "$GCC"; then
10139 case $host_os in aix4.[012]|aix4.[012].*)
10140 # We only want to do this on AIX 4.2 and lower, the check
10141 # below for broken collect2 doesn't work under 4.3+
10142 collect2name=`$CC -print-prog-name=collect2`
10143 if test -f "$collect2name" &&
10144 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10145 then
10146 # We have reworked collect2
10147 :
10148 else
10149 # We have old collect2
10150 hardcode_direct=unsupported
10151 # It fails to find uninstalled libraries when the uninstalled
10152 # path is not listed in the libpath. Setting hardcode_minus_L
10153 # to unsupported forces relinking
10154 hardcode_minus_L=yes
10155 hardcode_libdir_flag_spec='-L$libdir'
10156 hardcode_libdir_separator=
10157 fi
10158 ;;
10159 esac
10160 shared_flag='-shared'
10161 if test yes = "$aix_use_runtimelinking"; then
10162 shared_flag="$shared_flag "'$wl-G'
10163 fi
10164 # Need to ensure runtime linking is disabled for the traditional
10165 # shared library, or the linker may eventually find shared libraries
10166 # /with/ Import File - we do not want to mix them.
10167 shared_flag_aix='-shared'
10168 shared_flag_svr4='-shared $wl-G'
10169 else
10170 # not using gcc
10171 if test ia64 = "$host_cpu"; then
10172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10173 # chokes on -Wl,-G. The following line is correct:
10174 shared_flag='-G'
10175 else
10176 if test yes = "$aix_use_runtimelinking"; then
10177 shared_flag='$wl-G'
10178 else
10179 shared_flag='$wl-bM:SRE'
10180 fi
10181 shared_flag_aix='$wl-bM:SRE'
10182 shared_flag_svr4='$wl-G'
10183 fi
10184 fi
10185
10186 export_dynamic_flag_spec='$wl-bexpall'
10187 # It seems that -bexpall does not export symbols beginning with
10188 # underscore (_), so it is better to generate a list of symbols to export.
10189 always_export_symbols=yes
10190 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10191 # Warning - without using the other runtime loading flags (-brtl),
10192 # -berok will link without error, but may produce a broken library.
10193 allow_undefined_flag='-berok'
10194 # Determine the default libpath from the value encoded in an
10195 # empty executable.
10196 if test set = "${lt_cv_aix_libpath+set}"; then
10197 aix_libpath=$lt_cv_aix_libpath
10198 else
10199 if test ${lt_cv_aix_libpath_+y}
10200 then :
10201 printf %s "(cached) " >&6
10202 else $as_nop
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205
10206 int
10207 main (void)
10208 {
10209
10210 ;
10211 return 0;
10212 }
10213 _ACEOF
10214 if ac_fn_c_try_link "$LINENO"
10215 then :
10216
10217 lt_aix_libpath_sed='
10218 /Import File Strings/,/^$/ {
10219 /^0/ {
10220 s/^0 *\([^ ]*\) *$/\1/
10221 p
10222 }
10223 }'
10224 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10225 # Check for a 64-bit object if we didn't find anything.
10226 if test -z "$lt_cv_aix_libpath_"; then
10227 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228 fi
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10231 conftest$ac_exeext conftest.$ac_ext
10232 if test -z "$lt_cv_aix_libpath_"; then
10233 lt_cv_aix_libpath_=/usr/lib:/lib
10234 fi
10235
10236 fi
10237
10238 aix_libpath=$lt_cv_aix_libpath_
10239 fi
10240
10241 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10242 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
10243 else
10244 if test ia64 = "$host_cpu"; then
10245 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10246 allow_undefined_flag="-z nodefs"
10247 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"
10248 else
10249 # Determine the default libpath from the value encoded in an
10250 # empty executable.
10251 if test set = "${lt_cv_aix_libpath+set}"; then
10252 aix_libpath=$lt_cv_aix_libpath
10253 else
10254 if test ${lt_cv_aix_libpath_+y}
10255 then :
10256 printf %s "(cached) " >&6
10257 else $as_nop
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260
10261 int
10262 main (void)
10263 {
10264
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"
10270 then :
10271
10272 lt_aix_libpath_sed='
10273 /Import File Strings/,/^$/ {
10274 /^0/ {
10275 s/^0 *\([^ ]*\) *$/\1/
10276 p
10277 }
10278 }'
10279 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10280 # Check for a 64-bit object if we didn't find anything.
10281 if test -z "$lt_cv_aix_libpath_"; then
10282 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10283 fi
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10286 conftest$ac_exeext conftest.$ac_ext
10287 if test -z "$lt_cv_aix_libpath_"; then
10288 lt_cv_aix_libpath_=/usr/lib:/lib
10289 fi
10290
10291 fi
10292
10293 aix_libpath=$lt_cv_aix_libpath_
10294 fi
10295
10296 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10297 # Warning - without using the other run time loading flags,
10298 # -berok will link without error, but may produce a broken library.
10299 no_undefined_flag=' $wl-bernotok'
10300 allow_undefined_flag=' $wl-berok'
10301 if test yes = "$with_gnu_ld"; then
10302 # We only use this code for GNU lds that support --whole-archive.
10303 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10304 else
10305 # Exported symbols can be pulled into shared objects from archives
10306 whole_archive_flag_spec='$convenience'
10307 fi
10308 archive_cmds_need_lc=yes
10309 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10310 # -brtl affects multiple linker settings, -berok does not and is overridden later
10311 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10312 if test svr4 != "$with_aix_soname"; then
10313 # This is similar to how AIX traditionally builds its shared libraries.
10314 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'
10315 fi
10316 if test aix != "$with_aix_soname"; then
10317 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'
10318 else
10319 # used by -dlpreopen to get the symbols
10320 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10321 fi
10322 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10323 fi
10324 fi
10325 ;;
10326
10327 amigaos*)
10328 case $host_cpu in
10329 powerpc)
10330 # see comment about AmigaOS4 .so support
10331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10332 archive_expsym_cmds=''
10333 ;;
10334 m68k)
10335 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)'
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_minus_L=yes
10338 ;;
10339 esac
10340 ;;
10341
10342 bsdi[45]*)
10343 export_dynamic_flag_spec=-rdynamic
10344 ;;
10345
10346 cygwin* | mingw* | pw32* | cegcc*)
10347 # When not using gcc, we currently assume that we are using
10348 # Microsoft Visual C++ or Intel C++ Compiler.
10349 # hardcode_libdir_flag_spec is actually meaningless, as there is
10350 # no search path for DLLs.
10351 case $cc_basename in
10352 cl* | icl*)
10353 # Native MSVC or ICC
10354 hardcode_libdir_flag_spec=' '
10355 allow_undefined_flag=unsupported
10356 always_export_symbols=yes
10357 file_list_spec='@'
10358 # Tell ltmain to make .lib files, not .a files.
10359 libext=lib
10360 # Tell ltmain to make .dll files, not .so files.
10361 shrext_cmds=.dll
10362 # FIXME: Setting linknames here is a bad hack.
10363 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10364 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10365 cp "$export_symbols" "$output_objdir/$soname.def";
10366 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10367 else
10368 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10369 fi~
10370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10371 linknames='
10372 # The linker will not automatically build a static lib if we build a DLL.
10373 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10374 enable_shared_with_static_runtimes=yes
10375 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10377 # Don't use ranlib
10378 old_postinstall_cmds='chmod 644 $oldlib'
10379 postlink_cmds='lt_outputfile="@OUTPUT@"~
10380 lt_tool_outputfile="@TOOL_OUTPUT@"~
10381 case $lt_outputfile in
10382 *.exe|*.EXE) ;;
10383 *)
10384 lt_outputfile=$lt_outputfile.exe
10385 lt_tool_outputfile=$lt_tool_outputfile.exe
10386 ;;
10387 esac~
10388 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10389 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10390 $RM "$lt_outputfile.manifest";
10391 fi'
10392 ;;
10393 *)
10394 # Assume MSVC and ICC wrapper
10395 hardcode_libdir_flag_spec=' '
10396 allow_undefined_flag=unsupported
10397 # Tell ltmain to make .lib files, not .a files.
10398 libext=lib
10399 # Tell ltmain to make .dll files, not .so files.
10400 shrext_cmds=.dll
10401 # FIXME: Setting linknames here is a bad hack.
10402 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10403 # The linker will automatically build a .lib file if we build a DLL.
10404 old_archive_from_new_cmds='true'
10405 # FIXME: Should let the user specify the lib program.
10406 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10407 enable_shared_with_static_runtimes=yes
10408 ;;
10409 esac
10410 ;;
10411
10412 darwin* | rhapsody*)
10413
10414
10415 archive_cmds_need_lc=no
10416 hardcode_direct=no
10417 hardcode_automatic=yes
10418 hardcode_shlibpath_var=unsupported
10419 if test yes = "$lt_cv_ld_force_load"; then
10420 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\"`'
10421
10422 else
10423 whole_archive_flag_spec=''
10424 fi
10425 link_all_deplibs=yes
10426 allow_undefined_flag=$_lt_dar_allow_undefined
10427 case $cc_basename in
10428 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10429 *) _lt_dar_can_shared=$GCC ;;
10430 esac
10431 if test yes = "$_lt_dar_can_shared"; then
10432 output_verbose_link_cmd=func_echo_all
10433 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10434 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10435 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"
10436 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"
10437
10438 else
10439 ld_shlibs=no
10440 fi
10441
10442 ;;
10443
10444 dgux*)
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_libdir_flag_spec='-L$libdir'
10447 hardcode_shlibpath_var=no
10448 ;;
10449
10450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10451 # support. Future versions do this automatically, but an explicit c++rt0.o
10452 # does not break anything, and helps significantly (at the cost of a little
10453 # extra space).
10454 freebsd2.2*)
10455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10456 hardcode_libdir_flag_spec='-R$libdir'
10457 hardcode_direct=yes
10458 hardcode_shlibpath_var=no
10459 ;;
10460
10461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10462 freebsd2.*)
10463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_direct=yes
10465 hardcode_minus_L=yes
10466 hardcode_shlibpath_var=no
10467 ;;
10468
10469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10470 freebsd* | dragonfly* | midnightbsd*)
10471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10472 hardcode_libdir_flag_spec='-R$libdir'
10473 hardcode_direct=yes
10474 hardcode_shlibpath_var=no
10475 ;;
10476
10477 hpux9*)
10478 if test yes = "$GCC"; then
10479 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'
10480 else
10481 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'
10482 fi
10483 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10484 hardcode_libdir_separator=:
10485 hardcode_direct=yes
10486
10487 # hardcode_minus_L: Not really in the search PATH,
10488 # but as the default location of the library.
10489 hardcode_minus_L=yes
10490 export_dynamic_flag_spec='$wl-E'
10491 ;;
10492
10493 hpux10*)
10494 if test yes,no = "$GCC,$with_gnu_ld"; then
10495 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10496 else
10497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10498 fi
10499 if test no = "$with_gnu_ld"; then
10500 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10501 hardcode_libdir_separator=:
10502 hardcode_direct=yes
10503 hardcode_direct_absolute=yes
10504 export_dynamic_flag_spec='$wl-E'
10505 # hardcode_minus_L: Not really in the search PATH,
10506 # but as the default location of the library.
10507 hardcode_minus_L=yes
10508 fi
10509 ;;
10510
10511 hpux11*)
10512 if test yes,no = "$GCC,$with_gnu_ld"; then
10513 case $host_cpu in
10514 hppa*64*)
10515 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10516 ;;
10517 ia64*)
10518 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10519 ;;
10520 *)
10521 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10522 ;;
10523 esac
10524 else
10525 case $host_cpu in
10526 hppa*64*)
10527 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10528 ;;
10529 ia64*)
10530 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10531 ;;
10532 *)
10533
10534 # Older versions of the 11.00 compiler do not understand -b yet
10535 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10537 printf %s "checking if $CC understands -b... " >&6; }
10538 if test ${lt_cv_prog_compiler__b+y}
10539 then :
10540 printf %s "(cached) " >&6
10541 else $as_nop
10542 lt_cv_prog_compiler__b=no
10543 save_LDFLAGS=$LDFLAGS
10544 LDFLAGS="$LDFLAGS -b"
10545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10547 # The linker can only warn and ignore the option if not recognized
10548 # So say no if there are warnings
10549 if test -s conftest.err; then
10550 # Append any errors to the config.log.
10551 cat conftest.err 1>&5
10552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10554 if diff conftest.exp conftest.er2 >/dev/null; then
10555 lt_cv_prog_compiler__b=yes
10556 fi
10557 else
10558 lt_cv_prog_compiler__b=yes
10559 fi
10560 fi
10561 $RM -r conftest*
10562 LDFLAGS=$save_LDFLAGS
10563
10564 fi
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10566 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10567
10568 if test yes = "$lt_cv_prog_compiler__b"; then
10569 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10572 fi
10573
10574 ;;
10575 esac
10576 fi
10577 if test no = "$with_gnu_ld"; then
10578 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10579 hardcode_libdir_separator=:
10580
10581 case $host_cpu in
10582 hppa*64*|ia64*)
10583 hardcode_direct=no
10584 hardcode_shlibpath_var=no
10585 ;;
10586 *)
10587 hardcode_direct=yes
10588 hardcode_direct_absolute=yes
10589 export_dynamic_flag_spec='$wl-E'
10590
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 ;;
10595 esac
10596 fi
10597 ;;
10598
10599 irix5* | irix6* | nonstopux*)
10600 if test yes = "$GCC"; then
10601 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'
10602 # Try to use the -exported_symbol ld option, if it does not
10603 # work, assume that -exports_file does not work either and
10604 # implicitly export all symbols.
10605 # This should be the same for all languages, so no per-tag cache variable.
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10607 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10608 if test ${lt_cv_irix_exported_symbol+y}
10609 then :
10610 printf %s "(cached) " >&6
10611 else $as_nop
10612 save_LDFLAGS=$LDFLAGS
10613 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616 int foo (void) { return 0; }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"
10619 then :
10620 lt_cv_irix_exported_symbol=yes
10621 else $as_nop
10622 lt_cv_irix_exported_symbol=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LDFLAGS=$save_LDFLAGS
10627 fi
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10629 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10630 if test yes = "$lt_cv_irix_exported_symbol"; then
10631 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'
10632 fi
10633 link_all_deplibs=no
10634 else
10635 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'
10636 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'
10637 fi
10638 archive_cmds_need_lc='no'
10639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640 hardcode_libdir_separator=:
10641 inherit_rpath=yes
10642 link_all_deplibs=yes
10643 ;;
10644
10645 linux*)
10646 case $cc_basename in
10647 tcc*)
10648 # Fabrice Bellard et al's Tiny C Compiler
10649 ld_shlibs=yes
10650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10652 ;;
10653 esac
10654 ;;
10655
10656 netbsd* | netbsdelf*-gnu)
10657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10659 else
10660 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10661 fi
10662 hardcode_libdir_flag_spec='-R$libdir'
10663 hardcode_direct=yes
10664 hardcode_shlibpath_var=no
10665 ;;
10666
10667 newsos6)
10668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669 hardcode_direct=yes
10670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10671 hardcode_libdir_separator=:
10672 hardcode_shlibpath_var=no
10673 ;;
10674
10675 *nto* | *qnx*)
10676 ;;
10677
10678 openbsd* | bitrig*)
10679 if test -f /usr/libexec/ld.so; then
10680 hardcode_direct=yes
10681 hardcode_shlibpath_var=no
10682 hardcode_direct_absolute=yes
10683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10686 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10687 export_dynamic_flag_spec='$wl-E'
10688 else
10689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10690 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10691 fi
10692 else
10693 ld_shlibs=no
10694 fi
10695 ;;
10696
10697 os2*)
10698 hardcode_libdir_flag_spec='-L$libdir'
10699 hardcode_minus_L=yes
10700 allow_undefined_flag=unsupported
10701 shrext_cmds=.dll
10702 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10703 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10704 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10705 $ECHO EXPORTS >> $output_objdir/$libname.def~
10706 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10708 emximp -o $lib $output_objdir/$libname.def'
10709 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10712 $ECHO EXPORTS >> $output_objdir/$libname.def~
10713 prefix_cmds="$SED"~
10714 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10715 prefix_cmds="$prefix_cmds -e 1d";
10716 fi~
10717 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10718 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10720 emximp -o $lib $output_objdir/$libname.def'
10721 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10722 enable_shared_with_static_runtimes=yes
10723 file_list_spec='@'
10724 ;;
10725
10726 osf3*)
10727 if test yes = "$GCC"; then
10728 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10729 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'
10730 else
10731 allow_undefined_flag=' -expect_unresolved \*'
10732 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'
10733 fi
10734 archive_cmds_need_lc='no'
10735 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10736 hardcode_libdir_separator=:
10737 ;;
10738
10739 osf4* | osf5*) # as osf3* with the addition of -msym flag
10740 if test yes = "$GCC"; then
10741 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10742 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'
10743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10744 else
10745 allow_undefined_flag=' -expect_unresolved \*'
10746 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'
10747 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~
10748 $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'
10749
10750 # Both c and cxx compiler support -rpath directly
10751 hardcode_libdir_flag_spec='-rpath $libdir'
10752 fi
10753 archive_cmds_need_lc='no'
10754 hardcode_libdir_separator=:
10755 ;;
10756
10757 solaris*)
10758 no_undefined_flag=' -z defs'
10759 if test yes = "$GCC"; then
10760 wlarc='$wl'
10761 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10763 $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'
10764 else
10765 case `$CC -V 2>&1` in
10766 *"Compilers 5.0"*)
10767 wlarc=''
10768 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10770 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10771 ;;
10772 *)
10773 wlarc='$wl'
10774 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10776 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10777 ;;
10778 esac
10779 fi
10780 hardcode_libdir_flag_spec='-R$libdir'
10781 hardcode_shlibpath_var=no
10782 case $host_os in
10783 solaris2.[0-5] | solaris2.[0-5].*) ;;
10784 *)
10785 # The compiler driver will combine and reorder linker options,
10786 # but understands '-z linker_flag'. GCC discards it without '$wl',
10787 # but is careful enough not to reorder.
10788 # Supported since Solaris 2.6 (maybe 2.5.1?)
10789 if test yes = "$GCC"; then
10790 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10791 else
10792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10793 fi
10794 ;;
10795 esac
10796 link_all_deplibs=yes
10797 ;;
10798
10799 sunos4*)
10800 if test sequent = "$host_vendor"; then
10801 # Use $CC to link under sequent, because it throws in some extra .o
10802 # files that make .init and .fini sections work.
10803 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10804 else
10805 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10806 fi
10807 hardcode_libdir_flag_spec='-L$libdir'
10808 hardcode_direct=yes
10809 hardcode_minus_L=yes
10810 hardcode_shlibpath_var=no
10811 ;;
10812
10813 sysv4)
10814 case $host_vendor in
10815 sni)
10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_direct=yes # is this really true???
10818 ;;
10819 siemens)
10820 ## LD is ld it makes a PLAMLIB
10821 ## CC just makes a GrossModule.
10822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10823 reload_cmds='$CC -r -o $output$reload_objs'
10824 hardcode_direct=no
10825 ;;
10826 motorola)
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10829 ;;
10830 esac
10831 runpath_var='LD_RUN_PATH'
10832 hardcode_shlibpath_var=no
10833 ;;
10834
10835 sysv4.3*)
10836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_shlibpath_var=no
10838 export_dynamic_flag_spec='-Bexport'
10839 ;;
10840
10841 sysv4*MP*)
10842 if test -d /usr/nec; then
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_shlibpath_var=no
10845 runpath_var=LD_RUN_PATH
10846 hardcode_runpath_var=yes
10847 ld_shlibs=yes
10848 fi
10849 ;;
10850
10851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10852 no_undefined_flag='$wl-z,text'
10853 archive_cmds_need_lc=no
10854 hardcode_shlibpath_var=no
10855 runpath_var='LD_RUN_PATH'
10856
10857 if test yes = "$GCC"; then
10858 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 else
10861 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 fi
10864 ;;
10865
10866 sysv5* | sco3.2v5* | sco5v6*)
10867 # Note: We CANNOT use -z defs as we might desire, because we do not
10868 # link with -lc, and that would cause any symbols used from libc to
10869 # always be unresolved, which means just about no library would
10870 # ever link correctly. If we're not using GNU ld we use -z text
10871 # though, which does catch some bad symbols but isn't as heavy-handed
10872 # as -z defs.
10873 no_undefined_flag='$wl-z,text'
10874 allow_undefined_flag='$wl-z,nodefs'
10875 archive_cmds_need_lc=no
10876 hardcode_shlibpath_var=no
10877 hardcode_libdir_flag_spec='$wl-R,$libdir'
10878 hardcode_libdir_separator=':'
10879 link_all_deplibs=yes
10880 export_dynamic_flag_spec='$wl-Bexport'
10881 runpath_var='LD_RUN_PATH'
10882
10883 if test yes = "$GCC"; then
10884 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 else
10887 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10888 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10889 fi
10890 ;;
10891
10892 uts4*)
10893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10894 hardcode_libdir_flag_spec='-L$libdir'
10895 hardcode_shlibpath_var=no
10896 ;;
10897
10898 *)
10899 ld_shlibs=no
10900 ;;
10901 esac
10902
10903 if test sni = "$host_vendor"; then
10904 case $host in
10905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10906 export_dynamic_flag_spec='$wl-Blargedynsym'
10907 ;;
10908 esac
10909 fi
10910 fi
10911
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10913 printf "%s\n" "$ld_shlibs" >&6; }
10914 test no = "$ld_shlibs" && can_build_shared=no
10915
10916 with_gnu_ld=$with_gnu_ld
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 #
10933 # Do we need to explicitly link libc?
10934 #
10935 case "x$archive_cmds_need_lc" in
10936 x|xyes)
10937 # Assume -lc should be added
10938 archive_cmds_need_lc=yes
10939
10940 if test yes,yes = "$GCC,$enable_shared"; then
10941 case $archive_cmds in
10942 *'~'*)
10943 # FIXME: we may have to deal with multi-command sequences.
10944 ;;
10945 '$CC '*)
10946 # Test whether the compiler implicitly links with -lc since on some
10947 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10948 # to ld, don't add -lc before -lgcc.
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10950 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10951 if test ${lt_cv_archive_cmds_need_lc+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else $as_nop
10955 $RM conftest*
10956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10957
10958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10959 (eval $ac_compile) 2>&5
10960 ac_status=$?
10961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10962 test $ac_status = 0; } 2>conftest.err; then
10963 soname=conftest
10964 lib=conftest
10965 libobjs=conftest.$ac_objext
10966 deplibs=
10967 wl=$lt_prog_compiler_wl
10968 pic_flag=$lt_prog_compiler_pic
10969 compiler_flags=-v
10970 linker_flags=-v
10971 verstring=
10972 output_objdir=.
10973 libname=conftest
10974 lt_save_allow_undefined_flag=$allow_undefined_flag
10975 allow_undefined_flag=
10976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10977 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10978 ac_status=$?
10979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; }
10981 then
10982 lt_cv_archive_cmds_need_lc=no
10983 else
10984 lt_cv_archive_cmds_need_lc=yes
10985 fi
10986 allow_undefined_flag=$lt_save_allow_undefined_flag
10987 else
10988 cat conftest.err 1>&5
10989 fi
10990 $RM conftest*
10991
10992 fi
10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10994 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10995 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10996 ;;
10997 esac
10998 fi
10999 ;;
11000 esac
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11154 printf %s "checking dynamic linker characteristics... " >&6; }
11155
11156 if test yes = "$GCC"; then
11157 case $host_os in
11158 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11159 *) lt_awk_arg='/^libraries:/' ;;
11160 esac
11161 case $host_os in
11162 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11163 *) lt_sed_strip_eq='s|=/|/|g' ;;
11164 esac
11165 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11166 case $lt_search_path_spec in
11167 *\;*)
11168 # if the path contains ";" then we assume it to be the separator
11169 # otherwise default to the standard path separator (i.e. ":") - it is
11170 # assumed that no part of a normal pathname contains ";" but that should
11171 # okay in the real world where ";" in dirpaths is itself problematic.
11172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11173 ;;
11174 *)
11175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11176 ;;
11177 esac
11178 # Ok, now we have the path, separated by spaces, we can step through it
11179 # and add multilib dir if necessary...
11180 lt_tmp_lt_search_path_spec=
11181 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11182 # ...but if some path component already ends with the multilib dir we assume
11183 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11184 case "$lt_multi_os_dir; $lt_search_path_spec " in
11185 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11186 lt_multi_os_dir=
11187 ;;
11188 esac
11189 for lt_sys_path in $lt_search_path_spec; do
11190 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11192 elif test -n "$lt_multi_os_dir"; then
11193 test -d "$lt_sys_path" && \
11194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11195 fi
11196 done
11197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11198 BEGIN {RS = " "; FS = "/|\n";} {
11199 lt_foo = "";
11200 lt_count = 0;
11201 for (lt_i = NF; lt_i > 0; lt_i--) {
11202 if ($lt_i != "" && $lt_i != ".") {
11203 if ($lt_i == "..") {
11204 lt_count++;
11205 } else {
11206 if (lt_count == 0) {
11207 lt_foo = "/" $lt_i lt_foo;
11208 } else {
11209 lt_count--;
11210 }
11211 }
11212 }
11213 }
11214 if (lt_foo != "") { lt_freq[lt_foo]++; }
11215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11216 }'`
11217 # AWK program above erroneously prepends '/' to C:/dos/paths
11218 # for these hosts.
11219 case $host_os in
11220 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11221 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11222 esac
11223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11224 else
11225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11226 fi
11227 library_names_spec=
11228 libname_spec='lib$name'
11229 soname_spec=
11230 shrext_cmds=.so
11231 postinstall_cmds=
11232 postuninstall_cmds=
11233 finish_cmds=
11234 finish_eval=
11235 shlibpath_var=
11236 shlibpath_overrides_runpath=unknown
11237 version_type=none
11238 dynamic_linker="$host_os ld.so"
11239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11240 need_lib_prefix=unknown
11241 hardcode_into_libs=no
11242
11243 # when you set need_version to no, make sure it does not cause -set_version
11244 # flags to be left without arguments
11245 need_version=unknown
11246
11247
11248
11249 case $host_os in
11250 aix3*)
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11253 shlibpath_var=LIBPATH
11254
11255 # AIX 3 has no versioning support, so we append a major version to the name.
11256 soname_spec='$libname$release$shared_ext$major'
11257 ;;
11258
11259 aix[4-9]*)
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 need_lib_prefix=no
11262 need_version=no
11263 hardcode_into_libs=yes
11264 if test ia64 = "$host_cpu"; then
11265 # AIX 5 supports IA64
11266 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 else
11269 # With GCC up to 2.95.x, collect2 would create an import file
11270 # for dependence libraries. The import file would start with
11271 # the line '#! .'. This would cause the generated library to
11272 # depend on '.', always an invalid library. This was fixed in
11273 # development snapshots of GCC prior to 3.0.
11274 case $host_os in
11275 aix4 | aix4.[01] | aix4.[01].*)
11276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11277 echo ' yes '
11278 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11279 :
11280 else
11281 can_build_shared=no
11282 fi
11283 ;;
11284 esac
11285 # Using Import Files as archive members, it is possible to support
11286 # filename-based versioning of shared library archives on AIX. While
11287 # this would work for both with and without runtime linking, it will
11288 # prevent static linking of such archives. So we do filename-based
11289 # shared library versioning with .so extension only, which is used
11290 # when both runtime linking and shared linking is enabled.
11291 # Unfortunately, runtime linking may impact performance, so we do
11292 # not want this to be the default eventually. Also, we use the
11293 # versioned .so libs for executables only if there is the -brtl
11294 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11295 # To allow for filename-based versioning support, we need to create
11296 # libNAME.so.V as an archive file, containing:
11297 # *) an Import File, referring to the versioned filename of the
11298 # archive as well as the shared archive member, telling the
11299 # bitwidth (32 or 64) of that shared object, and providing the
11300 # list of exported symbols of that shared object, eventually
11301 # decorated with the 'weak' keyword
11302 # *) the shared object with the F_LOADONLY flag set, to really avoid
11303 # it being seen by the linker.
11304 # At run time we better use the real file rather than another symlink,
11305 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11306
11307 case $with_aix_soname,$aix_use_runtimelinking in
11308 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11309 # soname into executable. Probably we can add versioning support to
11310 # collect2, so additional links can be useful in future.
11311 aix,yes) # traditional libtool
11312 dynamic_linker='AIX unversionable lib.so'
11313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11314 # instead of lib<name>.a to let people know that these are not
11315 # typical AIX shared libraries.
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 ;;
11318 aix,no) # traditional AIX only
11319 dynamic_linker='AIX lib.a(lib.so.V)'
11320 # We preserve .a as extension for shared libraries through AIX4.2
11321 # and later when we are not doing run time linking.
11322 library_names_spec='$libname$release.a $libname.a'
11323 soname_spec='$libname$release$shared_ext$major'
11324 ;;
11325 svr4,*) # full svr4 only
11326 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11327 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11328 # We do not specify a path in Import Files, so LIBPATH fires.
11329 shlibpath_overrides_runpath=yes
11330 ;;
11331 *,yes) # both, prefer svr4
11332 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11333 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11334 # unpreferred sharedlib libNAME.a needs extra handling
11335 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"'
11336 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"'
11337 # We do not specify a path in Import Files, so LIBPATH fires.
11338 shlibpath_overrides_runpath=yes
11339 ;;
11340 *,no) # both, prefer aix
11341 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11342 library_names_spec='$libname$release.a $libname.a'
11343 soname_spec='$libname$release$shared_ext$major'
11344 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11345 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)'
11346 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"'
11347 ;;
11348 esac
11349 shlibpath_var=LIBPATH
11350 fi
11351 ;;
11352
11353 amigaos*)
11354 case $host_cpu in
11355 powerpc)
11356 # Since July 2007 AmigaOS4 officially supports .so libraries.
11357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 ;;
11360 m68k)
11361 library_names_spec='$libname.ixlibrary $libname.a'
11362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11363 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'
11364 ;;
11365 esac
11366 ;;
11367
11368 beos*)
11369 library_names_spec='$libname$shared_ext'
11370 dynamic_linker="$host_os ld.so"
11371 shlibpath_var=LIBRARY_PATH
11372 ;;
11373
11374 bsdi[45]*)
11375 version_type=linux # correct to gnu/linux during the next big refactor
11376 need_version=no
11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378 soname_spec='$libname$release$shared_ext$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383 # the default ld.so.conf also contains /usr/contrib/lib and
11384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385 # libtool to hard-code these into programs
11386 ;;
11387
11388 cygwin* | mingw* | pw32* | cegcc*)
11389 version_type=windows
11390 shrext_cmds=.dll
11391 need_version=no
11392 need_lib_prefix=no
11393
11394 case $GCC,$cc_basename in
11395 yes,*)
11396 # gcc
11397 library_names_spec='$libname.dll.a'
11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399 postinstall_cmds='base_file=`basename \$file`~
11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11401 dldir=$destdir/`dirname \$dlpath`~
11402 test -d \$dldir || mkdir -p \$dldir~
11403 $install_prog $dir/$dlname \$dldir/$dlname~
11404 chmod a+x \$dldir/$dlname~
11405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11407 fi'
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11410 $RM \$dlpath'
11411 shlibpath_overrides_runpath=yes
11412
11413 case $host_os in
11414 cygwin*)
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11417
11418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11419 ;;
11420 mingw* | cegcc*)
11421 # MinGW DLLs use traditional 'lib' prefix
11422 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11423 ;;
11424 pw32*)
11425 # pw32 DLLs use 'pw' prefix rather than 'lib'
11426 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11427 ;;
11428 esac
11429 dynamic_linker='Win32 ld.exe'
11430 ;;
11431
11432 *,cl* | *,icl*)
11433 # Native MSVC or ICC
11434 libname_spec='$name'
11435 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11436 library_names_spec='$libname.dll.lib'
11437
11438 case $build_os in
11439 mingw*)
11440 sys_lib_search_path_spec=
11441 lt_save_ifs=$IFS
11442 IFS=';'
11443 for lt_path in $LIB
11444 do
11445 IFS=$lt_save_ifs
11446 # Let DOS variable expansion print the short 8.3 style file name.
11447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11449 done
11450 IFS=$lt_save_ifs
11451 # Convert to MSYS style.
11452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11453 ;;
11454 cygwin*)
11455 # Convert to unix form, then to dos form, then back to unix form
11456 # but this time dos style (no spaces!) so that the unix form looks
11457 # like /cygdrive/c/PROGRA~1:/cygdr...
11458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11461 ;;
11462 *)
11463 sys_lib_search_path_spec=$LIB
11464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11465 # It is most probably a Windows format PATH.
11466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11467 else
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11469 fi
11470 # FIXME: find the short name or the path components, as spaces are
11471 # common. (e.g. "Program Files" -> "PROGRA~1")
11472 ;;
11473 esac
11474
11475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476 postinstall_cmds='base_file=`basename \$file`~
11477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11478 dldir=$destdir/`dirname \$dlpath`~
11479 test -d \$dldir || mkdir -p \$dldir~
11480 $install_prog $dir/$dlname \$dldir/$dlname'
11481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482 dlpath=$dir/\$dldll~
11483 $RM \$dlpath'
11484 shlibpath_overrides_runpath=yes
11485 dynamic_linker='Win32 link.exe'
11486 ;;
11487
11488 *)
11489 # Assume MSVC and ICC wrapper
11490 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11491 dynamic_linker='Win32 ld.exe'
11492 ;;
11493 esac
11494 # FIXME: first we should search . and the directory the executable is in
11495 shlibpath_var=PATH
11496 ;;
11497
11498 darwin* | rhapsody*)
11499 dynamic_linker="$host_os dyld"
11500 version_type=darwin
11501 need_lib_prefix=no
11502 need_version=no
11503 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11504 soname_spec='$libname$release$major$shared_ext'
11505 shlibpath_overrides_runpath=yes
11506 shlibpath_var=DYLD_LIBRARY_PATH
11507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11508
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11511 ;;
11512
11513 dgux*)
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 soname_spec='$libname$release$shared_ext$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 ;;
11521
11522 freebsd* | dragonfly* | midnightbsd*)
11523 # DragonFly does not have aout. When/if they implement a new
11524 # versioning mechanism, adjust this.
11525 if test -x /usr/bin/objformat; then
11526 objformat=`/usr/bin/objformat`
11527 else
11528 case $host_os in
11529 freebsd[23].*) objformat=aout ;;
11530 *) objformat=elf ;;
11531 esac
11532 fi
11533 version_type=freebsd-$objformat
11534 case $version_type in
11535 freebsd-elf*)
11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537 soname_spec='$libname$release$shared_ext$major'
11538 need_version=no
11539 need_lib_prefix=no
11540 ;;
11541 freebsd-*)
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11543 need_version=yes
11544 ;;
11545 esac
11546 shlibpath_var=LD_LIBRARY_PATH
11547 case $host_os in
11548 freebsd2.*)
11549 shlibpath_overrides_runpath=yes
11550 ;;
11551 freebsd3.[01]* | freebsdelf3.[01]*)
11552 shlibpath_overrides_runpath=yes
11553 hardcode_into_libs=yes
11554 ;;
11555 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11556 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11557 shlibpath_overrides_runpath=no
11558 hardcode_into_libs=yes
11559 ;;
11560 *) # from 4.6 on, and DragonFly
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 ;;
11564 esac
11565 ;;
11566
11567 haiku*)
11568 version_type=linux # correct to gnu/linux during the next big refactor
11569 need_lib_prefix=no
11570 need_version=no
11571 dynamic_linker="$host_os runtime_loader"
11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11573 soname_spec='$libname$release$shared_ext$major'
11574 shlibpath_var=LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11577 hardcode_into_libs=yes
11578 ;;
11579
11580 hpux9* | hpux10* | hpux11*)
11581 # Give a soname corresponding to the major version so that dld.sl refuses to
11582 # link against other versions.
11583 version_type=sunos
11584 need_lib_prefix=no
11585 need_version=no
11586 case $host_cpu in
11587 ia64*)
11588 shrext_cmds='.so'
11589 hardcode_into_libs=yes
11590 dynamic_linker="$host_os dld.so"
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11594 soname_spec='$libname$release$shared_ext$major'
11595 if test 32 = "$HPUX_IA64_MODE"; then
11596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11597 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11598 else
11599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11600 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11601 fi
11602 ;;
11603 hppa*64*)
11604 shrext_cmds='.sl'
11605 hardcode_into_libs=yes
11606 dynamic_linker="$host_os dld.sl"
11607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11610 soname_spec='$libname$release$shared_ext$major'
11611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11613 ;;
11614 *)
11615 shrext_cmds='.sl'
11616 dynamic_linker="$host_os dld.sl"
11617 shlibpath_var=SHLIB_PATH
11618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620 soname_spec='$libname$release$shared_ext$major'
11621 ;;
11622 esac
11623 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11624 postinstall_cmds='chmod 555 $lib'
11625 # or fails outright, so override atomically:
11626 install_override_mode=555
11627 ;;
11628
11629 interix[3-9]*)
11630 version_type=linux # correct to gnu/linux during the next big refactor
11631 need_lib_prefix=no
11632 need_version=no
11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634 soname_spec='$libname$release$shared_ext$major'
11635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=no
11638 hardcode_into_libs=yes
11639 ;;
11640
11641 irix5* | irix6* | nonstopux*)
11642 case $host_os in
11643 nonstopux*) version_type=nonstopux ;;
11644 *)
11645 if test yes = "$lt_cv_prog_gnu_ld"; then
11646 version_type=linux # correct to gnu/linux during the next big refactor
11647 else
11648 version_type=irix
11649 fi ;;
11650 esac
11651 need_lib_prefix=no
11652 need_version=no
11653 soname_spec='$libname$release$shared_ext$major'
11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11655 case $host_os in
11656 irix5* | nonstopux*)
11657 libsuff= shlibsuff=
11658 ;;
11659 *)
11660 case $LD in # libtool.m4 will add one of these switches to LD
11661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11662 libsuff= shlibsuff= libmagic=32-bit;;
11663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11664 libsuff=32 shlibsuff=N32 libmagic=N32;;
11665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11667 *) libsuff= shlibsuff= libmagic=never-match;;
11668 esac
11669 ;;
11670 esac
11671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11672 shlibpath_overrides_runpath=no
11673 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11674 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11675 hardcode_into_libs=yes
11676 ;;
11677
11678 # No shared lib support for Linux oldld, aout, or coff.
11679 linux*oldld* | linux*aout* | linux*coff*)
11680 dynamic_linker=no
11681 ;;
11682
11683 linux*android*)
11684 version_type=none # Android doesn't support versioned libraries.
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='$libname$release$shared_ext'
11688 soname_spec='$libname$release$shared_ext'
11689 finish_cmds=
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692
11693 # This implies no fast_install, which is unacceptable.
11694 # Some rework will be needed to allow for fast_install
11695 # before this can be enabled.
11696 hardcode_into_libs=yes
11697
11698 dynamic_linker='Android linker'
11699 # Don't embed -rpath directories since the linker doesn't support them.
11700 hardcode_libdir_flag_spec='-L$libdir'
11701 ;;
11702
11703 # This must be glibc/ELF.
11704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11705 version_type=linux # correct to gnu/linux during the next big refactor
11706 need_lib_prefix=no
11707 need_version=no
11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709 soname_spec='$libname$release$shared_ext$major'
11710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=no
11713
11714 # Some binutils ld are patched to set DT_RUNPATH
11715 if test ${lt_cv_shlibpath_overrides_runpath+y}
11716 then :
11717 printf %s "(cached) " >&6
11718 else $as_nop
11719 lt_cv_shlibpath_overrides_runpath=no
11720 save_LDFLAGS=$LDFLAGS
11721 save_libdir=$libdir
11722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726
11727 int
11728 main (void)
11729 {
11730
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_c_try_link "$LINENO"
11736 then :
11737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11738 then :
11739 lt_cv_shlibpath_overrides_runpath=yes
11740 fi
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LDFLAGS=$save_LDFLAGS
11745 libdir=$save_libdir
11746
11747 fi
11748
11749 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11750
11751 # This implies no fast_install, which is unacceptable.
11752 # Some rework will be needed to allow for fast_install
11753 # before this can be enabled.
11754 hardcode_into_libs=yes
11755
11756 # Ideally, we could use ldconfig to report *all* directores which are
11757 # searched for libraries, however this is still not possible. Aside from not
11758 # being certain /sbin/ldconfig is available, command
11759 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11760 # even though it is searched at run-time. Try to do the best guess by
11761 # appending ld.so.conf contents (and includes) to the search path.
11762 if test -f /etc/ld.so.conf; then
11763 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' ' '`
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11765 fi
11766
11767 # We used to test for /lib/ld.so.1 and disable shared libraries on
11768 # powerpc, because MkLinux only supported shared libraries with the
11769 # GNU dynamic linker. Since this was broken with cross compilers,
11770 # most powerpc-linux boxes support dynamic linking these days and
11771 # people can always --disable-shared, the test was removed, and we
11772 # assume the GNU/Linux dynamic linker is in use.
11773 dynamic_linker='GNU/Linux ld.so'
11774 ;;
11775
11776 netbsdelf*-gnu)
11777 version_type=linux
11778 need_lib_prefix=no
11779 need_version=no
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 dynamic_linker='NetBSD ld.elf_so'
11786 ;;
11787
11788 netbsd*)
11789 version_type=sunos
11790 need_lib_prefix=no
11791 need_version=no
11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11795 dynamic_linker='NetBSD (a.out) ld.so'
11796 else
11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11798 soname_spec='$libname$release$shared_ext$major'
11799 dynamic_linker='NetBSD ld.elf_so'
11800 fi
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 hardcode_into_libs=yes
11804 ;;
11805
11806 newsos6)
11807 version_type=linux # correct to gnu/linux during the next big refactor
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 ;;
11812
11813 *nto* | *qnx*)
11814 version_type=qnx
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11818 soname_spec='$libname$release$shared_ext$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11822 dynamic_linker='ldqnx.so'
11823 ;;
11824
11825 openbsd* | bitrig*)
11826 version_type=sunos
11827 sys_lib_dlsearch_path_spec=/usr/lib
11828 need_lib_prefix=no
11829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11830 need_version=no
11831 else
11832 need_version=yes
11833 fi
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=yes
11838 ;;
11839
11840 os2*)
11841 libname_spec='$name'
11842 version_type=windows
11843 shrext_cmds=.dll
11844 need_version=no
11845 need_lib_prefix=no
11846 # OS/2 can only load a DLL with a base name of 8 characters or less.
11847 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11848 v=$($ECHO $release$versuffix | tr -d .-);
11849 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11850 $ECHO $n$v`$shared_ext'
11851 library_names_spec='${libname}_dll.$libext'
11852 dynamic_linker='OS/2 ld.exe'
11853 shlibpath_var=BEGINLIBPATH
11854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11856 postinstall_cmds='base_file=`basename \$file`~
11857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11858 dldir=$destdir/`dirname \$dlpath`~
11859 test -d \$dldir || mkdir -p \$dldir~
11860 $install_prog $dir/$dlname \$dldir/$dlname~
11861 chmod a+x \$dldir/$dlname~
11862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11864 fi'
11865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11866 dlpath=$dir/\$dldll~
11867 $RM \$dlpath'
11868 ;;
11869
11870 osf3* | osf4* | osf5*)
11871 version_type=osf
11872 need_lib_prefix=no
11873 need_version=no
11874 soname_spec='$libname$release$shared_ext$major'
11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11879 ;;
11880
11881 rdos*)
11882 dynamic_linker=no
11883 ;;
11884
11885 solaris*)
11886 version_type=linux # correct to gnu/linux during the next big refactor
11887 need_lib_prefix=no
11888 need_version=no
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 soname_spec='$libname$release$shared_ext$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 hardcode_into_libs=yes
11894 # ldd complains unless libraries are executable
11895 postinstall_cmds='chmod +x $lib'
11896 ;;
11897
11898 sunos4*)
11899 version_type=sunos
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=yes
11904 if test yes = "$with_gnu_ld"; then
11905 need_lib_prefix=no
11906 fi
11907 need_version=yes
11908 ;;
11909
11910 sysv4 | sysv4.3*)
11911 version_type=linux # correct to gnu/linux during the next big refactor
11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11913 soname_spec='$libname$release$shared_ext$major'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 case $host_vendor in
11916 sni)
11917 shlibpath_overrides_runpath=no
11918 need_lib_prefix=no
11919 runpath_var=LD_RUN_PATH
11920 ;;
11921 siemens)
11922 need_lib_prefix=no
11923 ;;
11924 motorola)
11925 need_lib_prefix=no
11926 need_version=no
11927 shlibpath_overrides_runpath=no
11928 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11929 ;;
11930 esac
11931 ;;
11932
11933 sysv4*MP*)
11934 if test -d /usr/nec; then
11935 version_type=linux # correct to gnu/linux during the next big refactor
11936 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11937 soname_spec='$libname$shared_ext.$major'
11938 shlibpath_var=LD_LIBRARY_PATH
11939 fi
11940 ;;
11941
11942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11943 version_type=sco
11944 need_lib_prefix=no
11945 need_version=no
11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11947 soname_spec='$libname$release$shared_ext$major'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11950 hardcode_into_libs=yes
11951 if test yes = "$with_gnu_ld"; then
11952 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11953 else
11954 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11955 case $host_os in
11956 sco3.2v5*)
11957 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11958 ;;
11959 esac
11960 fi
11961 sys_lib_dlsearch_path_spec='/usr/lib'
11962 ;;
11963
11964 tpf*)
11965 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 need_lib_prefix=no
11968 need_version=no
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=no
11972 hardcode_into_libs=yes
11973 ;;
11974
11975 uts4*)
11976 version_type=linux # correct to gnu/linux during the next big refactor
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 soname_spec='$libname$release$shared_ext$major'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 ;;
11981
11982 *)
11983 dynamic_linker=no
11984 ;;
11985 esac
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11987 printf "%s\n" "$dynamic_linker" >&6; }
11988 test no = "$dynamic_linker" && can_build_shared=no
11989
11990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11991 if test yes = "$GCC"; then
11992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11993 fi
11994
11995 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11996 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11997 fi
11998
11999 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12000 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12001 fi
12002
12003 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12004 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12005
12006 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12007 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12008
12009 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12010 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12109 printf %s "checking how to hardcode library paths into programs... " >&6; }
12110 hardcode_action=
12111 if test -n "$hardcode_libdir_flag_spec" ||
12112 test -n "$runpath_var" ||
12113 test yes = "$hardcode_automatic"; then
12114
12115 # We can hardcode non-existent directories.
12116 if test no != "$hardcode_direct" &&
12117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12118 # have to relink, otherwise we might link with an installed library
12119 # when we should be linking with a yet-to-be-installed one
12120 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12121 test no != "$hardcode_minus_L"; then
12122 # Linking always hardcodes the temporary library directory.
12123 hardcode_action=relink
12124 else
12125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12126 hardcode_action=immediate
12127 fi
12128 else
12129 # We cannot hardcode anything, or else we can only hardcode existing
12130 # directories.
12131 hardcode_action=unsupported
12132 fi
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12134 printf "%s\n" "$hardcode_action" >&6; }
12135
12136 if test relink = "$hardcode_action" ||
12137 test yes = "$inherit_rpath"; then
12138 # Fast installation is not supported
12139 enable_fast_install=no
12140 elif test yes = "$shlibpath_overrides_runpath" ||
12141 test no = "$enable_shared"; then
12142 # Fast installation is not necessary
12143 enable_fast_install=needless
12144 fi
12145
12146
12147
12148
12149
12150
12151 if test yes != "$enable_dlopen"; then
12152 enable_dlopen=unknown
12153 enable_dlopen_self=unknown
12154 enable_dlopen_self_static=unknown
12155 else
12156 lt_cv_dlopen=no
12157 lt_cv_dlopen_libs=
12158
12159 case $host_os in
12160 beos*)
12161 lt_cv_dlopen=load_add_on
12162 lt_cv_dlopen_libs=
12163 lt_cv_dlopen_self=yes
12164 ;;
12165
12166 mingw* | pw32* | cegcc*)
12167 lt_cv_dlopen=LoadLibrary
12168 lt_cv_dlopen_libs=
12169 ;;
12170
12171 cygwin*)
12172 lt_cv_dlopen=dlopen
12173 lt_cv_dlopen_libs=
12174 ;;
12175
12176 darwin*)
12177 # if libdl is installed we need to link against it
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12179 printf %s "checking for dlopen in -ldl... " >&6; }
12180 if test ${ac_cv_lib_dl_dlopen+y}
12181 then :
12182 printf %s "(cached) " >&6
12183 else $as_nop
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldl $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 char dlopen ();
12193 int
12194 main (void)
12195 {
12196 return dlopen ();
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"
12202 then :
12203 ac_cv_lib_dl_dlopen=yes
12204 else $as_nop
12205 ac_cv_lib_dl_dlopen=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12212 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12213 if test "x$ac_cv_lib_dl_dlopen" = xyes
12214 then :
12215 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12216 else $as_nop
12217
12218 lt_cv_dlopen=dyld
12219 lt_cv_dlopen_libs=
12220 lt_cv_dlopen_self=yes
12221
12222 fi
12223
12224 ;;
12225
12226 tpf*)
12227 # Don't try to run any link tests for TPF. We know it's impossible
12228 # because TPF is a cross-compiler, and we know how we open DSOs.
12229 lt_cv_dlopen=dlopen
12230 lt_cv_dlopen_libs=
12231 lt_cv_dlopen_self=no
12232 ;;
12233
12234 *)
12235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12236 if test "x$ac_cv_func_shl_load" = xyes
12237 then :
12238 lt_cv_dlopen=shl_load
12239 else $as_nop
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12241 printf %s "checking for shl_load in -ldld... " >&6; }
12242 if test ${ac_cv_lib_dld_shl_load+y}
12243 then :
12244 printf %s "(cached) " >&6
12245 else $as_nop
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-ldld $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 char shl_load ();
12255 int
12256 main (void)
12257 {
12258 return shl_load ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"
12264 then :
12265 ac_cv_lib_dld_shl_load=yes
12266 else $as_nop
12267 ac_cv_lib_dld_shl_load=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12274 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12275 if test "x$ac_cv_lib_dld_shl_load" = xyes
12276 then :
12277 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12278 else $as_nop
12279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12280 if test "x$ac_cv_func_dlopen" = xyes
12281 then :
12282 lt_cv_dlopen=dlopen
12283 else $as_nop
12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12285 printf %s "checking for dlopen in -ldl... " >&6; }
12286 if test ${ac_cv_lib_dl_dlopen+y}
12287 then :
12288 printf %s "(cached) " >&6
12289 else $as_nop
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldl $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 char dlopen ();
12299 int
12300 main (void)
12301 {
12302 return dlopen ();
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"
12308 then :
12309 ac_cv_lib_dl_dlopen=yes
12310 else $as_nop
12311 ac_cv_lib_dl_dlopen=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12318 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12319 if test "x$ac_cv_lib_dl_dlopen" = xyes
12320 then :
12321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12322 else $as_nop
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12324 printf %s "checking for dlopen in -lsvld... " >&6; }
12325 if test ${ac_cv_lib_svld_dlopen+y}
12326 then :
12327 printf %s "(cached) " >&6
12328 else $as_nop
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lsvld $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 char dlopen ();
12338 int
12339 main (void)
12340 {
12341 return dlopen ();
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 if ac_fn_c_try_link "$LINENO"
12347 then :
12348 ac_cv_lib_svld_dlopen=yes
12349 else $as_nop
12350 ac_cv_lib_svld_dlopen=no
12351 fi
12352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12355 fi
12356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12357 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12358 if test "x$ac_cv_lib_svld_dlopen" = xyes
12359 then :
12360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12361 else $as_nop
12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12363 printf %s "checking for dld_link in -ldld... " >&6; }
12364 if test ${ac_cv_lib_dld_dld_link+y}
12365 then :
12366 printf %s "(cached) " >&6
12367 else $as_nop
12368 ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-ldld $LIBS"
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376 char dld_link ();
12377 int
12378 main (void)
12379 {
12380 return dld_link ();
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"
12386 then :
12387 ac_cv_lib_dld_dld_link=yes
12388 else $as_nop
12389 ac_cv_lib_dld_dld_link=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12394 fi
12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12396 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12397 if test "x$ac_cv_lib_dld_dld_link" = xyes
12398 then :
12399 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12400 fi
12401
12402
12403 fi
12404
12405
12406 fi
12407
12408
12409 fi
12410
12411
12412 fi
12413
12414
12415 fi
12416
12417 ;;
12418 esac
12419
12420 if test no = "$lt_cv_dlopen"; then
12421 enable_dlopen=no
12422 else
12423 enable_dlopen=yes
12424 fi
12425
12426 case $lt_cv_dlopen in
12427 dlopen)
12428 save_CPPFLAGS=$CPPFLAGS
12429 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12430
12431 save_LDFLAGS=$LDFLAGS
12432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12433
12434 save_LIBS=$LIBS
12435 LIBS="$lt_cv_dlopen_libs $LIBS"
12436
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12438 printf %s "checking whether a program can dlopen itself... " >&6; }
12439 if test ${lt_cv_dlopen_self+y}
12440 then :
12441 printf %s "(cached) " >&6
12442 else $as_nop
12443 if test yes = "$cross_compiling"; then :
12444 lt_cv_dlopen_self=cross
12445 else
12446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12447 lt_status=$lt_dlunknown
12448 cat > conftest.$ac_ext <<_LT_EOF
12449 #line $LINENO "configure"
12450 #include "confdefs.h"
12451
12452 #if HAVE_DLFCN_H
12453 #include <dlfcn.h>
12454 #endif
12455
12456 #include <stdio.h>
12457
12458 #ifdef RTLD_GLOBAL
12459 # define LT_DLGLOBAL RTLD_GLOBAL
12460 #else
12461 # ifdef DL_GLOBAL
12462 # define LT_DLGLOBAL DL_GLOBAL
12463 # else
12464 # define LT_DLGLOBAL 0
12465 # endif
12466 #endif
12467
12468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12469 find out it does not work in some platform. */
12470 #ifndef LT_DLLAZY_OR_NOW
12471 # ifdef RTLD_LAZY
12472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12473 # else
12474 # ifdef DL_LAZY
12475 # define LT_DLLAZY_OR_NOW DL_LAZY
12476 # else
12477 # ifdef RTLD_NOW
12478 # define LT_DLLAZY_OR_NOW RTLD_NOW
12479 # else
12480 # ifdef DL_NOW
12481 # define LT_DLLAZY_OR_NOW DL_NOW
12482 # else
12483 # define LT_DLLAZY_OR_NOW 0
12484 # endif
12485 # endif
12486 # endif
12487 # endif
12488 #endif
12489
12490 /* When -fvisibility=hidden is used, assume the code has been annotated
12491 correspondingly for the symbols needed. */
12492 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12493 int fnord () __attribute__((visibility("default")));
12494 #endif
12495
12496 int fnord () { return 42; }
12497 int main ()
12498 {
12499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12500 int status = $lt_dlunknown;
12501
12502 if (self)
12503 {
12504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12505 else
12506 {
12507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12508 else puts (dlerror ());
12509 }
12510 /* dlclose (self); */
12511 }
12512 else
12513 puts (dlerror ());
12514
12515 return status;
12516 }
12517 _LT_EOF
12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12519 (eval $ac_link) 2>&5
12520 ac_status=$?
12521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12523 (./conftest; exit; ) >&5 2>/dev/null
12524 lt_status=$?
12525 case x$lt_status in
12526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12528 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12529 esac
12530 else :
12531 # compilation failed
12532 lt_cv_dlopen_self=no
12533 fi
12534 fi
12535 rm -fr conftest*
12536
12537
12538 fi
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12540 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12541
12542 if test yes = "$lt_cv_dlopen_self"; then
12543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12545 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12546 if test ${lt_cv_dlopen_self_static+y}
12547 then :
12548 printf %s "(cached) " >&6
12549 else $as_nop
12550 if test yes = "$cross_compiling"; then :
12551 lt_cv_dlopen_self_static=cross
12552 else
12553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12554 lt_status=$lt_dlunknown
12555 cat > conftest.$ac_ext <<_LT_EOF
12556 #line $LINENO "configure"
12557 #include "confdefs.h"
12558
12559 #if HAVE_DLFCN_H
12560 #include <dlfcn.h>
12561 #endif
12562
12563 #include <stdio.h>
12564
12565 #ifdef RTLD_GLOBAL
12566 # define LT_DLGLOBAL RTLD_GLOBAL
12567 #else
12568 # ifdef DL_GLOBAL
12569 # define LT_DLGLOBAL DL_GLOBAL
12570 # else
12571 # define LT_DLGLOBAL 0
12572 # endif
12573 #endif
12574
12575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12576 find out it does not work in some platform. */
12577 #ifndef LT_DLLAZY_OR_NOW
12578 # ifdef RTLD_LAZY
12579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12580 # else
12581 # ifdef DL_LAZY
12582 # define LT_DLLAZY_OR_NOW DL_LAZY
12583 # else
12584 # ifdef RTLD_NOW
12585 # define LT_DLLAZY_OR_NOW RTLD_NOW
12586 # else
12587 # ifdef DL_NOW
12588 # define LT_DLLAZY_OR_NOW DL_NOW
12589 # else
12590 # define LT_DLLAZY_OR_NOW 0
12591 # endif
12592 # endif
12593 # endif
12594 # endif
12595 #endif
12596
12597 /* When -fvisibility=hidden is used, assume the code has been annotated
12598 correspondingly for the symbols needed. */
12599 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12600 int fnord () __attribute__((visibility("default")));
12601 #endif
12602
12603 int fnord () { return 42; }
12604 int main ()
12605 {
12606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607 int status = $lt_dlunknown;
12608
12609 if (self)
12610 {
12611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12612 else
12613 {
12614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12615 else puts (dlerror ());
12616 }
12617 /* dlclose (self); */
12618 }
12619 else
12620 puts (dlerror ());
12621
12622 return status;
12623 }
12624 _LT_EOF
12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12626 (eval $ac_link) 2>&5
12627 ac_status=$?
12628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12630 (./conftest; exit; ) >&5 2>/dev/null
12631 lt_status=$?
12632 case x$lt_status in
12633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12636 esac
12637 else :
12638 # compilation failed
12639 lt_cv_dlopen_self_static=no
12640 fi
12641 fi
12642 rm -fr conftest*
12643
12644
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12647 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12648 fi
12649
12650 CPPFLAGS=$save_CPPFLAGS
12651 LDFLAGS=$save_LDFLAGS
12652 LIBS=$save_LIBS
12653 ;;
12654 esac
12655
12656 case $lt_cv_dlopen_self in
12657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12658 *) enable_dlopen_self=unknown ;;
12659 esac
12660
12661 case $lt_cv_dlopen_self_static in
12662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12663 *) enable_dlopen_self_static=unknown ;;
12664 esac
12665 fi
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683 striplib=
12684 old_striplib=
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12686 printf %s "checking whether stripping libraries is possible... " >&6; }
12687 if test -z "$STRIP"; then
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 printf "%s\n" "no" >&6; }
12690 else
12691 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12692 old_striplib="$STRIP --strip-debug"
12693 striplib="$STRIP --strip-unneeded"
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12695 printf "%s\n" "yes" >&6; }
12696 else
12697 case $host_os in
12698 darwin*)
12699 # FIXME - insert some real tests, host_os isn't really good enough
12700 striplib="$STRIP -x"
12701 old_striplib="$STRIP -S"
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703 printf "%s\n" "yes" >&6; }
12704 ;;
12705 freebsd*)
12706 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12707 old_striplib="$STRIP --strip-debug"
12708 striplib="$STRIP --strip-unneeded"
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710 printf "%s\n" "yes" >&6; }
12711 else
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 printf "%s\n" "no" >&6; }
12714 fi
12715 ;;
12716 *)
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 printf "%s\n" "no" >&6; }
12719 ;;
12720 esac
12721 fi
12722 fi
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735 # Report what library types will actually be built
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12737 printf %s "checking if libtool supports shared libraries... " >&6; }
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12739 printf "%s\n" "$can_build_shared" >&6; }
12740
12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12742 printf %s "checking whether to build shared libraries... " >&6; }
12743 test no = "$can_build_shared" && enable_shared=no
12744
12745 # On AIX, shared libraries and static libraries use the same namespace, and
12746 # are all built from PIC.
12747 case $host_os in
12748 aix3*)
12749 test yes = "$enable_shared" && enable_static=no
12750 if test -n "$RANLIB"; then
12751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12752 postinstall_cmds='$RANLIB $lib'
12753 fi
12754 ;;
12755
12756 aix[4-9]*)
12757 if test ia64 != "$host_cpu"; then
12758 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12759 yes,aix,yes) ;; # shared object as lib.so file only
12760 yes,svr4,*) ;; # shared object as lib.so archive member only
12761 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12762 esac
12763 fi
12764 ;;
12765 esac
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12767 printf "%s\n" "$enable_shared" >&6; }
12768
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12770 printf %s "checking whether to build static libraries... " >&6; }
12771 # Make sure either enable_shared or enable_static is yes.
12772 test yes = "$enable_shared" || enable_static=yes
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12774 printf "%s\n" "$enable_static" >&6; }
12775
12776
12777
12778
12779 fi
12780 ac_ext=c
12781 ac_cpp='$CPP $CPPFLAGS'
12782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785
12786 CC=$lt_save_CC
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802 ac_config_commands="$ac_config_commands libtool"
12803
12804
12805
12806
12807 # Only expand once:
12808
12809
12810
12811
12812
12813 # Checks for libraries.
12814 # dlopen library
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12816 printf %s "checking for dlopen in -ldl... " >&6; }
12817 if test ${ac_cv_lib_dl_dlopen+y}
12818 then :
12819 printf %s "(cached) " >&6
12820 else $as_nop
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-ldl $LIBS"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 char dlopen ();
12830 int
12831 main (void)
12832 {
12833 return dlopen ();
12834 ;
12835 return 0;
12836 }
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"
12839 then :
12840 ac_cv_lib_dl_dlopen=yes
12841 else $as_nop
12842 ac_cv_lib_dl_dlopen=no
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12847 fi
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12849 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12850 if test "x$ac_cv_lib_dl_dlopen" = xyes
12851 then :
12852 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
12853
12854 LIBS="-ldl $LIBS"
12855
12856 fi
12857
12858
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
12860 printf %s "checking for X509_free in -lcrypto... " >&6; }
12861 if test ${ac_cv_lib_crypto_X509_free+y}
12862 then :
12863 printf %s "(cached) " >&6
12864 else $as_nop
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-lcrypto $LIBS"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 char X509_free ();
12874 int
12875 main (void)
12876 {
12877 return X509_free ();
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"
12883 then :
12884 ac_cv_lib_crypto_X509_free=yes
12885 else $as_nop
12886 ac_cv_lib_crypto_X509_free=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
12893 printf "%s\n" "$ac_cv_lib_crypto_X509_free" >&6; }
12894 if test "x$ac_cv_lib_crypto_X509_free" = xyes
12895 then :
12896 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12897
12898 LIBS="-lcrypto $LIBS"
12899
12900 fi
12901
12902
12903 # Checks for header files.
12904 ac_header_dirent=no
12905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12906 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12908 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
12909 if eval test \${$as_ac_Header+y}
12910 then :
12911 printf %s "(cached) " >&6
12912 else $as_nop
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 #include <sys/types.h>
12916 #include <$ac_hdr>
12917
12918 int
12919 main (void)
12920 {
12921 if ((DIR *) 0)
12922 return 0;
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_compile "$LINENO"
12928 then :
12929 eval "$as_ac_Header=yes"
12930 else $as_nop
12931 eval "$as_ac_Header=no"
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12934 fi
12935 eval ac_res=\$$as_ac_Header
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12937 printf "%s\n" "$ac_res" >&6; }
12938 if eval test \"x\$"$as_ac_Header"\" = x"yes"
12939 then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
12942 _ACEOF
12943
12944 ac_header_dirent=$ac_hdr; break
12945 fi
12946
12947 done
12948 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12949 if test $ac_header_dirent = dirent.h; then
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12951 printf %s "checking for library containing opendir... " >&6; }
12952 if test ${ac_cv_search_opendir+y}
12953 then :
12954 printf %s "(cached) " >&6
12955 else $as_nop
12956 ac_func_search_save_LIBS=$LIBS
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963 char opendir ();
12964 int
12965 main (void)
12966 {
12967 return opendir ();
12968 ;
12969 return 0;
12970 }
12971 _ACEOF
12972 for ac_lib in '' dir
12973 do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12976 else
12977 ac_res=-l$ac_lib
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12979 fi
12980 if ac_fn_c_try_link "$LINENO"
12981 then :
12982 ac_cv_search_opendir=$ac_res
12983 fi
12984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12985 conftest$ac_exeext
12986 if test ${ac_cv_search_opendir+y}
12987 then :
12988 break
12989 fi
12990 done
12991 if test ${ac_cv_search_opendir+y}
12992 then :
12993
12994 else $as_nop
12995 ac_cv_search_opendir=no
12996 fi
12997 rm conftest.$ac_ext
12998 LIBS=$ac_func_search_save_LIBS
12999 fi
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13001 printf "%s\n" "$ac_cv_search_opendir" >&6; }
13002 ac_res=$ac_cv_search_opendir
13003 if test "$ac_res" != no
13004 then :
13005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13006
13007 fi
13008
13009 else
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13011 printf %s "checking for library containing opendir... " >&6; }
13012 if test ${ac_cv_search_opendir+y}
13013 then :
13014 printf %s "(cached) " >&6
13015 else $as_nop
13016 ac_func_search_save_LIBS=$LIBS
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019
13020 /* Override any GCC internal prototype to avoid an error.
13021 Use char because int might match the return type of a GCC
13022 builtin and then its argument prototype would still apply. */
13023 char opendir ();
13024 int
13025 main (void)
13026 {
13027 return opendir ();
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 for ac_lib in '' x
13033 do
13034 if test -z "$ac_lib"; then
13035 ac_res="none required"
13036 else
13037 ac_res=-l$ac_lib
13038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13039 fi
13040 if ac_fn_c_try_link "$LINENO"
13041 then :
13042 ac_cv_search_opendir=$ac_res
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13045 conftest$ac_exeext
13046 if test ${ac_cv_search_opendir+y}
13047 then :
13048 break
13049 fi
13050 done
13051 if test ${ac_cv_search_opendir+y}
13052 then :
13053
13054 else $as_nop
13055 ac_cv_search_opendir=no
13056 fi
13057 rm conftest.$ac_ext
13058 LIBS=$ac_func_search_save_LIBS
13059 fi
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13061 printf "%s\n" "$ac_cv_search_opendir" >&6; }
13062 ac_res=$ac_cv_search_opendir
13063 if test "$ac_res" != no
13064 then :
13065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066
13067 fi
13068
13069 fi
13070
13071 # Autoupdate added the next two lines to ensure that your configure
13072 # script's behavior did not change. They are probably safe to remove.
13073
13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13075 printf %s "checking for egrep... " >&6; }
13076 if test ${ac_cv_path_EGREP+y}
13077 then :
13078 printf %s "(cached) " >&6
13079 else $as_nop
13080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13081 then ac_cv_path_EGREP="$GREP -E"
13082 else
13083 if test -z "$EGREP"; then
13084 ac_path_EGREP_found=false
13085 # Loop through the user's path and test for each of PROGNAME-LIST
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13088 do
13089 IFS=$as_save_IFS
13090 case $as_dir in #(((
13091 '') as_dir=./ ;;
13092 */) ;;
13093 *) as_dir=$as_dir/ ;;
13094 esac
13095 for ac_prog in egrep
13096 do
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13099 as_fn_executable_p "$ac_path_EGREP" || continue
13100 # Check for GNU ac_path_EGREP and select it if it is found.
13101 # Check for GNU $ac_path_EGREP
13102 case `"$ac_path_EGREP" --version 2>&1` in
13103 *GNU*)
13104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13105 *)
13106 ac_count=0
13107 printf %s 0123456789 >"conftest.in"
13108 while :
13109 do
13110 cat "conftest.in" "conftest.in" >"conftest.tmp"
13111 mv "conftest.tmp" "conftest.in"
13112 cp "conftest.in" "conftest.nl"
13113 printf "%s\n" 'EGREP' >> "conftest.nl"
13114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13116 as_fn_arith $ac_count + 1 && ac_count=$as_val
13117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13118 # Best one so far, save it but keep looking for a better one
13119 ac_cv_path_EGREP="$ac_path_EGREP"
13120 ac_path_EGREP_max=$ac_count
13121 fi
13122 # 10*(2^10) chars as input seems more than enough
13123 test $ac_count -gt 10 && break
13124 done
13125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13126 esac
13127
13128 $ac_path_EGREP_found && break 3
13129 done
13130 done
13131 done
13132 IFS=$as_save_IFS
13133 if test -z "$ac_cv_path_EGREP"; then
13134 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13135 fi
13136 else
13137 ac_cv_path_EGREP=$EGREP
13138 fi
13139
13140 fi
13141 fi
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13143 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13144 EGREP="$ac_cv_path_EGREP"
13145
13146
13147
13148 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_dlfcn_h" = xyes
13150 then :
13151 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
13152
13153 fi
13154 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13155 if test "x$ac_cv_header_malloc_h" = xyes
13156 then :
13157 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
13158
13159 fi
13160 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13161 if test "x$ac_cv_header_stdlib_h" = xyes
13162 then :
13163 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13164
13165 fi
13166 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13167 if test "x$ac_cv_header_string_h" = xyes
13168 then :
13169 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13170
13171 fi
13172 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13173 if test "x$ac_cv_header_syslog_h" = xyes
13174 then :
13175 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
13176
13177 fi
13178 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_unistd_h" = xyes
13180 then :
13181 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13182
13183 fi
13184 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
13185 if test "x$ac_cv_header_utime_h" = xyes
13186 then :
13187 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
13188
13189 fi
13190 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
13191 if test "x$ac_cv_header_values_h" = xyes
13192 then :
13193 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
13194
13195 fi
13196
13197
13198 # Checks for typedefs, structures, and compiler characteristics.
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13200 printf %s "checking for an ANSI C-conforming const... " >&6; }
13201 if test ${ac_cv_c_const+y}
13202 then :
13203 printf %s "(cached) " >&6
13204 else $as_nop
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 int
13209 main (void)
13210 {
13211
13212 #ifndef __cplusplus
13213 /* Ultrix mips cc rejects this sort of thing. */
13214 typedef int charset[2];
13215 const charset cs = { 0, 0 };
13216 /* SunOS 4.1.1 cc rejects this. */
13217 char const *const *pcpcc;
13218 char **ppc;
13219 /* NEC SVR4.0.2 mips cc rejects this. */
13220 struct point {int x, y;};
13221 static struct point const zero = {0,0};
13222 /* IBM XL C 1.02.0.0 rejects this.
13223 It does not let you subtract one const X* pointer from another in
13224 an arm of an if-expression whose if-part is not a constant
13225 expression */
13226 const char *g = "string";
13227 pcpcc = &g + (g ? g-g : 0);
13228 /* HPUX 7.0 cc rejects these. */
13229 ++pcpcc;
13230 ppc = (char**) pcpcc;
13231 pcpcc = (char const *const *) ppc;
13232 { /* SCO 3.2v4 cc rejects this sort of thing. */
13233 char tx;
13234 char *t = &tx;
13235 char const *s = 0 ? (char *) 0 : (char const *) 0;
13236
13237 *t++ = 0;
13238 if (s) return 0;
13239 }
13240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13241 int x[] = {25, 17};
13242 const int *foo = &x[0];
13243 ++foo;
13244 }
13245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13246 typedef const int *iptr;
13247 iptr p = 0;
13248 ++p;
13249 }
13250 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13252 struct s { int j; const int *ap[3]; } bx;
13253 struct s *b = &bx; b->j = 5;
13254 }
13255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13256 const int foo = 10;
13257 if (!foo) return 0;
13258 }
13259 return !cs[0] && !zero.x;
13260 #endif
13261
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_compile "$LINENO"
13267 then :
13268 ac_cv_c_const=yes
13269 else $as_nop
13270 ac_cv_c_const=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13273 fi
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13275 printf "%s\n" "$ac_cv_c_const" >&6; }
13276 if test $ac_cv_c_const = no; then
13277
13278 printf "%s\n" "#define const /**/" >>confdefs.h
13279
13280 fi
13281
13282 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13283 if test "x$ac_cv_type_size_t" = xyes
13284 then :
13285
13286 else $as_nop
13287
13288 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13289
13290 fi
13291
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13293 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13294 if test ${ac_cv_struct_tm+y}
13295 then :
13296 printf %s "(cached) " >&6
13297 else $as_nop
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h>
13301 #include <time.h>
13302
13303 int
13304 main (void)
13305 {
13306 struct tm tm;
13307 int *p = &tm.tm_sec;
13308 return !p;
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_compile "$LINENO"
13314 then :
13315 ac_cv_struct_tm=time.h
13316 else $as_nop
13317 ac_cv_struct_tm=sys/time.h
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13320 fi
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13322 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13323 if test $ac_cv_struct_tm = sys/time.h; then
13324
13325 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13326
13327 fi
13328
13329
13330 # Checks for library functions.
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13332 printf %s "checking whether closedir returns void... " >&6; }
13333 if test ${ac_cv_func_closedir_void+y}
13334 then :
13335 printf %s "(cached) " >&6
13336 else $as_nop
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339
13340 #include <$ac_header_dirent>
13341
13342 int
13343 main (void)
13344 {
13345
13346 return closedir(0);
13347
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_compile "$LINENO"
13353 then :
13354 ac_cv_func_closedir_void=no
13355 else $as_nop
13356 ac_cv_func_closedir_void=yes
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13359 fi
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13361 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
13362 if test $ac_cv_func_closedir_void = yes; then
13363
13364 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
13365
13366 fi
13367
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13369 printf %s "checking for GNU libc compatible malloc... " >&6; }
13370 if test ${ac_cv_func_malloc_0_nonnull+y}
13371 then :
13372 printf %s "(cached) " >&6
13373 else $as_nop
13374 if test "$cross_compiling" = yes
13375 then :
13376 case "$host_os" in # ((
13377 # Guess yes on platforms where we know the result.
13378 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13379 | hpux* | solaris* | cygwin* | mingw* | msys* )
13380 ac_cv_func_malloc_0_nonnull=yes ;;
13381 # If we don't know, assume the worst.
13382 *) ac_cv_func_malloc_0_nonnull=no ;;
13383 esac
13384 else $as_nop
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <stdlib.h>
13388
13389 int
13390 main (void)
13391 {
13392 void *p = malloc (0);
13393 int result = !p;
13394 free (p);
13395 return result;
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_run "$LINENO"
13401 then :
13402 ac_cv_func_malloc_0_nonnull=yes
13403 else $as_nop
13404 ac_cv_func_malloc_0_nonnull=no
13405 fi
13406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13407 conftest.$ac_objext conftest.beam conftest.$ac_ext
13408 fi
13409
13410 fi
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13412 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
13413 if test $ac_cv_func_malloc_0_nonnull = yes
13414 then :
13415
13416 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
13417
13418 else $as_nop
13419 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
13420
13421 case " $LIBOBJS " in
13422 *" malloc.$ac_objext "* ) ;;
13423 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13424 ;;
13425 esac
13426
13427
13428 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
13429
13430 fi
13431
13432
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13434 printf %s "checking for working memcmp... " >&6; }
13435 if test ${ac_cv_func_memcmp_working+y}
13436 then :
13437 printf %s "(cached) " >&6
13438 else $as_nop
13439 if test "$cross_compiling" = yes
13440 then :
13441 ac_cv_func_memcmp_working=no
13442 else $as_nop
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 $ac_includes_default
13446 int
13447 main (void)
13448 {
13449
13450 /* Some versions of memcmp are not 8-bit clean. */
13451 char c0 = '\100', c1 = '\200', c2 = '\201';
13452 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13453 return 1;
13454
13455 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13456 or more and with at least one buffer not starting on a 4-byte boundary.
13457 William Lewis provided this test program. */
13458 {
13459 char foo[21];
13460 char bar[21];
13461 int i;
13462 for (i = 0; i < 4; i++)
13463 {
13464 char *a = foo + i;
13465 char *b = bar + i;
13466 strcpy (a, "--------01111111");
13467 strcpy (b, "--------10000000");
13468 if (memcmp (a, b, 16) >= 0)
13469 return 1;
13470 }
13471 return 0;
13472 }
13473
13474 ;
13475 return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_run "$LINENO"
13479 then :
13480 ac_cv_func_memcmp_working=yes
13481 else $as_nop
13482 ac_cv_func_memcmp_working=no
13483 fi
13484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13485 conftest.$ac_objext conftest.beam conftest.$ac_ext
13486 fi
13487
13488 fi
13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13490 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
13491 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13492 *" memcmp.$ac_objext "* ) ;;
13493 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13494 ;;
13495 esac
13496
13497
13498
13499 ac_func=
13500 for ac_item in $ac_func_c_list
13501 do
13502 if test $ac_func; then
13503 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13504 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13505 echo "#define $ac_item 1" >> confdefs.h
13506 fi
13507 ac_func=
13508 else
13509 ac_func=$ac_item
13510 fi
13511 done
13512
13513
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13515 printf %s "checking for working mktime... " >&6; }
13516 if test ${ac_cv_func_working_mktime+y}
13517 then :
13518 printf %s "(cached) " >&6
13519 else $as_nop
13520 if test "$cross_compiling" = yes
13521 then :
13522 ac_cv_func_working_mktime=no
13523 else $as_nop
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 /* Test program from Paul Eggert and Tony Leneis. */
13527 #include <time.h>
13528 #ifdef HAVE_SYS_TIME_H
13529 # include <sys/time.h>
13530 #endif
13531
13532 #include <limits.h>
13533 #include <stdlib.h>
13534
13535 #ifdef HAVE_UNISTD_H
13536 # include <unistd.h>
13537 #endif
13538
13539 #ifndef HAVE_ALARM
13540 # define alarm(X) /* empty */
13541 #endif
13542
13543 /* Work around redefinition to rpl_putenv by other config tests. */
13544 #undef putenv
13545
13546 static time_t time_t_max;
13547 static time_t time_t_min;
13548
13549 /* Values we'll use to set the TZ environment variable. */
13550 static const char *tz_strings[] = {
13551 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13552 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13553 };
13554 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13555
13556 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13557 Based on a problem report from Andreas Jaeger. */
13558 static int
13559 spring_forward_gap ()
13560 {
13561 /* glibc (up to about 1998-10-07) failed this test. */
13562 struct tm tm;
13563
13564 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13565 instead of "TZ=America/Vancouver" in order to detect the bug even
13566 on systems that don't support the Olson extension, or don't have the
13567 full zoneinfo tables installed. */
13568 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13569
13570 tm.tm_year = 98;
13571 tm.tm_mon = 3;
13572 tm.tm_mday = 5;
13573 tm.tm_hour = 2;
13574 tm.tm_min = 0;
13575 tm.tm_sec = 0;
13576 tm.tm_isdst = -1;
13577 return mktime (&tm) != (time_t) -1;
13578 }
13579
13580 static int
13581 mktime_test1 (time_t now)
13582 {
13583 struct tm *lt;
13584 return ! (lt = localtime (&now)) || mktime (lt) == now;
13585 }
13586
13587 static int
13588 mktime_test (time_t now)
13589 {
13590 return (mktime_test1 (now)
13591 && mktime_test1 ((time_t) (time_t_max - now))
13592 && mktime_test1 ((time_t) (time_t_min + now)));
13593 }
13594
13595 static int
13596 irix_6_4_bug ()
13597 {
13598 /* Based on code from Ariel Faigon. */
13599 struct tm tm;
13600 tm.tm_year = 96;
13601 tm.tm_mon = 3;
13602 tm.tm_mday = 0;
13603 tm.tm_hour = 0;
13604 tm.tm_min = 0;
13605 tm.tm_sec = 0;
13606 tm.tm_isdst = -1;
13607 mktime (&tm);
13608 return tm.tm_mon == 2 && tm.tm_mday == 31;
13609 }
13610
13611 static int
13612 bigtime_test (int j)
13613 {
13614 struct tm tm;
13615 time_t now;
13616 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13617 now = mktime (&tm);
13618 if (now != (time_t) -1)
13619 {
13620 struct tm *lt = localtime (&now);
13621 if (! (lt
13622 && lt->tm_year == tm.tm_year
13623 && lt->tm_mon == tm.tm_mon
13624 && lt->tm_mday == tm.tm_mday
13625 && lt->tm_hour == tm.tm_hour
13626 && lt->tm_min == tm.tm_min
13627 && lt->tm_sec == tm.tm_sec
13628 && lt->tm_yday == tm.tm_yday
13629 && lt->tm_wday == tm.tm_wday
13630 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13631 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13632 return 0;
13633 }
13634 return 1;
13635 }
13636
13637 static int
13638 year_2050_test ()
13639 {
13640 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13641 ignoring leap seconds. */
13642 unsigned long int answer = 2527315200UL;
13643
13644 struct tm tm;
13645 time_t t;
13646 tm.tm_year = 2050 - 1900;
13647 tm.tm_mon = 2 - 1;
13648 tm.tm_mday = 1;
13649 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13650 tm.tm_isdst = -1;
13651
13652 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13653 instead of "TZ=America/Vancouver" in order to detect the bug even
13654 on systems that don't support the Olson extension, or don't have the
13655 full zoneinfo tables installed. */
13656 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13657
13658 t = mktime (&tm);
13659
13660 /* Check that the result is either a failure, or close enough
13661 to the correct answer that we can assume the discrepancy is
13662 due to leap seconds. */
13663 return (t == (time_t) -1
13664 || (0 < t && answer - 120 <= t && t <= answer + 120));
13665 }
13666
13667 int
13668 main (void)
13669 {
13670 time_t t, delta;
13671 int i, j;
13672
13673 /* This test makes some buggy mktime implementations loop.
13674 Give up after 60 seconds; a mktime slower than that
13675 isn't worth using anyway. */
13676 alarm (60);
13677
13678 for (;;)
13679 {
13680 t = (time_t_max << 1) + 1;
13681 if (t <= time_t_max)
13682 break;
13683 time_t_max = t;
13684 }
13685 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13686
13687 delta = time_t_max / 997; /* a suitable prime number */
13688 for (i = 0; i < N_STRINGS; i++)
13689 {
13690 if (tz_strings[i])
13691 putenv ((char*) tz_strings[i]);
13692
13693 for (t = 0; t <= time_t_max - delta; t += delta)
13694 if (! mktime_test (t))
13695 return 1;
13696 if (! (mktime_test ((time_t) 1)
13697 && mktime_test ((time_t) (60 * 60))
13698 && mktime_test ((time_t) (60 * 60 * 24))))
13699 return 1;
13700
13701 for (j = 1; ; j <<= 1)
13702 if (! bigtime_test (j))
13703 return 1;
13704 else if (INT_MAX / 2 < j)
13705 break;
13706 if (! bigtime_test (INT_MAX))
13707 return 1;
13708 }
13709 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_run "$LINENO"
13713 then :
13714 ac_cv_func_working_mktime=yes
13715 else $as_nop
13716 ac_cv_func_working_mktime=no
13717 fi
13718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13719 conftest.$ac_objext conftest.beam conftest.$ac_ext
13720 fi
13721
13722 fi
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13724 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
13725 if test $ac_cv_func_working_mktime = no; then
13726 case " $LIBOBJS " in
13727 *" mktime.$ac_objext "* ) ;;
13728 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13729 ;;
13730 esac
13731
13732 fi
13733
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13735 printf %s "checking for GNU libc compatible realloc... " >&6; }
13736 if test ${ac_cv_func_realloc_0_nonnull+y}
13737 then :
13738 printf %s "(cached) " >&6
13739 else $as_nop
13740 if test "$cross_compiling" = yes
13741 then :
13742 case "$host_os" in # ((
13743 # Guess yes on platforms where we know the result.
13744 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13745 | hpux* | solaris* | cygwin* | mingw* | msys* )
13746 ac_cv_func_realloc_0_nonnull=yes ;;
13747 # If we don't know, assume the worst.
13748 *) ac_cv_func_realloc_0_nonnull=no ;;
13749 esac
13750 else $as_nop
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 #include <stdlib.h>
13754
13755 int
13756 main (void)
13757 {
13758 void *p = realloc (0, 0);
13759 int result = !p;
13760 free (p);
13761 return result;
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_run "$LINENO"
13767 then :
13768 ac_cv_func_realloc_0_nonnull=yes
13769 else $as_nop
13770 ac_cv_func_realloc_0_nonnull=no
13771 fi
13772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13773 conftest.$ac_objext conftest.beam conftest.$ac_ext
13774 fi
13775
13776 fi
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13778 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
13779 if test $ac_cv_func_realloc_0_nonnull = yes
13780 then :
13781
13782 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
13783
13784 else $as_nop
13785 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
13786
13787 case " $LIBOBJS " in
13788 *" realloc.$ac_objext "* ) ;;
13789 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13790 ;;
13791 esac
13792
13793
13794 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
13795
13796 fi
13797
13798
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13800 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
13801 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
13802 then :
13803 printf %s "(cached) " >&6
13804 else $as_nop
13805 rm -f conftest.sym conftest.file
13806 echo >conftest.file
13807 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13808 if test "$cross_compiling" = yes
13809 then :
13810 case "$host_os" in # ((
13811 # Guess yes on glibc systems.
13812 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
13813 # If we don't know, assume the worst.
13814 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
13815 esac
13816 else $as_nop
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 $ac_includes_default
13820 int
13821 main (void)
13822 {
13823 struct stat sbuf;
13824 /* Linux will dereference the symlink and fail, as required by POSIX.
13825 That is better in the sense that it means we will not
13826 have to compile and use the lstat wrapper. */
13827 return lstat ("conftest.sym/", &sbuf) == 0;
13828 ;
13829 return 0;
13830 }
13831 _ACEOF
13832 if ac_fn_c_try_run "$LINENO"
13833 then :
13834 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13835 else $as_nop
13836 ac_cv_func_lstat_dereferences_slashed_symlink=no
13837 fi
13838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13839 conftest.$ac_objext conftest.beam conftest.$ac_ext
13840 fi
13841
13842 else
13843 # If the `ln -s' command failed, then we probably don't even
13844 # have an lstat function.
13845 ac_cv_func_lstat_dereferences_slashed_symlink=no
13846 fi
13847 rm -f conftest.sym conftest.file
13848
13849 fi
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13851 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13852
13853 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13854
13855 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
13856
13857
13858 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13859 case " $LIBOBJS " in
13860 *" lstat.$ac_objext "* ) ;;
13861 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13862 ;;
13863 esac
13864
13865 fi
13866
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13868 printf %s "checking whether stat accepts an empty string... " >&6; }
13869 if test ${ac_cv_func_stat_empty_string_bug+y}
13870 then :
13871 printf %s "(cached) " >&6
13872 else $as_nop
13873 if test "$cross_compiling" = yes
13874 then :
13875 ac_cv_func_stat_empty_string_bug=yes
13876 else $as_nop
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 $ac_includes_default
13880 int
13881 main (void)
13882 {
13883 struct stat sbuf;
13884 return stat ("", &sbuf) == 0;
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_run "$LINENO"
13890 then :
13891 ac_cv_func_stat_empty_string_bug=no
13892 else $as_nop
13893 ac_cv_func_stat_empty_string_bug=yes
13894 fi
13895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13896 conftest.$ac_objext conftest.beam conftest.$ac_ext
13897 fi
13898
13899 fi
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13901 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
13902 if test $ac_cv_func_stat_empty_string_bug = yes; then
13903 case " $LIBOBJS " in
13904 *" stat.$ac_objext "* ) ;;
13905 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13906 ;;
13907 esac
13908
13909
13910 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
13911
13912 fi
13913
13914
13915
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
13917 printf %s "checking whether utime accepts a null argument... " >&6; }
13918 if test ${ac_cv_func_utime_null+y}
13919 then :
13920 printf %s "(cached) " >&6
13921 else $as_nop
13922 rm -f conftest.data; >conftest.data
13923 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13924 if test "$cross_compiling" = yes
13925 then :
13926 ac_cv_func_utime_null='guessing yes'
13927 else $as_nop
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 #ifdef HAVE_UTIME_H
13932 # include <utime.h>
13933 #endif
13934 int
13935 main (void)
13936 {
13937 struct stat s, t;
13938 return ! (stat ("conftest.data", &s) == 0
13939 && utime ("conftest.data", 0) == 0
13940 && stat ("conftest.data", &t) == 0
13941 && t.st_mtime >= s.st_mtime
13942 && t.st_mtime - s.st_mtime < 120);
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_run "$LINENO"
13948 then :
13949 ac_cv_func_utime_null=yes
13950 else $as_nop
13951 ac_cv_func_utime_null=no
13952 fi
13953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13954 conftest.$ac_objext conftest.beam conftest.$ac_ext
13955 fi
13956
13957 fi
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
13959 printf "%s\n" "$ac_cv_func_utime_null" >&6; }
13960 if test "x$ac_cv_func_utime_null" != xno; then
13961 ac_cv_func_utime_null=yes
13962
13963 printf "%s\n" "#define HAVE_UTIME_NULL 1" >>confdefs.h
13964
13965 fi
13966 rm -f conftest.data
13967
13968 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
13969 if test "x$ac_cv_func_setenv" = xyes
13970 then :
13971 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
13972
13973 fi
13974 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13975 if test "x$ac_cv_func_strchr" = xyes
13976 then :
13977 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
13978
13979 fi
13980 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
13981 if test "x$ac_cv_func_strcspn" = xyes
13982 then :
13983 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
13984
13985 fi
13986 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13987 if test "x$ac_cv_func_strdup" = xyes
13988 then :
13989 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13990
13991 fi
13992 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13993 if test "x$ac_cv_func_strerror" = xyes
13994 then :
13995 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13996
13997 fi
13998 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13999 if test "x$ac_cv_func_strncasecmp" = xyes
14000 then :
14001 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
14002
14003 fi
14004 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
14005 if test "x$ac_cv_func_strpbrk" = xyes
14006 then :
14007 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
14008
14009 fi
14010 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
14011 if test "x$ac_cv_func_strspn" = xyes
14012 then :
14013 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
14014
14015 fi
14016 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
14017 if test "x$ac_cv_func_strstr" = xyes
14018 then :
14019 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
14020
14021 fi
14022 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14023 if test "x$ac_cv_func_strtol" = xyes
14024 then :
14025 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
14026
14027 fi
14028 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
14029 if test "x$ac_cv_func_utime" = xyes
14030 then :
14031 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
14032
14033 fi
14034
14035
14036
14037 # Building headers mode
14038 enable_build_headers_default=no
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable building header files" >&5
14040 printf %s "checking whether to enable building header files... " >&6; }
14041 # Check whether --enable-headers was given.
14042 if test ${enable_headers+y}
14043 then :
14044 enableval=$enable_headers;
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14046 printf "%s\n" "yes" >&6; }
14047 enable_build_headers="yes"
14048
14049 else $as_nop
14050
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_build_headers_default" >&5
14052 printf "%s\n" "$enable_build_headers_default" >&6; }
14053 enable_build_headers=$enable_build_headers_default
14054
14055
14056 fi
14057
14058
14059 # Building GLOBUS mode
14060 enable_gsi_mode_default=yes
14061 # Check whether --enable-gsi-mode was given.
14062 if test ${enable_gsi_mode+y}
14063 then :
14064 enableval=$enable_gsi_mode; enable_gsi_mode=$enableval
14065 else $as_nop
14066 enable_gsi_mode=$enable_gsi_mode_default
14067 fi
14068
14069
14070 # When building headers only
14071 if test "x$enable_build_headers" = "xyes"; then
14072 ENABLE_HEADERS_TRUE=
14073 ENABLE_HEADERS_FALSE='#'
14074 else
14075 ENABLE_HEADERS_TRUE='#'
14076 ENABLE_HEADERS_FALSE=
14077 fi
14078
14079
14080
14081 # Check whether --with-globus_prefix was given.
14082 if test ${with_globus_prefix+y}
14083 then :
14084 withval=$with_globus_prefix; ac_globus_prefix=$with_globus_prefix
14085 else $as_nop
14086 ac_globus_prefix=${GLOBUS_LOCATION:-}
14087 fi
14088
14089
14090
14091 # Check whether --with-globus_libdir was given.
14092 if test ${with_globus_libdir+y}
14093 then :
14094 withval=$with_globus_libdir; ac_globus_libdir=$with_globus_libdir
14095 fi
14096
14097
14098
14099 # Check whether --with-globus_flavor was given.
14100 if test ${with_globus_flavor+y}
14101 then :
14102 withval=$with_globus_flavor;
14103 else $as_nop
14104 with_globus_flavor=${GLOBUS_FLAVOR:-}
14105 fi
14106
14107
14108
14109 # Check whether --with-globus_thr_flavor was given.
14110 if test ${with_globus_thr_flavor+y}
14111 then :
14112 withval=$with_globus_thr_flavor;
14113 else $as_nop
14114 with_globus_thr_flavor=${GLOBUS_FLAVOR:-}
14115 fi
14116
14117
14118
14119 # Check whether --with-globus_nothr_flavor was given.
14120 if test ${with_globus_nothr_flavor+y}
14121 then :
14122 withval=$with_globus_nothr_flavor;
14123 else $as_nop
14124 with_globus_nothr_flavor=${GLOBUS_FLAVOR:-}
14125 fi
14126
14127
14128
14129 # Check whether --with-globus_flavorincdir was given.
14130 if test ${with_globus_flavorincdir+y}
14131 then :
14132 withval=$with_globus_flavorincdir; ac_globus_flavorincdir=$with_globus_flavorincdir
14133 else $as_nop
14134 with_globus_flavorincdir=${GLOBUS_FLAVOR:-}
14135 fi
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14253 if test -n "$ac_tool_prefix"; then
14254 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14255 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 printf %s "checking for $ac_word... " >&6; }
14258 if test ${ac_cv_path_PKG_CONFIG+y}
14259 then :
14260 printf %s "(cached) " >&6
14261 else $as_nop
14262 case $PKG_CONFIG in
14263 [\\/]* | ?:[\\/]*)
14264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14265 ;;
14266 *)
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270 IFS=$as_save_IFS
14271 case $as_dir in #(((
14272 '') as_dir=./ ;;
14273 */) ;;
14274 *) as_dir=$as_dir/ ;;
14275 esac
14276 for ac_exec_ext in '' $ac_executable_extensions; do
14277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14278 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14280 break 2
14281 fi
14282 done
14283 done
14284 IFS=$as_save_IFS
14285
14286 ;;
14287 esac
14288 fi
14289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14290 if test -n "$PKG_CONFIG"; then
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14292 printf "%s\n" "$PKG_CONFIG" >&6; }
14293 else
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 printf "%s\n" "no" >&6; }
14296 fi
14297
14298
14299 fi
14300 if test -z "$ac_cv_path_PKG_CONFIG"; then
14301 ac_pt_PKG_CONFIG=$PKG_CONFIG
14302 # Extract the first word of "pkg-config", so it can be a program name with args.
14303 set dummy pkg-config; ac_word=$2
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 printf %s "checking for $ac_word... " >&6; }
14306 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14307 then :
14308 printf %s "(cached) " >&6
14309 else $as_nop
14310 case $ac_pt_PKG_CONFIG in
14311 [\\/]* | ?:[\\/]*)
14312 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14313 ;;
14314 *)
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14317 do
14318 IFS=$as_save_IFS
14319 case $as_dir in #(((
14320 '') as_dir=./ ;;
14321 */) ;;
14322 *) as_dir=$as_dir/ ;;
14323 esac
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14326 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14328 break 2
14329 fi
14330 done
14331 done
14332 IFS=$as_save_IFS
14333
14334 ;;
14335 esac
14336 fi
14337 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14338 if test -n "$ac_pt_PKG_CONFIG"; then
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14340 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14341 else
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 printf "%s\n" "no" >&6; }
14344 fi
14345
14346 if test "x$ac_pt_PKG_CONFIG" = x; then
14347 PKG_CONFIG=""
14348 else
14349 case $cross_compiling:$ac_tool_warned in
14350 yes:)
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14353 ac_tool_warned=yes ;;
14354 esac
14355 PKG_CONFIG=$ac_pt_PKG_CONFIG
14356 fi
14357 else
14358 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14359 fi
14360
14361 fi
14362 if test -n "$PKG_CONFIG"; then
14363 _pkg_min_version=0.9.0
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14365 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14366 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368 printf "%s\n" "yes" >&6; }
14369 else
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 printf "%s\n" "no" >&6; }
14372 PKG_CONFIG=""
14373 fi
14374 fi
14375 if test "x$enable_build_headers" = "xyes"
14376 then :
14377
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"building headers\"" >&5
14379 printf "%s\n" "$as_me: \"building headers\"" >&6;}
14380
14381 LCAS_FLAVOUR=""
14382 LCAS_FLAVOUR_NAME=""
14383
14384
14385 printf "%s\n" "#define ENABLE_HEADERS 1" >>confdefs.h
14386
14387
14388 else $as_nop
14389
14390 # Configuration items
14391
14392 ac_config_files="$ac_config_files src/Makefile"
14393
14394 ac_config_files="$ac_config_files examples/Makefile"
14395
14396
14397 ac_config_files="$ac_config_files config/Makefile"
14398
14399
14400
14401 printf "%s\n" "#define ENABLE_HEADERS 0" >>confdefs.h
14402
14403
14404 if test x$enable_gsi_mode = xyes ; then
14405 LCAS_FLAVOUR=""
14406 LCAS_FLAVOUR_NAME=""
14407
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Creating GSI flavour of LCAS" >&5
14409 printf "%s\n" "Creating GSI flavour of LCAS" >&6; }
14410
14411 # Check globus modules
14412
14413
14414
14415
14416
14417 if test "x$globus_tested" = "x"
14418 then :
14419
14420 globus_tested="yes"
14421
14422 if test "x$with_globus_thr_flavor" != "x" ; then
14423 if test "x$with_globus_nothr_flavor" != "x" -o
14424 test "x$with_globus_flavor" != "x" ; then
14425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14427 as_fn_error $? "Cannot build against multiple flavor types
14428 See \`config.log' for more details" "$LINENO" 5; }
14429 fi
14430 ac_globus_flavor=$with_globus_thr_flavor
14431 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
14432 elif test "x$with_globus_nothr_flavor" != "x" ; then
14433 if test "x$with_globus_flavor" != "x" ; then
14434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14435 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14436 as_fn_error $? "Cannot build against multiple flavor types
14437 See \`config.log' for more details" "$LINENO" 5; }
14438 fi
14439 ac_globus_flavor=$with_globus_nothr_flavor
14440 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
14441 elif test "x$with_globus_flavor" != "x" ; then
14442 ac_globus_flavor=$with_globus_flavor
14443 GLOBUS_FLAVOR=$with_globus_flavor
14444 fi
14445
14446
14447
14448
14449 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
14450 ac_globus_prefix=/usr
14451 fi
14452
14453 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
14454 ac_globus_prefix=/opt/globus
14455 fi
14456
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
14458 printf %s "checking for globus version... " >&6; }
14459 if test "x$ac_globus_prefix" = "x" ; then
14460 ac_globus_version_script=`which globus-version 2> /dev/null`
14461 else
14462 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
14463 fi
14464 if test "x$ac_globus_version_script" != "x" ; then
14465 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
14466 fi
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
14468 printf "%s\n" "$ac_globus_version" >&6; }
14469
14470 if test "x$ac_globus_version" != "x" ; then
14471 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
14472 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
14473 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
14474 fi
14475
14476 if test "x$ac_globus_prefix" != "x" ; then
14477 if test "x$ac_globus_libdir" = "x" ; then
14478 if test "x$host_cpu" = "xx86_64" \
14479 -a -e $ac_globus_prefix/lib64 \
14480 -a ! -h $ac_globus_prefix/lib64 ; then
14481 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
14482 if test $num -gt 0 ; then
14483 ac_globus_libdir="$ac_globus_prefix/lib64"
14484 else
14485 ac_globus_libdir="$ac_globus_prefix/lib"
14486 fi
14487 else
14488 ac_globus_libdir="$ac_globus_prefix/lib"
14489 fi
14490 fi
14491 ac_globus_ldflags="-L$ac_globus_libdir"
14492
14493 if test -d "$ac_globus_prefix/include/globus" ; then
14494 ac_globus_cflags=-I$ac_globus_prefix/include/globus
14495 if test "x$ac_globus_flavorincdir" != "x" ; then
14496 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
14497 elif test "x$ac_globus_flavor" != "x" ; then
14498 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
14499 else
14500 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
14501 fi
14502 ac_globus_libsuffix=""
14503 else
14504 if test "x$ac_globus_flavor" != "x" ; then
14505 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
14506 ac_globus_libsuffix=_$ac_globus_flavor
14507 elif test -d "$ac_globus_prefix/include"; then
14508 ac_globus_cflags=-I$ac_globus_prefix/include
14509 else ac_globus_cflags=""
14510 ac_globus_libsuffix=""
14511 fi
14512 fi
14513 fi
14514
14515 fi
14516
14517
14518
14519
14520 if test "x$with_globus_prefix" = "x" ; then
14521
14522 pkg_failed=no
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-common" >&5
14524 printf %s "checking for globus-common... " >&6; }
14525
14526 if test -n "$GLOBUS_COMMON_CFLAGS"; then
14527 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
14528 elif test -n "$PKG_CONFIG"; then
14529 if test -n "$PKG_CONFIG" && \
14530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
14531 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
14532 ac_status=$?
14533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534 test $ac_status = 0; }; then
14535 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
14536 test "x$?" != "x0" && pkg_failed=yes
14537 else
14538 pkg_failed=yes
14539 fi
14540 else
14541 pkg_failed=untried
14542 fi
14543 if test -n "$GLOBUS_COMMON_LIBS"; then
14544 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
14545 elif test -n "$PKG_CONFIG"; then
14546 if test -n "$PKG_CONFIG" && \
14547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
14548 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
14549 ac_status=$?
14550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551 test $ac_status = 0; }; then
14552 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
14553 test "x$?" != "x0" && pkg_failed=yes
14554 else
14555 pkg_failed=yes
14556 fi
14557 else
14558 pkg_failed=untried
14559 fi
14560
14561
14562
14563 if test $pkg_failed = yes; then
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 printf "%s\n" "no" >&6; }
14566
14567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14568 _pkg_short_errors_supported=yes
14569 else
14570 _pkg_short_errors_supported=no
14571 fi
14572 if test $_pkg_short_errors_supported = yes; then
14573 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
14574 else
14575 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
14576 fi
14577 # Put the nasty error message in config.log where it belongs
14578 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
14579
14580 have_globus_mod=no
14581 elif test $pkg_failed = untried; then
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583 printf "%s\n" "no" >&6; }
14584 have_globus_mod=no
14585 else
14586 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
14587 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14589 printf "%s\n" "yes" >&6; }
14590 have_globus_mod=yes
14591 fi
14592 if test "$have_globus_mod" = "no" ; then
14593
14594 ac_save_CFLAGS=$CFLAGS
14595 ac_save_CPPFLAGS=$CPPFLAGS
14596 ac_save_LIBS=$LIBS
14597 ac_save_LDFLAGS=$LDFLAGS
14598
14599 ac_try_CFLAGS=$ac_globus_cflags
14600
14601 if test "xglobus_common" = "x" ; then
14602 ac_try_LIBS=""
14603 else
14604 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
14605 fi
14606
14607 ac_try_CPPFLAGS=$ac_try_CFLAGS
14608 if test "x$ac_globus_libdir" != "x" ; then
14609 ac_try_LDFLAGS="$ac_globus_ldflags"
14610 if test "x$LD_LIBRARY_PATH" != "x" ; then
14611 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14612 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14613 else
14614 export LD_LIBRARY_PATH="$ac_globus_libdir"
14615 fi
14616 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14617 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14618 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14619 else
14620 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14621 fi
14622 fi
14623
14624 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14625 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14626 LIBS="$ac_try_LIBS $LIBS"
14627 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
14629 printf %s "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 #include <globus_common.h>
14633 int main(void) {return 0;}
14634 _ACEOF
14635 if ac_fn_c_try_link "$LINENO"
14636 then :
14637 have_mod=yes
14638 else $as_nop
14639 have_mod=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14642 conftest$ac_exeext conftest.$ac_ext
14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14644 printf "%s\n" "$have_mod" >&6; }
14645
14646 if test "x$have_mod" = "xyes" ; then
14647 have_globus_mod=yes
14648 if test "x$with_globus_thr_flavor" != "x" ; then
14649 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14650 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
14651 elif test "x$with_globus_nothr_flavor" != "x" ; then
14652 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14653 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
14654 else
14655 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14656 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
14657 fi
14658 else
14659 have_globus_mod=no
14660 fi
14661
14662 CFLAGS=$ac_save_CFLAGS
14663 CPPFLAGS=$ac_save_CPPFLAGS
14664 LIBS=$ac_save_LIBS
14665 LDFLAGS=$ac_save_LDFLAGS
14666 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14667 unset LD_LIBRARY_PATH
14668 else
14669 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14670 fi
14671 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14672 unset DYLD_LIBRARY_PATH
14673 else
14674 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14675 fi
14676
14677
14678 fi
14679 else
14680
14681 ac_save_CFLAGS=$CFLAGS
14682 ac_save_CPPFLAGS=$CPPFLAGS
14683 ac_save_LIBS=$LIBS
14684 ac_save_LDFLAGS=$LDFLAGS
14685
14686 ac_try_CFLAGS=$ac_globus_cflags
14687
14688 if test "xglobus_common" = "x" ; then
14689 ac_try_LIBS=""
14690 else
14691 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
14692 fi
14693
14694 ac_try_CPPFLAGS=$ac_try_CFLAGS
14695 if test "x$ac_globus_libdir" != "x" ; then
14696 ac_try_LDFLAGS="$ac_globus_ldflags"
14697 if test "x$LD_LIBRARY_PATH" != "x" ; then
14698 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14699 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14700 else
14701 export LD_LIBRARY_PATH="$ac_globus_libdir"
14702 fi
14703 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14704 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14705 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14706 else
14707 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14708 fi
14709 fi
14710
14711 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14712 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14713 LIBS="$ac_try_LIBS $LIBS"
14714 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
14716 printf %s "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 #include <globus_common.h>
14720 int main(void) {return 0;}
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"
14723 then :
14724 have_mod=yes
14725 else $as_nop
14726 have_mod=no
14727 fi
14728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14729 conftest$ac_exeext conftest.$ac_ext
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14731 printf "%s\n" "$have_mod" >&6; }
14732
14733 if test "x$have_mod" = "xyes" ; then
14734 have_globus_mod=yes
14735 if test "x$with_globus_thr_flavor" != "x" ; then
14736 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14737 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
14738 elif test "x$with_globus_nothr_flavor" != "x" ; then
14739 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14740 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
14741 else
14742 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14743 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
14744 fi
14745 else
14746 have_globus_mod=no
14747 fi
14748
14749 CFLAGS=$ac_save_CFLAGS
14750 CPPFLAGS=$ac_save_CPPFLAGS
14751 LIBS=$ac_save_LIBS
14752 LDFLAGS=$ac_save_LDFLAGS
14753 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14754 unset LD_LIBRARY_PATH
14755 else
14756 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14757 fi
14758 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14759 unset DYLD_LIBRARY_PATH
14760 else
14761 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14762 fi
14763
14764
14765 if test "$have_globus_mod" = "no" ; then
14766
14767 pkg_failed=no
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-common" >&5
14769 printf %s "checking for globus-common... " >&6; }
14770
14771 if test -n "$GLOBUS_COMMON_CFLAGS"; then
14772 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
14773 elif test -n "$PKG_CONFIG"; then
14774 if test -n "$PKG_CONFIG" && \
14775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
14776 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
14777 ac_status=$?
14778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14779 test $ac_status = 0; }; then
14780 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
14781 test "x$?" != "x0" && pkg_failed=yes
14782 else
14783 pkg_failed=yes
14784 fi
14785 else
14786 pkg_failed=untried
14787 fi
14788 if test -n "$GLOBUS_COMMON_LIBS"; then
14789 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
14790 elif test -n "$PKG_CONFIG"; then
14791 if test -n "$PKG_CONFIG" && \
14792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
14793 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
14794 ac_status=$?
14795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796 test $ac_status = 0; }; then
14797 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
14798 test "x$?" != "x0" && pkg_failed=yes
14799 else
14800 pkg_failed=yes
14801 fi
14802 else
14803 pkg_failed=untried
14804 fi
14805
14806
14807
14808 if test $pkg_failed = yes; then
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 printf "%s\n" "no" >&6; }
14811
14812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14813 _pkg_short_errors_supported=yes
14814 else
14815 _pkg_short_errors_supported=no
14816 fi
14817 if test $_pkg_short_errors_supported = yes; then
14818 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
14819 else
14820 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
14821 fi
14822 # Put the nasty error message in config.log where it belongs
14823 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
14824
14825 have_globus_mod=no
14826 elif test $pkg_failed = untried; then
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 printf "%s\n" "no" >&6; }
14829 have_globus_mod=no
14830 else
14831 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
14832 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14834 printf "%s\n" "yes" >&6; }
14835 have_globus_mod=yes
14836 fi
14837 fi
14838 fi
14839 have_globus_common=$have_globus_mod
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851 if test "x$have_globus_common" != "xyes" ; then
14852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14854 as_fn_error $? "\"no globus-common found\"
14855 See \`config.log' for more details" "$LINENO" 5; }
14856 fi
14857
14858
14859
14860
14861
14862
14863
14864 if test "x$globus_tested" = "x"
14865 then :
14866
14867 globus_tested="yes"
14868
14869 if test "x$with_globus_thr_flavor" != "x" ; then
14870 if test "x$with_globus_nothr_flavor" != "x" -o
14871 test "x$with_globus_flavor" != "x" ; then
14872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14874 as_fn_error $? "Cannot build against multiple flavor types
14875 See \`config.log' for more details" "$LINENO" 5; }
14876 fi
14877 ac_globus_flavor=$with_globus_thr_flavor
14878 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
14879 elif test "x$with_globus_nothr_flavor" != "x" ; then
14880 if test "x$with_globus_flavor" != "x" ; then
14881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14882 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14883 as_fn_error $? "Cannot build against multiple flavor types
14884 See \`config.log' for more details" "$LINENO" 5; }
14885 fi
14886 ac_globus_flavor=$with_globus_nothr_flavor
14887 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
14888 elif test "x$with_globus_flavor" != "x" ; then
14889 ac_globus_flavor=$with_globus_flavor
14890 GLOBUS_FLAVOR=$with_globus_flavor
14891 fi
14892
14893
14894
14895
14896 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
14897 ac_globus_prefix=/usr
14898 fi
14899
14900 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
14901 ac_globus_prefix=/opt/globus
14902 fi
14903
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
14905 printf %s "checking for globus version... " >&6; }
14906 if test "x$ac_globus_prefix" = "x" ; then
14907 ac_globus_version_script=`which globus-version 2> /dev/null`
14908 else
14909 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
14910 fi
14911 if test "x$ac_globus_version_script" != "x" ; then
14912 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
14913 fi
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
14915 printf "%s\n" "$ac_globus_version" >&6; }
14916
14917 if test "x$ac_globus_version" != "x" ; then
14918 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
14919 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
14920 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
14921 fi
14922
14923 if test "x$ac_globus_prefix" != "x" ; then
14924 if test "x$ac_globus_libdir" = "x" ; then
14925 if test "x$host_cpu" = "xx86_64" \
14926 -a -e $ac_globus_prefix/lib64 \
14927 -a ! -h $ac_globus_prefix/lib64 ; then
14928 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
14929 if test $num -gt 0 ; then
14930 ac_globus_libdir="$ac_globus_prefix/lib64"
14931 else
14932 ac_globus_libdir="$ac_globus_prefix/lib"
14933 fi
14934 else
14935 ac_globus_libdir="$ac_globus_prefix/lib"
14936 fi
14937 fi
14938 ac_globus_ldflags="-L$ac_globus_libdir"
14939
14940 if test -d "$ac_globus_prefix/include/globus" ; then
14941 ac_globus_cflags=-I$ac_globus_prefix/include/globus
14942 if test "x$ac_globus_flavorincdir" != "x" ; then
14943 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
14944 elif test "x$ac_globus_flavor" != "x" ; then
14945 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
14946 else
14947 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
14948 fi
14949 ac_globus_libsuffix=""
14950 else
14951 if test "x$ac_globus_flavor" != "x" ; then
14952 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
14953 ac_globus_libsuffix=_$ac_globus_flavor
14954 elif test -d "$ac_globus_prefix/include"; then
14955 ac_globus_cflags=-I$ac_globus_prefix/include
14956 else ac_globus_cflags=""
14957 ac_globus_libsuffix=""
14958 fi
14959 fi
14960 fi
14961
14962 fi
14963
14964
14965
14966
14967 if test "x$with_globus_prefix" = "x" ; then
14968
14969 pkg_failed=no
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gsi-credential" >&5
14971 printf %s "checking for globus-gsi-credential... " >&6; }
14972
14973 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
14974 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
14975 elif test -n "$PKG_CONFIG"; then
14976 if test -n "$PKG_CONFIG" && \
14977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
14978 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
14979 ac_status=$?
14980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; }; then
14982 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
14983 test "x$?" != "x0" && pkg_failed=yes
14984 else
14985 pkg_failed=yes
14986 fi
14987 else
14988 pkg_failed=untried
14989 fi
14990 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
14991 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
14992 elif test -n "$PKG_CONFIG"; then
14993 if test -n "$PKG_CONFIG" && \
14994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
14995 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
14996 ac_status=$?
14997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }; then
14999 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
15000 test "x$?" != "x0" && pkg_failed=yes
15001 else
15002 pkg_failed=yes
15003 fi
15004 else
15005 pkg_failed=untried
15006 fi
15007
15008
15009
15010 if test $pkg_failed = yes; then
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 printf "%s\n" "no" >&6; }
15013
15014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15015 _pkg_short_errors_supported=yes
15016 else
15017 _pkg_short_errors_supported=no
15018 fi
15019 if test $_pkg_short_errors_supported = yes; then
15020 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
15021 else
15022 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
15023 fi
15024 # Put the nasty error message in config.log where it belongs
15025 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
15026
15027 have_globus_mod=no
15028 elif test $pkg_failed = untried; then
15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030 printf "%s\n" "no" >&6; }
15031 have_globus_mod=no
15032 else
15033 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
15034 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15036 printf "%s\n" "yes" >&6; }
15037 have_globus_mod=yes
15038 fi
15039 if test "$have_globus_mod" = "no" ; then
15040
15041 ac_save_CFLAGS=$CFLAGS
15042 ac_save_CPPFLAGS=$CPPFLAGS
15043 ac_save_LIBS=$LIBS
15044 ac_save_LDFLAGS=$LDFLAGS
15045
15046 ac_try_CFLAGS=$ac_globus_cflags
15047
15048 if test "xglobus_gsi_credential" = "x" ; then
15049 ac_try_LIBS=""
15050 else
15051 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
15052 fi
15053
15054 ac_try_CPPFLAGS=$ac_try_CFLAGS
15055 if test "x$ac_globus_libdir" != "x" ; then
15056 ac_try_LDFLAGS="$ac_globus_ldflags"
15057 if test "x$LD_LIBRARY_PATH" != "x" ; then
15058 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15059 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15060 else
15061 export LD_LIBRARY_PATH="$ac_globus_libdir"
15062 fi
15063 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15064 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15065 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15066 else
15067 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15068 fi
15069 fi
15070
15071 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15072 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15073 LIBS="$ac_try_LIBS $LIBS"
15074 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
15076 printf %s "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 #include <globus_gsi_credential.h>
15080 int main(void) {return 0;}
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"
15083 then :
15084 have_mod=yes
15085 else $as_nop
15086 have_mod=no
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15089 conftest$ac_exeext conftest.$ac_ext
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15091 printf "%s\n" "$have_mod" >&6; }
15092
15093 if test "x$have_mod" = "xyes" ; then
15094 have_globus_mod=yes
15095 if test "x$with_globus_thr_flavor" != "x" ; then
15096 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15097 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
15098 elif test "x$with_globus_nothr_flavor" != "x" ; then
15099 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15100 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
15101 else
15102 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15103 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
15104 fi
15105 else
15106 have_globus_mod=no
15107 fi
15108
15109 CFLAGS=$ac_save_CFLAGS
15110 CPPFLAGS=$ac_save_CPPFLAGS
15111 LIBS=$ac_save_LIBS
15112 LDFLAGS=$ac_save_LDFLAGS
15113 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15114 unset LD_LIBRARY_PATH
15115 else
15116 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15117 fi
15118 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15119 unset DYLD_LIBRARY_PATH
15120 else
15121 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15122 fi
15123
15124
15125 fi
15126 else
15127
15128 ac_save_CFLAGS=$CFLAGS
15129 ac_save_CPPFLAGS=$CPPFLAGS
15130 ac_save_LIBS=$LIBS
15131 ac_save_LDFLAGS=$LDFLAGS
15132
15133 ac_try_CFLAGS=$ac_globus_cflags
15134
15135 if test "xglobus_gsi_credential" = "x" ; then
15136 ac_try_LIBS=""
15137 else
15138 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
15139 fi
15140
15141 ac_try_CPPFLAGS=$ac_try_CFLAGS
15142 if test "x$ac_globus_libdir" != "x" ; then
15143 ac_try_LDFLAGS="$ac_globus_ldflags"
15144 if test "x$LD_LIBRARY_PATH" != "x" ; then
15145 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15146 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15147 else
15148 export LD_LIBRARY_PATH="$ac_globus_libdir"
15149 fi
15150 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15151 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15152 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15153 else
15154 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15155 fi
15156 fi
15157
15158 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15159 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15160 LIBS="$ac_try_LIBS $LIBS"
15161 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
15163 printf %s "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <globus_gsi_credential.h>
15167 int main(void) {return 0;}
15168 _ACEOF
15169 if ac_fn_c_try_link "$LINENO"
15170 then :
15171 have_mod=yes
15172 else $as_nop
15173 have_mod=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15176 conftest$ac_exeext conftest.$ac_ext
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15178 printf "%s\n" "$have_mod" >&6; }
15179
15180 if test "x$have_mod" = "xyes" ; then
15181 have_globus_mod=yes
15182 if test "x$with_globus_thr_flavor" != "x" ; then
15183 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15184 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
15185 elif test "x$with_globus_nothr_flavor" != "x" ; then
15186 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15187 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
15188 else
15189 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15190 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
15191 fi
15192 else
15193 have_globus_mod=no
15194 fi
15195
15196 CFLAGS=$ac_save_CFLAGS
15197 CPPFLAGS=$ac_save_CPPFLAGS
15198 LIBS=$ac_save_LIBS
15199 LDFLAGS=$ac_save_LDFLAGS
15200 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15201 unset LD_LIBRARY_PATH
15202 else
15203 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15204 fi
15205 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15206 unset DYLD_LIBRARY_PATH
15207 else
15208 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15209 fi
15210
15211
15212 if test "$have_globus_mod" = "no" ; then
15213
15214 pkg_failed=no
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gsi-credential" >&5
15216 printf %s "checking for globus-gsi-credential... " >&6; }
15217
15218 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
15219 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
15220 elif test -n "$PKG_CONFIG"; then
15221 if test -n "$PKG_CONFIG" && \
15222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
15223 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
15224 ac_status=$?
15225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15226 test $ac_status = 0; }; then
15227 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
15228 test "x$?" != "x0" && pkg_failed=yes
15229 else
15230 pkg_failed=yes
15231 fi
15232 else
15233 pkg_failed=untried
15234 fi
15235 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
15236 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
15237 elif test -n "$PKG_CONFIG"; then
15238 if test -n "$PKG_CONFIG" && \
15239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
15240 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
15241 ac_status=$?
15242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 test $ac_status = 0; }; then
15244 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
15245 test "x$?" != "x0" && pkg_failed=yes
15246 else
15247 pkg_failed=yes
15248 fi
15249 else
15250 pkg_failed=untried
15251 fi
15252
15253
15254
15255 if test $pkg_failed = yes; then
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257 printf "%s\n" "no" >&6; }
15258
15259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15260 _pkg_short_errors_supported=yes
15261 else
15262 _pkg_short_errors_supported=no
15263 fi
15264 if test $_pkg_short_errors_supported = yes; then
15265 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
15266 else
15267 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
15268 fi
15269 # Put the nasty error message in config.log where it belongs
15270 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
15271
15272 have_globus_mod=no
15273 elif test $pkg_failed = untried; then
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 printf "%s\n" "no" >&6; }
15276 have_globus_mod=no
15277 else
15278 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
15279 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15281 printf "%s\n" "yes" >&6; }
15282 have_globus_mod=yes
15283 fi
15284 fi
15285 fi
15286 have_globus_gsi_credential=$have_globus_mod
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298 if test "x$have_globus_gsi_credential" != "xyes" ; then
15299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15300 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15301 as_fn_error $? "\"no globus-gsi-credential found\"
15302 See \`config.log' for more details" "$LINENO" 5; }
15303 fi
15304
15305
15306
15307
15308
15309
15310
15311 if test "x$globus_tested" = "x"
15312 then :
15313
15314 globus_tested="yes"
15315
15316 if test "x$with_globus_thr_flavor" != "x" ; then
15317 if test "x$with_globus_nothr_flavor" != "x" -o
15318 test "x$with_globus_flavor" != "x" ; then
15319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15321 as_fn_error $? "Cannot build against multiple flavor types
15322 See \`config.log' for more details" "$LINENO" 5; }
15323 fi
15324 ac_globus_flavor=$with_globus_thr_flavor
15325 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
15326 elif test "x$with_globus_nothr_flavor" != "x" ; then
15327 if test "x$with_globus_flavor" != "x" ; then
15328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15330 as_fn_error $? "Cannot build against multiple flavor types
15331 See \`config.log' for more details" "$LINENO" 5; }
15332 fi
15333 ac_globus_flavor=$with_globus_nothr_flavor
15334 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
15335 elif test "x$with_globus_flavor" != "x" ; then
15336 ac_globus_flavor=$with_globus_flavor
15337 GLOBUS_FLAVOR=$with_globus_flavor
15338 fi
15339
15340
15341
15342
15343 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
15344 ac_globus_prefix=/usr
15345 fi
15346
15347 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
15348 ac_globus_prefix=/opt/globus
15349 fi
15350
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
15352 printf %s "checking for globus version... " >&6; }
15353 if test "x$ac_globus_prefix" = "x" ; then
15354 ac_globus_version_script=`which globus-version 2> /dev/null`
15355 else
15356 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
15357 fi
15358 if test "x$ac_globus_version_script" != "x" ; then
15359 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
15360 fi
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
15362 printf "%s\n" "$ac_globus_version" >&6; }
15363
15364 if test "x$ac_globus_version" != "x" ; then
15365 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
15366 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
15367 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
15368 fi
15369
15370 if test "x$ac_globus_prefix" != "x" ; then
15371 if test "x$ac_globus_libdir" = "x" ; then
15372 if test "x$host_cpu" = "xx86_64" \
15373 -a -e $ac_globus_prefix/lib64 \
15374 -a ! -h $ac_globus_prefix/lib64 ; then
15375 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
15376 if test $num -gt 0 ; then
15377 ac_globus_libdir="$ac_globus_prefix/lib64"
15378 else
15379 ac_globus_libdir="$ac_globus_prefix/lib"
15380 fi
15381 else
15382 ac_globus_libdir="$ac_globus_prefix/lib"
15383 fi
15384 fi
15385 ac_globus_ldflags="-L$ac_globus_libdir"
15386
15387 if test -d "$ac_globus_prefix/include/globus" ; then
15388 ac_globus_cflags=-I$ac_globus_prefix/include/globus
15389 if test "x$ac_globus_flavorincdir" != "x" ; then
15390 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
15391 elif test "x$ac_globus_flavor" != "x" ; then
15392 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
15393 else
15394 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
15395 fi
15396 ac_globus_libsuffix=""
15397 else
15398 if test "x$ac_globus_flavor" != "x" ; then
15399 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
15400 ac_globus_libsuffix=_$ac_globus_flavor
15401 elif test -d "$ac_globus_prefix/include"; then
15402 ac_globus_cflags=-I$ac_globus_prefix/include
15403 else ac_globus_cflags=""
15404 ac_globus_libsuffix=""
15405 fi
15406 fi
15407 fi
15408
15409 fi
15410
15411
15412
15413
15414 if test "x$with_globus_prefix" = "x" ; then
15415
15416 pkg_failed=no
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gssapi-gsi" >&5
15418 printf %s "checking for globus-gssapi-gsi... " >&6; }
15419
15420 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
15421 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
15422 elif test -n "$PKG_CONFIG"; then
15423 if test -n "$PKG_CONFIG" && \
15424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
15425 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
15426 ac_status=$?
15427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15428 test $ac_status = 0; }; then
15429 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
15430 test "x$?" != "x0" && pkg_failed=yes
15431 else
15432 pkg_failed=yes
15433 fi
15434 else
15435 pkg_failed=untried
15436 fi
15437 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
15438 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
15439 elif test -n "$PKG_CONFIG"; then
15440 if test -n "$PKG_CONFIG" && \
15441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
15442 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
15443 ac_status=$?
15444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15445 test $ac_status = 0; }; then
15446 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
15447 test "x$?" != "x0" && pkg_failed=yes
15448 else
15449 pkg_failed=yes
15450 fi
15451 else
15452 pkg_failed=untried
15453 fi
15454
15455
15456
15457 if test $pkg_failed = yes; then
15458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 printf "%s\n" "no" >&6; }
15460
15461 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15462 _pkg_short_errors_supported=yes
15463 else
15464 _pkg_short_errors_supported=no
15465 fi
15466 if test $_pkg_short_errors_supported = yes; then
15467 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
15468 else
15469 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
15470 fi
15471 # Put the nasty error message in config.log where it belongs
15472 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
15473
15474 have_globus_mod=no
15475 elif test $pkg_failed = untried; then
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 printf "%s\n" "no" >&6; }
15478 have_globus_mod=no
15479 else
15480 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
15481 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483 printf "%s\n" "yes" >&6; }
15484 have_globus_mod=yes
15485 fi
15486 if test "$have_globus_mod" = "no" ; then
15487
15488 ac_save_CFLAGS=$CFLAGS
15489 ac_save_CPPFLAGS=$CPPFLAGS
15490 ac_save_LIBS=$LIBS
15491 ac_save_LDFLAGS=$LDFLAGS
15492
15493 ac_try_CFLAGS=$ac_globus_cflags
15494
15495 if test "xglobus_gssapi_gsi" = "x" ; then
15496 ac_try_LIBS=""
15497 else
15498 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
15499 fi
15500
15501 ac_try_CPPFLAGS=$ac_try_CFLAGS
15502 if test "x$ac_globus_libdir" != "x" ; then
15503 ac_try_LDFLAGS="$ac_globus_ldflags"
15504 if test "x$LD_LIBRARY_PATH" != "x" ; then
15505 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15506 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15507 else
15508 export LD_LIBRARY_PATH="$ac_globus_libdir"
15509 fi
15510 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15511 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15512 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15513 else
15514 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15515 fi
15516 fi
15517
15518 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15519 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15520 LIBS="$ac_try_LIBS $LIBS"
15521 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
15523 printf %s "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <gssapi.h>
15527 int main(void) {return 0;}
15528 _ACEOF
15529 if ac_fn_c_try_link "$LINENO"
15530 then :
15531 have_mod=yes
15532 else $as_nop
15533 have_mod=no
15534 fi
15535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15536 conftest$ac_exeext conftest.$ac_ext
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15538 printf "%s\n" "$have_mod" >&6; }
15539
15540 if test "x$have_mod" = "xyes" ; then
15541 have_globus_mod=yes
15542 if test "x$with_globus_thr_flavor" != "x" ; then
15543 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15544 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
15545 elif test "x$with_globus_nothr_flavor" != "x" ; then
15546 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15547 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
15548 else
15549 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15550 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
15551 fi
15552 else
15553 have_globus_mod=no
15554 fi
15555
15556 CFLAGS=$ac_save_CFLAGS
15557 CPPFLAGS=$ac_save_CPPFLAGS
15558 LIBS=$ac_save_LIBS
15559 LDFLAGS=$ac_save_LDFLAGS
15560 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15561 unset LD_LIBRARY_PATH
15562 else
15563 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15564 fi
15565 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15566 unset DYLD_LIBRARY_PATH
15567 else
15568 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15569 fi
15570
15571
15572 fi
15573 else
15574
15575 ac_save_CFLAGS=$CFLAGS
15576 ac_save_CPPFLAGS=$CPPFLAGS
15577 ac_save_LIBS=$LIBS
15578 ac_save_LDFLAGS=$LDFLAGS
15579
15580 ac_try_CFLAGS=$ac_globus_cflags
15581
15582 if test "xglobus_gssapi_gsi" = "x" ; then
15583 ac_try_LIBS=""
15584 else
15585 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
15586 fi
15587
15588 ac_try_CPPFLAGS=$ac_try_CFLAGS
15589 if test "x$ac_globus_libdir" != "x" ; then
15590 ac_try_LDFLAGS="$ac_globus_ldflags"
15591 if test "x$LD_LIBRARY_PATH" != "x" ; then
15592 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15593 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15594 else
15595 export LD_LIBRARY_PATH="$ac_globus_libdir"
15596 fi
15597 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15598 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15599 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15600 else
15601 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15602 fi
15603 fi
15604
15605 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15606 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15607 LIBS="$ac_try_LIBS $LIBS"
15608 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
15610 printf %s "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 #include <gssapi.h>
15614 int main(void) {return 0;}
15615 _ACEOF
15616 if ac_fn_c_try_link "$LINENO"
15617 then :
15618 have_mod=yes
15619 else $as_nop
15620 have_mod=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15623 conftest$ac_exeext conftest.$ac_ext
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15625 printf "%s\n" "$have_mod" >&6; }
15626
15627 if test "x$have_mod" = "xyes" ; then
15628 have_globus_mod=yes
15629 if test "x$with_globus_thr_flavor" != "x" ; then
15630 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15631 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
15632 elif test "x$with_globus_nothr_flavor" != "x" ; then
15633 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15634 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
15635 else
15636 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15637 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
15638 fi
15639 else
15640 have_globus_mod=no
15641 fi
15642
15643 CFLAGS=$ac_save_CFLAGS
15644 CPPFLAGS=$ac_save_CPPFLAGS
15645 LIBS=$ac_save_LIBS
15646 LDFLAGS=$ac_save_LDFLAGS
15647 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15648 unset LD_LIBRARY_PATH
15649 else
15650 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15651 fi
15652 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15653 unset DYLD_LIBRARY_PATH
15654 else
15655 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15656 fi
15657
15658
15659 if test "$have_globus_mod" = "no" ; then
15660
15661 pkg_failed=no
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gssapi-gsi" >&5
15663 printf %s "checking for globus-gssapi-gsi... " >&6; }
15664
15665 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
15666 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
15667 elif test -n "$PKG_CONFIG"; then
15668 if test -n "$PKG_CONFIG" && \
15669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
15670 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
15671 ac_status=$?
15672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673 test $ac_status = 0; }; then
15674 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
15675 test "x$?" != "x0" && pkg_failed=yes
15676 else
15677 pkg_failed=yes
15678 fi
15679 else
15680 pkg_failed=untried
15681 fi
15682 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
15683 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
15684 elif test -n "$PKG_CONFIG"; then
15685 if test -n "$PKG_CONFIG" && \
15686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
15687 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
15688 ac_status=$?
15689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15690 test $ac_status = 0; }; then
15691 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
15692 test "x$?" != "x0" && pkg_failed=yes
15693 else
15694 pkg_failed=yes
15695 fi
15696 else
15697 pkg_failed=untried
15698 fi
15699
15700
15701
15702 if test $pkg_failed = yes; then
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 printf "%s\n" "no" >&6; }
15705
15706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15707 _pkg_short_errors_supported=yes
15708 else
15709 _pkg_short_errors_supported=no
15710 fi
15711 if test $_pkg_short_errors_supported = yes; then
15712 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
15713 else
15714 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
15715 fi
15716 # Put the nasty error message in config.log where it belongs
15717 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
15718
15719 have_globus_mod=no
15720 elif test $pkg_failed = untried; then
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722 printf "%s\n" "no" >&6; }
15723 have_globus_mod=no
15724 else
15725 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
15726 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15728 printf "%s\n" "yes" >&6; }
15729 have_globus_mod=yes
15730 fi
15731 fi
15732 fi
15733 have_globus_gssapi_gsi=$have_globus_mod
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745 if test "x$have_globus_gssapi_gsi" != "xyes" ; then
15746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15747 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15748 as_fn_error $? "\"no globus-gssapi-gsi found\"
15749 See \`config.log' for more details" "$LINENO" 5; }
15750 fi
15751
15752
15753
15754 ac_config_files="$ac_config_files src/lcas.pc"
15755
15756 else
15757 LCAS_FLAVOUR="_without_gsi"
15758 LCAS_FLAVOUR_NAME="-without-gsi"
15759
15760
15761 printf "%s\n" "#define NOGLOBUS 1" >>confdefs.h
15762
15763
15764 PACKAGE="$PACKAGE-without-gsi"
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting package name to $PACKAGE" >&5
15766 printf "%s\n" "Setting package name to $PACKAGE" >&6; }
15767
15768
15769 PACKAGE_TARNAME="$PACKAGE_TARNAME-without-gsi"
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: setting package tarname $PACKAGE_TARNAME" >&5
15771 printf "%s\n" "setting package tarname $PACKAGE_TARNAME" >&6; }
15772
15773
15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Creating GSI-free flavour of LCAS" >&5
15775 printf "%s\n" "Creating GSI-free flavour of LCAS" >&6; }
15776
15777 ac_config_files="$ac_config_files src/lcas-without-gsi.pc"
15778
15779 fi
15780
15781
15782 fi
15783
15784 if test x$enable_gsi_mode = xno; then
15785 NOGLOBUS_TRUE=
15786 NOGLOBUS_FALSE='#'
15787 else
15788 NOGLOBUS_TRUE='#'
15789 NOGLOBUS_FALSE=
15790 fi
15791
15792
15793
15794
15795
15796 ADD_THESE_DEFINES="-D ALLOW_EMPTY_CREDENTIALS -D DEBUG_LEVEL=0"
15797
15798
15799 # Defines to be added for cpp (will change)
15800
15801
15802 # Set default directories
15803 LCAS_ETC_HOME=${sysconfdir}/lcas
15804
15805 LCAS_LIB_HOME=$libdir
15806
15807
15808
15809 # Check whether --with-lcas_moduledir was given.
15810 if test ${with_lcas_moduledir+y}
15811 then :
15812 withval=$with_lcas_moduledir; if test "x`echo $withval|cut -c1`" = "x/"
15813 then :
15814 LCAS_MOD_HOME=$withval
15815
15816 else $as_nop
15817 LCAS_MOD_HOME=$LCAS_LIB_HOME/$withval
15818
15819 fi
15820
15821 else $as_nop
15822 LCAS_MOD_HOME=$LCAS_LIB_HOME/lcas
15823
15824
15825 fi
15826
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LCAS_MOD_HOME set to $LCAS_MOD_HOME" >&5
15828 printf "%s\n" "LCAS_MOD_HOME set to $LCAS_MOD_HOME" >&6; }
15829
15830
15831
15832
15833 # Configuration items
15834 ac_config_files="$ac_config_files Makefile"
15835
15836 ac_config_files="$ac_config_files doc/Makefile"
15837
15838 ac_config_files="$ac_config_files interface/Makefile"
15839
15840 ac_config_files="$ac_config_files interface/lcas-interface.pc"
15841
15842
15843 ac_config_headers="$ac_config_headers src/lcas_config.h"
15844
15845
15846 cat >confcache <<\_ACEOF
15847 # This file is a shell script that caches the results of configure
15848 # tests run on this system so they can be shared between configure
15849 # scripts and configure runs, see configure's option --config-cache.
15850 # It is not useful on other systems. If it contains results you don't
15851 # want to keep, you may remove or edit it.
15852 #
15853 # config.status only pays attention to the cache file if you give it
15854 # the --recheck option to rerun configure.
15855 #
15856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15858 # following values.
15859
15860 _ACEOF
15861
15862 # The following way of writing the cache mishandles newlines in values,
15863 # but we know of no workaround that is simple, portable, and efficient.
15864 # So, we kill variables containing newlines.
15865 # Ultrix sh set writes to stderr and can't be redirected directly,
15866 # and sets the high bit in the cache file unless we assign to the vars.
15867 (
15868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15869 eval ac_val=\$$ac_var
15870 case $ac_val in #(
15871 *${as_nl}*)
15872 case $ac_var in #(
15873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15874 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15875 esac
15876 case $ac_var in #(
15877 _ | IFS | as_nl) ;; #(
15878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15879 *) { eval $ac_var=; unset $ac_var;} ;;
15880 esac ;;
15881 esac
15882 done
15883
15884 (set) 2>&1 |
15885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15886 *${as_nl}ac_space=\ *)
15887 # `set' does not quote correctly, so add quotes: double-quote
15888 # substitution turns \\\\ into \\, and sed turns \\ into \.
15889 sed -n \
15890 "s/'/'\\\\''/g;
15891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15892 ;; #(
15893 *)
15894 # `set' quotes correctly as required by POSIX, so do not add quotes.
15895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15896 ;;
15897 esac |
15898 sort
15899 ) |
15900 sed '
15901 /^ac_cv_env_/b end
15902 t clear
15903 :clear
15904 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15905 t end
15906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15907 :end' >>confcache
15908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15909 if test -w "$cache_file"; then
15910 if test "x$cache_file" != "x/dev/null"; then
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15912 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15913 if test ! -f "$cache_file" || test -h "$cache_file"; then
15914 cat confcache >"$cache_file"
15915 else
15916 case $cache_file in #(
15917 */* | ?:*)
15918 mv -f confcache "$cache_file"$$ &&
15919 mv -f "$cache_file"$$ "$cache_file" ;; #(
15920 *)
15921 mv -f confcache "$cache_file" ;;
15922 esac
15923 fi
15924 fi
15925 else
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15927 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15928 fi
15929 fi
15930 rm -f confcache
15931
15932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15933 # Let make expand exec_prefix.
15934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15935
15936 DEFS=-DHAVE_CONFIG_H
15937
15938 ac_libobjs=
15939 ac_ltlibobjs=
15940 U=
15941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15942 # 1. Remove the extension, and $U if already installed.
15943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15944 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15946 # will be set to the directory where LIBOBJS objects are built.
15947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15949 done
15950 LIBOBJS=$ac_libobjs
15951
15952 LTLIBOBJS=$ac_ltlibobjs
15953
15954
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15956 printf %s "checking that generated files are newer than configure... " >&6; }
15957 if test -n "$am_sleep_pid"; then
15958 # Hide warnings about reused PIDs.
15959 wait $am_sleep_pid 2>/dev/null
15960 fi
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15962 printf "%s\n" "done" >&6; }
15963 if test -n "$EXEEXT"; then
15964 am__EXEEXT_TRUE=
15965 am__EXEEXT_FALSE='#'
15966 else
15967 am__EXEEXT_TRUE='#'
15968 am__EXEEXT_FALSE=
15969 fi
15970
15971 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15972 as_fn_error $? "conditional \"AMDEP\" was never defined.
15973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15974 fi
15975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15976 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15978 fi
15979 if test -z "${ENABLE_HEADERS_TRUE}" && test -z "${ENABLE_HEADERS_FALSE}"; then
15980 as_fn_error $? "conditional \"ENABLE_HEADERS\" was never defined.
15981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15982 fi
15983 if test -z "${NOGLOBUS_TRUE}" && test -z "${NOGLOBUS_FALSE}"; then
15984 as_fn_error $? "conditional \"NOGLOBUS\" was never defined.
15985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15986 fi
15987
15988 : "${CONFIG_STATUS=./config.status}"
15989 ac_write_fail=0
15990 ac_clean_files_save=$ac_clean_files
15991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15993 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15994 as_write_fail=0
15995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15996 #! $SHELL
15997 # Generated by $as_me.
15998 # Run this file to recreate the current configuration.
15999 # Compiler output produced by configure, useful for debugging
16000 # configure, is in config.log if it exists.
16001
16002 debug=false
16003 ac_cs_recheck=false
16004 ac_cs_silent=false
16005
16006 SHELL=\${CONFIG_SHELL-$SHELL}
16007 export SHELL
16008 _ASEOF
16009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16010 ## -------------------- ##
16011 ## M4sh Initialization. ##
16012 ## -------------------- ##
16013
16014 # Be more Bourne compatible
16015 DUALCASE=1; export DUALCASE # for MKS sh
16016 as_nop=:
16017 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16018 then :
16019 emulate sh
16020 NULLCMD=:
16021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16022 # is contrary to our usage. Disable this feature.
16023 alias -g '${1+"$@"}'='"$@"'
16024 setopt NO_GLOB_SUBST
16025 else $as_nop
16026 case `(set -o) 2>/dev/null` in #(
16027 *posix*) :
16028 set -o posix ;; #(
16029 *) :
16030 ;;
16031 esac
16032 fi
16033
16034
16035
16036 # Reset variables that may have inherited troublesome values from
16037 # the environment.
16038
16039 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16040 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16041 # side effect of setting IFS to empty, thus disabling word splitting.)
16042 # Quoting is to prevent editors from complaining about space-tab.
16043 as_nl='
16044 '
16045 export as_nl
16046 IFS=" "" $as_nl"
16047
16048 PS1='$ '
16049 PS2='> '
16050 PS4='+ '
16051
16052 # Ensure predictable behavior from utilities with locale-dependent output.
16053 LC_ALL=C
16054 export LC_ALL
16055 LANGUAGE=C
16056 export LANGUAGE
16057
16058 # We cannot yet rely on "unset" to work, but we need these variables
16059 # to be unset--not just set to an empty or harmless value--now, to
16060 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16061 # also avoids known problems related to "unset" and subshell syntax
16062 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16063 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16064 do eval test \${$as_var+y} \
16065 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16066 done
16067
16068 # Ensure that fds 0, 1, and 2 are open.
16069 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16070 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16071 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16072
16073 # The user is always right.
16074 if ${PATH_SEPARATOR+false} :; then
16075 PATH_SEPARATOR=:
16076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16078 PATH_SEPARATOR=';'
16079 }
16080 fi
16081
16082
16083 # Find who we are. Look in the path if we contain no directory separator.
16084 as_myself=
16085 case $0 in #((
16086 *[\\/]* ) as_myself=$0 ;;
16087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088 for as_dir in $PATH
16089 do
16090 IFS=$as_save_IFS
16091 case $as_dir in #(((
16092 '') as_dir=./ ;;
16093 */) ;;
16094 *) as_dir=$as_dir/ ;;
16095 esac
16096 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16097 done
16098 IFS=$as_save_IFS
16099
16100 ;;
16101 esac
16102 # We did not find ourselves, most probably we were run as `sh COMMAND'
16103 # in which case we are not to be found in the path.
16104 if test "x$as_myself" = x; then
16105 as_myself=$0
16106 fi
16107 if test ! -f "$as_myself"; then
16108 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16109 exit 1
16110 fi
16111
16112
16113
16114 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16115 # ----------------------------------------
16116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16118 # script with STATUS, using 1 if that was 0.
16119 as_fn_error ()
16120 {
16121 as_status=$1; test $as_status -eq 0 && as_status=1
16122 if test "$4"; then
16123 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16125 fi
16126 printf "%s\n" "$as_me: error: $2" >&2
16127 as_fn_exit $as_status
16128 } # as_fn_error
16129
16130
16131
16132 # as_fn_set_status STATUS
16133 # -----------------------
16134 # Set $? to STATUS, without forking.
16135 as_fn_set_status ()
16136 {
16137 return $1
16138 } # as_fn_set_status
16139
16140 # as_fn_exit STATUS
16141 # -----------------
16142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16143 as_fn_exit ()
16144 {
16145 set +e
16146 as_fn_set_status $1
16147 exit $1
16148 } # as_fn_exit
16149
16150 # as_fn_unset VAR
16151 # ---------------
16152 # Portably unset VAR.
16153 as_fn_unset ()
16154 {
16155 { eval $1=; unset $1;}
16156 }
16157 as_unset=as_fn_unset
16158
16159 # as_fn_append VAR VALUE
16160 # ----------------------
16161 # Append the text in VALUE to the end of the definition contained in VAR. Take
16162 # advantage of any shell optimizations that allow amortized linear growth over
16163 # repeated appends, instead of the typical quadratic growth present in naive
16164 # implementations.
16165 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16166 then :
16167 eval 'as_fn_append ()
16168 {
16169 eval $1+=\$2
16170 }'
16171 else $as_nop
16172 as_fn_append ()
16173 {
16174 eval $1=\$$1\$2
16175 }
16176 fi # as_fn_append
16177
16178 # as_fn_arith ARG...
16179 # ------------------
16180 # Perform arithmetic evaluation on the ARGs, and store the result in the
16181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16182 # must be portable across $(()) and expr.
16183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16184 then :
16185 eval 'as_fn_arith ()
16186 {
16187 as_val=$(( $* ))
16188 }'
16189 else $as_nop
16190 as_fn_arith ()
16191 {
16192 as_val=`expr "$@" || test $? -eq 1`
16193 }
16194 fi # as_fn_arith
16195
16196
16197 if expr a : '\(a\)' >/dev/null 2>&1 &&
16198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16199 as_expr=expr
16200 else
16201 as_expr=false
16202 fi
16203
16204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16205 as_basename=basename
16206 else
16207 as_basename=false
16208 fi
16209
16210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16211 as_dirname=dirname
16212 else
16213 as_dirname=false
16214 fi
16215
16216 as_me=`$as_basename -- "$0" ||
16217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16218 X"$0" : 'X\(//\)$' \| \
16219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16220 printf "%s\n" X/"$0" |
16221 sed '/^.*\/\([^/][^/]*\)\/*$/{
16222 s//\1/
16223 q
16224 }
16225 /^X\/\(\/\/\)$/{
16226 s//\1/
16227 q
16228 }
16229 /^X\/\(\/\).*/{
16230 s//\1/
16231 q
16232 }
16233 s/.*/./; q'`
16234
16235 # Avoid depending upon Character Ranges.
16236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16239 as_cr_digits='0123456789'
16240 as_cr_alnum=$as_cr_Letters$as_cr_digits
16241
16242
16243 # Determine whether it's possible to make 'echo' print without a newline.
16244 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16245 # for compatibility with existing Makefiles.
16246 ECHO_C= ECHO_N= ECHO_T=
16247 case `echo -n x` in #(((((
16248 -n*)
16249 case `echo 'xy\c'` in
16250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16251 xy) ECHO_C='\c';;
16252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16253 ECHO_T=' ';;
16254 esac;;
16255 *)
16256 ECHO_N='-n';;
16257 esac
16258
16259 # For backward compatibility with old third-party macros, we provide
16260 # the shell variables $as_echo and $as_echo_n. New code should use
16261 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16262 as_echo='printf %s\n'
16263 as_echo_n='printf %s'
16264
16265 rm -f conf$$ conf$$.exe conf$$.file
16266 if test -d conf$$.dir; then
16267 rm -f conf$$.dir/conf$$.file
16268 else
16269 rm -f conf$$.dir
16270 mkdir conf$$.dir 2>/dev/null
16271 fi
16272 if (echo >conf$$.file) 2>/dev/null; then
16273 if ln -s conf$$.file conf$$ 2>/dev/null; then
16274 as_ln_s='ln -s'
16275 # ... but there are two gotchas:
16276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16278 # In both cases, we have to default to `cp -pR'.
16279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16280 as_ln_s='cp -pR'
16281 elif ln conf$$.file conf$$ 2>/dev/null; then
16282 as_ln_s=ln
16283 else
16284 as_ln_s='cp -pR'
16285 fi
16286 else
16287 as_ln_s='cp -pR'
16288 fi
16289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16290 rmdir conf$$.dir 2>/dev/null
16291
16292
16293 # as_fn_mkdir_p
16294 # -------------
16295 # Create "$as_dir" as a directory, including parents if necessary.
16296 as_fn_mkdir_p ()
16297 {
16298
16299 case $as_dir in #(
16300 -*) as_dir=./$as_dir;;
16301 esac
16302 test -d "$as_dir" || eval $as_mkdir_p || {
16303 as_dirs=
16304 while :; do
16305 case $as_dir in #(
16306 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16307 *) as_qdir=$as_dir;;
16308 esac
16309 as_dirs="'$as_qdir' $as_dirs"
16310 as_dir=`$as_dirname -- "$as_dir" ||
16311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16312 X"$as_dir" : 'X\(//\)[^/]' \| \
16313 X"$as_dir" : 'X\(//\)$' \| \
16314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16315 printf "%s\n" X"$as_dir" |
16316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16317 s//\1/
16318 q
16319 }
16320 /^X\(\/\/\)[^/].*/{
16321 s//\1/
16322 q
16323 }
16324 /^X\(\/\/\)$/{
16325 s//\1/
16326 q
16327 }
16328 /^X\(\/\).*/{
16329 s//\1/
16330 q
16331 }
16332 s/.*/./; q'`
16333 test -d "$as_dir" && break
16334 done
16335 test -z "$as_dirs" || eval "mkdir $as_dirs"
16336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16337
16338
16339 } # as_fn_mkdir_p
16340 if mkdir -p . 2>/dev/null; then
16341 as_mkdir_p='mkdir -p "$as_dir"'
16342 else
16343 test -d ./-p && rmdir ./-p
16344 as_mkdir_p=false
16345 fi
16346
16347
16348 # as_fn_executable_p FILE
16349 # -----------------------
16350 # Test if FILE is an executable regular file.
16351 as_fn_executable_p ()
16352 {
16353 test -f "$1" && test -x "$1"
16354 } # as_fn_executable_p
16355 as_test_x='test -x'
16356 as_executable_p=as_fn_executable_p
16357
16358 # Sed expression to map a string onto a valid CPP name.
16359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16360
16361 # Sed expression to map a string onto a valid variable name.
16362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16363
16364
16365 exec 6>&1
16366 ## ----------------------------------- ##
16367 ## Main body of $CONFIG_STATUS script. ##
16368 ## ----------------------------------- ##
16369 _ASEOF
16370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16371
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 # Save the log message, to keep $0 and so on meaningful, and to
16374 # report actual input values of CONFIG_FILES etc. instead of their
16375 # values after options handling.
16376 ac_log="
16377 This file was extended by LCAS $as_me 1.3.20, which was
16378 generated by GNU Autoconf 2.71. Invocation command line was
16379
16380 CONFIG_FILES = $CONFIG_FILES
16381 CONFIG_HEADERS = $CONFIG_HEADERS
16382 CONFIG_LINKS = $CONFIG_LINKS
16383 CONFIG_COMMANDS = $CONFIG_COMMANDS
16384 $ $0 $@
16385
16386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16387 "
16388
16389 _ACEOF
16390
16391 case $ac_config_files in *"
16392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16393 esac
16394
16395 case $ac_config_headers in *"
16396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16397 esac
16398
16399
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 # Files that config.status was made for.
16402 config_files="$ac_config_files"
16403 config_headers="$ac_config_headers"
16404 config_commands="$ac_config_commands"
16405
16406 _ACEOF
16407
16408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409 ac_cs_usage="\
16410 \`$as_me' instantiates files and other configuration actions
16411 from templates according to the current configuration. Unless the files
16412 and actions are specified as TAGs, all are instantiated by default.
16413
16414 Usage: $0 [OPTION]... [TAG]...
16415
16416 -h, --help print this help, then exit
16417 -V, --version print version number and configuration settings, then exit
16418 --config print configuration, then exit
16419 -q, --quiet, --silent
16420 do not print progress messages
16421 -d, --debug don't remove temporary files
16422 --recheck update $as_me by reconfiguring in the same conditions
16423 --file=FILE[:TEMPLATE]
16424 instantiate the configuration file FILE
16425 --header=FILE[:TEMPLATE]
16426 instantiate the configuration header FILE
16427
16428 Configuration files:
16429 $config_files
16430
16431 Configuration headers:
16432 $config_headers
16433
16434 Configuration commands:
16435 $config_commands
16436
16437 Report bugs to the package provider."
16438
16439 _ACEOF
16440 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16441 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_cs_config='$ac_cs_config_escaped'
16444 ac_cs_version="\\
16445 LCAS config.status 1.3.20
16446 configured by $0, generated by GNU Autoconf 2.71,
16447 with options \\"\$ac_cs_config\\"
16448
16449 Copyright (C) 2021 Free Software Foundation, Inc.
16450 This config.status script is free software; the Free Software Foundation
16451 gives unlimited permission to copy, distribute and modify it."
16452
16453 ac_pwd='$ac_pwd'
16454 srcdir='$srcdir'
16455 INSTALL='$INSTALL'
16456 MKDIR_P='$MKDIR_P'
16457 AWK='$AWK'
16458 test -n "\$AWK" || AWK=awk
16459 _ACEOF
16460
16461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 # The default lists apply if the user does not specify any file.
16463 ac_need_defaults=:
16464 while test $# != 0
16465 do
16466 case $1 in
16467 --*=?*)
16468 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16470 ac_shift=:
16471 ;;
16472 --*=)
16473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16474 ac_optarg=
16475 ac_shift=:
16476 ;;
16477 *)
16478 ac_option=$1
16479 ac_optarg=$2
16480 ac_shift=shift
16481 ;;
16482 esac
16483
16484 case $ac_option in
16485 # Handling of the options.
16486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16487 ac_cs_recheck=: ;;
16488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16489 printf "%s\n" "$ac_cs_version"; exit ;;
16490 --config | --confi | --conf | --con | --co | --c )
16491 printf "%s\n" "$ac_cs_config"; exit ;;
16492 --debug | --debu | --deb | --de | --d | -d )
16493 debug=: ;;
16494 --file | --fil | --fi | --f )
16495 $ac_shift
16496 case $ac_optarg in
16497 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16498 '') as_fn_error $? "missing file argument" ;;
16499 esac
16500 as_fn_append CONFIG_FILES " '$ac_optarg'"
16501 ac_need_defaults=false;;
16502 --header | --heade | --head | --hea )
16503 $ac_shift
16504 case $ac_optarg in
16505 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16506 esac
16507 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16508 ac_need_defaults=false;;
16509 --he | --h)
16510 # Conflict between --help and --header
16511 as_fn_error $? "ambiguous option: \`$1'
16512 Try \`$0 --help' for more information.";;
16513 --help | --hel | -h )
16514 printf "%s\n" "$ac_cs_usage"; exit ;;
16515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16517 ac_cs_silent=: ;;
16518
16519 # This is an error.
16520 -*) as_fn_error $? "unrecognized option: \`$1'
16521 Try \`$0 --help' for more information." ;;
16522
16523 *) as_fn_append ac_config_targets " $1"
16524 ac_need_defaults=false ;;
16525
16526 esac
16527 shift
16528 done
16529
16530 ac_configure_extra_args=
16531
16532 if $ac_cs_silent; then
16533 exec 6>/dev/null
16534 ac_configure_extra_args="$ac_configure_extra_args --silent"
16535 fi
16536
16537 _ACEOF
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 if \$ac_cs_recheck; then
16540 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16541 shift
16542 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16543 CONFIG_SHELL='$SHELL'
16544 export CONFIG_SHELL
16545 exec "\$@"
16546 fi
16547
16548 _ACEOF
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16550 exec 5>>config.log
16551 {
16552 echo
16553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16554 ## Running $as_me. ##
16555 _ASBOX
16556 printf "%s\n" "$ac_log"
16557 } >&5
16558
16559 _ACEOF
16560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16561 #
16562 # INIT-COMMANDS
16563 #
16564 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16565
16566
16567 # The HP-UX ksh and POSIX shell print the target directory to stdout
16568 # if CDPATH is set.
16569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16570
16571 sed_quote_subst='$sed_quote_subst'
16572 double_quote_subst='$double_quote_subst'
16573 delay_variable_subst='$delay_variable_subst'
16574 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16575 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16576 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16577 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16578 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16579 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16580 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16581 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16582 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16583 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16584 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16585 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16586 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16587 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16588 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16589 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16590 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16591 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16592 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16593 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16594 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16595 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16596 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16597 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16598 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16599 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16600 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16601 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16602 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16603 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16604 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16605 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16606 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16607 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16608 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16609 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16610 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16611 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16612 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16613 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16614 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16615 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16616 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16617 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16618 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16619 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16620 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16621 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16622 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16623 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16624 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16625 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16626 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16627 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16628 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16629 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16630 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16631 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16632 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16633 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16634 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"`'
16635 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16636 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16637 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16638 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16639 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16640 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16641 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16642 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16643 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16644 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16645 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16646 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16647 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16648 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16649 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16650 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16651 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16652 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16653 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16654 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16655 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16656 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16657 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16658 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16659 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16660 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16661 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16662 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16663 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16664 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16665 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16666 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16667 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16668 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16669 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16670 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16671 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16672 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16673 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16674 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16675 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16676 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16677 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16678 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16679 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16680 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16681 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16682 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16683 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16684 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16685 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16686 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16687 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16688 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16689 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16690 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16691 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16692 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16693 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16694 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16695 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16696 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16697 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16698 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16699 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16700 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16701 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16702 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16703 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16704 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16705 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16706 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16707 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16708 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16709 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16710 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16711
16712 LTCC='$LTCC'
16713 LTCFLAGS='$LTCFLAGS'
16714 compiler='$compiler_DEFAULT'
16715
16716 # A function that is used when there is no print builtin or printf.
16717 func_fallback_echo ()
16718 {
16719 eval 'cat <<_LTECHO_EOF
16720 \$1
16721 _LTECHO_EOF'
16722 }
16723
16724 # Quote evaled strings.
16725 for var in SHELL \
16726 ECHO \
16727 PATH_SEPARATOR \
16728 SED \
16729 GREP \
16730 EGREP \
16731 FGREP \
16732 LD \
16733 NM \
16734 LN_S \
16735 lt_SP2NL \
16736 lt_NL2SP \
16737 reload_flag \
16738 FILECMD \
16739 OBJDUMP \
16740 deplibs_check_method \
16741 file_magic_cmd \
16742 file_magic_glob \
16743 want_nocaseglob \
16744 DLLTOOL \
16745 sharedlib_from_linklib_cmd \
16746 AR \
16747 archiver_list_spec \
16748 STRIP \
16749 RANLIB \
16750 CC \
16751 CFLAGS \
16752 compiler \
16753 lt_cv_sys_global_symbol_pipe \
16754 lt_cv_sys_global_symbol_to_cdecl \
16755 lt_cv_sys_global_symbol_to_import \
16756 lt_cv_sys_global_symbol_to_c_name_address \
16757 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16758 lt_cv_nm_interface \
16759 nm_file_list_spec \
16760 lt_cv_truncate_bin \
16761 lt_prog_compiler_no_builtin_flag \
16762 lt_prog_compiler_pic \
16763 lt_prog_compiler_wl \
16764 lt_prog_compiler_static \
16765 lt_cv_prog_compiler_c_o \
16766 need_locks \
16767 MANIFEST_TOOL \
16768 DSYMUTIL \
16769 NMEDIT \
16770 LIPO \
16771 OTOOL \
16772 OTOOL64 \
16773 shrext_cmds \
16774 export_dynamic_flag_spec \
16775 whole_archive_flag_spec \
16776 compiler_needs_object \
16777 with_gnu_ld \
16778 allow_undefined_flag \
16779 no_undefined_flag \
16780 hardcode_libdir_flag_spec \
16781 hardcode_libdir_separator \
16782 exclude_expsyms \
16783 include_expsyms \
16784 file_list_spec \
16785 variables_saved_for_relink \
16786 libname_spec \
16787 library_names_spec \
16788 soname_spec \
16789 install_override_mode \
16790 finish_eval \
16791 old_striplib \
16792 striplib; do
16793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16794 *[\\\\\\\`\\"\\\$]*)
16795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16796 ;;
16797 *)
16798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16799 ;;
16800 esac
16801 done
16802
16803 # Double-quote double-evaled strings.
16804 for var in reload_cmds \
16805 old_postinstall_cmds \
16806 old_postuninstall_cmds \
16807 old_archive_cmds \
16808 extract_expsyms_cmds \
16809 old_archive_from_new_cmds \
16810 old_archive_from_expsyms_cmds \
16811 archive_cmds \
16812 archive_expsym_cmds \
16813 module_cmds \
16814 module_expsym_cmds \
16815 export_symbols_cmds \
16816 prelink_cmds \
16817 postlink_cmds \
16818 postinstall_cmds \
16819 postuninstall_cmds \
16820 finish_cmds \
16821 sys_lib_search_path_spec \
16822 configure_time_dlsearch_path \
16823 configure_time_lt_sys_library_path; do
16824 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16825 *[\\\\\\\`\\"\\\$]*)
16826 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16827 ;;
16828 *)
16829 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16830 ;;
16831 esac
16832 done
16833
16834 ac_aux_dir='$ac_aux_dir'
16835
16836 # See if we are running on zsh, and set the options that allow our
16837 # commands through without removal of \ escapes INIT.
16838 if test -n "\${ZSH_VERSION+set}"; then
16839 setopt NO_GLOB_SUBST
16840 fi
16841
16842
16843 PACKAGE='$PACKAGE'
16844 VERSION='$VERSION'
16845 RM='$RM'
16846 ofile='$ofile'
16847
16848
16849
16850
16851 _ACEOF
16852
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854
16855 # Handling of arguments.
16856 for ac_config_target in $ac_config_targets
16857 do
16858 case $ac_config_target in
16859 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16860 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16861 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16862 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16863 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
16864 "src/lcas.pc") CONFIG_FILES="$CONFIG_FILES src/lcas.pc" ;;
16865 "src/lcas-without-gsi.pc") CONFIG_FILES="$CONFIG_FILES src/lcas-without-gsi.pc" ;;
16866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16867 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16868 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
16869 "interface/lcas-interface.pc") CONFIG_FILES="$CONFIG_FILES interface/lcas-interface.pc" ;;
16870 "src/lcas_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lcas_config.h" ;;
16871
16872 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16873 esac
16874 done
16875
16876
16877 # If the user did not use the arguments to specify the items to instantiate,
16878 # then the envvar interface is used. Set only those that are not.
16879 # We use the long form for the default assignment because of an extremely
16880 # bizarre bug on SunOS 4.1.3.
16881 if $ac_need_defaults; then
16882 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16883 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16884 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16885 fi
16886
16887 # Have a temporary directory for convenience. Make it in the build tree
16888 # simply because there is no reason against having it here, and in addition,
16889 # creating and moving files from /tmp can sometimes cause problems.
16890 # Hook for its removal unless debugging.
16891 # Note that there is a small window in which the directory will not be cleaned:
16892 # after its creation but before its name has been assigned to `$tmp'.
16893 $debug ||
16894 {
16895 tmp= ac_tmp=
16896 trap 'exit_status=$?
16897 : "${ac_tmp:=$tmp}"
16898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16899 ' 0
16900 trap 'as_fn_exit 1' 1 2 13 15
16901 }
16902 # Create a (secure) tmp directory for tmp files.
16903
16904 {
16905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16906 test -d "$tmp"
16907 } ||
16908 {
16909 tmp=./conf$$-$RANDOM
16910 (umask 077 && mkdir "$tmp")
16911 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16912 ac_tmp=$tmp
16913
16914 # Set up the scripts for CONFIG_FILES section.
16915 # No need to generate them if there are no CONFIG_FILES.
16916 # This happens for instance with `./config.status config.h'.
16917 if test -n "$CONFIG_FILES"; then
16918
16919
16920 ac_cr=`echo X | tr X '\015'`
16921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16922 # But we know of no other shell where ac_cr would be empty at this
16923 # point, so we can use a bashism as a fallback.
16924 if test "x$ac_cr" = x; then
16925 eval ac_cr=\$\'\\r\'
16926 fi
16927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16929 ac_cs_awk_cr='\\r'
16930 else
16931 ac_cs_awk_cr=$ac_cr
16932 fi
16933
16934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16935 _ACEOF
16936
16937
16938 {
16939 echo "cat >conf$$subs.awk <<_ACEOF" &&
16940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16941 echo "_ACEOF"
16942 } >conf$$subs.sh ||
16943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16945 ac_delim='%!_!# '
16946 for ac_last_try in false false false false false :; do
16947 . ./conf$$subs.sh ||
16948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16949
16950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16951 if test $ac_delim_n = $ac_delim_num; then
16952 break
16953 elif $ac_last_try; then
16954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16955 else
16956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16957 fi
16958 done
16959 rm -f conf$$subs.sh
16960
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16962 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16963 _ACEOF
16964 sed -n '
16965 h
16966 s/^/S["/; s/!.*/"]=/
16967 p
16968 g
16969 s/^[^!]*!//
16970 :repl
16971 t repl
16972 s/'"$ac_delim"'$//
16973 t delim
16974 :nl
16975 h
16976 s/\(.\{148\}\)..*/\1/
16977 t more1
16978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16979 p
16980 n
16981 b repl
16982 :more1
16983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16984 p
16985 g
16986 s/.\{148\}//
16987 t nl
16988 :delim
16989 h
16990 s/\(.\{148\}\)..*/\1/
16991 t more2
16992 s/["\\]/\\&/g; s/^/"/; s/$/"/
16993 p
16994 b
16995 :more2
16996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16997 p
16998 g
16999 s/.\{148\}//
17000 t delim
17001 ' <conf$$subs.awk | sed '
17002 /^[^""]/{
17003 N
17004 s/\n//
17005 }
17006 ' >>$CONFIG_STATUS || ac_write_fail=1
17007 rm -f conf$$subs.awk
17008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17009 _ACAWK
17010 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17011 for (key in S) S_is_set[key] = 1
17012 FS = ""
17013
17014 }
17015 {
17016 line = $ 0
17017 nfields = split(line, field, "@")
17018 substed = 0
17019 len = length(field[1])
17020 for (i = 2; i < nfields; i++) {
17021 key = field[i]
17022 keylen = length(key)
17023 if (S_is_set[key]) {
17024 value = S[key]
17025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17026 len += length(value) + length(field[++i])
17027 substed = 1
17028 } else
17029 len += 1 + keylen
17030 }
17031
17032 print line
17033 }
17034
17035 _ACAWK
17036 _ACEOF
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17040 else
17041 cat
17042 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17044 _ACEOF
17045
17046 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17047 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17048 # trailing colons and then remove the whole line if VPATH becomes empty
17049 # (actually we leave an empty line to preserve line numbers).
17050 if test "x$srcdir" = x.; then
17051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17052 h
17053 s///
17054 s/^/:/
17055 s/[ ]*$/:/
17056 s/:\$(srcdir):/:/g
17057 s/:\${srcdir}:/:/g
17058 s/:@srcdir@:/:/g
17059 s/^:*//
17060 s/:*$//
17061 x
17062 s/\(=[ ]*\).*/\1/
17063 G
17064 s/\n//
17065 s/^[^=]*=[ ]*$//
17066 }'
17067 fi
17068
17069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17070 fi # test -n "$CONFIG_FILES"
17071
17072 # Set up the scripts for CONFIG_HEADERS section.
17073 # No need to generate them if there are no CONFIG_HEADERS.
17074 # This happens for instance with `./config.status Makefile'.
17075 if test -n "$CONFIG_HEADERS"; then
17076 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17077 BEGIN {
17078 _ACEOF
17079
17080 # Transform confdefs.h into an awk script `defines.awk', embedded as
17081 # here-document in config.status, that substitutes the proper values into
17082 # config.h.in to produce config.h.
17083
17084 # Create a delimiter string that does not exist in confdefs.h, to ease
17085 # handling of long lines.
17086 ac_delim='%!_!# '
17087 for ac_last_try in false false :; do
17088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17089 if test -z "$ac_tt"; then
17090 break
17091 elif $ac_last_try; then
17092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17093 else
17094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17095 fi
17096 done
17097
17098 # For the awk script, D is an array of macro values keyed by name,
17099 # likewise P contains macro parameters if any. Preserve backslash
17100 # newline sequences.
17101
17102 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17103 sed -n '
17104 s/.\{148\}/&'"$ac_delim"'/g
17105 t rset
17106 :rset
17107 s/^[ ]*#[ ]*define[ ][ ]*/ /
17108 t def
17109 d
17110 :def
17111 s/\\$//
17112 t bsnl
17113 s/["\\]/\\&/g
17114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17115 D["\1"]=" \3"/p
17116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17117 d
17118 :bsnl
17119 s/["\\]/\\&/g
17120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17121 D["\1"]=" \3\\\\\\n"\\/p
17122 t cont
17123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17124 t cont
17125 d
17126 :cont
17127 n
17128 s/.\{148\}/&'"$ac_delim"'/g
17129 t clear
17130 :clear
17131 s/\\$//
17132 t bsnlc
17133 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17134 d
17135 :bsnlc
17136 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17137 b cont
17138 ' <confdefs.h | sed '
17139 s/'"$ac_delim"'/"\\\
17140 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17141
17142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143 for (key in D) D_is_set[key] = 1
17144 FS = ""
17145 }
17146 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17147 line = \$ 0
17148 split(line, arg, " ")
17149 if (arg[1] == "#") {
17150 defundef = arg[2]
17151 mac1 = arg[3]
17152 } else {
17153 defundef = substr(arg[1], 2)
17154 mac1 = arg[2]
17155 }
17156 split(mac1, mac2, "(") #)
17157 macro = mac2[1]
17158 prefix = substr(line, 1, index(line, defundef) - 1)
17159 if (D_is_set[macro]) {
17160 # Preserve the white space surrounding the "#".
17161 print prefix "define", macro P[macro] D[macro]
17162 next
17163 } else {
17164 # Replace #undef with comments. This is necessary, for example,
17165 # in the case of _POSIX_SOURCE, which is predefined and required
17166 # on some systems where configure will not decide to define it.
17167 if (defundef == "undef") {
17168 print "/*", prefix defundef, macro, "*/"
17169 next
17170 }
17171 }
17172 }
17173 { print }
17174 _ACAWK
17175 _ACEOF
17176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17178 fi # test -n "$CONFIG_HEADERS"
17179
17180
17181 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17182 shift
17183 for ac_tag
17184 do
17185 case $ac_tag in
17186 :[FHLC]) ac_mode=$ac_tag; continue;;
17187 esac
17188 case $ac_mode$ac_tag in
17189 :[FHL]*:*);;
17190 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17191 :[FH]-) ac_tag=-:-;;
17192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17193 esac
17194 ac_save_IFS=$IFS
17195 IFS=:
17196 set x $ac_tag
17197 IFS=$ac_save_IFS
17198 shift
17199 ac_file=$1
17200 shift
17201
17202 case $ac_mode in
17203 :L) ac_source=$1;;
17204 :[FH])
17205 ac_file_inputs=
17206 for ac_f
17207 do
17208 case $ac_f in
17209 -) ac_f="$ac_tmp/stdin";;
17210 *) # Look for the file first in the build tree, then in the source tree
17211 # (if the path is not absolute). The absolute path cannot be DOS-style,
17212 # because $ac_f cannot contain `:'.
17213 test -f "$ac_f" ||
17214 case $ac_f in
17215 [\\/$]*) false;;
17216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17217 esac ||
17218 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17219 esac
17220 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17221 as_fn_append ac_file_inputs " '$ac_f'"
17222 done
17223
17224 # Let's still pretend it is `configure' which instantiates (i.e., don't
17225 # use $as_me), people would be surprised to read:
17226 # /* config.h. Generated by config.status. */
17227 configure_input='Generated from '`
17228 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17229 `' by configure.'
17230 if test x"$ac_file" != x-; then
17231 configure_input="$ac_file. $configure_input"
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17233 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17234 fi
17235 # Neutralize special characters interpreted by sed in replacement strings.
17236 case $configure_input in #(
17237 *\&* | *\|* | *\\* )
17238 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17239 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17240 *) ac_sed_conf_input=$configure_input;;
17241 esac
17242
17243 case $ac_tag in
17244 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17246 esac
17247 ;;
17248 esac
17249
17250 ac_dir=`$as_dirname -- "$ac_file" ||
17251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17252 X"$ac_file" : 'X\(//\)[^/]' \| \
17253 X"$ac_file" : 'X\(//\)$' \| \
17254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17255 printf "%s\n" X"$ac_file" |
17256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17257 s//\1/
17258 q
17259 }
17260 /^X\(\/\/\)[^/].*/{
17261 s//\1/
17262 q
17263 }
17264 /^X\(\/\/\)$/{
17265 s//\1/
17266 q
17267 }
17268 /^X\(\/\).*/{
17269 s//\1/
17270 q
17271 }
17272 s/.*/./; q'`
17273 as_dir="$ac_dir"; as_fn_mkdir_p
17274 ac_builddir=.
17275
17276 case "$ac_dir" in
17277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17278 *)
17279 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17280 # A ".." for each directory in $ac_dir_suffix.
17281 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17282 case $ac_top_builddir_sub in
17283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17285 esac ;;
17286 esac
17287 ac_abs_top_builddir=$ac_pwd
17288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17289 # for backward compatibility:
17290 ac_top_builddir=$ac_top_build_prefix
17291
17292 case $srcdir in
17293 .) # We are building in place.
17294 ac_srcdir=.
17295 ac_top_srcdir=$ac_top_builddir_sub
17296 ac_abs_top_srcdir=$ac_pwd ;;
17297 [\\/]* | ?:[\\/]* ) # Absolute name.
17298 ac_srcdir=$srcdir$ac_dir_suffix;
17299 ac_top_srcdir=$srcdir
17300 ac_abs_top_srcdir=$srcdir ;;
17301 *) # Relative name.
17302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17303 ac_top_srcdir=$ac_top_build_prefix$srcdir
17304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17305 esac
17306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17307
17308
17309 case $ac_mode in
17310 :F)
17311 #
17312 # CONFIG_FILE
17313 #
17314
17315 case $INSTALL in
17316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17318 esac
17319 ac_MKDIR_P=$MKDIR_P
17320 case $MKDIR_P in
17321 [\\/$]* | ?:[\\/]* ) ;;
17322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17323 esac
17324 _ACEOF
17325
17326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17327 # If the template does not know about datarootdir, expand it.
17328 # FIXME: This hack should be removed a few years after 2.60.
17329 ac_datarootdir_hack=; ac_datarootdir_seen=
17330 ac_sed_dataroot='
17331 /datarootdir/ {
17332 p
17333 q
17334 }
17335 /@datadir@/p
17336 /@docdir@/p
17337 /@infodir@/p
17338 /@localedir@/p
17339 /@mandir@/p'
17340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17341 *datarootdir*) ac_datarootdir_seen=yes;;
17342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17344 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17345 _ACEOF
17346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17347 ac_datarootdir_hack='
17348 s&@datadir@&$datadir&g
17349 s&@docdir@&$docdir&g
17350 s&@infodir@&$infodir&g
17351 s&@localedir@&$localedir&g
17352 s&@mandir@&$mandir&g
17353 s&\\\${datarootdir}&$datarootdir&g' ;;
17354 esac
17355 _ACEOF
17356
17357 # Neutralize VPATH when `$srcdir' = `.'.
17358 # Shell code in configure.ac might set extrasub.
17359 # FIXME: do we really want to maintain this feature?
17360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17361 ac_sed_extra="$ac_vpsub
17362 $extrasub
17363 _ACEOF
17364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17365 :t
17366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17367 s|@configure_input@|$ac_sed_conf_input|;t t
17368 s&@top_builddir@&$ac_top_builddir_sub&;t t
17369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17370 s&@srcdir@&$ac_srcdir&;t t
17371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17372 s&@top_srcdir@&$ac_top_srcdir&;t t
17373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17374 s&@builddir@&$ac_builddir&;t t
17375 s&@abs_builddir@&$ac_abs_builddir&;t t
17376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17377 s&@INSTALL@&$ac_INSTALL&;t t
17378 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17379 $ac_datarootdir_hack
17380 "
17381 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17382 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17383
17384 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17385 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17387 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17389 which seems to be undefined. Please make sure it is defined" >&5
17390 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17391 which seems to be undefined. Please make sure it is defined" >&2;}
17392
17393 rm -f "$ac_tmp/stdin"
17394 case $ac_file in
17395 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17396 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17397 esac \
17398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17399 ;;
17400 :H)
17401 #
17402 # CONFIG_HEADER
17403 #
17404 if test x"$ac_file" != x-; then
17405 {
17406 printf "%s\n" "/* $configure_input */" >&1 \
17407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17408 } >"$ac_tmp/config.h" \
17409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17410 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17412 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17413 else
17414 rm -f "$ac_file"
17415 mv "$ac_tmp/config.h" "$ac_file" \
17416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17417 fi
17418 else
17419 printf "%s\n" "/* $configure_input */" >&1 \
17420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17421 || as_fn_error $? "could not create -" "$LINENO" 5
17422 fi
17423 # Compute "$ac_file"'s index in $config_headers.
17424 _am_arg="$ac_file"
17425 _am_stamp_count=1
17426 for _am_header in $config_headers :; do
17427 case $_am_header in
17428 $_am_arg | $_am_arg:* )
17429 break ;;
17430 * )
17431 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17432 esac
17433 done
17434 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17435 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17436 X"$_am_arg" : 'X\(//\)[^/]' \| \
17437 X"$_am_arg" : 'X\(//\)$' \| \
17438 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17439 printf "%s\n" X"$_am_arg" |
17440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17441 s//\1/
17442 q
17443 }
17444 /^X\(\/\/\)[^/].*/{
17445 s//\1/
17446 q
17447 }
17448 /^X\(\/\/\)$/{
17449 s//\1/
17450 q
17451 }
17452 /^X\(\/\).*/{
17453 s//\1/
17454 q
17455 }
17456 s/.*/./; q'`/stamp-h$_am_stamp_count
17457 ;;
17458
17459 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17460 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17461 ;;
17462 esac
17463
17464
17465 case $ac_file$ac_mode in
17466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17467 # Older Autoconf quotes --file arguments for eval, but not when files
17468 # are listed without --file. Let's play safe and only enable the eval
17469 # if we detect the quoting.
17470 # TODO: see whether this extra hack can be removed once we start
17471 # requiring Autoconf 2.70 or later.
17472 case $CONFIG_FILES in #(
17473 *\'*) :
17474 eval set x "$CONFIG_FILES" ;; #(
17475 *) :
17476 set x $CONFIG_FILES ;; #(
17477 *) :
17478 ;;
17479 esac
17480 shift
17481 # Used to flag and report bootstrapping failures.
17482 am_rc=0
17483 for am_mf
17484 do
17485 # Strip MF so we end up with the name of the file.
17486 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17487 # Check whether this is an Automake generated Makefile which includes
17488 # dependency-tracking related rules and includes.
17489 # Grep'ing the whole file directly is not great: AIX grep has a line
17490 # limit of 2048, but all sed's we know have understand at least 4000.
17491 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17492 || continue
17493 am_dirpart=`$as_dirname -- "$am_mf" ||
17494 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17495 X"$am_mf" : 'X\(//\)[^/]' \| \
17496 X"$am_mf" : 'X\(//\)$' \| \
17497 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17498 printf "%s\n" X"$am_mf" |
17499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17500 s//\1/
17501 q
17502 }
17503 /^X\(\/\/\)[^/].*/{
17504 s//\1/
17505 q
17506 }
17507 /^X\(\/\/\)$/{
17508 s//\1/
17509 q
17510 }
17511 /^X\(\/\).*/{
17512 s//\1/
17513 q
17514 }
17515 s/.*/./; q'`
17516 am_filepart=`$as_basename -- "$am_mf" ||
17517 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17518 X"$am_mf" : 'X\(//\)$' \| \
17519 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17520 printf "%s\n" X/"$am_mf" |
17521 sed '/^.*\/\([^/][^/]*\)\/*$/{
17522 s//\1/
17523 q
17524 }
17525 /^X\/\(\/\/\)$/{
17526 s//\1/
17527 q
17528 }
17529 /^X\/\(\/\).*/{
17530 s//\1/
17531 q
17532 }
17533 s/.*/./; q'`
17534 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17535 && sed -e '/# am--include-marker/d' "$am_filepart" \
17536 | $MAKE -f - am--depfiles" >&5
17537 (cd "$am_dirpart" \
17538 && sed -e '/# am--include-marker/d' "$am_filepart" \
17539 | $MAKE -f - am--depfiles) >&5 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } || am_rc=$?
17543 done
17544 if test $am_rc -ne 0; then
17545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17547 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17548 for automatic dependency tracking. If GNU make was not used, consider
17549 re-running the configure script with MAKE=\"gmake\" (or whatever is
17550 necessary). You can also try re-running configure with the
17551 '--disable-dependency-tracking' option to at least be able to build
17552 the package (albeit without support for automatic dependency tracking).
17553 See \`config.log' for more details" "$LINENO" 5; }
17554 fi
17555 { am_dirpart=; unset am_dirpart;}
17556 { am_filepart=; unset am_filepart;}
17557 { am_mf=; unset am_mf;}
17558 { am_rc=; unset am_rc;}
17559 rm -f conftest-deps.mk
17560 }
17561 ;;
17562 "libtool":C)
17563
17564 # See if we are running on zsh, and set the options that allow our
17565 # commands through without removal of \ escapes.
17566 if test -n "${ZSH_VERSION+set}"; then
17567 setopt NO_GLOB_SUBST
17568 fi
17569
17570 cfgfile=${ofile}T
17571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17572 $RM "$cfgfile"
17573
17574 cat <<_LT_EOF >> "$cfgfile"
17575 #! $SHELL
17576 # Generated automatically by $as_me ($PACKAGE) $VERSION
17577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17578
17579 # Provide generalized library-building support services.
17580 # Written by Gordon Matzigkeit, 1996
17581
17582 # Copyright (C) 2014 Free Software Foundation, Inc.
17583 # This is free software; see the source for copying conditions. There is NO
17584 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17585
17586 # GNU Libtool is free software; you can redistribute it and/or modify
17587 # it under the terms of the GNU General Public License as published by
17588 # the Free Software Foundation; either version 2 of of the License, or
17589 # (at your option) any later version.
17590 #
17591 # As a special exception to the GNU General Public License, if you
17592 # distribute this file as part of a program or library that is built
17593 # using GNU Libtool, you may include this file under the same
17594 # distribution terms that you use for the rest of that program.
17595 #
17596 # GNU Libtool is distributed in the hope that it will be useful, but
17597 # WITHOUT ANY WARRANTY; without even the implied warranty of
17598 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17599 # GNU General Public License for more details.
17600 #
17601 # You should have received a copy of the GNU General Public License
17602 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17603
17604
17605 # The names of the tagged configurations supported by this script.
17606 available_tags=''
17607
17608 # Configured defaults for sys_lib_dlsearch_path munging.
17609 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17610
17611 # ### BEGIN LIBTOOL CONFIG
17612
17613 # Which release of libtool.m4 was used?
17614 macro_version=$macro_version
17615 macro_revision=$macro_revision
17616
17617 # Whether or not to build shared libraries.
17618 build_libtool_libs=$enable_shared
17619
17620 # Whether or not to build static libraries.
17621 build_old_libs=$enable_static
17622
17623 # What type of objects to build.
17624 pic_mode=$pic_mode
17625
17626 # Whether or not to optimize for fast installation.
17627 fast_install=$enable_fast_install
17628
17629 # Shared archive member basename,for filename based shared library versioning on AIX.
17630 shared_archive_member_spec=$shared_archive_member_spec
17631
17632 # Shell to use when invoking shell scripts.
17633 SHELL=$lt_SHELL
17634
17635 # An echo program that protects backslashes.
17636 ECHO=$lt_ECHO
17637
17638 # The PATH separator for the build system.
17639 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17640
17641 # The host system.
17642 host_alias=$host_alias
17643 host=$host
17644 host_os=$host_os
17645
17646 # The build system.
17647 build_alias=$build_alias
17648 build=$build
17649 build_os=$build_os
17650
17651 # A sed program that does not truncate output.
17652 SED=$lt_SED
17653
17654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17655 Xsed="\$SED -e 1s/^X//"
17656
17657 # A grep program that handles long lines.
17658 GREP=$lt_GREP
17659
17660 # An ERE matcher.
17661 EGREP=$lt_EGREP
17662
17663 # A literal string matcher.
17664 FGREP=$lt_FGREP
17665
17666 # A BSD- or MS-compatible name lister.
17667 NM=$lt_NM
17668
17669 # Whether we need soft or hard links.
17670 LN_S=$lt_LN_S
17671
17672 # What is the maximum length of a command?
17673 max_cmd_len=$max_cmd_len
17674
17675 # Object file suffix (normally "o").
17676 objext=$ac_objext
17677
17678 # Executable file suffix (normally "").
17679 exeext=$exeext
17680
17681 # whether the shell understands "unset".
17682 lt_unset=$lt_unset
17683
17684 # turn spaces into newlines.
17685 SP2NL=$lt_lt_SP2NL
17686
17687 # turn newlines into spaces.
17688 NL2SP=$lt_lt_NL2SP
17689
17690 # convert \$build file names to \$host format.
17691 to_host_file_cmd=$lt_cv_to_host_file_cmd
17692
17693 # convert \$build files to toolchain format.
17694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17695
17696 # A file(cmd) program that detects file types.
17697 FILECMD=$lt_FILECMD
17698
17699 # An object symbol dumper.
17700 OBJDUMP=$lt_OBJDUMP
17701
17702 # Method to check whether dependent libraries are shared objects.
17703 deplibs_check_method=$lt_deplibs_check_method
17704
17705 # Command to use when deplibs_check_method = "file_magic".
17706 file_magic_cmd=$lt_file_magic_cmd
17707
17708 # How to find potential files when deplibs_check_method = "file_magic".
17709 file_magic_glob=$lt_file_magic_glob
17710
17711 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17712 want_nocaseglob=$lt_want_nocaseglob
17713
17714 # DLL creation program.
17715 DLLTOOL=$lt_DLLTOOL
17716
17717 # Command to associate shared and link libraries.
17718 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17719
17720 # The archiver.
17721 AR=$lt_AR
17722
17723 # Flags to create an archive (by configure).
17724 lt_ar_flags=$lt_ar_flags
17725
17726 # Flags to create an archive.
17727 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17728
17729 # How to feed a file listing to the archiver.
17730 archiver_list_spec=$lt_archiver_list_spec
17731
17732 # A symbol stripping program.
17733 STRIP=$lt_STRIP
17734
17735 # Commands used to install an old-style archive.
17736 RANLIB=$lt_RANLIB
17737 old_postinstall_cmds=$lt_old_postinstall_cmds
17738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17739
17740 # Whether to use a lock for old archive extraction.
17741 lock_old_archive_extraction=$lock_old_archive_extraction
17742
17743 # A C compiler.
17744 LTCC=$lt_CC
17745
17746 # LTCC compiler flags.
17747 LTCFLAGS=$lt_CFLAGS
17748
17749 # Take the output of nm and produce a listing of raw symbols and C names.
17750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17751
17752 # Transform the output of nm in a proper C declaration.
17753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17754
17755 # Transform the output of nm into a list of symbols to manually relocate.
17756 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17757
17758 # Transform the output of nm in a C name address pair.
17759 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17760
17761 # Transform the output of nm in a C name address pair when lib prefix is needed.
17762 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17763
17764 # The name lister interface.
17765 nm_interface=$lt_lt_cv_nm_interface
17766
17767 # Specify filename containing input files for \$NM.
17768 nm_file_list_spec=$lt_nm_file_list_spec
17769
17770 # The root where to search for dependent libraries,and where our libraries should be installed.
17771 lt_sysroot=$lt_sysroot
17772
17773 # Command to truncate a binary pipe.
17774 lt_truncate_bin=$lt_lt_cv_truncate_bin
17775
17776 # The name of the directory that contains temporary libtool files.
17777 objdir=$objdir
17778
17779 # Used to examine libraries when file_magic_cmd begins with "file".
17780 MAGIC_CMD=$MAGIC_CMD
17781
17782 # Must we lock files when doing compilation?
17783 need_locks=$lt_need_locks
17784
17785 # Manifest tool.
17786 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17787
17788 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17789 DSYMUTIL=$lt_DSYMUTIL
17790
17791 # Tool to change global to local symbols on Mac OS X.
17792 NMEDIT=$lt_NMEDIT
17793
17794 # Tool to manipulate fat objects and archives on Mac OS X.
17795 LIPO=$lt_LIPO
17796
17797 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17798 OTOOL=$lt_OTOOL
17799
17800 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17801 OTOOL64=$lt_OTOOL64
17802
17803 # Old archive suffix (normally "a").
17804 libext=$libext
17805
17806 # Shared library suffix (normally ".so").
17807 shrext_cmds=$lt_shrext_cmds
17808
17809 # The commands to extract the exported symbol list from a shared archive.
17810 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17811
17812 # Variables whose values should be saved in libtool wrapper scripts and
17813 # restored at link time.
17814 variables_saved_for_relink=$lt_variables_saved_for_relink
17815
17816 # Do we need the "lib" prefix for modules?
17817 need_lib_prefix=$need_lib_prefix
17818
17819 # Do we need a version for libraries?
17820 need_version=$need_version
17821
17822 # Library versioning type.
17823 version_type=$version_type
17824
17825 # Shared library runtime path variable.
17826 runpath_var=$runpath_var
17827
17828 # Shared library path variable.
17829 shlibpath_var=$shlibpath_var
17830
17831 # Is shlibpath searched before the hard-coded library search path?
17832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17833
17834 # Format of library name prefix.
17835 libname_spec=$lt_libname_spec
17836
17837 # List of archive names. First name is the real one, the rest are links.
17838 # The last name is the one that the linker finds with -lNAME
17839 library_names_spec=$lt_library_names_spec
17840
17841 # The coded name of the library, if different from the real name.
17842 soname_spec=$lt_soname_spec
17843
17844 # Permission mode override for installation of shared libraries.
17845 install_override_mode=$lt_install_override_mode
17846
17847 # Command to use after installation of a shared archive.
17848 postinstall_cmds=$lt_postinstall_cmds
17849
17850 # Command to use after uninstallation of a shared archive.
17851 postuninstall_cmds=$lt_postuninstall_cmds
17852
17853 # Commands used to finish a libtool library installation in a directory.
17854 finish_cmds=$lt_finish_cmds
17855
17856 # As "finish_cmds", except a single script fragment to be evaled but
17857 # not shown.
17858 finish_eval=$lt_finish_eval
17859
17860 # Whether we should hardcode library paths into libraries.
17861 hardcode_into_libs=$hardcode_into_libs
17862
17863 # Compile-time system search path for libraries.
17864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17865
17866 # Detected run-time system search path for libraries.
17867 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17868
17869 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17870 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17871
17872 # Whether dlopen is supported.
17873 dlopen_support=$enable_dlopen
17874
17875 # Whether dlopen of programs is supported.
17876 dlopen_self=$enable_dlopen_self
17877
17878 # Whether dlopen of statically linked programs is supported.
17879 dlopen_self_static=$enable_dlopen_self_static
17880
17881 # Commands to strip libraries.
17882 old_striplib=$lt_old_striplib
17883 striplib=$lt_striplib
17884
17885
17886 # The linker used to build libraries.
17887 LD=$lt_LD
17888
17889 # How to create reloadable object files.
17890 reload_flag=$lt_reload_flag
17891 reload_cmds=$lt_reload_cmds
17892
17893 # Commands used to build an old-style archive.
17894 old_archive_cmds=$lt_old_archive_cmds
17895
17896 # A language specific compiler.
17897 CC=$lt_compiler
17898
17899 # Is the compiler the GNU compiler?
17900 with_gcc=$GCC
17901
17902 # Compiler flag to turn off builtin functions.
17903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17904
17905 # Additional compiler flags for building library objects.
17906 pic_flag=$lt_lt_prog_compiler_pic
17907
17908 # How to pass a linker flag through the compiler.
17909 wl=$lt_lt_prog_compiler_wl
17910
17911 # Compiler flag to prevent dynamic linking.
17912 link_static_flag=$lt_lt_prog_compiler_static
17913
17914 # Does compiler simultaneously support -c and -o options?
17915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17916
17917 # Whether or not to add -lc for building shared libraries.
17918 build_libtool_need_lc=$archive_cmds_need_lc
17919
17920 # Whether or not to disallow shared libs when runtime libs are static.
17921 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17922
17923 # Compiler flag to allow reflexive dlopens.
17924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17925
17926 # Compiler flag to generate shared objects directly from archives.
17927 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17928
17929 # Whether the compiler copes with passing no objects directly.
17930 compiler_needs_object=$lt_compiler_needs_object
17931
17932 # Create an old-style archive from a shared archive.
17933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17934
17935 # Create a temporary old-style archive to link instead of a shared archive.
17936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17937
17938 # Commands used to build a shared archive.
17939 archive_cmds=$lt_archive_cmds
17940 archive_expsym_cmds=$lt_archive_expsym_cmds
17941
17942 # Commands used to build a loadable module if different from building
17943 # a shared archive.
17944 module_cmds=$lt_module_cmds
17945 module_expsym_cmds=$lt_module_expsym_cmds
17946
17947 # Whether we are building with GNU ld or not.
17948 with_gnu_ld=$lt_with_gnu_ld
17949
17950 # Flag that allows shared libraries with undefined symbols to be built.
17951 allow_undefined_flag=$lt_allow_undefined_flag
17952
17953 # Flag that enforces no undefined symbols.
17954 no_undefined_flag=$lt_no_undefined_flag
17955
17956 # Flag to hardcode \$libdir into a binary during linking.
17957 # This must work even if \$libdir does not exist
17958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17959
17960 # Whether we need a single "-rpath" flag with a separated argument.
17961 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17962
17963 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17964 # DIR into the resulting binary.
17965 hardcode_direct=$hardcode_direct
17966
17967 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17968 # DIR into the resulting binary and the resulting library dependency is
17969 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17970 # library is relocated.
17971 hardcode_direct_absolute=$hardcode_direct_absolute
17972
17973 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17974 # into the resulting binary.
17975 hardcode_minus_L=$hardcode_minus_L
17976
17977 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17978 # into the resulting binary.
17979 hardcode_shlibpath_var=$hardcode_shlibpath_var
17980
17981 # Set to "yes" if building a shared library automatically hardcodes DIR
17982 # into the library and all subsequent libraries and executables linked
17983 # against it.
17984 hardcode_automatic=$hardcode_automatic
17985
17986 # Set to yes if linker adds runtime paths of dependent libraries
17987 # to runtime path list.
17988 inherit_rpath=$inherit_rpath
17989
17990 # Whether libtool must link a program against all its dependency libraries.
17991 link_all_deplibs=$link_all_deplibs
17992
17993 # Set to "yes" if exported symbols are required.
17994 always_export_symbols=$always_export_symbols
17995
17996 # The commands to list exported symbols.
17997 export_symbols_cmds=$lt_export_symbols_cmds
17998
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms
18001
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms
18004
18005 # Commands necessary for linking programs (against libraries) with templates.
18006 prelink_cmds=$lt_prelink_cmds
18007
18008 # Commands necessary for finishing linking programs.
18009 postlink_cmds=$lt_postlink_cmds
18010
18011 # Specify filename containing input files.
18012 file_list_spec=$lt_file_list_spec
18013
18014 # How to hardcode a shared library path into an executable.
18015 hardcode_action=$hardcode_action
18016
18017 # ### END LIBTOOL CONFIG
18018
18019 _LT_EOF
18020
18021 cat <<'_LT_EOF' >> "$cfgfile"
18022
18023 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18024
18025 # func_munge_path_list VARIABLE PATH
18026 # -----------------------------------
18027 # VARIABLE is name of variable containing _space_ separated list of
18028 # directories to be munged by the contents of PATH, which is string
18029 # having a format:
18030 # "DIR[:DIR]:"
18031 # string "DIR[ DIR]" will be prepended to VARIABLE
18032 # ":DIR[:DIR]"
18033 # string "DIR[ DIR]" will be appended to VARIABLE
18034 # "DIRP[:DIRP]::[DIRA:]DIRA"
18035 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18036 # "DIRA[ DIRA]" will be appended to VARIABLE
18037 # "DIR[:DIR]"
18038 # VARIABLE will be replaced by "DIR[ DIR]"
18039 func_munge_path_list ()
18040 {
18041 case x$2 in
18042 x)
18043 ;;
18044 *:)
18045 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18046 ;;
18047 x:*)
18048 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18049 ;;
18050 *::*)
18051 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18052 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18053 ;;
18054 *)
18055 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18056 ;;
18057 esac
18058 }
18059
18060
18061 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18062 func_cc_basename ()
18063 {
18064 for cc_temp in $*""; do
18065 case $cc_temp in
18066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18068 \-*) ;;
18069 *) break;;
18070 esac
18071 done
18072 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18073 }
18074
18075
18076 # ### END FUNCTIONS SHARED WITH CONFIGURE
18077
18078 _LT_EOF
18079
18080 case $host_os in
18081 aix3*)
18082 cat <<\_LT_EOF >> "$cfgfile"
18083 # AIX sometimes has problems with the GCC collect2 program. For some
18084 # reason, if we set the COLLECT_NAMES environment variable, the problems
18085 # vanish in a puff of smoke.
18086 if test set != "${COLLECT_NAMES+set}"; then
18087 COLLECT_NAMES=
18088 export COLLECT_NAMES
18089 fi
18090 _LT_EOF
18091 ;;
18092 esac
18093
18094
18095
18096 ltmain=$ac_aux_dir/ltmain.sh
18097
18098
18099 # We use sed instead of cat because bash on DJGPP gets confused if
18100 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18101 # text mode, it properly converts lines to CR/LF. This bash problem
18102 # is reportedly fixed, but why not run on old versions too?
18103 $SED '$q' "$ltmain" >> "$cfgfile" \
18104 || (rm -f "$cfgfile"; exit 1)
18105
18106 mv -f "$cfgfile" "$ofile" ||
18107 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18108 chmod +x "$ofile"
18109
18110 ;;
18111
18112 esac
18113 done # for ac_tag
18114
18115
18116 as_fn_exit 0
18117 _ACEOF
18118 ac_clean_files=$ac_clean_files_save
18119
18120 test $ac_write_fail = 0 ||
18121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18122
18123
18124 # configure is writing to config.log, and then calls config.status.
18125 # config.status does its own redirection, appending to config.log.
18126 # Unfortunately, on DOS this fails, as config.log is still kept open
18127 # by configure, so config.status won't be able to write to it; its
18128 # output is simply discarded. So we exec the FD to /dev/null,
18129 # effectively closing config.log, so it can be properly (re)opened and
18130 # appended to by config.status. When coming back to configure, we
18131 # need to make the FD available again.
18132 if test "$no_create" != yes; then
18133 ac_cs_success=:
18134 ac_config_status_args=
18135 test "$silent" = yes &&
18136 ac_config_status_args="$ac_config_status_args --quiet"
18137 exec 5>/dev/null
18138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18139 exec 5>>config.log
18140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18141 # would make configure fail if this is the last instruction.
18142 $ac_cs_success || as_fn_exit 1
18143 fi
18144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18146 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18147 fi
18148
18149