Debian Codegraph @

cextern/healpix/src/common_libraries/libsharp/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libsharp 1.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libsharp'
613 PACKAGE_TARNAME='libsharp'
614 PACKAGE_VERSION='1.0.0'
615 PACKAGE_STRING='libsharp 1.0.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 AM_LDFLAGS
656 AM_CFLAGS
657 pkgconfig_libfile
658 pkgconfig_libdir
659 HAVE_MULTIARCH_FALSE
660 HAVE_MULTIARCH_TRUE
661 OPENMP_CFLAGS
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 DLLTOOL
671 OBJDUMP
672 FILECMD
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 ac_ct_AR
708 AR
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 am__xargs_n
713 am__rm_f_notfound
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 CSCOPE
719 ETAGS
720 CTAGS
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 runstatedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL
783 am__quote'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_maintainer_mode
789 enable_dependency_tracking
790 enable_shared
791 enable_static
792 enable_pic
793 with_pic
794 enable_fast_install
795 enable_aix_soname
796 with_aix_soname
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 enable_openmp
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 LT_SYS_LIBRARY_PATH'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 runstatedir='${localstatedir}/run'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
907
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: '$ac_useropt'"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
940
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: '$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -runstatedir | --runstatedir | --runstatedi | --runstated \
1101 | --runstate | --runstat | --runsta | --runst | --runs \
1102 | --run | --ru | --r)
1103 ac_prev=runstatedir ;;
1104 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106 | --run=* | --ru=* | --r=*)
1107 runstatedir=$ac_optarg ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: '$ac_useropt'"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: '$ac_useropt'"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: '$ac_option'
1205 Try '$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir runstatedir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: '$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 printf "%s\n" X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 'configure' configures libsharp 1.0.0 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print 'checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for '--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or '..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, 'make install' will install all the files in
1386 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than '$ac_default_prefix' using '--prefix',
1388 for instance '--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libsharp]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libsharp 1.0.0:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --disable-maintainer-mode
1441 disable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --enable-aix-soname=aix|svr4|both
1454 shared library versioning (aka "SONAME") variant to
1455 provide on AIX, [default=aix].
1456 --disable-libtool-lock avoid locking (might break parallel builds)
1457 --disable-openmp do not use OpenMP
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1464 compiler's sysroot if not specified).
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 LT_SYS_LIBRARY_PATH
1475 User-defined run-time library search path.
1476
1477 Use these variables to override the choices made by 'configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for configure.gnu first; this name is used for a wrapper for
1527 # Metaconfig's "Configure" on case-insensitive file systems.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 libsharp configure 1.0.0
1545 generated by GNU Autoconf 2.72
1546
1547 Copyright (C) 2023 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest.beam
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 printf "%s\n" "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext
1584 then :
1585 ac_retval=0
1586 else case e in #(
1587 e) printf "%s\n" "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1 ;;
1591 esac
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 printf "%s\n" "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 test -x conftest$ac_exeext
1626 }
1627 then :
1628 ac_retval=0
1629 else case e in #(
1630 e) printf "%s\n" "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1 ;;
1634 esac
1635 fi
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_link
1645
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists and can be compiled using the include files in
1649 # INCLUDES, setting the cache variable VAR accordingly.
1650 ac_fn_c_check_header_compile ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 printf %s "checking for $2... " >&6; }
1655 if eval test \${$3+y}
1656 then :
1657 printf %s "(cached) " >&6
1658 else case e in #(
1659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"
1665 then :
1666 eval "$3=yes"
1667 else case e in #(
1668 e) eval "$3=no" ;;
1669 esac
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1672 esac
1673 fi
1674 eval ac_res=\$$3
1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 printf "%s\n" "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_header_compile
1680
1681 # ac_fn_c_check_func LINENO FUNC VAR
1682 # ----------------------------------
1683 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1684 ac_fn_c_check_func ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else case e in #(
1693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1697 #define $2 innocuous_$2
1698
1699 /* System header to define __stub macros and hopefully few prototypes,
1700 which can conflict with char $2 (void); below. */
1701
1702 #include <limits.h>
1703 #undef $2
1704
1705 /* Override any GCC internal prototype to avoid an error.
1706 Use char because int might match the return type of a GCC
1707 builtin and then its argument prototype would still apply. */
1708 #ifdef __cplusplus
1709 extern "C"
1710 #endif
1711 char $2 (void);
1712 /* The GNU C library defines this for functions which it implements
1713 to always fail with ENOSYS. Some functions are actually named
1714 something starting with __ and the normal name is an alias. */
1715 #if defined __stub_$2 || defined __stub___$2
1716 choke me
1717 #endif
1718
1719 int
1720 main (void)
1721 {
1722 return $2 ();
1723 ;
1724 return 0;
1725 }
1726 _ACEOF
1727 if ac_fn_c_try_link "$LINENO"
1728 then :
1729 eval "$3=yes"
1730 else case e in #(
1731 e) eval "$3=no" ;;
1732 esac
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1735 conftest$ac_exeext conftest.$ac_ext ;;
1736 esac
1737 fi
1738 eval ac_res=\$$3
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 printf "%s\n" "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_func
1744 ac_configure_args_raw=
1745 for ac_arg
1746 do
1747 case $ac_arg in
1748 *\'*)
1749 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 as_fn_append ac_configure_args_raw " '$ac_arg'"
1752 done
1753
1754 case $ac_configure_args_raw in
1755 *$as_nl*)
1756 ac_safe_unquote= ;;
1757 *)
1758 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1759 ac_unsafe_a="$ac_unsafe_z#~"
1760 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1761 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1762 esac
1763
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1767
1768 It was created by libsharp $as_me 1.0.0, which was
1769 generated by GNU Autoconf 2.72. Invocation command line was
1770
1771 $ $0$ac_configure_args_raw
1772
1773 _ACEOF
1774 exec 5>>config.log
1775 {
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1780
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789
1790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1797
1798 _ASUNAME
1799
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 case $as_dir in #(((
1805 '') as_dir=./ ;;
1806 */) ;;
1807 *) as_dir=$as_dir/ ;;
1808 esac
1809 printf "%s\n" "PATH: $as_dir"
1810 done
1811 IFS=$as_save_IFS
1812
1813 } >&5
1814
1815 cat >&5 <<_ACEOF
1816
1817
1818 ## ----------- ##
1819 ## Core tests. ##
1820 ## ----------- ##
1821
1822 _ACEOF
1823
1824
1825 # Keep a trace of the command line.
1826 # Strip out --no-create and --no-recursion so they do not pile up.
1827 # Strip out --silent because we don't want to record it for future runs.
1828 # Also quote any args containing shell meta-characters.
1829 # Make two passes to allow for proper duplicate-argument suppression.
1830 ac_configure_args=
1831 ac_configure_args0=
1832 ac_configure_args1=
1833 ac_must_keep_next=false
1834 for ac_pass in 1 2
1835 do
1836 for ac_arg
1837 do
1838 case $ac_arg in
1839 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1841 | -silent | --silent | --silen | --sile | --sil)
1842 continue ;;
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 case $ac_pass in
1847 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1848 2)
1849 as_fn_append ac_configure_args1 " '$ac_arg'"
1850 if test $ac_must_keep_next = true; then
1851 ac_must_keep_next=false # Got value, back to normal.
1852 else
1853 case $ac_arg in
1854 *=* | --config-cache | -C | -disable-* | --disable-* \
1855 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1856 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1857 | -with-* | --with-* | -without-* | --without-* | --x)
1858 case "$ac_configure_args0 " in
1859 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1860 esac
1861 ;;
1862 -* ) ac_must_keep_next=true ;;
1863 esac
1864 fi
1865 as_fn_append ac_configure_args " '$ac_arg'"
1866 ;;
1867 esac
1868 done
1869 done
1870 { ac_configure_args0=; unset ac_configure_args0;}
1871 { ac_configure_args1=; unset ac_configure_args1;}
1872
1873 # When interrupted or exit'd, cleanup temporary files, and complete
1874 # config.log. We remove comments because anyway the quotes in there
1875 # would cause problems or look ugly.
1876 # WARNING: Use '\'' to represent an apostrophe within the trap.
1877 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1878 trap 'exit_status=$?
1879 # Sanitize IFS.
1880 IFS=" "" $as_nl"
1881 # Save into config.log some information that might help in debugging.
1882 {
1883 echo
1884
1885 printf "%s\n" "## ---------------- ##
1886 ## Cache variables. ##
1887 ## ---------------- ##"
1888 echo
1889 # The following way of writing the cache mishandles newlines in values,
1890 (
1891 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in #(
1894 *${as_nl}*)
1895 case $ac_var in #(
1896 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1897 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1898 esac
1899 case $ac_var in #(
1900 _ | IFS | as_nl) ;; #(
1901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1902 *) { eval $ac_var=; unset $ac_var;} ;;
1903 esac ;;
1904 esac
1905 done
1906 (set) 2>&1 |
1907 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1908 *${as_nl}ac_space=\ *)
1909 sed -n \
1910 "s/'\''/'\''\\\\'\'''\''/g;
1911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1912 ;; #(
1913 *)
1914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1915 ;;
1916 esac |
1917 sort
1918 )
1919 echo
1920
1921 printf "%s\n" "## ----------------- ##
1922 ## Output variables. ##
1923 ## ----------------- ##"
1924 echo
1925 for ac_var in $ac_subst_vars
1926 do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 printf "%s\n" "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1934
1935 if test -n "$ac_subst_files"; then
1936 printf "%s\n" "## ------------------- ##
1937 ## File substitutions. ##
1938 ## ------------------- ##"
1939 echo
1940 for ac_var in $ac_subst_files
1941 do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 printf "%s\n" "$ac_var='\''$ac_val'\''"
1947 done | sort
1948 echo
1949 fi
1950
1951 if test -s confdefs.h; then
1952 printf "%s\n" "## ----------- ##
1953 ## confdefs.h. ##
1954 ## ----------- ##"
1955 echo
1956 cat confdefs.h
1957 echo
1958 fi
1959 test "$ac_signal" != 0 &&
1960 printf "%s\n" "$as_me: caught signal $ac_signal"
1961 printf "%s\n" "$as_me: exit $exit_status"
1962 } >&5
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965 exit $exit_status
1966 ' 0
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1969 done
1970 ac_signal=0
1971
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1974
1975 printf "%s\n" "/* confdefs.h */" > confdefs.h
1976
1977 # Predefined preprocessor variables.
1978
1979 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1980
1981 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1982
1983 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1984
1985 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1986
1987 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1988
1989 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1990
1991
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1994 if test -n "$CONFIG_SITE"; then
1995 ac_site_files="$CONFIG_SITE"
1996 elif test "x$prefix" != xNONE; then
1997 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1998 else
1999 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2000 fi
2001
2002 for ac_site_file in $ac_site_files
2003 do
2004 case $ac_site_file in #(
2005 */*) :
2006 ;; #(
2007 *) :
2008 ac_site_file=./$ac_site_file ;;
2009 esac
2010 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2013 sed 's/^/| /' "$ac_site_file" >&5
2014 . "$ac_site_file" \
2015 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2016 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2017 as_fn_error $? "failed to load site script $ac_site_file
2018 See 'config.log' for more details" "$LINENO" 5; }
2019 fi
2020 done
2021
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special files
2024 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2025 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033 else
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037 fi
2038
2039 # Test code for whether the C compiler supports C89 (global declarations)
2040 ac_c_conftest_c89_globals='
2041 /* Does the compiler advertise C89 conformance?
2042 Do not test the value of __STDC__, because some compilers set it to 0
2043 while being otherwise adequately conformant. */
2044 #if !defined __STDC__
2045 # error "Compiler does not advertise C89 conformance"
2046 #endif
2047
2048 #include <stddef.h>
2049 #include <stdarg.h>
2050 struct stat;
2051 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2052 struct buf { int x; };
2053 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (char **p, int i)
2055 {
2056 return p[i];
2057 }
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2059 {
2060 char *s;
2061 va_list v;
2062 va_start (v,p);
2063 s = g (p, va_arg (v,int));
2064 va_end (v);
2065 return s;
2066 }
2067
2068 /* C89 style stringification. */
2069 #define noexpand_stringify(a) #a
2070 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2071
2072 /* C89 style token pasting. Exercises some of the corner cases that
2073 e.g. old MSVC gets wrong, but not very hard. */
2074 #define noexpand_concat(a,b) a##b
2075 #define expand_concat(a,b) noexpand_concat(a,b)
2076 extern int vA;
2077 extern int vbee;
2078 #define aye A
2079 #define bee B
2080 int *pvA = &expand_concat(v,aye);
2081 int *pvbee = &noexpand_concat(v,bee);
2082
2083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2084 function prototypes and stuff, but not \xHH hex character constants.
2085 These do not provoke an error unfortunately, instead are silently treated
2086 as an "x". The following induces an error, until -std is added to get
2087 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2088 array size at least. It is necessary to write \x00 == 0 to get something
2089 that is true only with -std. */
2090 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2091
2092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2093 inside strings and character constants. */
2094 #define FOO(x) '\''x'\''
2095 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2096
2097 int test (int i, double x);
2098 struct s1 {int (*f) (int a);};
2099 struct s2 {int (*f) (double a);};
2100 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2101 int, int);'
2102
2103 # Test code for whether the C compiler supports C89 (body of main).
2104 ac_c_conftest_c89_main='
2105 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2106 '
2107
2108 # Test code for whether the C compiler supports C99 (global declarations)
2109 ac_c_conftest_c99_globals='
2110 /* Does the compiler advertise C99 conformance? */
2111 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2112 # error "Compiler does not advertise C99 conformance"
2113 #endif
2114
2115 // See if C++-style comments work.
2116
2117 #include <stdbool.h>
2118 extern int puts (const char *);
2119 extern int printf (const char *, ...);
2120 extern int dprintf (int, const char *, ...);
2121 extern void *malloc (size_t);
2122 extern void free (void *);
2123
2124 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2125 // dprintf is used instead of fprintf to avoid needing to declare
2126 // FILE and stderr.
2127 #define debug(...) dprintf (2, __VA_ARGS__)
2128 #define showlist(...) puts (#__VA_ARGS__)
2129 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2130 static void
2131 test_varargs_macros (void)
2132 {
2133 int x = 1234;
2134 int y = 5678;
2135 debug ("Flag");
2136 debug ("X = %d\n", x);
2137 showlist (The first, second, and third items.);
2138 report (x>y, "x is %d but y is %d", x, y);
2139 }
2140
2141 // Check long long types.
2142 #define BIG64 18446744073709551615ull
2143 #define BIG32 4294967295ul
2144 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2145 #if !BIG_OK
2146 #error "your preprocessor is broken"
2147 #endif
2148 #if BIG_OK
2149 #else
2150 #error "your preprocessor is broken"
2151 #endif
2152 static long long int bignum = -9223372036854775807LL;
2153 static unsigned long long int ubignum = BIG64;
2154
2155 struct incomplete_array
2156 {
2157 int datasize;
2158 double data[];
2159 };
2160
2161 struct named_init {
2162 int number;
2163 const wchar_t *name;
2164 double average;
2165 };
2166
2167 typedef const char *ccp;
2168
2169 static inline int
2170 test_restrict (ccp restrict text)
2171 {
2172 // Iterate through items via the restricted pointer.
2173 // Also check for declarations in for loops.
2174 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2175 continue;
2176 return 0;
2177 }
2178
2179 // Check varargs and va_copy.
2180 static bool
2181 test_varargs (const char *format, ...)
2182 {
2183 va_list args;
2184 va_start (args, format);
2185 va_list args_copy;
2186 va_copy (args_copy, args);
2187
2188 const char *str = "";
2189 int number = 0;
2190 float fnumber = 0;
2191
2192 while (*format)
2193 {
2194 switch (*format++)
2195 {
2196 case '\''s'\'': // string
2197 str = va_arg (args_copy, const char *);
2198 break;
2199 case '\''d'\'': // int
2200 number = va_arg (args_copy, int);
2201 break;
2202 case '\''f'\'': // float
2203 fnumber = va_arg (args_copy, double);
2204 break;
2205 default:
2206 break;
2207 }
2208 }
2209 va_end (args_copy);
2210 va_end (args);
2211
2212 return *str && number && fnumber;
2213 }
2214 '
2215
2216 # Test code for whether the C compiler supports C99 (body of main).
2217 ac_c_conftest_c99_main='
2218 // Check bool.
2219 _Bool success = false;
2220 success |= (argc != 0);
2221
2222 // Check restrict.
2223 if (test_restrict ("String literal") == 0)
2224 success = true;
2225 char *restrict newvar = "Another string";
2226
2227 // Check varargs.
2228 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2229 test_varargs_macros ();
2230
2231 // Check flexible array members.
2232 struct incomplete_array *ia =
2233 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2234 ia->datasize = 10;
2235 for (int i = 0; i < ia->datasize; ++i)
2236 ia->data[i] = i * 1.234;
2237 // Work around memory leak warnings.
2238 free (ia);
2239
2240 // Check named initializers.
2241 struct named_init ni = {
2242 .number = 34,
2243 .name = L"Test wide string",
2244 .average = 543.34343,
2245 };
2246
2247 ni.number = 58;
2248
2249 int dynamic_array[ni.number];
2250 dynamic_array[0] = argv[0][0];
2251 dynamic_array[ni.number - 1] = 543;
2252
2253 // work around unused variable warnings
2254 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2255 || dynamic_array[ni.number - 1] != 543);
2256 '
2257
2258 # Test code for whether the C compiler supports C11 (global declarations)
2259 ac_c_conftest_c11_globals='
2260 /* Does the compiler advertise C11 conformance? */
2261 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2262 # error "Compiler does not advertise C11 conformance"
2263 #endif
2264
2265 // Check _Alignas.
2266 char _Alignas (double) aligned_as_double;
2267 char _Alignas (0) no_special_alignment;
2268 extern char aligned_as_int;
2269 char _Alignas (0) _Alignas (int) aligned_as_int;
2270
2271 // Check _Alignof.
2272 enum
2273 {
2274 int_alignment = _Alignof (int),
2275 int_array_alignment = _Alignof (int[100]),
2276 char_alignment = _Alignof (char)
2277 };
2278 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2279
2280 // Check _Noreturn.
2281 int _Noreturn does_not_return (void) { for (;;) continue; }
2282
2283 // Check _Static_assert.
2284 struct test_static_assert
2285 {
2286 int x;
2287 _Static_assert (sizeof (int) <= sizeof (long int),
2288 "_Static_assert does not work in struct");
2289 long int y;
2290 };
2291
2292 // Check UTF-8 literals.
2293 #define u8 syntax error!
2294 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2295
2296 // Check duplicate typedefs.
2297 typedef long *long_ptr;
2298 typedef long int *long_ptr;
2299 typedef long_ptr long_ptr;
2300
2301 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2302 struct anonymous
2303 {
2304 union {
2305 struct { int i; int j; };
2306 struct { int k; long int l; } w;
2307 };
2308 int m;
2309 } v1;
2310 '
2311
2312 # Test code for whether the C compiler supports C11 (body of main).
2313 ac_c_conftest_c11_main='
2314 _Static_assert ((offsetof (struct anonymous, i)
2315 == offsetof (struct anonymous, w.k)),
2316 "Anonymous union alignment botch");
2317 v1.i = 2;
2318 v1.w.k = 5;
2319 ok |= v1.i != 5;
2320 '
2321
2322 # Test code for whether the C compiler supports C11 (complete).
2323 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2324 ${ac_c_conftest_c99_globals}
2325 ${ac_c_conftest_c11_globals}
2326
2327 int
2328 main (int argc, char **argv)
2329 {
2330 int ok = 0;
2331 ${ac_c_conftest_c89_main}
2332 ${ac_c_conftest_c99_main}
2333 ${ac_c_conftest_c11_main}
2334 return ok;
2335 }
2336 "
2337
2338 # Test code for whether the C compiler supports C99 (complete).
2339 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2340 ${ac_c_conftest_c99_globals}
2341
2342 int
2343 main (int argc, char **argv)
2344 {
2345 int ok = 0;
2346 ${ac_c_conftest_c89_main}
2347 ${ac_c_conftest_c99_main}
2348 return ok;
2349 }
2350 "
2351
2352 # Test code for whether the C compiler supports C89 (complete).
2353 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2354
2355 int
2356 main (int argc, char **argv)
2357 {
2358 int ok = 0;
2359 ${ac_c_conftest_c89_main}
2360 return ok;
2361 }
2362 "
2363
2364 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2365 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2366 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2367 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2368 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2369 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2370 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2371 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2372 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2373
2374 # Auxiliary files required by this configure script.
2375 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2376
2377 # Locations in which to look for auxiliary files.
2378 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2379
2380 # Search for a directory containing all of the required auxiliary files,
2381 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2382 # If we don't find one directory that contains all the files we need,
2383 # we report the set of missing files from the *first* directory in
2384 # $ac_aux_dir_candidates and give up.
2385 ac_missing_aux_files=""
2386 ac_first_candidate=:
2387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 as_found=false
2390 for as_dir in $ac_aux_dir_candidates
2391 do
2392 IFS=$as_save_IFS
2393 case $as_dir in #(((
2394 '') as_dir=./ ;;
2395 */) ;;
2396 *) as_dir=$as_dir/ ;;
2397 esac
2398 as_found=:
2399
2400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2401 ac_aux_dir_found=yes
2402 ac_install_sh=
2403 for ac_aux in $ac_aux_files
2404 do
2405 # As a special case, if "install-sh" is required, that requirement
2406 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2407 # and $ac_install_sh is set appropriately for whichever one is found.
2408 if test x"$ac_aux" = x"install-sh"
2409 then
2410 if test -f "${as_dir}install-sh"; then
2411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2412 ac_install_sh="${as_dir}install-sh -c"
2413 elif test -f "${as_dir}install.sh"; then
2414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2415 ac_install_sh="${as_dir}install.sh -c"
2416 elif test -f "${as_dir}shtool"; then
2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2418 ac_install_sh="${as_dir}shtool install -c"
2419 else
2420 ac_aux_dir_found=no
2421 if $ac_first_candidate; then
2422 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2423 else
2424 break
2425 fi
2426 fi
2427 else
2428 if test -f "${as_dir}${ac_aux}"; then
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2430 else
2431 ac_aux_dir_found=no
2432 if $ac_first_candidate; then
2433 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2434 else
2435 break
2436 fi
2437 fi
2438 fi
2439 done
2440 if test "$ac_aux_dir_found" = yes; then
2441 ac_aux_dir="$as_dir"
2442 break
2443 fi
2444 ac_first_candidate=false
2445
2446 as_found=false
2447 done
2448 IFS=$as_save_IFS
2449 if $as_found
2450 then :
2451
2452 else case e in #(
2453 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2454 esac
2455 fi
2456
2457
2458 # These three variables are undocumented and unsupported,
2459 # and are intended to be withdrawn in a future Autoconf release.
2460 # They can cause serious problems if a builder's source tree is in a directory
2461 # whose full name contains unusual characters.
2462 if test -f "${ac_aux_dir}config.guess"; then
2463 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2464 fi
2465 if test -f "${ac_aux_dir}config.sub"; then
2466 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2467 fi
2468 if test -f "$ac_aux_dir/configure"; then
2469 ac_configure="$SHELL ${ac_aux_dir}configure"
2470 fi
2471
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2483 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2487 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2497 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2501 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2505 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2507 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2520 fi
2521 done
2522 if $ac_cache_corrupted; then
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2524 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2528 and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541 am__api_version='1.17'
2542
2543
2544
2545 # Find a good install program. We prefer a C program (faster),
2546 # so one script is as good as another. But avoid the broken or
2547 # incompatible versions:
2548 # SysV /etc/install, /usr/sbin/install
2549 # SunOS /usr/etc/install
2550 # IRIX /sbin/install
2551 # AIX /bin/install
2552 # AmigaOS /C/install, which installs bootblocks on floppy discs
2553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556 # OS/2's system install, which has a completely different semantic
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 # Reject install programs that cannot install multiple files.
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2560 printf %s "checking for a BSD-compatible install... " >&6; }
2561 if test -z "$INSTALL"; then
2562 if test ${ac_cv_path_install+y}
2563 then :
2564 printf %s "(cached) " >&6
2565 else case e in #(
2566 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 case $as_dir in #(((
2571 '') as_dir=./ ;;
2572 */) ;;
2573 *) as_dir=$as_dir/ ;;
2574 esac
2575 # Account for fact that we put trailing slashes in our PATH walk.
2576 case $as_dir in #((
2577 ./ | /[cC]/* | \
2578 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2579 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2580 /usr/ucb/* ) ;;
2581 *)
2582 # OSF1 and SCO ODT 3.0 have their own names for install.
2583 # Don't use installbsd from OSF since it installs stuff as root
2584 # by default.
2585 for ac_prog in ginstall scoinst install; do
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2588 if test $ac_prog = install &&
2589 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # AIX install. It has an incompatible calling convention.
2591 :
2592 elif test $ac_prog = install &&
2593 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2594 # program-specific install script used by HP pwplus--don't use.
2595 :
2596 else
2597 rm -rf conftest.one conftest.two conftest.dir
2598 echo one > conftest.one
2599 echo two > conftest.two
2600 mkdir conftest.dir
2601 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2602 test -s conftest.one && test -s conftest.two &&
2603 test -s conftest.dir/conftest.one &&
2604 test -s conftest.dir/conftest.two
2605 then
2606 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2607 break 3
2608 fi
2609 fi
2610 fi
2611 done
2612 done
2613 ;;
2614 esac
2615
2616 done
2617 IFS=$as_save_IFS
2618
2619 rm -rf conftest.one conftest.two conftest.dir
2620 ;;
2621 esac
2622 fi
2623 if test ${ac_cv_path_install+y}; then
2624 INSTALL=$ac_cv_path_install
2625 else
2626 # As a last resort, use the slow shell script. Don't cache a
2627 # value for INSTALL within a source directory, because that will
2628 # break other packages using the cache if that directory is
2629 # removed, or if the value is a relative name.
2630 INSTALL=$ac_install_sh
2631 fi
2632 fi
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2634 printf "%s\n" "$INSTALL" >&6; }
2635
2636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2637 # It thinks the first close brace ends the variable substitution.
2638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2639
2640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2641
2642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2643
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2645 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2646 if test ${am_cv_sleep_fractional_seconds+y}
2647 then :
2648 printf %s "(cached) " >&6
2649 else case e in #(
2650 e) if sleep 0.001 2>/dev/null
2651 then :
2652 am_cv_sleep_fractional_seconds=yes
2653 else case e in #(
2654 e) am_cv_sleep_fractional_seconds=no ;;
2655 esac
2656 fi
2657 ;;
2658 esac
2659 fi
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2661 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2662
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2664 printf %s "checking filesystem timestamp resolution... " >&6; }
2665 if test ${am_cv_filesystem_timestamp_resolution+y}
2666 then :
2667 printf %s "(cached) " >&6
2668 else case e in #(
2669 e) # Default to the worst case.
2670 am_cv_filesystem_timestamp_resolution=2
2671
2672 # Only try to go finer than 1 sec if sleep can do it.
2673 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2674 # - 1 sec is not much of a win compared to 2 sec, and
2675 # - it takes 2 seconds to perform the test whether 1 sec works.
2676 #
2677 # Instead, just use the default 2s on platforms that have 1s resolution,
2678 # accept the extra 1s delay when using $sleep in the Automake tests, in
2679 # exchange for not incurring the 2s delay for running the test for all
2680 # packages.
2681 #
2682 am_try_resolutions=
2683 if test "$am_cv_sleep_fractional_seconds" = yes; then
2684 # Even a millisecond often causes a bunch of false positives,
2685 # so just try a hundredth of a second. The time saved between .001 and
2686 # .01 is not terribly consequential.
2687 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2688 fi
2689
2690 # In order to catch current-generation FAT out, we must *modify* files
2691 # that already exist; the *creation* timestamp is finer. Use names
2692 # that make ls -t sort them differently when they have equal
2693 # timestamps than when they have distinct timestamps, keeping
2694 # in mind that ls -t prints the *newest* file first.
2695 rm -f conftest.ts?
2696 : > conftest.ts1
2697 : > conftest.ts2
2698 : > conftest.ts3
2699
2700 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2701 # clobber the current shell's arguments. (Outer-level square brackets
2702 # are removed by m4; they're present so that m4 does not expand
2703 # <dollar><star>; be careful, easy to get confused.)
2704 if (
2705 set X `ls -t conftest.ts[12]` &&
2706 {
2707 test "$*" != "X conftest.ts1 conftest.ts2" ||
2708 test "$*" != "X conftest.ts2 conftest.ts1";
2709 }
2710 ); then :; else
2711 # If neither matched, then we have a broken ls. This can happen
2712 # if, for instance, CONFIG_SHELL is bash and it inherits a
2713 # broken ls alias from the environment. This has actually
2714 # happened. Such a system could not be considered "sane".
2715 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2717 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2718 as_fn_error $? "ls -t produces unexpected output.
2719 Make sure there is not a broken ls alias in your environment.
2720 See 'config.log' for more details" "$LINENO" 5; }
2721 fi
2722
2723 for am_try_res in $am_try_resolutions; do
2724 # Any one fine-grained sleep might happen to cross the boundary
2725 # between two values of a coarser actual resolution, but if we do
2726 # two fine-grained sleeps in a row, at least one of them will fall
2727 # entirely within a coarse interval.
2728 echo alpha > conftest.ts1
2729 sleep $am_try_res
2730 echo beta > conftest.ts2
2731 sleep $am_try_res
2732 echo gamma > conftest.ts3
2733
2734 # We assume that 'ls -t' will make use of high-resolution
2735 # timestamps if the operating system supports them at all.
2736 if (set X `ls -t conftest.ts?` &&
2737 test "$2" = conftest.ts3 &&
2738 test "$3" = conftest.ts2 &&
2739 test "$4" = conftest.ts1); then
2740 #
2741 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2742 # because we don't need to test make.
2743 make_ok=true
2744 if test $am_try_res != 1; then
2745 # But if we've succeeded so far with a subsecond resolution, we
2746 # have one more thing to check: make. It can happen that
2747 # everything else supports the subsecond mtimes, but make doesn't;
2748 # notably on macOS, which ships make 3.81 from 2006 (the last one
2749 # released under GPLv2). https://bugs.gnu.org/68808
2750 #
2751 # We test $MAKE if it is defined in the environment, else "make".
2752 # It might get overridden later, but our hope is that in practice
2753 # it does not matter: it is the system "make" which is (by far)
2754 # the most likely to be broken, whereas if the user overrides it,
2755 # probably they did so with a better, or at least not worse, make.
2756 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2757 #
2758 # Create a Makefile (real tab character here):
2759 rm -f conftest.mk
2760 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2761 echo ' touch conftest.ts2' >>conftest.mk
2762 #
2763 # Now, running
2764 # touch conftest.ts1; touch conftest.ts2; make
2765 # should touch ts1 because ts2 is newer. This could happen by luck,
2766 # but most often, it will fail if make's support is insufficient. So
2767 # test for several consecutive successes.
2768 #
2769 # (We reuse conftest.ts[12] because we still want to modify existing
2770 # files, not create new ones, per above.)
2771 n=0
2772 make=${MAKE-make}
2773 until test $n -eq 3; do
2774 echo one > conftest.ts1
2775 sleep $am_try_res
2776 echo two > conftest.ts2 # ts2 should now be newer than ts1
2777 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2778 make_ok=false
2779 break # out of $n loop
2780 fi
2781 n=`expr $n + 1`
2782 done
2783 fi
2784 #
2785 if $make_ok; then
2786 # Everything we know to check worked out, so call this resolution good.
2787 am_cv_filesystem_timestamp_resolution=$am_try_res
2788 break # out of $am_try_res loop
2789 fi
2790 # Otherwise, we'll go on to check the next resolution.
2791 fi
2792 done
2793 rm -f conftest.ts?
2794 # (end _am_filesystem_timestamp_resolution)
2795 ;;
2796 esac
2797 fi
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2799 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2800
2801 # This check should not be cached, as it may vary across builds of
2802 # different projects.
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2804 printf %s "checking whether build environment is sane... " >&6; }
2805 # Reject unsafe characters in $srcdir or the absolute working directory
2806 # name. Accept space and tab only in the latter.
2807 am_lf='
2808 '
2809 case `pwd` in
2810 *[\\\"\#\$\&\'\`$am_lf]*)
2811 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2812 esac
2813 case $srcdir in
2814 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2815 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2816 esac
2817
2818 # Do 'set' in a subshell so we don't clobber the current shell's
2819 # arguments. Must try -L first in case configure is actually a
2820 # symlink; some systems play weird games with the mod time of symlinks
2821 # (eg FreeBSD returns the mod time of the symlink's containing
2822 # directory).
2823 am_build_env_is_sane=no
2824 am_has_slept=no
2825 rm -f conftest.file
2826 for am_try in 1 2; do
2827 echo "timestamp, slept: $am_has_slept" > conftest.file
2828 if (
2829 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2830 if test "$*" = "X"; then
2831 # -L didn't work.
2832 set X `ls -t "$srcdir/configure" conftest.file`
2833 fi
2834 test "$2" = conftest.file
2835 ); then
2836 am_build_env_is_sane=yes
2837 break
2838 fi
2839 # Just in case.
2840 sleep "$am_cv_filesystem_timestamp_resolution"
2841 am_has_slept=yes
2842 done
2843
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2845 printf "%s\n" "$am_build_env_is_sane" >&6; }
2846 if test "$am_build_env_is_sane" = no; then
2847 as_fn_error $? "newly created file is older than distributed files!
2848 Check your system clock" "$LINENO" 5
2849 fi
2850
2851 # If we didn't sleep, we still need to ensure time stamps of config.status and
2852 # generated files are strictly newer.
2853 am_sleep_pid=
2854 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2855 then :
2856
2857 else case e in #(
2858 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2859 am_sleep_pid=$!
2860 ;;
2861 esac
2862 fi
2863
2864 rm -f conftest.file
2865
2866 test "$program_prefix" != NONE &&
2867 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2868 # Use a double $ so make ignores it.
2869 test "$program_suffix" != NONE &&
2870 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2871 # Double any \ or $.
2872 # By default was 's,x,x', remove it if useless.
2873 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2874 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2875
2876
2877 # Expand $ac_aux_dir to an absolute path.
2878 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2879
2880
2881 if test x"${MISSING+set}" != xset; then
2882 MISSING="\${SHELL} '$am_aux_dir/missing'"
2883 fi
2884 # Use eval to expand $SHELL
2885 if eval "$MISSING --is-lightweight"; then
2886 am_missing_run="$MISSING "
2887 else
2888 am_missing_run=
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2890 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2891 fi
2892
2893 if test x"${install_sh+set}" != xset; then
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2897 *)
2898 install_sh="\${SHELL} $am_aux_dir/install-sh"
2899 esac
2900 fi
2901
2902 # Installed binaries are usually stripped using 'strip' when the user
2903 # run "make install-strip". However 'strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the 'STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 printf %s "checking for $ac_word... " >&6; }
2912 if test ${ac_cv_prog_STRIP+y}
2913 then :
2914 printf %s "(cached) " >&6
2915 else case e in #(
2916 e) if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 case $as_dir in #(((
2924 '') as_dir=./ ;;
2925 */) ;;
2926 *) as_dir=$as_dir/ ;;
2927 esac
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi ;;
2939 esac
2940 fi
2941 STRIP=$ac_cv_prog_STRIP
2942 if test -n "$STRIP"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2944 printf "%s\n" "$STRIP" >&6; }
2945 else
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 printf "%s\n" "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$ac_cv_prog_STRIP"; then
2953 ac_ct_STRIP=$STRIP
2954 # Extract the first word of "strip", so it can be a program name with args.
2955 set dummy strip; ac_word=$2
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 printf %s "checking for $ac_word... " >&6; }
2958 if test ${ac_cv_prog_ac_ct_STRIP+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else case e in #(
2962 e) if test -n "$ac_ct_STRIP"; then
2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_STRIP="strip"
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi ;;
2985 esac
2986 fi
2987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2988 if test -n "$ac_ct_STRIP"; then
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2990 printf "%s\n" "$ac_ct_STRIP" >&6; }
2991 else
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 printf "%s\n" "no" >&6; }
2994 fi
2995
2996 if test "x$ac_ct_STRIP" = x; then
2997 STRIP=":"
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 STRIP=$ac_ct_STRIP
3006 fi
3007 else
3008 STRIP="$ac_cv_prog_STRIP"
3009 fi
3010
3011 fi
3012 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3013
3014
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3016 printf %s "checking for a race-free mkdir -p... " >&6; }
3017 if test -z "$MKDIR_P"; then
3018 if test ${ac_cv_path_mkdir+y}
3019 then :
3020 printf %s "(cached) " >&6
3021 else case e in #(
3022 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3024 do
3025 IFS=$as_save_IFS
3026 case $as_dir in #(((
3027 '') as_dir=./ ;;
3028 */) ;;
3029 *) as_dir=$as_dir/ ;;
3030 esac
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3034 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir ('*'coreutils) '* | \
3036 *'BusyBox '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
3043 done
3044 IFS=$as_save_IFS
3045 ;;
3046 esac
3047 fi
3048
3049 test -d ./--version && rmdir ./--version
3050 if test ${ac_cv_path_mkdir+y}; then
3051 MKDIR_P="$ac_cv_path_mkdir -p"
3052 else
3053 # As a last resort, use plain mkdir -p,
3054 # in the hope it doesn't have the bugs of ancient mkdir.
3055 MKDIR_P='mkdir -p'
3056 fi
3057 fi
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3059 printf "%s\n" "$MKDIR_P" >&6; }
3060
3061 for ac_prog in gawk mawk nawk awk
3062 do
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 printf %s "checking for $ac_word... " >&6; }
3067 if test ${ac_cv_prog_AWK+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else case e in #(
3071 e) if test -n "$AWK"; then
3072 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_AWK="$ac_prog"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi ;;
3094 esac
3095 fi
3096 AWK=$ac_cv_prog_AWK
3097 if test -n "$AWK"; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3099 printf "%s\n" "$AWK" >&6; }
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 printf "%s\n" "no" >&6; }
3103 fi
3104
3105
3106 test -n "$AWK" && break
3107 done
3108
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3110 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3111 set x ${MAKE-make}
3112 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3113 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3114 then :
3115 printf %s "(cached) " >&6
3116 else case e in #(
3117 e) cat >conftest.make <<\_ACEOF
3118 SHELL = /bin/sh
3119 all:
3120 @echo '@@@%%%=$(MAKE)=@@@%%%'
3121 _ACEOF
3122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124 *@@@%%%=?*=@@@%%%*)
3125 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 *)
3127 eval ac_cv_prog_make_${ac_make}_set=no;;
3128 esac
3129 rm -f conftest.make ;;
3130 esac
3131 fi
3132 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 printf "%s\n" "yes" >&6; }
3135 SET_MAKE=
3136 else
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 printf "%s\n" "no" >&6; }
3139 SET_MAKE="MAKE=${MAKE-make}"
3140 fi
3141
3142 rm -rf .tst 2>/dev/null
3143 mkdir .tst 2>/dev/null
3144 if test -d .tst; then
3145 am__leading_dot=.
3146 else
3147 am__leading_dot=_
3148 fi
3149 rmdir .tst 2>/dev/null
3150
3151 AM_DEFAULT_VERBOSITY=1
3152 # Check whether --enable-silent-rules was given.
3153 if test ${enable_silent_rules+y}
3154 then :
3155 enableval=$enable_silent_rules;
3156 fi
3157
3158 am_make=${MAKE-make}
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3160 printf %s "checking whether $am_make supports nested variables... " >&6; }
3161 if test ${am_cv_make_support_nested_variables+y}
3162 then :
3163 printf %s "(cached) " >&6
3164 else case e in #(
3165 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3166 BAR0=false
3167 BAR1=true
3168 V=1
3169 am__doit:
3170 @$(TRUE)
3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172 am_cv_make_support_nested_variables=yes
3173 else
3174 am_cv_make_support_nested_variables=no
3175 fi ;;
3176 esac
3177 fi
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3179 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3180 AM_BACKSLASH='\'
3181
3182 am__rm_f_notfound=
3183 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3184 then :
3185
3186 else case e in #(
3187 e) am__rm_f_notfound='""' ;;
3188 esac
3189 fi
3190
3191
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3193 printf %s "checking xargs -n works... " >&6; }
3194 if test ${am_cv_xargs_n_works+y}
3195 then :
3196 printf %s "(cached) " >&6
3197 else case e in #(
3198 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3199 3"
3200 then :
3201 am_cv_xargs_n_works=yes
3202 else case e in #(
3203 e) am_cv_xargs_n_works=no ;;
3204 esac
3205 fi ;;
3206 esac
3207 fi
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3209 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3210 if test "$am_cv_xargs_n_works" = yes
3211 then :
3212 am__xargs_n='xargs -n'
3213 else case e in #(
3214 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3215 ;;
3216 esac
3217 fi
3218
3219 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3221 # is not polluted with repeated "-I."
3222 am__isrc=' -I$(srcdir)'
3223 # test to see if srcdir already configured
3224 if test -f $srcdir/config.status; then
3225 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3226 fi
3227 fi
3228
3229 # test whether we have cygpath
3230 if test -z "$CYGPATH_W"; then
3231 if (cygpath --version) >/dev/null 2>/dev/null; then
3232 CYGPATH_W='cygpath -w'
3233 else
3234 CYGPATH_W=echo
3235 fi
3236 fi
3237
3238
3239 # Define the identity of the package.
3240 PACKAGE='libsharp'
3241 VERSION='1.0.0'
3242
3243
3244 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3245
3246
3247 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3248
3249 # Some tools Automake needs.
3250
3251 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3252
3253
3254 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3255
3256
3257 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3258
3259
3260 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3261
3262
3263 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3264
3265 # For better backward compatibility. To be removed once Automake 1.9.x
3266 # dies out for good. For more background, see:
3267 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3268 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3269 mkdir_p='$(MKDIR_P)'
3270
3271 # We need awk for the "check" target (and possibly the TAP driver). The
3272 # system "awk" is bad on some platforms.
3273 # Always define AMTAR for backward compatibility. Yes, it's still used
3274 # in the wild :-( We should find a proper way to deprecate it ...
3275 AMTAR='$${TAR-tar}'
3276
3277
3278 # We'll loop over all known methods to create a tar archive until one works.
3279 _am_tools='gnutar pax cpio none'
3280
3281 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3282
3283
3284
3285
3286
3287 # Variables for tags utilities; see am/tags.am
3288 if test -z "$CTAGS"; then
3289 CTAGS=ctags
3290 fi
3291
3292 if test -z "$ETAGS"; then
3293 ETAGS=etags
3294 fi
3295
3296 if test -z "$CSCOPE"; then
3297 CSCOPE=cscope
3298 fi
3299
3300
3301
3302
3303
3304
3305
3306
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3308 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3309 # Check whether --enable-maintainer-mode was given.
3310 if test ${enable_maintainer_mode+y}
3311 then :
3312 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3313 else case e in #(
3314 e) USE_MAINTAINER_MODE=yes ;;
3315 esac
3316 fi
3317
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3319 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3320 if test $USE_MAINTAINER_MODE = yes; then
3321 MAINTAINER_MODE_TRUE=
3322 MAINTAINER_MODE_FALSE='#'
3323 else
3324 MAINTAINER_MODE_TRUE='#'
3325 MAINTAINER_MODE_FALSE=
3326 fi
3327
3328 MAINT=$MAINTAINER_MODE_TRUE
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342 DEPDIR="${am__leading_dot}deps"
3343
3344 ac_config_commands="$ac_config_commands depfiles"
3345
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3347 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3348 cat > confinc.mk << 'END'
3349 am__doit:
3350 @echo this is the am__doit target >confinc.out
3351 .PHONY: am__doit
3352 END
3353 am__include="#"
3354 am__quote=
3355 # BSD make does it like this.
3356 echo '.include "confinc.mk" # ignored' > confmf.BSD
3357 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3358 echo 'include confinc.mk # ignored' > confmf.GNU
3359 _am_result=no
3360 for s in GNU BSD; do
3361 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3362 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 case $?:`cat confinc.out 2>/dev/null` in #(
3367 '0:this is the am__doit target') :
3368 case $s in #(
3369 BSD) :
3370 am__include='.include' am__quote='"' ;; #(
3371 *) :
3372 am__include='include' am__quote='' ;;
3373 esac ;; #(
3374 *) :
3375 ;;
3376 esac
3377 if test "$am__include" != "#"; then
3378 _am_result="yes ($s style)"
3379 break
3380 fi
3381 done
3382 rm -f confinc.* confmf.*
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3384 printf "%s\n" "${_am_result}" >&6; }
3385
3386 # Check whether --enable-dependency-tracking was given.
3387 if test ${enable_dependency_tracking+y}
3388 then :
3389 enableval=$enable_dependency_tracking;
3390 fi
3391
3392 if test "x$enable_dependency_tracking" != xno; then
3393 am_depcomp="$ac_aux_dir/depcomp"
3394 AMDEPBACKSLASH='\'
3395 am__nodep='_no'
3396 fi
3397 if test "x$enable_dependency_tracking" != xno; then
3398 AMDEP_TRUE=
3399 AMDEP_FALSE='#'
3400 else
3401 AMDEP_TRUE='#'
3402 AMDEP_FALSE=
3403 fi
3404
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else case e in #(
3420 e) if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi ;;
3443 esac
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 printf "%s\n" "$CC" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454
3455 fi
3456 if test -z "$ac_cv_prog_CC"; then
3457 ac_ct_CC=$CC
3458 # Extract the first word of "gcc", so it can be a program name with args.
3459 set dummy gcc; ac_word=$2
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 printf %s "checking for $ac_word... " >&6; }
3462 if test ${ac_cv_prog_ac_ct_CC+y}
3463 then :
3464 printf %s "(cached) " >&6
3465 else case e in #(
3466 e) if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 case $as_dir in #(((
3474 '') as_dir=./ ;;
3475 */) ;;
3476 *) as_dir=$as_dir/ ;;
3477 esac
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_CC="gcc"
3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi ;;
3489 esac
3490 fi
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 printf "%s\n" "$ac_ct_CC" >&6; }
3495 else
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 printf "%s\n" "no" >&6; }
3498 fi
3499
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504 yes:)
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509 CC=$ac_ct_CC
3510 fi
3511 else
3512 CC="$ac_cv_prog_CC"
3513 fi
3514
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}cc; ac_word=$2
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 printf %s "checking for $ac_word... " >&6; }
3521 if test ${ac_cv_prog_CC+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else case e in #(
3525 e) if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 case $as_dir in #(((
3533 '') as_dir=./ ;;
3534 */) ;;
3535 *) as_dir=$as_dir/ ;;
3536 esac
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_CC="${ac_tool_prefix}cc"
3540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi ;;
3548 esac
3549 fi
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 printf "%s\n" "$CC" >&6; }
3554 else
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 printf "%s\n" "no" >&6; }
3557 fi
3558
3559
3560 fi
3561 fi
3562 if test -z "$CC"; then
3563 # Extract the first word of "cc", so it can be a program name with args.
3564 set dummy cc; ac_word=$2
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 printf %s "checking for $ac_word... " >&6; }
3567 if test ${ac_cv_prog_CC+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else case e in #(
3571 e) if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 ac_prog_rejected=no
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 case $as_dir in #(((
3580 '') as_dir=./ ;;
3581 */) ;;
3582 *) as_dir=$as_dir/ ;;
3583 esac
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3586 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3587 ac_prog_rejected=yes
3588 continue
3589 fi
3590 ac_cv_prog_CC="cc"
3591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 if test $ac_prog_rejected = yes; then
3599 # We found a bogon in the path, so make sure we never use it.
3600 set dummy $ac_cv_prog_CC
3601 shift
3602 if test $# != 0; then
3603 # We chose a different compiler from the bogus one.
3604 # However, it has the same basename, so the bogon will be chosen
3605 # first if we set CC to just the basename; use the full file name.
3606 shift
3607 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3608 fi
3609 fi
3610 fi ;;
3611 esac
3612 fi
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 printf "%s\n" "$CC" >&6; }
3617 else
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 printf "%s\n" "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 for ac_prog in cl.exe
3627 do
3628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 printf %s "checking for $ac_word... " >&6; }
3632 if test ${ac_cv_prog_CC+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else case e in #(
3636 e) if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 case $as_dir in #(((
3644 '') as_dir=./ ;;
3645 */) ;;
3646 *) as_dir=$as_dir/ ;;
3647 esac
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 fi ;;
3659 esac
3660 fi
3661 CC=$ac_cv_prog_CC
3662 if test -n "$CC"; then
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 printf "%s\n" "$CC" >&6; }
3665 else
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 printf "%s\n" "no" >&6; }
3668 fi
3669
3670
3671 test -n "$CC" && break
3672 done
3673 fi
3674 if test -z "$CC"; then
3675 ac_ct_CC=$CC
3676 for ac_prog in cl.exe
3677 do
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 printf %s "checking for $ac_word... " >&6; }
3682 if test ${ac_cv_prog_ac_ct_CC+y}
3683 then :
3684 printf %s "(cached) " >&6
3685 else case e in #(
3686 e) if test -n "$ac_ct_CC"; then
3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 case $as_dir in #(((
3694 '') as_dir=./ ;;
3695 */) ;;
3696 *) as_dir=$as_dir/ ;;
3697 esac
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_ac_ct_CC="$ac_prog"
3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi ;;
3709 esac
3710 fi
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 printf "%s\n" "$ac_ct_CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 fi
3719
3720
3721 test -n "$ac_ct_CC" && break
3722 done
3723
3724 if test "x$ac_ct_CC" = x; then
3725 CC=""
3726 else
3727 case $cross_compiling:$ac_tool_warned in
3728 yes:)
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3731 ac_tool_warned=yes ;;
3732 esac
3733 CC=$ac_ct_CC
3734 fi
3735 fi
3736
3737 fi
3738 if test -z "$CC"; then
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}clang; ac_word=$2
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 printf %s "checking for $ac_word... " >&6; }
3744 if test ${ac_cv_prog_CC+y}
3745 then :
3746 printf %s "(cached) " >&6
3747 else case e in #(
3748 e) if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 case $as_dir in #(((
3756 '') as_dir=./ ;;
3757 */) ;;
3758 *) as_dir=$as_dir/ ;;
3759 esac
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CC="${ac_tool_prefix}clang"
3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 fi ;;
3771 esac
3772 fi
3773 CC=$ac_cv_prog_CC
3774 if test -n "$CC"; then
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776 printf "%s\n" "$CC" >&6; }
3777 else
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 printf "%s\n" "no" >&6; }
3780 fi
3781
3782
3783 fi
3784 if test -z "$ac_cv_prog_CC"; then
3785 ac_ct_CC=$CC
3786 # Extract the first word of "clang", so it can be a program name with args.
3787 set dummy clang; ac_word=$2
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 printf %s "checking for $ac_word... " >&6; }
3790 if test ${ac_cv_prog_ac_ct_CC+y}
3791 then :
3792 printf %s "(cached) " >&6
3793 else case e in #(
3794 e) if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 case $as_dir in #(((
3802 '') as_dir=./ ;;
3803 */) ;;
3804 *) as_dir=$as_dir/ ;;
3805 esac
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_ac_ct_CC="clang"
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812 done
3813 done
3814 IFS=$as_save_IFS
3815
3816 fi ;;
3817 esac
3818 fi
3819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820 if test -n "$ac_ct_CC"; then
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3822 printf "%s\n" "$ac_ct_CC" >&6; }
3823 else
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 printf "%s\n" "no" >&6; }
3826 fi
3827
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 CC=$ac_ct_CC
3838 fi
3839 else
3840 CC="$ac_cv_prog_CC"
3841 fi
3842
3843 fi
3844
3845
3846 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3847 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3848 as_fn_error $? "no acceptable C compiler found in \$PATH
3849 See 'config.log' for more details" "$LINENO" 5; }
3850
3851 # Provide some information about the compiler.
3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853 set X $ac_compile
3854 ac_compiler=$2
3855 for ac_option in --version -v -V -qversion -version; do
3856 { { ac_try="$ac_compiler $ac_option >&5"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864 ac_status=$?
3865 if test -s conftest.err; then
3866 sed '10a\
3867 ... rest of stderr output deleted ...
3868 10q' conftest.err >conftest.er1
3869 cat conftest.er1 >&5
3870 fi
3871 rm -f conftest.er1 conftest.err
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3874 done
3875
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main (void)
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 ac_clean_files_save=$ac_clean_files
3888 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3889 # Try to create an executable without -o first, disregard a.out.
3890 # It will help us diagnose broken compilers, and finding out an intuition
3891 # of exeext.
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3893 printf %s "checking whether the C compiler works... " >&6; }
3894 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895
3896 # The possible output files:
3897 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898
3899 ac_rmfiles=
3900 for ac_file in $ac_files
3901 do
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3905 esac
3906 done
3907 rm -f $ac_rmfiles
3908
3909 if { { ac_try="$ac_link_default"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 printf "%s\n" "$ac_try_echo"; } >&5
3916 (eval "$ac_link_default") 2>&5
3917 ac_status=$?
3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }
3920 then :
3921 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3922 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3923 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3924 # so that the user can short-circuit this test for compilers unknown to
3925 # Autoconf.
3926 for ac_file in $ac_files ''
3927 do
3928 test -f "$ac_file" || continue
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3931 ;;
3932 [ab].out )
3933 # We found the default executable, but exeext='' is most
3934 # certainly right.
3935 break;;
3936 *.* )
3937 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3938 then :; else
3939 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940 fi
3941 # We set ac_cv_exeext here because the later test for it is not
3942 # safe: cross compilers may not add the suffix if given an '-o'
3943 # argument, so we may need to know it at that point already.
3944 # Even if this section looks crufty: it has the advantage of
3945 # actually working.
3946 break;;
3947 * )
3948 break;;
3949 esac
3950 done
3951 test "$ac_cv_exeext" = no && ac_cv_exeext=
3952
3953 else case e in #(
3954 e) ac_file='' ;;
3955 esac
3956 fi
3957 if test -z "$ac_file"
3958 then :
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3961 printf "%s\n" "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3966 as_fn_error 77 "C compiler cannot create executables
3967 See 'config.log' for more details" "$LINENO" 5; }
3968 else case e in #(
3969 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970 printf "%s\n" "yes" >&6; } ;;
3971 esac
3972 fi
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3974 printf %s "checking for C compiler default output file name... " >&6; }
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3976 printf "%s\n" "$ac_file" >&6; }
3977 ac_exeext=$ac_cv_exeext
3978
3979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3980 ac_clean_files=$ac_clean_files_save
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3982 printf %s "checking for suffix of executables... " >&6; }
3983 if { { ac_try="$ac_link"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 printf "%s\n" "$ac_try_echo"; } >&5
3990 (eval "$ac_link") 2>&5
3991 ac_status=$?
3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 then :
3995 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3996 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3997 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3998 # 'rm'.
3999 for ac_file in conftest.exe conftest conftest.*; do
4000 test -f "$ac_file" || continue
4001 case $ac_file in
4002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4004 break;;
4005 * ) break;;
4006 esac
4007 done
4008 else case e in #(
4009 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4010 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4012 See 'config.log' for more details" "$LINENO" 5; } ;;
4013 esac
4014 fi
4015 rm -f conftest conftest$ac_cv_exeext
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4017 printf "%s\n" "$ac_cv_exeext" >&6; }
4018
4019 rm -f conftest.$ac_ext
4020 EXEEXT=$ac_cv_exeext
4021 ac_exeext=$EXEEXT
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024 #include <stdio.h>
4025 int
4026 main (void)
4027 {
4028 FILE *f = fopen ("conftest.out", "w");
4029 if (!f)
4030 return 1;
4031 return ferror (f) || fclose (f) != 0;
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 ac_clean_files="$ac_clean_files conftest.out"
4038 # Check that the compiler produces executables we can run. If not, either
4039 # the compiler is broken, or we cross compile.
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4041 printf %s "checking whether we are cross compiling... " >&6; }
4042 if test "$cross_compiling" != yes; then
4043 { { ac_try="$ac_link"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050 (eval "$ac_link") 2>&5
4051 ac_status=$?
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 if { ac_try='./conftest$ac_cv_exeext'
4055 { { case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 printf "%s\n" "$ac_try_echo"; } >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; }; then
4065 cross_compiling=no
4066 else
4067 if test "$cross_compiling" = maybe; then
4068 cross_compiling=yes
4069 else
4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4071 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4072 as_fn_error 77 "cannot run C compiled programs.
4073 If you meant to cross compile, use '--host'.
4074 See 'config.log' for more details" "$LINENO" 5; }
4075 fi
4076 fi
4077 fi
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4079 printf "%s\n" "$cross_compiling" >&6; }
4080
4081 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4082 conftest.o conftest.obj conftest.out
4083 ac_clean_files=$ac_clean_files_save
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4085 printf %s "checking for suffix of object files... " >&6; }
4086 if test ${ac_cv_objext+y}
4087 then :
4088 printf %s "(cached) " >&6
4089 else case e in #(
4090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main (void)
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.o conftest.obj
4102 if { { ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 printf "%s\n" "$ac_try_echo"; } >&5
4109 (eval "$ac_compile") 2>&5
4110 ac_status=$?
4111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }
4113 then :
4114 for ac_file in conftest.o conftest.obj conftest.*; do
4115 test -f "$ac_file" || continue;
4116 case $ac_file in
4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4119 break;;
4120 esac
4121 done
4122 else case e in #(
4123 e) printf "%s\n" "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4127 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4128 as_fn_error $? "cannot compute suffix of object files: cannot compile
4129 See 'config.log' for more details" "$LINENO" 5; } ;;
4130 esac
4131 fi
4132 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4133 esac
4134 fi
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4136 printf "%s\n" "$ac_cv_objext" >&6; }
4137 OBJEXT=$ac_cv_objext
4138 ac_objext=$OBJEXT
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4140 printf %s "checking whether the compiler supports GNU C... " >&6; }
4141 if test ${ac_cv_c_compiler_gnu+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else case e in #(
4145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main (void)
4150 {
4151 #ifndef __GNUC__
4152 choke me
4153 #endif
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"
4160 then :
4161 ac_compiler_gnu=yes
4162 else case e in #(
4163 e) ac_compiler_gnu=no ;;
4164 esac
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4168 ;;
4169 esac
4170 fi
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4172 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175 if test $ac_compiler_gnu = yes; then
4176 GCC=yes
4177 else
4178 GCC=
4179 fi
4180 ac_test_CFLAGS=${CFLAGS+y}
4181 ac_save_CFLAGS=$CFLAGS
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4183 printf %s "checking whether $CC accepts -g... " >&6; }
4184 if test ${ac_cv_prog_cc_g+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else case e in #(
4188 e) ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main (void)
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"
4204 then :
4205 ac_cv_prog_cc_g=yes
4206 else case e in #(
4207 e) CFLAGS=""
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main (void)
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"
4220 then :
4221
4222 else case e in #(
4223 e) ac_c_werror_flag=$ac_save_c_werror_flag
4224 CFLAGS="-g"
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227
4228 int
4229 main (void)
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"
4237 then :
4238 ac_cv_prog_cc_g=yes
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4241 esac
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4244 esac
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4248 esac
4249 fi
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4252 if test $ac_test_CFLAGS; then
4253 CFLAGS=$ac_save_CFLAGS
4254 elif test $ac_cv_prog_cc_g = yes; then
4255 if test "$GCC" = yes; then
4256 CFLAGS="-g -O2"
4257 else
4258 CFLAGS="-g"
4259 fi
4260 else
4261 if test "$GCC" = yes; then
4262 CFLAGS="-O2"
4263 else
4264 CFLAGS=
4265 fi
4266 fi
4267 ac_prog_cc_stdc=no
4268 if test x$ac_prog_cc_stdc = xno
4269 then :
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4271 printf %s "checking for $CC option to enable C11 features... " >&6; }
4272 if test ${ac_cv_prog_cc_c11+y}
4273 then :
4274 printf %s "(cached) " >&6
4275 else case e in #(
4276 e) ac_cv_prog_cc_c11=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 $ac_c_conftest_c11_program
4281 _ACEOF
4282 for ac_arg in '' -std=gnu11
4283 do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"
4286 then :
4287 ac_cv_prog_cc_c11=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam
4290 test "x$ac_cv_prog_cc_c11" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC ;;
4294 esac
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c11" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else case e in #(
4302 e) if test "x$ac_cv_prog_cc_c11" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else case e in #(
4307 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c11" ;;
4310 esac
4311 fi
4312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4313 ac_prog_cc_stdc=c11 ;;
4314 esac
4315 fi
4316 fi
4317 if test x$ac_prog_cc_stdc = xno
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4320 printf %s "checking for $CC option to enable C99 features... " >&6; }
4321 if test ${ac_cv_prog_cc_c99+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else case e in #(
4325 e) ac_cv_prog_cc_c99=no
4326 ac_save_CC=$CC
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 $ac_c_conftest_c99_program
4330 _ACEOF
4331 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4332 do
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"
4335 then :
4336 ac_cv_prog_cc_c99=$ac_arg
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.beam
4339 test "x$ac_cv_prog_cc_c99" != "xno" && break
4340 done
4341 rm -f conftest.$ac_ext
4342 CC=$ac_save_CC ;;
4343 esac
4344 fi
4345
4346 if test "x$ac_cv_prog_cc_c99" = xno
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else case e in #(
4351 e) if test "x$ac_cv_prog_cc_c99" = x
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else case e in #(
4356 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4358 CC="$CC $ac_cv_prog_cc_c99" ;;
4359 esac
4360 fi
4361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4362 ac_prog_cc_stdc=c99 ;;
4363 esac
4364 fi
4365 fi
4366 if test x$ac_prog_cc_stdc = xno
4367 then :
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4369 printf %s "checking for $CC option to enable C89 features... " >&6; }
4370 if test ${ac_cv_prog_cc_c89+y}
4371 then :
4372 printf %s "(cached) " >&6
4373 else case e in #(
4374 e) ac_cv_prog_cc_c89=no
4375 ac_save_CC=$CC
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 $ac_c_conftest_c89_program
4379 _ACEOF
4380 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4381 do
4382 CC="$ac_save_CC $ac_arg"
4383 if ac_fn_c_try_compile "$LINENO"
4384 then :
4385 ac_cv_prog_cc_c89=$ac_arg
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.beam
4388 test "x$ac_cv_prog_cc_c89" != "xno" && break
4389 done
4390 rm -f conftest.$ac_ext
4391 CC=$ac_save_CC ;;
4392 esac
4393 fi
4394
4395 if test "x$ac_cv_prog_cc_c89" = xno
4396 then :
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398 printf "%s\n" "unsupported" >&6; }
4399 else case e in #(
4400 e) if test "x$ac_cv_prog_cc_c89" = x
4401 then :
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403 printf "%s\n" "none needed" >&6; }
4404 else case e in #(
4405 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4406 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4407 CC="$CC $ac_cv_prog_cc_c89" ;;
4408 esac
4409 fi
4410 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4411 ac_prog_cc_stdc=c89 ;;
4412 esac
4413 fi
4414 fi
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4429 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4430 if test ${am_cv_prog_cc_c_o+y}
4431 then :
4432 printf %s "(cached) " >&6
4433 else case e in #(
4434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436
4437 int
4438 main (void)
4439 {
4440
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 # Make sure it works both with $CC and with simple cc.
4446 # Following AC_PROG_CC_C_O, we do the test twice because some
4447 # compilers refuse to overwrite an existing .o file with -o,
4448 # though they will create one.
4449 am_cv_prog_cc_c_o=yes
4450 for am_i in 1 2; do
4451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } \
4456 && test -f conftest2.$ac_objext; then
4457 : OK
4458 else
4459 am_cv_prog_cc_c_o=no
4460 break
4461 fi
4462 done
4463 rm -f core conftest*
4464 unset am_i ;;
4465 esac
4466 fi
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4468 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4469 if test "$am_cv_prog_cc_c_o" != yes; then
4470 # Losing compiler, so override with the script.
4471 # FIXME: It is wrong to rewrite CC.
4472 # But if we don't then we get into trouble of one sort or another.
4473 # A longer-term fix would be to have automake use am__CC in this case,
4474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4475 CC="$am_aux_dir/compile $CC"
4476 fi
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483
4484 depcc="$CC" am_compiler_list=
4485
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4487 printf %s "checking dependency style of $depcc... " >&6; }
4488 if test ${am_cv_CC_dependencies_compiler_type+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else case e in #(
4492 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4493 # We make a subdir and do the tests there. Otherwise we can end up
4494 # making bogus files that we don't know about and never remove. For
4495 # instance it was reported that on HP-UX the gcc test will end up
4496 # making a dummy file named 'D' -- because '-MD' means "put the output
4497 # in D".
4498 rm -rf conftest.dir
4499 mkdir conftest.dir
4500 # Copy depcomp to subdir because otherwise we won't find it if we're
4501 # using a relative directory.
4502 cp "$am_depcomp" conftest.dir
4503 cd conftest.dir
4504 # We will build objects and dependencies in a subdirectory because
4505 # it helps to detect inapplicable dependency modes. For instance
4506 # both Tru64's cc and ICC support -MD to output dependencies as a
4507 # side effect of compilation, but ICC will put the dependencies in
4508 # the current directory while Tru64 will put them in the object
4509 # directory.
4510 mkdir sub
4511
4512 am_cv_CC_dependencies_compiler_type=none
4513 if test "$am_compiler_list" = ""; then
4514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4515 fi
4516 am__universal=false
4517 case " $depcc " in #(
4518 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4519 esac
4520
4521 for depmode in $am_compiler_list; do
4522 # Setup a source with many dependencies, because some compilers
4523 # like to wrap large dependency lists on column 80 (with \), and
4524 # we should not choose a depcomp mode which is confused by this.
4525 #
4526 # We need to recreate these files for each test, as the compiler may
4527 # overwrite some of them when testing with obscure command lines.
4528 # This happens at least with the AIX C compiler.
4529 : > sub/conftest.c
4530 for i in 1 2 3 4 5 6; do
4531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4532 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4533 # Solaris 10 /bin/sh.
4534 echo '/* dummy */' > sub/conftst$i.h
4535 done
4536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4537
4538 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4539 # mode. It turns out that the SunPro C++ compiler does not properly
4540 # handle '-M -o', and we need to detect this. Also, some Intel
4541 # versions had trouble with output in subdirs.
4542 am__obj=sub/conftest.${OBJEXT-o}
4543 am__minus_obj="-o $am__obj"
4544 case $depmode in
4545 gcc)
4546 # This depmode causes a compiler race in universal mode.
4547 test "$am__universal" = false || continue
4548 ;;
4549 nosideeffect)
4550 # After this tag, mechanisms are not by side-effect, so they'll
4551 # only be used when explicitly requested.
4552 if test "x$enable_dependency_tracking" = xyes; then
4553 continue
4554 else
4555 break
4556 fi
4557 ;;
4558 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4559 # This compiler won't grok '-c -o', but also, the minuso test has
4560 # not run yet. These depmodes are late enough in the game, and
4561 # so weak that their functioning should not be impacted.
4562 am__obj=conftest.${OBJEXT-o}
4563 am__minus_obj=
4564 ;;
4565 none) break ;;
4566 esac
4567 if depmode=$depmode \
4568 source=sub/conftest.c object=$am__obj \
4569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4570 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4571 >/dev/null 2>conftest.err &&
4572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4574 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4576 # icc doesn't choke on unknown options, it will just issue warnings
4577 # or remarks (even with -Werror). So we grep stderr for any message
4578 # that says an option was ignored or not supported.
4579 # When given -MP, icc 7.0 and 7.1 complain thus:
4580 # icc: Command line warning: ignoring option '-M'; no argument required
4581 # The diagnosis changed in icc 8.0:
4582 # icc: Command line remark: option '-MP' not supported
4583 if (grep 'ignoring option' conftest.err ||
4584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4585 am_cv_CC_dependencies_compiler_type=$depmode
4586 break
4587 fi
4588 fi
4589 done
4590
4591 cd ..
4592 rm -rf conftest.dir
4593 else
4594 am_cv_CC_dependencies_compiler_type=none
4595 fi
4596 ;;
4597 esac
4598 fi
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4600 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4601 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4602
4603 if
4604 test "x$enable_dependency_tracking" != xno \
4605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4606 am__fastdepCC_TRUE=
4607 am__fastdepCC_FALSE='#'
4608 else
4609 am__fastdepCC_TRUE='#'
4610 am__fastdepCC_FALSE=
4611 fi
4612
4613
4614
4615
4616 if test -n "$ac_tool_prefix"; then
4617 for ac_prog in ar lib "link -lib"
4618 do
4619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 printf %s "checking for $ac_word... " >&6; }
4623 if test ${ac_cv_prog_AR+y}
4624 then :
4625 printf %s "(cached) " >&6
4626 else case e in #(
4627 e) if test -n "$AR"; then
4628 ac_cv_prog_AR="$AR" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 case $as_dir in #(((
4635 '') as_dir=./ ;;
4636 */) ;;
4637 *) as_dir=$as_dir/ ;;
4638 esac
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi ;;
4650 esac
4651 fi
4652 AR=$ac_cv_prog_AR
4653 if test -n "$AR"; then
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4655 printf "%s\n" "$AR" >&6; }
4656 else
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 printf "%s\n" "no" >&6; }
4659 fi
4660
4661
4662 test -n "$AR" && break
4663 done
4664 fi
4665 if test -z "$AR"; then
4666 ac_ct_AR=$AR
4667 for ac_prog in ar lib "link -lib"
4668 do
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670 set dummy $ac_prog; ac_word=$2
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 printf %s "checking for $ac_word... " >&6; }
4673 if test ${ac_cv_prog_ac_ct_AR+y}
4674 then :
4675 printf %s "(cached) " >&6
4676 else case e in #(
4677 e) if test -n "$ac_ct_AR"; then
4678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 case $as_dir in #(((
4685 '') as_dir=./ ;;
4686 */) ;;
4687 *) as_dir=$as_dir/ ;;
4688 esac
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_ac_ct_AR="$ac_prog"
4692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi ;;
4700 esac
4701 fi
4702 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4703 if test -n "$ac_ct_AR"; then
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4705 printf "%s\n" "$ac_ct_AR" >&6; }
4706 else
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 printf "%s\n" "no" >&6; }
4709 fi
4710
4711
4712 test -n "$ac_ct_AR" && break
4713 done
4714
4715 if test "x$ac_ct_AR" = x; then
4716 AR="false"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 AR=$ac_ct_AR
4725 fi
4726 fi
4727
4728 : ${AR=ar}
4729 : ${ARFLAGS=cr}
4730
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4732 printf %s "checking the archiver ($AR) interface... " >&6; }
4733 if test ${am_cv_ar_interface+y}
4734 then :
4735 printf %s "(cached) " >&6
4736 else case e in #(
4737 e) ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742
4743 am_cv_ar_interface=ar
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 int some_variable = 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"
4749 then :
4750 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
4751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4752 (eval $am_ar_try) 2>&5
4753 ac_status=$?
4754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4755 test $ac_status = 0; }
4756 if test "$ac_status" -eq 0; then
4757 am_cv_ar_interface=ar
4758 else
4759 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4761 (eval $am_ar_try) 2>&5
4762 ac_status=$?
4763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4764 test $ac_status = 0; }
4765 if test "$ac_status" -eq 0; then
4766 am_cv_ar_interface=lib
4767 else
4768 am_cv_ar_interface=unknown
4769 fi
4770 fi
4771 rm -f conftest.lib libconftest.a
4772
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4775 ac_ext=c
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780 ;;
4781 esac
4782 fi
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4784 printf "%s\n" "$am_cv_ar_interface" >&6; }
4785
4786 case $am_cv_ar_interface in
4787 ar)
4788 ;;
4789 lib)
4790 # Microsoft lib, so override with the ar-lib wrapper script.
4791 # FIXME: It is wrong to rewrite AR.
4792 # But if we don't then we get into trouble of one sort or another.
4793 # A longer-term fix would be to have automake use am__AR in this case,
4794 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4795 # similar.
4796 AR="$am_aux_dir/ar-lib $AR"
4797 ;;
4798 unknown)
4799 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4800 ;;
4801 esac
4802
4803
4804 case `pwd` in
4805 *\ * | *\ *)
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4807 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4808 esac
4809
4810
4811
4812 macro_version='2.5.4'
4813 macro_revision='2.5.4'
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 ltmain=$ac_aux_dir/ltmain.sh
4829
4830
4831
4832 # Make sure we can run config.sub.
4833 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4834 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4837 printf %s "checking build system type... " >&6; }
4838 if test ${ac_cv_build+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) ac_build_alias=$build_alias
4843 test "x$ac_build_alias" = x &&
4844 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4845 test "x$ac_build_alias" = x &&
4846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4847 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4848 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4849 ;;
4850 esac
4851 fi
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4853 printf "%s\n" "$ac_cv_build" >&6; }
4854 case $ac_cv_build in
4855 *-*-*) ;;
4856 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4857 esac
4858 build=$ac_cv_build
4859 ac_save_IFS=$IFS; IFS='-'
4860 set x $ac_cv_build
4861 shift
4862 build_cpu=$1
4863 build_vendor=$2
4864 shift; shift
4865 # Remember, the first character of IFS is used to create $*,
4866 # except with old shells:
4867 build_os=$*
4868 IFS=$ac_save_IFS
4869 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4870
4871
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4873 printf %s "checking host system type... " >&6; }
4874 if test ${ac_cv_host+y}
4875 then :
4876 printf %s "(cached) " >&6
4877 else case e in #(
4878 e) if test "x$host_alias" = x; then
4879 ac_cv_host=$ac_cv_build
4880 else
4881 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4882 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4883 fi
4884 ;;
4885 esac
4886 fi
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4888 printf "%s\n" "$ac_cv_host" >&6; }
4889 case $ac_cv_host in
4890 *-*-*) ;;
4891 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4892 esac
4893 host=$ac_cv_host
4894 ac_save_IFS=$IFS; IFS='-'
4895 set x $ac_cv_host
4896 shift
4897 host_cpu=$1
4898 host_vendor=$2
4899 shift; shift
4900 # Remember, the first character of IFS is used to create $*,
4901 # except with old shells:
4902 host_os=$*
4903 IFS=$ac_save_IFS
4904 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4905
4906
4907 # Backslashify metacharacters that are still active within
4908 # double-quoted strings.
4909 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4910
4911 # Same as above, but do not quote variable references.
4912 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4913
4914 # Sed substitution to delay expansion of an escaped shell variable in a
4915 # double_quote_subst'ed string.
4916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4917
4918 # Sed substitution to delay expansion of an escaped single quote.
4919 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4920
4921 # Sed substitution to avoid accidental globbing in evaled expressions
4922 no_glob_subst='s/\*/\\\*/g'
4923
4924 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4929 printf %s "checking how to print strings... " >&6; }
4930 # Test print first, because it will be a builtin if present.
4931 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4933 ECHO='print -r --'
4934 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4935 ECHO='printf %s\n'
4936 else
4937 # Use this function as a fallback that always works.
4938 func_fallback_echo ()
4939 {
4940 eval 'cat <<_LTECHO_EOF
4941 $1
4942 _LTECHO_EOF'
4943 }
4944 ECHO='func_fallback_echo'
4945 fi
4946
4947 # func_echo_all arg...
4948 # Invoke $ECHO with all args, space-separated.
4949 func_echo_all ()
4950 {
4951 $ECHO ""
4952 }
4953
4954 case $ECHO in
4955 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4956 printf "%s\n" "printf" >&6; } ;;
4957 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4958 printf "%s\n" "print -r" >&6; } ;;
4959 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4960 printf "%s\n" "cat" >&6; } ;;
4961 esac
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4977 printf %s "checking for a sed that does not truncate output... " >&6; }
4978 if test ${ac_cv_path_SED+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4983 for ac_i in 1 2 3 4 5 6 7; do
4984 ac_script="$ac_script$as_nl$ac_script"
4985 done
4986 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4987 { ac_script=; unset ac_script;}
4988 if test -z "$SED"; then
4989 ac_path_SED_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 case $as_dir in #(((
4996 '') as_dir=./ ;;
4997 */) ;;
4998 *) as_dir=$as_dir/ ;;
4999 esac
5000 for ac_prog in sed gsed
5001 do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_SED" || continue
5005 # Check for GNU ac_path_SED and select it if it is found.
5006 # Check for GNU $ac_path_SED
5007 case `"$ac_path_SED" --version 2>&1` in #(
5008 *GNU*)
5009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5010 #(
5011 *)
5012 ac_count=0
5013 printf %s 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 printf "%s\n" '' >> "conftest.nl"
5020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_SED_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_SED="$ac_path_SED"
5026 ac_path_SED_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_SED_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_SED"; then
5040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_SED=$SED
5044 fi
5045 ;;
5046 esac
5047 fi
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5049 printf "%s\n" "$ac_cv_path_SED" >&6; }
5050 SED="$ac_cv_path_SED"
5051 rm -f conftest.sed
5052
5053 test -z "$SED" && SED=sed
5054 Xsed="$SED -e 1s/^X//"
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5067 printf %s "checking for grep that handles long lines and -e... " >&6; }
5068 if test ${ac_cv_path_GREP+y}
5069 then :
5070 printf %s "(cached) " >&6
5071 else case e in #(
5072 e) if test -z "$GREP"; then
5073 ac_path_GREP_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 do
5078 IFS=$as_save_IFS
5079 case $as_dir in #(((
5080 '') as_dir=./ ;;
5081 */) ;;
5082 *) as_dir=$as_dir/ ;;
5083 esac
5084 for ac_prog in grep ggrep
5085 do
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5088 as_fn_executable_p "$ac_path_GREP" || continue
5089 # Check for GNU ac_path_GREP and select it if it is found.
5090 # Check for GNU $ac_path_GREP
5091 case `"$ac_path_GREP" --version 2>&1` in #(
5092 *GNU*)
5093 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5094 #(
5095 *)
5096 ac_count=0
5097 printf %s 0123456789 >"conftest.in"
5098 while :
5099 do
5100 cat "conftest.in" "conftest.in" >"conftest.tmp"
5101 mv "conftest.tmp" "conftest.in"
5102 cp "conftest.in" "conftest.nl"
5103 printf "%s\n" 'GREP' >> "conftest.nl"
5104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5106 as_fn_arith $ac_count + 1 && ac_count=$as_val
5107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5108 # Best one so far, save it but keep looking for a better one
5109 ac_cv_path_GREP="$ac_path_GREP"
5110 ac_path_GREP_max=$ac_count
5111 fi
5112 # 10*(2^10) chars as input seems more than enough
5113 test $ac_count -gt 10 && break
5114 done
5115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116 esac
5117
5118 $ac_path_GREP_found && break 3
5119 done
5120 done
5121 done
5122 IFS=$as_save_IFS
5123 if test -z "$ac_cv_path_GREP"; then
5124 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5125 fi
5126 else
5127 ac_cv_path_GREP=$GREP
5128 fi
5129 ;;
5130 esac
5131 fi
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5133 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5134 GREP="$ac_cv_path_GREP"
5135
5136
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5138 printf %s "checking for egrep... " >&6; }
5139 if test ${ac_cv_path_EGREP+y}
5140 then :
5141 printf %s "(cached) " >&6
5142 else case e in #(
5143 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5144 then ac_cv_path_EGREP="$GREP -E"
5145 else
5146 if test -z "$EGREP"; then
5147 ac_path_EGREP_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151 do
5152 IFS=$as_save_IFS
5153 case $as_dir in #(((
5154 '') as_dir=./ ;;
5155 */) ;;
5156 *) as_dir=$as_dir/ ;;
5157 esac
5158 for ac_prog in egrep
5159 do
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5162 as_fn_executable_p "$ac_path_EGREP" || continue
5163 # Check for GNU ac_path_EGREP and select it if it is found.
5164 # Check for GNU $ac_path_EGREP
5165 case `"$ac_path_EGREP" --version 2>&1` in #(
5166 *GNU*)
5167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5168 #(
5169 *)
5170 ac_count=0
5171 printf %s 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 printf "%s\n" 'EGREP' >> "conftest.nl"
5178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_EGREP="$ac_path_EGREP"
5184 ac_path_EGREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190 esac
5191
5192 $ac_path_EGREP_found && break 3
5193 done
5194 done
5195 done
5196 IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_EGREP"; then
5198 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5199 fi
5200 else
5201 ac_cv_path_EGREP=$EGREP
5202 fi
5203
5204 fi ;;
5205 esac
5206 fi
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5208 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5209 EGREP="$ac_cv_path_EGREP"
5210
5211 EGREP_TRADITIONAL=$EGREP
5212 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5213
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5215 printf %s "checking for fgrep... " >&6; }
5216 if test ${ac_cv_path_FGREP+y}
5217 then :
5218 printf %s "(cached) " >&6
5219 else case e in #(
5220 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5221 then ac_cv_path_FGREP="$GREP -F"
5222 else
5223 if test -z "$FGREP"; then
5224 ac_path_FGREP_found=false
5225 # Loop through the user's path and test for each of PROGNAME-LIST
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 do
5229 IFS=$as_save_IFS
5230 case $as_dir in #(((
5231 '') as_dir=./ ;;
5232 */) ;;
5233 *) as_dir=$as_dir/ ;;
5234 esac
5235 for ac_prog in fgrep
5236 do
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5239 as_fn_executable_p "$ac_path_FGREP" || continue
5240 # Check for GNU ac_path_FGREP and select it if it is found.
5241 # Check for GNU $ac_path_FGREP
5242 case `"$ac_path_FGREP" --version 2>&1` in #(
5243 *GNU*)
5244 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5245 #(
5246 *)
5247 ac_count=0
5248 printf %s 0123456789 >"conftest.in"
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 printf "%s\n" 'FGREP' >> "conftest.nl"
5255 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_FGREP="$ac_path_FGREP"
5261 ac_path_FGREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5268
5269 $ac_path_FGREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_FGREP"; then
5275 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276 fi
5277 else
5278 ac_cv_path_FGREP=$FGREP
5279 fi
5280
5281 fi ;;
5282 esac
5283 fi
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5285 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5286 FGREP="$ac_cv_path_FGREP"
5287
5288
5289 test -z "$GREP" && GREP=grep
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 # Check whether --with-gnu-ld was given.
5310 if test ${with_gnu_ld+y}
5311 then :
5312 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5313 else case e in #(
5314 e) with_gnu_ld=no ;;
5315 esac
5316 fi
5317
5318 ac_prog=ld
5319 if test yes = "$GCC"; then
5320 # Check if gcc -print-prog-name=ld gives a path.
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5322 printf %s "checking for ld used by $CC... " >&6; }
5323 case $host in
5324 *-*-mingw* | *-*-windows*)
5325 # gcc leaves a trailing carriage return, which upsets mingw
5326 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5327 *)
5328 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5329 esac
5330 case $ac_prog in
5331 # Accept absolute paths.
5332 [\\/]* | ?:[\\/]*)
5333 re_direlt='/[^/][^/]*/\.\./'
5334 # Canonicalize the pathname of ld
5335 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5336 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5337 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5338 done
5339 test -z "$LD" && LD=$ac_prog
5340 ;;
5341 "")
5342 # If it fails, then pretend we aren't using GCC.
5343 ac_prog=ld
5344 ;;
5345 *)
5346 # If it is relative, then search for the first ld in PATH.
5347 with_gnu_ld=unknown
5348 ;;
5349 esac
5350 elif test yes = "$with_gnu_ld"; then
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5352 printf %s "checking for GNU ld... " >&6; }
5353 else
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5355 printf %s "checking for non-GNU ld... " >&6; }
5356 fi
5357 if test ${lt_cv_path_LD+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) if test -z "$LD"; then
5362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5363 for ac_dir in $PATH; do
5364 IFS=$lt_save_ifs
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5367 lt_cv_path_LD=$ac_dir/$ac_prog
5368 # Check to see if the program is GNU ld. I'd rather use --version,
5369 # but apparently some variants of GNU ld only accept -v.
5370 # Break only if it was the GNU/non-GNU ld that we prefer.
5371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 test no != "$with_gnu_ld" && break
5374 ;;
5375 *)
5376 test yes != "$with_gnu_ld" && break
5377 ;;
5378 esac
5379 fi
5380 done
5381 IFS=$lt_save_ifs
5382 else
5383 lt_cv_path_LD=$LD # Let the user override the test with a path.
5384 fi ;;
5385 esac
5386 fi
5387
5388 LD=$lt_cv_path_LD
5389 if test -n "$LD"; then
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5391 printf "%s\n" "$LD" >&6; }
5392 else
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 printf "%s\n" "no" >&6; }
5395 fi
5396 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5398 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5399 if test ${lt_cv_prog_gnu_ld+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else case e in #(
5403 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5404 case `$LD -v 2>&1 </dev/null` in
5405 *GNU* | *'with BFD'*)
5406 lt_cv_prog_gnu_ld=yes
5407 ;;
5408 *)
5409 lt_cv_prog_gnu_ld=no
5410 ;;
5411 esac ;;
5412 esac
5413 fi
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5415 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5416 with_gnu_ld=$lt_cv_prog_gnu_ld
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5427 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5428 if test ${lt_cv_path_NM+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else case e in #(
5432 e) if test -n "$NM"; then
5433 # Let the user override the test.
5434 lt_cv_path_NM=$NM
5435 else
5436 lt_nm_to_check=${ac_tool_prefix}nm
5437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5438 lt_nm_to_check="$lt_nm_to_check nm"
5439 fi
5440 for lt_tmp_nm in $lt_nm_to_check; do
5441 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5443 IFS=$lt_save_ifs
5444 test -z "$ac_dir" && ac_dir=.
5445 tmp_nm=$ac_dir/$lt_tmp_nm
5446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5447 # Check to see if the nm accepts a BSD-compat flag.
5448 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5449 # nm: unknown option "B" ignored
5450 # Tru64's nm complains that /dev/null is an invalid object file
5451 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5452 case $build_os in
5453 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5454 *) lt_bad_file=/dev/null ;;
5455 esac
5456 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5457 *$lt_bad_file* | *'Invalid file or object type'*)
5458 lt_cv_path_NM="$tmp_nm -B"
5459 break 2
5460 ;;
5461 *)
5462 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5463 */dev/null*)
5464 lt_cv_path_NM="$tmp_nm -p"
5465 break 2
5466 ;;
5467 *)
5468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5469 continue # so that we can try to find one that supports BSD flags
5470 ;;
5471 esac
5472 ;;
5473 esac
5474 fi
5475 done
5476 IFS=$lt_save_ifs
5477 done
5478 : ${lt_cv_path_NM=no}
5479 fi ;;
5480 esac
5481 fi
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5483 printf "%s\n" "$lt_cv_path_NM" >&6; }
5484 if test no != "$lt_cv_path_NM"; then
5485 NM=$lt_cv_path_NM
5486 else
5487 # Didn't find any BSD compatible name lister, look for dumpbin.
5488 if test -n "$DUMPBIN"; then :
5489 # Let the user override the test.
5490 else
5491 if test -n "$ac_tool_prefix"; then
5492 for ac_prog in dumpbin "link -dump"
5493 do
5494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 printf %s "checking for $ac_word... " >&6; }
5498 if test ${ac_cv_prog_DUMPBIN+y}
5499 then :
5500 printf %s "(cached) " >&6
5501 else case e in #(
5502 e) if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 case $as_dir in #(((
5510 '') as_dir=./ ;;
5511 */) ;;
5512 *) as_dir=$as_dir/ ;;
5513 esac
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi ;;
5525 esac
5526 fi
5527 DUMPBIN=$ac_cv_prog_DUMPBIN
5528 if test -n "$DUMPBIN"; then
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5530 printf "%s\n" "$DUMPBIN" >&6; }
5531 else
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 printf "%s\n" "no" >&6; }
5534 fi
5535
5536
5537 test -n "$DUMPBIN" && break
5538 done
5539 fi
5540 if test -z "$DUMPBIN"; then
5541 ac_ct_DUMPBIN=$DUMPBIN
5542 for ac_prog in dumpbin "link -dump"
5543 do
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 printf %s "checking for $ac_word... " >&6; }
5548 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5549 then :
5550 printf %s "(cached) " >&6
5551 else case e in #(
5552 e) if test -n "$ac_ct_DUMPBIN"; then
5553 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 case $as_dir in #(((
5560 '') as_dir=./ ;;
5561 */) ;;
5562 *) as_dir=$as_dir/ ;;
5563 esac
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi ;;
5575 esac
5576 fi
5577 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5578 if test -n "$ac_ct_DUMPBIN"; then
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5580 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5581 else
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 printf "%s\n" "no" >&6; }
5584 fi
5585
5586
5587 test -n "$ac_ct_DUMPBIN" && break
5588 done
5589
5590 if test "x$ac_ct_DUMPBIN" = x; then
5591 DUMPBIN=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599 DUMPBIN=$ac_ct_DUMPBIN
5600 fi
5601 fi
5602
5603 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5604 *COFF*)
5605 DUMPBIN="$DUMPBIN -symbols -headers"
5606 ;;
5607 *)
5608 DUMPBIN=:
5609 ;;
5610 esac
5611 fi
5612
5613 if test : != "$DUMPBIN"; then
5614 NM=$DUMPBIN
5615 fi
5616 fi
5617 test -z "$NM" && NM=nm
5618
5619
5620
5621
5622
5623
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5625 printf %s "checking the name lister ($NM) interface... " >&6; }
5626 if test ${lt_cv_nm_interface+y}
5627 then :
5628 printf %s "(cached) " >&6
5629 else case e in #(
5630 e) lt_cv_nm_interface="BSD nm"
5631 echo "int some_variable = 0;" > conftest.$ac_ext
5632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5633 (eval "$ac_compile" 2>conftest.err)
5634 cat conftest.err >&5
5635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5637 cat conftest.err >&5
5638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5639 cat conftest.out >&5
5640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5641 lt_cv_nm_interface="MS dumpbin"
5642 fi
5643 rm -f conftest* ;;
5644 esac
5645 fi
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5647 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5648
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5650 printf %s "checking whether ln -s works... " >&6; }
5651 LN_S=$as_ln_s
5652 if test "$LN_S" = "ln -s"; then
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654 printf "%s\n" "yes" >&6; }
5655 else
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5657 printf "%s\n" "no, using $LN_S" >&6; }
5658 fi
5659
5660 # find the maximum length of command line arguments
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5662 printf %s "checking the maximum length of command line arguments... " >&6; }
5663 if test ${lt_cv_sys_max_cmd_len+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else case e in #(
5667 e) i=0
5668 teststring=ABCD
5669
5670 case $build_os in
5671 msdosdjgpp*)
5672 # On DJGPP, this test can blow up pretty badly due to problems in libc
5673 # (any single argument exceeding 2000 bytes causes a buffer overrun
5674 # during glob expansion). Even if it were fixed, the result of this
5675 # check would be larger than it should be.
5676 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5677 ;;
5678
5679 gnu* | ironclad*)
5680 # Under GNU Hurd and Ironclad, this test is not required because there
5681 # is no limit to the length of command line arguments.
5682 # Libtool will interpret -1 as no limit whatsoever
5683 lt_cv_sys_max_cmd_len=-1;
5684 ;;
5685
5686 cygwin* | mingw* | windows* | cegcc*)
5687 # On Win9x/ME, this test blows up -- it succeeds, but takes
5688 # about 5 minutes as the teststring grows exponentially.
5689 # Worse, since 9x/ME are not pre-emptively multitasking,
5690 # you end up with a "frozen" computer, even though with patience
5691 # the test eventually succeeds (with a max line length of 256k).
5692 # Instead, let's just punt: use the minimum linelength reported by
5693 # all of the supported platforms: 8192 (on NT/2K/XP).
5694 lt_cv_sys_max_cmd_len=8192;
5695 ;;
5696
5697 mint*)
5698 # On MiNT this can take a long time and run out of memory.
5699 lt_cv_sys_max_cmd_len=8192;
5700 ;;
5701
5702 amigaos*)
5703 # On AmigaOS with pdksh, this test takes hours, literally.
5704 # So we just punt and use a minimum line length of 8192.
5705 lt_cv_sys_max_cmd_len=8192;
5706 ;;
5707
5708 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5709 # This has been around since 386BSD, at least. Likely further.
5710 if test -x /sbin/sysctl; then
5711 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5712 elif test -x /usr/sbin/sysctl; then
5713 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5714 else
5715 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5716 fi
5717 # And add a safety zone
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 ;;
5721
5722 interix*)
5723 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5724 lt_cv_sys_max_cmd_len=196608
5725 ;;
5726
5727 os2*)
5728 # The test takes a long time on OS/2.
5729 lt_cv_sys_max_cmd_len=8192
5730 ;;
5731
5732 osf*)
5733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5735 # nice to cause kernel panics so lets avoid the loop below.
5736 # First set a reasonable default.
5737 lt_cv_sys_max_cmd_len=16384
5738 #
5739 if test -x /sbin/sysconfig; then
5740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5741 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5742 esac
5743 fi
5744 ;;
5745 sco3.2v5*)
5746 lt_cv_sys_max_cmd_len=102400
5747 ;;
5748 sysv5* | sco5v6* | sysv4.2uw2*)
5749 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5750 if test -n "$kargmax"; then
5751 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5752 else
5753 lt_cv_sys_max_cmd_len=32768
5754 fi
5755 ;;
5756 *)
5757 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5758 if test -n "$lt_cv_sys_max_cmd_len" && \
5759 test undefined != "$lt_cv_sys_max_cmd_len"; then
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5762 else
5763 # Make teststring a little bigger before we do anything with it.
5764 # a 1K string should be a reasonable start.
5765 for i in 1 2 3 4 5 6 7 8; do
5766 teststring=$teststring$teststring
5767 done
5768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5769 # If test is not a shell built-in, we'll probably end up computing a
5770 # maximum length that is only half of the actual maximum length, but
5771 # we can't tell.
5772 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5773 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5774 test 17 != "$i" # 1/2 MB should be enough
5775 do
5776 i=`expr $i + 1`
5777 teststring=$teststring$teststring
5778 done
5779 # Only check the string length outside the loop.
5780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5781 teststring=
5782 # Add a significant safety factor because C++ compilers can tack on
5783 # massive amounts of additional arguments before passing them to the
5784 # linker. It appears as though 1/2 is a usable value.
5785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5786 fi
5787 ;;
5788 esac
5789 ;;
5790 esac
5791 fi
5792
5793 if test -n "$lt_cv_sys_max_cmd_len"; then
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5795 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5796 else
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5798 printf "%s\n" "none" >&6; }
5799 fi
5800 max_cmd_len=$lt_cv_sys_max_cmd_len
5801
5802
5803
5804
5805
5806
5807 : ${CP="cp -f"}
5808 : ${MV="mv -f"}
5809 : ${RM="rm -f"}
5810
5811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5812 lt_unset=unset
5813 else
5814 lt_unset=false
5815 fi
5816
5817
5818
5819
5820
5821 # test EBCDIC or ASCII
5822 case `echo X|tr X '\101'` in
5823 A) # ASCII based system
5824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5825 lt_SP2NL='tr \040 \012'
5826 lt_NL2SP='tr \015\012 \040\040'
5827 ;;
5828 *) # EBCDIC based system
5829 lt_SP2NL='tr \100 \n'
5830 lt_NL2SP='tr \r\n \100\100'
5831 ;;
5832 esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5843 printf %s "checking how to convert $build file names to $host format... " >&6; }
5844 if test ${lt_cv_to_host_file_cmd+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else case e in #(
5848 e) case $host in
5849 *-*-mingw* )
5850 case $build in
5851 *-*-mingw* | *-*-windows* ) # actually msys
5852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5853 ;;
5854 *-*-cygwin* )
5855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5856 ;;
5857 * ) # otherwise, assume *nix
5858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5859 ;;
5860 esac
5861 ;;
5862 *-*-cygwin* )
5863 case $build in
5864 *-*-mingw* | *-*-windows* ) # actually msys
5865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5866 ;;
5867 *-*-cygwin* )
5868 lt_cv_to_host_file_cmd=func_convert_file_noop
5869 ;;
5870 * ) # otherwise, assume *nix
5871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5872 ;;
5873 esac
5874 ;;
5875 * ) # unhandled hosts (and "normal" native builds)
5876 lt_cv_to_host_file_cmd=func_convert_file_noop
5877 ;;
5878 esac
5879 ;;
5880 esac
5881 fi
5882
5883 to_host_file_cmd=$lt_cv_to_host_file_cmd
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5885 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5886
5887
5888
5889
5890
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5892 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5893 if test ${lt_cv_to_tool_file_cmd+y}
5894 then :
5895 printf %s "(cached) " >&6
5896 else case e in #(
5897 e) #assume ordinary cross tools, or native build.
5898 lt_cv_to_tool_file_cmd=func_convert_file_noop
5899 case $host in
5900 *-*-mingw* | *-*-windows* )
5901 case $build in
5902 *-*-mingw* | *-*-windows* ) # actually msys
5903 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5904 ;;
5905 esac
5906 ;;
5907 esac
5908 ;;
5909 esac
5910 fi
5911
5912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5914 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5915
5916
5917
5918
5919
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5921 printf %s "checking for $LD option to reload object files... " >&6; }
5922 if test ${lt_cv_ld_reload_flag+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else case e in #(
5926 e) lt_cv_ld_reload_flag='-r' ;;
5927 esac
5928 fi
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5930 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5931 reload_flag=$lt_cv_ld_reload_flag
5932 case $reload_flag in
5933 "" | " "*) ;;
5934 *) reload_flag=" $reload_flag" ;;
5935 esac
5936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5937 case $host_os in
5938 cygwin* | mingw* | windows* | pw32* | cegcc*)
5939 if test yes != "$GCC"; then
5940 reload_cmds=false
5941 fi
5942 ;;
5943 darwin*)
5944 if test yes = "$GCC"; then
5945 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5946 else
5947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5948 fi
5949 ;;
5950 esac
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 # Extract the first word of "file", so it can be a program name with args.
5961 set dummy file; ac_word=$2
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 printf %s "checking for $ac_word... " >&6; }
5964 if test ${ac_cv_prog_FILECMD+y}
5965 then :
5966 printf %s "(cached) " >&6
5967 else case e in #(
5968 e) if test -n "$FILECMD"; then
5969 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974 IFS=$as_save_IFS
5975 case $as_dir in #(((
5976 '') as_dir=./ ;;
5977 */) ;;
5978 *) as_dir=$as_dir/ ;;
5979 esac
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_FILECMD="file"
5983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5991 fi ;;
5992 esac
5993 fi
5994 FILECMD=$ac_cv_prog_FILECMD
5995 if test -n "$FILECMD"; then
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5997 printf "%s\n" "$FILECMD" >&6; }
5998 else
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 printf "%s\n" "no" >&6; }
6001 fi
6002
6003
6004
6005
6006
6007
6008
6009
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 printf %s "checking for $ac_word... " >&6; }
6015 if test ${ac_cv_prog_OBJDUMP+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else case e in #(
6019 e) if test -n "$OBJDUMP"; then
6020 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 case $as_dir in #(((
6027 '') as_dir=./ ;;
6028 */) ;;
6029 *) as_dir=$as_dir/ ;;
6030 esac
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi ;;
6042 esac
6043 fi
6044 OBJDUMP=$ac_cv_prog_OBJDUMP
6045 if test -n "$OBJDUMP"; then
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6047 printf "%s\n" "$OBJDUMP" >&6; }
6048 else
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 printf "%s\n" "no" >&6; }
6051 fi
6052
6053
6054 fi
6055 if test -z "$ac_cv_prog_OBJDUMP"; then
6056 ac_ct_OBJDUMP=$OBJDUMP
6057 # Extract the first word of "objdump", so it can be a program name with args.
6058 set dummy objdump; ac_word=$2
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 printf %s "checking for $ac_word... " >&6; }
6061 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6062 then :
6063 printf %s "(cached) " >&6
6064 else case e in #(
6065 e) if test -n "$ac_ct_OBJDUMP"; then
6066 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 case $as_dir in #(((
6073 '') as_dir=./ ;;
6074 */) ;;
6075 *) as_dir=$as_dir/ ;;
6076 esac
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi ;;
6088 esac
6089 fi
6090 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6091 if test -n "$ac_ct_OBJDUMP"; then
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6093 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6094 else
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 printf "%s\n" "no" >&6; }
6097 fi
6098
6099 if test "x$ac_ct_OBJDUMP" = x; then
6100 OBJDUMP="false"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 OBJDUMP=$ac_ct_OBJDUMP
6109 fi
6110 else
6111 OBJDUMP="$ac_cv_prog_OBJDUMP"
6112 fi
6113
6114 test -z "$OBJDUMP" && OBJDUMP=objdump
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6125 printf %s "checking how to recognize dependent libraries... " >&6; }
6126 if test ${lt_cv_deplibs_check_method+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else case e in #(
6130 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6131 lt_cv_file_magic_test_file=
6132 lt_cv_deplibs_check_method='unknown'
6133 # Need to set the preceding variable on all platforms that support
6134 # interlibrary dependencies.
6135 # 'none' -- dependencies not supported.
6136 # 'unknown' -- same as none, but documents that we really don't know.
6137 # 'pass_all' -- all dependencies passed with no checks.
6138 # 'file_magic [[regex]]' -- check by looking for files in library path
6139 # that responds to the $file_magic_cmd with a given extended regex.
6140 # If you have 'file' or equivalent on your system and you're not sure
6141 # whether 'pass_all' will *always* work, you probably want this one.
6142
6143 case $host_os in
6144 aix[4-9]*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147
6148 beos*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152 bsdi[45]*)
6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6154 lt_cv_file_magic_cmd='$FILECMD -L'
6155 lt_cv_file_magic_test_file=/shlib/libc.so
6156 ;;
6157
6158 cygwin*)
6159 # func_win32_libid is a shell function defined in ltmain.sh
6160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6161 lt_cv_file_magic_cmd='func_win32_libid'
6162 ;;
6163
6164 mingw* | windows* | pw32*)
6165 # Base MSYS/MinGW do not provide the 'file' command needed by
6166 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6167 # unless we find 'file', for example because we are cross-compiling.
6168 if ( file / ) >/dev/null 2>&1; then
6169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6170 lt_cv_file_magic_cmd='func_win32_libid'
6171 else
6172 # Keep this pattern in sync with the one in func_win32_libid.
6173 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6174 lt_cv_file_magic_cmd='$OBJDUMP -f'
6175 fi
6176 ;;
6177
6178 cegcc*)
6179 # use the weaker test based on 'objdump'. See mingw*.
6180 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6181 lt_cv_file_magic_cmd='$OBJDUMP -f'
6182 ;;
6183
6184 darwin* | rhapsody*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 freebsd* | dragonfly* | midnightbsd*)
6189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6190 case $host_cpu in
6191 i*86 )
6192 # Not sure whether the presence of OpenBSD here was a mistake.
6193 # Let's accept both of them until this is cleared up.
6194 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6195 lt_cv_file_magic_cmd=$FILECMD
6196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6197 ;;
6198 esac
6199 else
6200 lt_cv_deplibs_check_method=pass_all
6201 fi
6202 ;;
6203
6204 haiku*)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207
6208 hpux10.20* | hpux11*)
6209 lt_cv_file_magic_cmd=$FILECMD
6210 case $host_cpu in
6211 ia64*)
6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6214 ;;
6215 hppa*64*)
6216 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]'
6217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6218 ;;
6219 *)
6220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6222 ;;
6223 esac
6224 ;;
6225
6226 interix[3-9]*)
6227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6229 ;;
6230
6231 irix5* | irix6* | nonstopux*)
6232 case $LD in
6233 *-32|*"-32 ") libmagic=32-bit;;
6234 *-n32|*"-n32 ") libmagic=N32;;
6235 *-64|*"-64 ") libmagic=64-bit;;
6236 *) libmagic=never-match;;
6237 esac
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241 # This must be glibc/ELF.
6242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246 *-mlibc)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249
6250 netbsd* | netbsdelf*-gnu)
6251 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6253 else
6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6255 fi
6256 ;;
6257
6258 newos6*)
6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6260 lt_cv_file_magic_cmd=$FILECMD
6261 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6262 ;;
6263
6264 *nto* | *qnx*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 openbsd*)
6269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6271 else
6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6273 fi
6274 ;;
6275
6276 osf3* | osf4* | osf5*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 rdos*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 serenity*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 solaris*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 sysv4 | sysv4.3*)
6297 case $host_vendor in
6298 motorola)
6299 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]'
6300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6301 ;;
6302 ncr)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305 sequent)
6306 lt_cv_file_magic_cmd='/bin/file'
6307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6308 ;;
6309 sni)
6310 lt_cv_file_magic_cmd='/bin/file'
6311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6312 lt_cv_file_magic_test_file=/lib/libc.so
6313 ;;
6314 siemens)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317 pc)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320 esac
6321 ;;
6322
6323 tpf*)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
6326 os2*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329 esac
6330 ;;
6331 esac
6332 fi
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6334 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6335
6336 file_magic_glob=
6337 want_nocaseglob=no
6338 if test "$build" = "$host"; then
6339 case $host_os in
6340 mingw* | windows* | pw32*)
6341 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6342 want_nocaseglob=yes
6343 else
6344 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6345 fi
6346 ;;
6347 esac
6348 fi
6349
6350 file_magic_cmd=$lt_cv_file_magic_cmd
6351 deplibs_check_method=$lt_cv_deplibs_check_method
6352 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else case e in #(
6384 e) if test -n "$DLLTOOL"; then
6385 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 esac
6408 fi
6409 DLLTOOL=$ac_cv_prog_DLLTOOL
6410 if test -n "$DLLTOOL"; then
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6412 printf "%s\n" "$DLLTOOL" >&6; }
6413 else
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 printf "%s\n" "no" >&6; }
6416 fi
6417
6418
6419 fi
6420 if test -z "$ac_cv_prog_DLLTOOL"; then
6421 ac_ct_DLLTOOL=$DLLTOOL
6422 # Extract the first word of "dlltool", so it can be a program name with args.
6423 set dummy dlltool; ac_word=$2
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 printf %s "checking for $ac_word... " >&6; }
6426 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6427 then :
6428 printf %s "(cached) " >&6
6429 else case e in #(
6430 e) if test -n "$ac_ct_DLLTOOL"; then
6431 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436 IFS=$as_save_IFS
6437 case $as_dir in #(((
6438 '') as_dir=./ ;;
6439 */) ;;
6440 *) as_dir=$as_dir/ ;;
6441 esac
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452 fi ;;
6453 esac
6454 fi
6455 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6456 if test -n "$ac_ct_DLLTOOL"; then
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6458 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6459 else
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 printf "%s\n" "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_DLLTOOL" = x; then
6465 DLLTOOL="false"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 DLLTOOL=$ac_ct_DLLTOOL
6474 fi
6475 else
6476 DLLTOOL="$ac_cv_prog_DLLTOOL"
6477 fi
6478
6479 test -z "$DLLTOOL" && DLLTOOL=dlltool
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6491 printf %s "checking how to associate runtime and link libraries... " >&6; }
6492 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else case e in #(
6496 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6497
6498 case $host_os in
6499 cygwin* | mingw* | windows* | pw32* | cegcc*)
6500 # two different shell functions defined in ltmain.sh;
6501 # decide which one to use based on capabilities of $DLLTOOL
6502 case `$DLLTOOL --help 2>&1` in
6503 *--identify-strict*)
6504 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6505 ;;
6506 *)
6507 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6508 ;;
6509 esac
6510 ;;
6511 *)
6512 # fallback: assume linklib IS sharedlib
6513 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6514 ;;
6515 esac
6516 ;;
6517 esac
6518 fi
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6520 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6521 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6522 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6523
6524
6525
6526
6527
6528
6529
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 printf %s "checking for $ac_word... " >&6; }
6535 if test ${ac_cv_prog_RANLIB+y}
6536 then :
6537 printf %s "(cached) " >&6
6538 else case e in #(
6539 e) if test -n "$RANLIB"; then
6540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545 IFS=$as_save_IFS
6546 case $as_dir in #(((
6547 '') as_dir=./ ;;
6548 */) ;;
6549 *) as_dir=$as_dir/ ;;
6550 esac
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi ;;
6562 esac
6563 fi
6564 RANLIB=$ac_cv_prog_RANLIB
6565 if test -n "$RANLIB"; then
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6567 printf "%s\n" "$RANLIB" >&6; }
6568 else
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 printf "%s\n" "no" >&6; }
6571 fi
6572
6573
6574 fi
6575 if test -z "$ac_cv_prog_RANLIB"; then
6576 ac_ct_RANLIB=$RANLIB
6577 # Extract the first word of "ranlib", so it can be a program name with args.
6578 set dummy ranlib; ac_word=$2
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 printf %s "checking for $ac_word... " >&6; }
6581 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6582 then :
6583 printf %s "(cached) " >&6
6584 else case e in #(
6585 e) if test -n "$ac_ct_RANLIB"; then
6586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591 IFS=$as_save_IFS
6592 case $as_dir in #(((
6593 '') as_dir=./ ;;
6594 */) ;;
6595 *) as_dir=$as_dir/ ;;
6596 esac
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_ac_ct_RANLIB="ranlib"
6600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi ;;
6608 esac
6609 fi
6610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6611 if test -n "$ac_ct_RANLIB"; then
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6613 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6614 else
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 printf "%s\n" "no" >&6; }
6617 fi
6618
6619 if test "x$ac_ct_RANLIB" = x; then
6620 RANLIB=":"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned=yes ;;
6627 esac
6628 RANLIB=$ac_ct_RANLIB
6629 fi
6630 else
6631 RANLIB="$ac_cv_prog_RANLIB"
6632 fi
6633
6634 if test -n "$ac_tool_prefix"; then
6635 for ac_prog in ar
6636 do
6637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 printf %s "checking for $ac_word... " >&6; }
6641 if test ${ac_cv_prog_AR+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 case $as_dir in #(((
6653 '') as_dir=./ ;;
6654 */) ;;
6655 *) as_dir=$as_dir/ ;;
6656 esac
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi ;;
6668 esac
6669 fi
6670 AR=$ac_cv_prog_AR
6671 if test -n "$AR"; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6673 printf "%s\n" "$AR" >&6; }
6674 else
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679
6680 test -n "$AR" && break
6681 done
6682 fi
6683 if test -z "$AR"; then
6684 ac_ct_AR=$AR
6685 for ac_prog in ar
6686 do
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 printf %s "checking for $ac_word... " >&6; }
6691 if test ${ac_cv_prog_ac_ct_AR+y}
6692 then :
6693 printf %s "(cached) " >&6
6694 else case e in #(
6695 e) if test -n "$ac_ct_AR"; then
6696 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701 IFS=$as_save_IFS
6702 case $as_dir in #(((
6703 '') as_dir=./ ;;
6704 */) ;;
6705 *) as_dir=$as_dir/ ;;
6706 esac
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_AR="$ac_prog"
6710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi ;;
6718 esac
6719 fi
6720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721 if test -n "$ac_ct_AR"; then
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6723 printf "%s\n" "$ac_ct_AR" >&6; }
6724 else
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 printf "%s\n" "no" >&6; }
6727 fi
6728
6729
6730 test -n "$ac_ct_AR" && break
6731 done
6732
6733 if test "x$ac_ct_AR" = x; then
6734 AR="false"
6735 else
6736 case $cross_compiling:$ac_tool_warned in
6737 yes:)
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6741 esac
6742 AR=$ac_ct_AR
6743 fi
6744 fi
6745
6746 : ${AR=ar}
6747
6748
6749
6750
6751
6752
6753 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6754 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6755 # higher priority because that's what people were doing historically (setting
6756 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6757 # variable obsoleted/removed.
6758
6759 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6760 lt_ar_flags=$AR_FLAGS
6761
6762
6763
6764
6765
6766
6767 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6768 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6769
6770
6771
6772
6773
6774
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6776 printf %s "checking for archiver @FILE support... " >&6; }
6777 if test ${lt_cv_ar_at_file+y}
6778 then :
6779 printf %s "(cached) " >&6
6780 else case e in #(
6781 e) lt_cv_ar_at_file=no
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784
6785 int
6786 main (void)
6787 {
6788
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"
6794 then :
6795 echo conftest.$ac_objext > conftest.lst
6796 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6798 (eval $lt_ar_try) 2>&5
6799 ac_status=$?
6800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; }
6802 if test 0 -eq "$ac_status"; then
6803 # Ensure the archiver fails upon bogus file names.
6804 rm -f conftest.$ac_objext libconftest.a
6805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6806 (eval $lt_ar_try) 2>&5
6807 ac_status=$?
6808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }
6810 if test 0 -ne "$ac_status"; then
6811 lt_cv_ar_at_file=@
6812 fi
6813 fi
6814 rm -f conftest.* libconftest.a
6815
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6818 ;;
6819 esac
6820 fi
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6822 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6823
6824 if test no = "$lt_cv_ar_at_file"; then
6825 archiver_list_spec=
6826 else
6827 archiver_list_spec=$lt_cv_ar_at_file
6828 fi
6829
6830
6831
6832
6833
6834
6835
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}strip; ac_word=$2
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 printf %s "checking for $ac_word... " >&6; }
6841 if test ${ac_cv_prog_STRIP+y}
6842 then :
6843 printf %s "(cached) " >&6
6844 else case e in #(
6845 e) if test -n "$STRIP"; then
6846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 case $as_dir in #(((
6853 '') as_dir=./ ;;
6854 */) ;;
6855 *) as_dir=$as_dir/ ;;
6856 esac
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867 fi ;;
6868 esac
6869 fi
6870 STRIP=$ac_cv_prog_STRIP
6871 if test -n "$STRIP"; then
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6873 printf "%s\n" "$STRIP" >&6; }
6874 else
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 printf "%s\n" "no" >&6; }
6877 fi
6878
6879
6880 fi
6881 if test -z "$ac_cv_prog_STRIP"; then
6882 ac_ct_STRIP=$STRIP
6883 # Extract the first word of "strip", so it can be a program name with args.
6884 set dummy strip; ac_word=$2
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 printf %s "checking for $ac_word... " >&6; }
6887 if test ${ac_cv_prog_ac_ct_STRIP+y}
6888 then :
6889 printf %s "(cached) " >&6
6890 else case e in #(
6891 e) if test -n "$ac_ct_STRIP"; then
6892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 case $as_dir in #(((
6899 '') as_dir=./ ;;
6900 */) ;;
6901 *) as_dir=$as_dir/ ;;
6902 esac
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_ac_ct_STRIP="strip"
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi ;;
6914 esac
6915 fi
6916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6917 if test -n "$ac_ct_STRIP"; then
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6919 printf "%s\n" "$ac_ct_STRIP" >&6; }
6920 else
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 printf "%s\n" "no" >&6; }
6923 fi
6924
6925 if test "x$ac_ct_STRIP" = x; then
6926 STRIP=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 STRIP=$ac_ct_STRIP
6935 fi
6936 else
6937 STRIP="$ac_cv_prog_STRIP"
6938 fi
6939
6940 test -z "$STRIP" && STRIP=:
6941
6942
6943
6944
6945
6946
6947
6948 test -z "$RANLIB" && RANLIB=:
6949
6950
6951
6952
6953
6954
6955 # Determine commands to create old-style static archives.
6956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957 old_postinstall_cmds='chmod 644 $oldlib'
6958 old_postuninstall_cmds=
6959
6960 if test -n "$RANLIB"; then
6961 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6963 fi
6964
6965 case $host_os in
6966 darwin*)
6967 lock_old_archive_extraction=yes ;;
6968 *)
6969 lock_old_archive_extraction=no ;;
6970 esac
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010 # If no C compiler was specified, use CC.
7011 LTCC=${LTCC-"$CC"}
7012
7013 # If no C compiler flags were specified, use CFLAGS.
7014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7015
7016 # Allow CC to be a program name with arguments.
7017 compiler=$CC
7018
7019
7020 # Check for command to grab the raw symbol name followed by C symbol from nm.
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7022 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7023 if test ${lt_cv_sys_global_symbol_pipe+y}
7024 then :
7025 printf %s "(cached) " >&6
7026 else case e in #(
7027 e)
7028 # These are sane defaults that work on at least a few old systems.
7029 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7030
7031 # Character class describing NM global symbol codes.
7032 symcode='[BCDEGRST]'
7033
7034 # Regexp to match symbols that can be accessed directly from C.
7035 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7036
7037 # Define system-specific variables.
7038 case $host_os in
7039 aix*)
7040 symcode='[BCDT]'
7041 ;;
7042 cygwin* | mingw* | windows* | pw32* | cegcc*)
7043 symcode='[ABCDGISTW]'
7044 ;;
7045 hpux*)
7046 if test ia64 = "$host_cpu"; then
7047 symcode='[ABCDEGRST]'
7048 fi
7049 ;;
7050 irix* | nonstopux*)
7051 symcode='[BCDEGRST]'
7052 ;;
7053 osf*)
7054 symcode='[BCDEGQRST]'
7055 ;;
7056 solaris*)
7057 symcode='[BCDRT]'
7058 ;;
7059 sco3.2v5*)
7060 symcode='[DT]'
7061 ;;
7062 sysv4.2uw2*)
7063 symcode='[DT]'
7064 ;;
7065 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7066 symcode='[ABDT]'
7067 ;;
7068 sysv4)
7069 symcode='[DFNSTU]'
7070 ;;
7071 esac
7072
7073 # If we're using GNU nm, then use its standard symbol codes.
7074 case `$NM -V 2>&1` in
7075 *GNU* | *'with BFD'*)
7076 symcode='[ABCDGIRSTW]' ;;
7077 esac
7078
7079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7080 # Gets list of data symbols to import.
7081 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7082 # Adjust the below global symbol transforms to fixup imported variables.
7083 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7084 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7085 lt_c_name_lib_hook="\
7086 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7087 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7088 else
7089 # Disable hooks by default.
7090 lt_cv_sys_global_symbol_to_import=
7091 lt_cdecl_hook=
7092 lt_c_name_hook=
7093 lt_c_name_lib_hook=
7094 fi
7095
7096 # Transform an extracted symbol line into a proper C declaration.
7097 # Some systems (esp. on ia64) link data and code symbols differently,
7098 # so use this general approach.
7099 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7100 $lt_cdecl_hook\
7101 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7102 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7103
7104 # Transform an extracted symbol line into symbol name and symbol address
7105 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7106 $lt_c_name_hook\
7107 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7108 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7109
7110 # Transform an extracted symbol line into symbol name with lib prefix and
7111 # symbol address.
7112 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7113 $lt_c_name_lib_hook\
7114 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7115 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7116 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7117
7118 # Handle CRLF in mingw tool chain
7119 opt_cr=
7120 case $build_os in
7121 mingw* | windows*)
7122 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7123 ;;
7124 esac
7125
7126 # Try without a prefix underscore, then with it.
7127 for ac_symprfx in "" "_"; do
7128
7129 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7130 symxfrm="\\1 $ac_symprfx\\2 \\2"
7131
7132 # Write the raw and C identifiers.
7133 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7134 # Fake it for dumpbin and say T for any non-static function,
7135 # D for any global variable and I for any imported variable.
7136 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7137 # which start with @ or ?.
7138 lt_cv_sys_global_symbol_pipe="$AWK '"\
7139 " {last_section=section; section=\$ 3};"\
7140 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7141 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7142 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7143 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7144 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7145 " \$ 0!~/External *\|/{next};"\
7146 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7147 " {if(hide[section]) next};"\
7148 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7149 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7150 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7151 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7152 " ' prfx=^$ac_symprfx"
7153 else
7154 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7155 fi
7156 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7157
7158 # Check to see that the pipe works correctly.
7159 pipe_works=no
7160
7161 rm -f conftest*
7162 cat > conftest.$ac_ext <<_LT_EOF
7163 #ifdef __cplusplus
7164 extern "C" {
7165 #endif
7166 char nm_test_var;
7167 void nm_test_func(void);
7168 void nm_test_func(void){}
7169 #ifdef __cplusplus
7170 }
7171 #endif
7172 int main(void){nm_test_var='a';nm_test_func();return(0);}
7173 _LT_EOF
7174
7175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7176 (eval $ac_compile) 2>&5
7177 ac_status=$?
7178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7179 test $ac_status = 0; }; then
7180 # Now try to grab the symbols.
7181 nlist=conftest.nm
7182 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7183 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7184 # Try sorting and uniquifying the output.
7185 if sort "$nlist" | uniq > "$nlist"T; then
7186 mv -f "$nlist"T "$nlist"
7187 else
7188 rm -f "$nlist"T
7189 fi
7190
7191 # Make sure that we snagged all the symbols we need.
7192 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7193 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7194 cat <<_LT_EOF > conftest.$ac_ext
7195 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7196 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7197 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7198 relocations are performed -- see ld's documentation on pseudo-relocs. */
7199 # define LT_DLSYM_CONST
7200 #elif defined __osf__
7201 /* This system does not cope well with relocations in const data. */
7202 # define LT_DLSYM_CONST
7203 #else
7204 # define LT_DLSYM_CONST const
7205 #endif
7206
7207 #ifdef __cplusplus
7208 extern "C" {
7209 #endif
7210
7211 _LT_EOF
7212 # Now generate the symbol file.
7213 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7214
7215 cat <<_LT_EOF >> conftest.$ac_ext
7216
7217 /* The mapping between symbol names and symbols. */
7218 LT_DLSYM_CONST struct {
7219 const char *name;
7220 void *address;
7221 }
7222 lt__PROGRAM__LTX_preloaded_symbols[] =
7223 {
7224 { "@PROGRAM@", (void *) 0 },
7225 _LT_EOF
7226 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7227 cat <<\_LT_EOF >> conftest.$ac_ext
7228 {0, (void *) 0}
7229 };
7230
7231 /* This works around a problem in FreeBSD linker */
7232 #ifdef FREEBSD_WORKAROUND
7233 static const void *lt_preloaded_setup() {
7234 return lt__PROGRAM__LTX_preloaded_symbols;
7235 }
7236 #endif
7237
7238 #ifdef __cplusplus
7239 }
7240 #endif
7241 _LT_EOF
7242 # Now try linking the two files.
7243 mv conftest.$ac_objext conftstm.$ac_objext
7244 lt_globsym_save_LIBS=$LIBS
7245 lt_globsym_save_CFLAGS=$CFLAGS
7246 LIBS=conftstm.$ac_objext
7247 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7249 (eval $ac_link) 2>&5
7250 ac_status=$?
7251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7253 pipe_works=yes
7254 fi
7255 LIBS=$lt_globsym_save_LIBS
7256 CFLAGS=$lt_globsym_save_CFLAGS
7257 else
7258 echo "cannot find nm_test_func in $nlist" >&5
7259 fi
7260 else
7261 echo "cannot find nm_test_var in $nlist" >&5
7262 fi
7263 else
7264 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7265 fi
7266 else
7267 echo "$progname: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7269 fi
7270 rm -rf conftest* conftst*
7271
7272 # Do not use the global_symbol_pipe unless it works.
7273 if test yes = "$pipe_works"; then
7274 break
7275 else
7276 lt_cv_sys_global_symbol_pipe=
7277 fi
7278 done
7279 ;;
7280 esac
7281 fi
7282
7283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7285 fi
7286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288 printf "%s\n" "failed" >&6; }
7289 else
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291 printf "%s\n" "ok" >&6; }
7292 fi
7293
7294 # Response file support.
7295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 nm_file_list_spec='@'
7297 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7298 nm_file_list_spec='@'
7299 fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7338 printf %s "checking for sysroot... " >&6; }
7339
7340 # Check whether --with-sysroot was given.
7341 if test ${with_sysroot+y}
7342 then :
7343 withval=$with_sysroot;
7344 else case e in #(
7345 e) with_sysroot=no ;;
7346 esac
7347 fi
7348
7349
7350 lt_sysroot=
7351 case $with_sysroot in #(
7352 yes)
7353 if test yes = "$GCC"; then
7354 # Trim trailing / since we'll always append absolute paths and we want
7355 # to avoid //, if only for less confusing output for the user.
7356 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7357 fi
7358 ;; #(
7359 /*)
7360 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7361 ;; #(
7362 no|'')
7363 ;; #(
7364 *)
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7366 printf "%s\n" "$with_sysroot" >&6; }
7367 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7368 ;;
7369 esac
7370
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7372 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7373
7374
7375
7376
7377
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7379 printf %s "checking for a working dd... " >&6; }
7380 if test ${ac_cv_path_lt_DD+y}
7381 then :
7382 printf %s "(cached) " >&6
7383 else case e in #(
7384 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7385 cat conftest.i conftest.i >conftest2.i
7386 : ${lt_DD:=$DD}
7387 if test -z "$lt_DD"; then
7388 ac_path_lt_DD_found=false
7389 # Loop through the user's path and test for each of PROGNAME-LIST
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 case $as_dir in #(((
7395 '') as_dir=./ ;;
7396 */) ;;
7397 *) as_dir=$as_dir/ ;;
7398 esac
7399 for ac_prog in dd
7400 do
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7403 as_fn_executable_p "$ac_path_lt_DD" || continue
7404 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7405 cmp -s conftest.i conftest.out \
7406 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7407 fi
7408 $ac_path_lt_DD_found && break 3
7409 done
7410 done
7411 done
7412 IFS=$as_save_IFS
7413 if test -z "$ac_cv_path_lt_DD"; then
7414 :
7415 fi
7416 else
7417 ac_cv_path_lt_DD=$lt_DD
7418 fi
7419
7420 rm -f conftest.i conftest2.i conftest.out ;;
7421 esac
7422 fi
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7424 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7425
7426
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7428 printf %s "checking how to truncate binary pipes... " >&6; }
7429 if test ${lt_cv_truncate_bin+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7434 cat conftest.i conftest.i >conftest2.i
7435 lt_cv_truncate_bin=
7436 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7437 cmp -s conftest.i conftest.out \
7438 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7439 fi
7440 rm -f conftest.i conftest2.i conftest.out
7441 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7442 esac
7443 fi
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7445 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7446
7447
7448
7449
7450
7451
7452
7453 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7454 func_cc_basename ()
7455 {
7456 for cc_temp in $*""; do
7457 case $cc_temp in
7458 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7459 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7460 \-*) ;;
7461 *) break;;
7462 esac
7463 done
7464 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7465 }
7466
7467 # Check whether --enable-libtool-lock was given.
7468 if test ${enable_libtool_lock+y}
7469 then :
7470 enableval=$enable_libtool_lock;
7471 fi
7472
7473 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7474
7475 # Some flags need to be propagated to the compiler or linker for good
7476 # libtool support.
7477 case $host in
7478 ia64-*-hpux*)
7479 # Find out what ABI is being produced by ac_compile, and set mode
7480 # options accordingly.
7481 echo 'int i;' > conftest.$ac_ext
7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }; then
7487 case `$FILECMD conftest.$ac_objext` in
7488 *ELF-32*)
7489 HPUX_IA64_MODE=32
7490 ;;
7491 *ELF-64*)
7492 HPUX_IA64_MODE=64
7493 ;;
7494 esac
7495 fi
7496 rm -rf conftest*
7497 ;;
7498 *-*-irix6*)
7499 # Find out what ABI is being produced by ac_compile, and set linker
7500 # options accordingly.
7501 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
7505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 if test yes = "$lt_cv_prog_gnu_ld"; then
7508 case `$FILECMD conftest.$ac_objext` in
7509 *32-bit*)
7510 LD="${LD-ld} -melf32bsmip"
7511 ;;
7512 *N32*)
7513 LD="${LD-ld} -melf32bmipn32"
7514 ;;
7515 *64-bit*)
7516 LD="${LD-ld} -melf64bmip"
7517 ;;
7518 esac
7519 else
7520 case `$FILECMD conftest.$ac_objext` in
7521 *32-bit*)
7522 LD="${LD-ld} -32"
7523 ;;
7524 *N32*)
7525 LD="${LD-ld} -n32"
7526 ;;
7527 *64-bit*)
7528 LD="${LD-ld} -64"
7529 ;;
7530 esac
7531 fi
7532 fi
7533 rm -rf conftest*
7534 ;;
7535
7536 mips64*-*linux*)
7537 # Find out what ABI is being produced by ac_compile, and set linker
7538 # options accordingly.
7539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541 (eval $ac_compile) 2>&5
7542 ac_status=$?
7543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; }; then
7545 emul=elf
7546 case `$FILECMD conftest.$ac_objext` in
7547 *32-bit*)
7548 emul="${emul}32"
7549 ;;
7550 *64-bit*)
7551 emul="${emul}64"
7552 ;;
7553 esac
7554 case `$FILECMD conftest.$ac_objext` in
7555 *MSB*)
7556 emul="${emul}btsmip"
7557 ;;
7558 *LSB*)
7559 emul="${emul}ltsmip"
7560 ;;
7561 esac
7562 case `$FILECMD conftest.$ac_objext` in
7563 *N32*)
7564 emul="${emul}n32"
7565 ;;
7566 esac
7567 LD="${LD-ld} -m $emul"
7568 fi
7569 rm -rf conftest*
7570 ;;
7571
7572 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7573 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7574 # Find out what ABI is being produced by ac_compile, and set linker
7575 # options accordingly. Note that the listed cases only cover the
7576 # situations where additional linker options are needed (such as when
7577 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7578 # vice versa); the common cases where no linker options are needed do
7579 # not appear in the list.
7580 echo 'int i;' > conftest.$ac_ext
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 case `$FILECMD conftest.o` in
7587 *32-bit*)
7588 case $host in
7589 x86_64-*kfreebsd*-gnu)
7590 LD="${LD-ld} -m elf_i386_fbsd"
7591 ;;
7592 x86_64-*linux*|x86_64-gnu*)
7593 case `$FILECMD conftest.o` in
7594 *x86-64*)
7595 LD="${LD-ld} -m elf32_x86_64"
7596 ;;
7597 *)
7598 LD="${LD-ld} -m elf_i386"
7599 ;;
7600 esac
7601 ;;
7602 powerpc64le-*linux*)
7603 LD="${LD-ld} -m elf32lppclinux"
7604 ;;
7605 powerpc64-*linux*)
7606 LD="${LD-ld} -m elf32ppclinux"
7607 ;;
7608 s390x-*linux*)
7609 LD="${LD-ld} -m elf_s390"
7610 ;;
7611 sparc64-*linux*)
7612 LD="${LD-ld} -m elf32_sparc"
7613 ;;
7614 esac
7615 ;;
7616 *64-bit*)
7617 case $host in
7618 x86_64-*kfreebsd*-gnu)
7619 LD="${LD-ld} -m elf_x86_64_fbsd"
7620 ;;
7621 x86_64-*linux*|x86_64-gnu*)
7622 LD="${LD-ld} -m elf_x86_64"
7623 ;;
7624 powerpcle-*linux*)
7625 LD="${LD-ld} -m elf64lppc"
7626 ;;
7627 powerpc-*linux*)
7628 LD="${LD-ld} -m elf64ppc"
7629 ;;
7630 s390*-*linux*|s390*-*tpf*)
7631 LD="${LD-ld} -m elf64_s390"
7632 ;;
7633 sparc*-*linux*)
7634 LD="${LD-ld} -m elf64_sparc"
7635 ;;
7636 esac
7637 ;;
7638 esac
7639 fi
7640 rm -rf conftest*
7641 ;;
7642
7643 *-*-sco3.2v5*)
7644 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7645 SAVE_CFLAGS=$CFLAGS
7646 CFLAGS="$CFLAGS -belf"
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7648 printf %s "checking whether the C compiler needs -belf... " >&6; }
7649 if test ${lt_cv_cc_needs_belf+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else case e in #(
7653 e) ac_ext=c
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661
7662 int
7663 main (void)
7664 {
7665
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_link "$LINENO"
7671 then :
7672 lt_cv_cc_needs_belf=yes
7673 else case e in #(
7674 e) lt_cv_cc_needs_belf=no ;;
7675 esac
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7678 conftest$ac_exeext conftest.$ac_ext
7679 ac_ext=c
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684 ;;
7685 esac
7686 fi
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7688 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7689 if test yes != "$lt_cv_cc_needs_belf"; then
7690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7691 CFLAGS=$SAVE_CFLAGS
7692 fi
7693 ;;
7694 *-*solaris*)
7695 # Find out what ABI is being produced by ac_compile, and set linker
7696 # options accordingly.
7697 echo 'int i;' > conftest.$ac_ext
7698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7699 (eval $ac_compile) 2>&5
7700 ac_status=$?
7701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7702 test $ac_status = 0; }; then
7703 case `$FILECMD conftest.o` in
7704 *64-bit*)
7705 case $lt_cv_prog_gnu_ld in
7706 yes*)
7707 case $host in
7708 i?86-*-solaris*|x86_64-*-solaris*)
7709 LD="${LD-ld} -m elf_x86_64"
7710 ;;
7711 sparc*-*-solaris*)
7712 LD="${LD-ld} -m elf64_sparc"
7713 ;;
7714 esac
7715 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7716 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7717 LD=${LD-ld}_sol2
7718 fi
7719 ;;
7720 *)
7721 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7722 LD="${LD-ld} -64"
7723 fi
7724 ;;
7725 esac
7726 ;;
7727 esac
7728 fi
7729 rm -rf conftest*
7730 ;;
7731 esac
7732
7733 need_locks=$enable_libtool_lock
7734
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}mt; ac_word=$2
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 printf %s "checking for $ac_word... " >&6; }
7740 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7741 then :
7742 printf %s "(cached) " >&6
7743 else case e in #(
7744 e) if test -n "$MANIFEST_TOOL"; then
7745 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 case $as_dir in #(((
7752 '') as_dir=./ ;;
7753 */) ;;
7754 *) as_dir=$as_dir/ ;;
7755 esac
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi ;;
7767 esac
7768 fi
7769 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7770 if test -n "$MANIFEST_TOOL"; then
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7772 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7773 else
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 printf "%s\n" "no" >&6; }
7776 fi
7777
7778
7779 fi
7780 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7781 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7782 # Extract the first word of "mt", so it can be a program name with args.
7783 set dummy mt; ac_word=$2
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 printf %s "checking for $ac_word... " >&6; }
7786 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7787 then :
7788 printf %s "(cached) " >&6
7789 else case e in #(
7790 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7791 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 case $as_dir in #(((
7798 '') as_dir=./ ;;
7799 */) ;;
7800 *) as_dir=$as_dir/ ;;
7801 esac
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi ;;
7813 esac
7814 fi
7815 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7816 if test -n "$ac_ct_MANIFEST_TOOL"; then
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7818 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7819 else
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 printf "%s\n" "no" >&6; }
7822 fi
7823
7824 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7825 MANIFEST_TOOL=":"
7826 else
7827 case $cross_compiling:$ac_tool_warned in
7828 yes:)
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7834 fi
7835 else
7836 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7837 fi
7838
7839 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7841 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7842 if test ${lt_cv_path_manifest_tool+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else case e in #(
7846 e) lt_cv_path_manifest_tool=no
7847 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7848 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7849 cat conftest.err >&5
7850 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7851 lt_cv_path_manifest_tool=yes
7852 fi
7853 rm -f conftest* ;;
7854 esac
7855 fi
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7857 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7858 if test yes != "$lt_cv_path_manifest_tool"; then
7859 MANIFEST_TOOL=:
7860 fi
7861
7862
7863
7864
7865
7866
7867 case $host_os in
7868 rhapsody* | darwin*)
7869 if test -n "$ac_tool_prefix"; then
7870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7871 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 printf %s "checking for $ac_word... " >&6; }
7874 if test ${ac_cv_prog_DSYMUTIL+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else case e in #(
7878 e) if test -n "$DSYMUTIL"; then
7879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884 IFS=$as_save_IFS
7885 case $as_dir in #(((
7886 '') as_dir=./ ;;
7887 */) ;;
7888 *) as_dir=$as_dir/ ;;
7889 esac
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi ;;
7901 esac
7902 fi
7903 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7904 if test -n "$DSYMUTIL"; then
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7906 printf "%s\n" "$DSYMUTIL" >&6; }
7907 else
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 printf "%s\n" "no" >&6; }
7910 fi
7911
7912
7913 fi
7914 if test -z "$ac_cv_prog_DSYMUTIL"; then
7915 ac_ct_DSYMUTIL=$DSYMUTIL
7916 # Extract the first word of "dsymutil", so it can be a program name with args.
7917 set dummy dsymutil; ac_word=$2
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 printf %s "checking for $ac_word... " >&6; }
7920 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7921 then :
7922 printf %s "(cached) " >&6
7923 else case e in #(
7924 e) if test -n "$ac_ct_DSYMUTIL"; then
7925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 case $as_dir in #(((
7932 '') as_dir=./ ;;
7933 */) ;;
7934 *) as_dir=$as_dir/ ;;
7935 esac
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi ;;
7947 esac
7948 fi
7949 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7950 if test -n "$ac_ct_DSYMUTIL"; then
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7952 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7953 else
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 printf "%s\n" "no" >&6; }
7956 fi
7957
7958 if test "x$ac_ct_DSYMUTIL" = x; then
7959 DSYMUTIL=":"
7960 else
7961 case $cross_compiling:$ac_tool_warned in
7962 yes:)
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7965 ac_tool_warned=yes ;;
7966 esac
7967 DSYMUTIL=$ac_ct_DSYMUTIL
7968 fi
7969 else
7970 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7971 fi
7972
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_NMEDIT+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else case e in #(
7982 e) if test -n "$NMEDIT"; then
7983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi ;;
8005 esac
8006 fi
8007 NMEDIT=$ac_cv_prog_NMEDIT
8008 if test -n "$NMEDIT"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8010 printf "%s\n" "$NMEDIT" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_NMEDIT"; then
8019 ac_ct_NMEDIT=$NMEDIT
8020 # Extract the first word of "nmedit", so it can be a program name with args.
8021 set dummy nmedit; ac_word=$2
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 printf %s "checking for $ac_word... " >&6; }
8024 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else case e in #(
8028 e) if test -n "$ac_ct_NMEDIT"; then
8029 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 case $as_dir in #(((
8036 '') as_dir=./ ;;
8037 */) ;;
8038 *) as_dir=$as_dir/ ;;
8039 esac
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi ;;
8051 esac
8052 fi
8053 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8054 if test -n "$ac_ct_NMEDIT"; then
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8056 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8057 else
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 printf "%s\n" "no" >&6; }
8060 fi
8061
8062 if test "x$ac_ct_NMEDIT" = x; then
8063 NMEDIT=":"
8064 else
8065 case $cross_compiling:$ac_tool_warned in
8066 yes:)
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069 ac_tool_warned=yes ;;
8070 esac
8071 NMEDIT=$ac_ct_NMEDIT
8072 fi
8073 else
8074 NMEDIT="$ac_cv_prog_NMEDIT"
8075 fi
8076
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8079 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 printf %s "checking for $ac_word... " >&6; }
8082 if test ${ac_cv_prog_LIPO+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else case e in #(
8086 e) if test -n "$LIPO"; then
8087 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 case $as_dir in #(((
8094 '') as_dir=./ ;;
8095 */) ;;
8096 *) as_dir=$as_dir/ ;;
8097 esac
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi ;;
8109 esac
8110 fi
8111 LIPO=$ac_cv_prog_LIPO
8112 if test -n "$LIPO"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8114 printf "%s\n" "$LIPO" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_LIPO"; then
8123 ac_ct_LIPO=$LIPO
8124 # Extract the first word of "lipo", so it can be a program name with args.
8125 set dummy lipo; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_ac_ct_LIPO+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else case e in #(
8132 e) if test -n "$ac_ct_LIPO"; then
8133 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_LIPO="lipo"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi ;;
8155 esac
8156 fi
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 printf "%s\n" "$ac_ct_LIPO" >&6; }
8161 else
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 printf "%s\n" "no" >&6; }
8164 fi
8165
8166 if test "x$ac_ct_LIPO" = x; then
8167 LIPO=":"
8168 else
8169 case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175 LIPO=$ac_ct_LIPO
8176 fi
8177 else
8178 LIPO="$ac_cv_prog_LIPO"
8179 fi
8180
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 printf %s "checking for $ac_word... " >&6; }
8186 if test ${ac_cv_prog_OTOOL+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) if test -n "$OTOOL"; then
8191 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196 IFS=$as_save_IFS
8197 case $as_dir in #(((
8198 '') as_dir=./ ;;
8199 */) ;;
8200 *) as_dir=$as_dir/ ;;
8201 esac
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8211
8212 fi ;;
8213 esac
8214 fi
8215 OTOOL=$ac_cv_prog_OTOOL
8216 if test -n "$OTOOL"; then
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8218 printf "%s\n" "$OTOOL" >&6; }
8219 else
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 printf "%s\n" "no" >&6; }
8222 fi
8223
8224
8225 fi
8226 if test -z "$ac_cv_prog_OTOOL"; then
8227 ac_ct_OTOOL=$OTOOL
8228 # Extract the first word of "otool", so it can be a program name with args.
8229 set dummy otool; ac_word=$2
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 printf %s "checking for $ac_word... " >&6; }
8232 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else case e in #(
8236 e) if test -n "$ac_ct_OTOOL"; then
8237 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 case $as_dir in #(((
8244 '') as_dir=./ ;;
8245 */) ;;
8246 *) as_dir=$as_dir/ ;;
8247 esac
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_OTOOL="otool"
8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi ;;
8259 esac
8260 fi
8261 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8262 if test -n "$ac_ct_OTOOL"; then
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8264 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8265 else
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 printf "%s\n" "no" >&6; }
8268 fi
8269
8270 if test "x$ac_ct_OTOOL" = x; then
8271 OTOOL=":"
8272 else
8273 case $cross_compiling:$ac_tool_warned in
8274 yes:)
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8277 ac_tool_warned=yes ;;
8278 esac
8279 OTOOL=$ac_ct_OTOOL
8280 fi
8281 else
8282 OTOOL="$ac_cv_prog_OTOOL"
8283 fi
8284
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 printf %s "checking for $ac_word... " >&6; }
8290 if test ${ac_cv_prog_OTOOL64+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) if test -n "$OTOOL64"; then
8295 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 case $as_dir in #(((
8302 '') as_dir=./ ;;
8303 */) ;;
8304 *) as_dir=$as_dir/ ;;
8305 esac
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi ;;
8317 esac
8318 fi
8319 OTOOL64=$ac_cv_prog_OTOOL64
8320 if test -n "$OTOOL64"; then
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8322 printf "%s\n" "$OTOOL64" >&6; }
8323 else
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 printf "%s\n" "no" >&6; }
8326 fi
8327
8328
8329 fi
8330 if test -z "$ac_cv_prog_OTOOL64"; then
8331 ac_ct_OTOOL64=$OTOOL64
8332 # Extract the first word of "otool64", so it can be a program name with args.
8333 set dummy otool64; ac_word=$2
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 printf %s "checking for $ac_word... " >&6; }
8336 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8337 then :
8338 printf %s "(cached) " >&6
8339 else case e in #(
8340 e) if test -n "$ac_ct_OTOOL64"; then
8341 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346 IFS=$as_save_IFS
8347 case $as_dir in #(((
8348 '') as_dir=./ ;;
8349 */) ;;
8350 *) as_dir=$as_dir/ ;;
8351 esac
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_ac_ct_OTOOL64="otool64"
8355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi ;;
8363 esac
8364 fi
8365 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8366 if test -n "$ac_ct_OTOOL64"; then
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8368 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8369 else
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 printf "%s\n" "no" >&6; }
8372 fi
8373
8374 if test "x$ac_ct_OTOOL64" = x; then
8375 OTOOL64=":"
8376 else
8377 case $cross_compiling:$ac_tool_warned in
8378 yes:)
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383 OTOOL64=$ac_ct_OTOOL64
8384 fi
8385 else
8386 OTOOL64="$ac_cv_prog_OTOOL64"
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8416 printf %s "checking for -single_module linker flag... " >&6; }
8417 if test ${lt_cv_apple_cc_single_mod+y}
8418 then :
8419 printf %s "(cached) " >&6
8420 else case e in #(
8421 e) lt_cv_apple_cc_single_mod=no
8422 if test -z "$LT_MULTI_MODULE"; then
8423 # By default we will add the -single_module flag. You can override
8424 # by either setting the environment variable LT_MULTI_MODULE
8425 # non-empty at configure time, or by adding -multi_module to the
8426 # link flags.
8427 rm -rf libconftest.dylib*
8428 echo "int foo(void){return 1;}" > conftest.c
8429 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8430 -dynamiclib -Wl,-single_module conftest.c" >&5
8431 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8432 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8433 _lt_result=$?
8434 # If there is a non-empty error log, and "single_module"
8435 # appears in it, assume the flag caused a linker warning
8436 if test -s conftest.err && $GREP single_module conftest.err; then
8437 cat conftest.err >&5
8438 # Otherwise, if the output was created with a 0 exit code from
8439 # the compiler, it worked.
8440 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8441 lt_cv_apple_cc_single_mod=yes
8442 else
8443 cat conftest.err >&5
8444 fi
8445 rm -rf libconftest.dylib*
8446 rm -f conftest.*
8447 fi ;;
8448 esac
8449 fi
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8451 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8452
8453 # Feature test to disable chained fixups since it is not
8454 # compatible with '-undefined dynamic_lookup'
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8456 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8457 if test ${lt_cv_support_no_fixup_chains+y}
8458 then :
8459 printf %s "(cached) " >&6
8460 else case e in #(
8461 e) save_LDFLAGS=$LDFLAGS
8462 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465
8466 int
8467 main (void)
8468 {
8469
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_link "$LINENO"
8475 then :
8476 lt_cv_support_no_fixup_chains=yes
8477 else case e in #(
8478 e) lt_cv_support_no_fixup_chains=no
8479 ;;
8480 esac
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8483 conftest$ac_exeext conftest.$ac_ext
8484 LDFLAGS=$save_LDFLAGS
8485
8486 ;;
8487 esac
8488 fi
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8490 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8491
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8493 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8494 if test ${lt_cv_ld_exported_symbols_list+y}
8495 then :
8496 printf %s "(cached) " >&6
8497 else case e in #(
8498 e) lt_cv_ld_exported_symbols_list=no
8499 save_LDFLAGS=$LDFLAGS
8500 echo "_main" > conftest.sym
8501 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504
8505 int
8506 main (void)
8507 {
8508
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"
8514 then :
8515 lt_cv_ld_exported_symbols_list=yes
8516 else case e in #(
8517 e) lt_cv_ld_exported_symbols_list=no ;;
8518 esac
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LDFLAGS=$save_LDFLAGS
8523 ;;
8524 esac
8525 fi
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8527 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8528
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8530 printf %s "checking for -force_load linker flag... " >&6; }
8531 if test ${lt_cv_ld_force_load+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) lt_cv_ld_force_load=no
8536 cat > conftest.c << _LT_EOF
8537 int forced_loaded() { return 2;}
8538 _LT_EOF
8539 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8540 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8541 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8542 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8543 echo "$RANLIB libconftest.a" >&5
8544 $RANLIB libconftest.a 2>&5
8545 cat > conftest.c << _LT_EOF
8546 int main(void) { return 0;}
8547 _LT_EOF
8548 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8549 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8550 _lt_result=$?
8551 if test -s conftest.err && $GREP force_load conftest.err; then
8552 cat conftest.err >&5
8553 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8554 lt_cv_ld_force_load=yes
8555 else
8556 cat conftest.err >&5
8557 fi
8558 rm -f conftest.err libconftest.a conftest conftest.c
8559 rm -rf conftest.dSYM
8560 ;;
8561 esac
8562 fi
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8564 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8565 case $host_os in
8566 rhapsody* | darwin1.[012])
8567 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8568 darwin1.*)
8569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8570 darwin*)
8571 case $MACOSX_DEPLOYMENT_TARGET,$host in
8572 10.[012],*|,*powerpc*-darwin[5-8]*)
8573 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8574 *)
8575 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8576 if test yes = "$lt_cv_support_no_fixup_chains"; then
8577 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8578 fi
8579 ;;
8580 esac
8581 ;;
8582 esac
8583 if test yes = "$lt_cv_apple_cc_single_mod"; then
8584 _lt_dar_single_mod='$single_module'
8585 fi
8586 _lt_dar_needs_single_mod=no
8587 case $host_os in
8588 rhapsody* | darwin1.*)
8589 _lt_dar_needs_single_mod=yes ;;
8590 darwin*)
8591 # When targeting Mac OS X 10.4 (darwin 8) or later,
8592 # -single_module is the default and -multi_module is unsupported.
8593 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8594 # target any OS version that needs -single_module.
8595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8596 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8597 _lt_dar_needs_single_mod=yes ;;
8598 esac
8599 ;;
8600 esac
8601 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8602 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8603 else
8604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8605 fi
8606 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8607 _lt_dsymutil='~$DSYMUTIL $lib || :'
8608 else
8609 _lt_dsymutil=
8610 fi
8611 ;;
8612 esac
8613
8614 # func_munge_path_list VARIABLE PATH
8615 # -----------------------------------
8616 # VARIABLE is name of variable containing _space_ separated list of
8617 # directories to be munged by the contents of PATH, which is string
8618 # having a format:
8619 # "DIR[:DIR]:"
8620 # string "DIR[ DIR]" will be prepended to VARIABLE
8621 # ":DIR[:DIR]"
8622 # string "DIR[ DIR]" will be appended to VARIABLE
8623 # "DIRP[:DIRP]::[DIRA:]DIRA"
8624 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8625 # "DIRA[ DIRA]" will be appended to VARIABLE
8626 # "DIR[:DIR]"
8627 # VARIABLE will be replaced by "DIR[ DIR]"
8628 func_munge_path_list ()
8629 {
8630 case x$2 in
8631 x)
8632 ;;
8633 *:)
8634 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8635 ;;
8636 x:*)
8637 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8638 ;;
8639 *::*)
8640 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8641 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8642 ;;
8643 *)
8644 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8645 ;;
8646 esac
8647 }
8648
8649 ac_header= ac_cache=
8650 for ac_item in $ac_header_c_list
8651 do
8652 if test $ac_cache; then
8653 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8654 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8655 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8656 fi
8657 ac_header= ac_cache=
8658 elif test $ac_header; then
8659 ac_cache=$ac_item
8660 else
8661 ac_header=$ac_item
8662 fi
8663 done
8664
8665
8666
8667
8668
8669
8670
8671
8672 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8673 then :
8674
8675 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8676
8677 fi
8678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8679 "
8680 if test "x$ac_cv_header_dlfcn_h" = xyes
8681 then :
8682 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8683
8684 fi
8685
8686
8687
8688
8689
8690 # Set options
8691
8692
8693
8694 enable_dlopen=no
8695
8696
8697 enable_win32_dll=no
8698
8699
8700 # Check whether --enable-shared was given.
8701 if test ${enable_shared+y}
8702 then :
8703 enableval=$enable_shared; p=${PACKAGE-default}
8704 case $enableval in
8705 yes) enable_shared=yes ;;
8706 no) enable_shared=no ;;
8707 *)
8708 enable_shared=no
8709 # Look at the argument we got. We use all the common list separators.
8710 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8711 for pkg in $enableval; do
8712 IFS=$lt_save_ifs
8713 if test "X$pkg" = "X$p"; then
8714 enable_shared=yes
8715 fi
8716 done
8717 IFS=$lt_save_ifs
8718 ;;
8719 esac
8720 else case e in #(
8721 e) enable_shared=yes ;;
8722 esac
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 # Check whether --enable-static was given.
8734 if test ${enable_static+y}
8735 then :
8736 enableval=$enable_static; p=${PACKAGE-default}
8737 case $enableval in
8738 yes) enable_static=yes ;;
8739 no) enable_static=no ;;
8740 *)
8741 enable_static=no
8742 # Look at the argument we got. We use all the common list separators.
8743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8744 for pkg in $enableval; do
8745 IFS=$lt_save_ifs
8746 if test "X$pkg" = "X$p"; then
8747 enable_static=yes
8748 fi
8749 done
8750 IFS=$lt_save_ifs
8751 ;;
8752 esac
8753 else case e in #(
8754 e) enable_static=yes ;;
8755 esac
8756 fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766 # Check whether --enable-pic was given.
8767 if test ${enable_pic+y}
8768 then :
8769 enableval=$enable_pic; lt_p=${PACKAGE-default}
8770 case $enableval in
8771 yes|no) pic_mode=$enableval ;;
8772 *)
8773 pic_mode=default
8774 # Look at the argument we got. We use all the common list separators.
8775 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8776 for lt_pkg in $enableval; do
8777 IFS=$lt_save_ifs
8778 if test "X$lt_pkg" = "X$lt_p"; then
8779 pic_mode=yes
8780 fi
8781 done
8782 IFS=$lt_save_ifs
8783 ;;
8784 esac
8785 else case e in #(
8786 e) # Check whether --with-pic was given.
8787 if test ${with_pic+y}
8788 then :
8789 withval=$with_pic; lt_p=${PACKAGE-default}
8790 case $withval in
8791 yes|no) pic_mode=$withval ;;
8792 *)
8793 pic_mode=default
8794 # Look at the argument we got. We use all the common list separators.
8795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8796 for lt_pkg in $withval; do
8797 IFS=$lt_save_ifs
8798 if test "X$lt_pkg" = "X$lt_p"; then
8799 pic_mode=yes
8800 fi
8801 done
8802 IFS=$lt_save_ifs
8803 ;;
8804 esac
8805 else case e in #(
8806 e) pic_mode=default ;;
8807 esac
8808 fi
8809
8810 ;;
8811 esac
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820
8821 # Check whether --enable-fast-install was given.
8822 if test ${enable_fast_install+y}
8823 then :
8824 enableval=$enable_fast_install; p=${PACKAGE-default}
8825 case $enableval in
8826 yes) enable_fast_install=yes ;;
8827 no) enable_fast_install=no ;;
8828 *)
8829 enable_fast_install=no
8830 # Look at the argument we got. We use all the common list separators.
8831 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8832 for pkg in $enableval; do
8833 IFS=$lt_save_ifs
8834 if test "X$pkg" = "X$p"; then
8835 enable_fast_install=yes
8836 fi
8837 done
8838 IFS=$lt_save_ifs
8839 ;;
8840 esac
8841 else case e in #(
8842 e) enable_fast_install=yes ;;
8843 esac
8844 fi
8845
8846
8847
8848
8849
8850
8851
8852
8853 shared_archive_member_spec=
8854 case $host,$enable_shared in
8855 power*-*-aix[5-9]*,yes)
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8857 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8858 # Check whether --enable-aix-soname was given.
8859 if test ${enable_aix_soname+y}
8860 then :
8861 enableval=$enable_aix_soname; case $enableval in
8862 aix|svr4|both)
8863 ;;
8864 *)
8865 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8866 ;;
8867 esac
8868 lt_cv_with_aix_soname=$enable_aix_soname
8869 else case e in #(
8870 e) # Check whether --with-aix-soname was given.
8871 if test ${with_aix_soname+y}
8872 then :
8873 withval=$with_aix_soname; case $withval in
8874 aix|svr4|both)
8875 ;;
8876 *)
8877 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8878 ;;
8879 esac
8880 lt_cv_with_aix_soname=$with_aix_soname
8881 else case e in #(
8882 e) if test ${lt_cv_with_aix_soname+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else case e in #(
8886 e) lt_cv_with_aix_soname=aix ;;
8887 esac
8888 fi
8889 ;;
8890 esac
8891 fi
8892
8893 enable_aix_soname=$lt_cv_with_aix_soname ;;
8894 esac
8895 fi
8896
8897 with_aix_soname=$enable_aix_soname
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8899 printf "%s\n" "$with_aix_soname" >&6; }
8900 if test aix != "$with_aix_soname"; then
8901 # For the AIX way of multilib, we name the shared archive member
8902 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8903 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8904 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8905 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8906 if test 64 = "${OBJECT_MODE-32}"; then
8907 shared_archive_member_spec=shr_64
8908 else
8909 shared_archive_member_spec=shr
8910 fi
8911 fi
8912 ;;
8913 *)
8914 with_aix_soname=aix
8915 ;;
8916 esac
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 # This can be used to rebuild libtool when needed
8928 LIBTOOL_DEPS=$ltmain
8929
8930 # Always use our own libtool.
8931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 test -z "$LN_S" && LN_S="ln -s"
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 if test -n "${ZSH_VERSION+set}"; then
8978 setopt NO_GLOB_SUBST
8979 fi
8980
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8982 printf %s "checking for objdir... " >&6; }
8983 if test ${lt_cv_objdir+y}
8984 then :
8985 printf %s "(cached) " >&6
8986 else case e in #(
8987 e) rm -f .libs 2>/dev/null
8988 mkdir .libs 2>/dev/null
8989 if test -d .libs; then
8990 lt_cv_objdir=.libs
8991 else
8992 # MS-DOS does not allow filenames that begin with a dot.
8993 lt_cv_objdir=_libs
8994 fi
8995 rmdir .libs 2>/dev/null ;;
8996 esac
8997 fi
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8999 printf "%s\n" "$lt_cv_objdir" >&6; }
9000 objdir=$lt_cv_objdir
9001
9002
9003
9004
9005
9006 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9007
9008
9009
9010
9011 case $host_os in
9012 aix3*)
9013 # AIX sometimes has problems with the GCC collect2 program. For some
9014 # reason, if we set the COLLECT_NAMES environment variable, the problems
9015 # vanish in a puff of smoke.
9016 if test set != "${COLLECT_NAMES+set}"; then
9017 COLLECT_NAMES=
9018 export COLLECT_NAMES
9019 fi
9020 ;;
9021 esac
9022
9023 # Global variables:
9024 ofile=libtool
9025 can_build_shared=yes
9026
9027 # All known linkers require a '.a' archive for static linking (except MSVC and
9028 # ICC, which need '.lib').
9029 libext=a
9030
9031 with_gnu_ld=$lt_cv_prog_gnu_ld
9032
9033 old_CC=$CC
9034 old_CFLAGS=$CFLAGS
9035
9036 # Set sane defaults for various variables
9037 test -z "$CC" && CC=cc
9038 test -z "$LTCC" && LTCC=$CC
9039 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9040 test -z "$LD" && LD=ld
9041 test -z "$ac_objext" && ac_objext=o
9042
9043 func_cc_basename $compiler
9044 cc_basename=$func_cc_basename_result
9045
9046
9047 # Only perform the check for file, if the check method requires it
9048 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9049 case $deplibs_check_method in
9050 file_magic*)
9051 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9053 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9054 if test ${lt_cv_path_MAGIC_CMD+y}
9055 then :
9056 printf %s "(cached) " >&6
9057 else case e in #(
9058 e) case $MAGIC_CMD in
9059 [\\/*] | ?:[\\/]*)
9060 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9061 ;;
9062 *)
9063 lt_save_MAGIC_CMD=$MAGIC_CMD
9064 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9066 for ac_dir in $ac_dummy; do
9067 IFS=$lt_save_ifs
9068 test -z "$ac_dir" && ac_dir=.
9069 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9070 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9071 if test -n "$file_magic_test_file"; then
9072 case $deplibs_check_method in
9073 "file_magic "*)
9074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9075 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9077 $EGREP "$file_magic_regex" > /dev/null; then
9078 :
9079 else
9080 cat <<_LT_EOF 1>&2
9081
9082 *** Warning: the command libtool uses to detect shared libraries,
9083 *** $file_magic_cmd, produces output that libtool cannot recognize.
9084 *** The result is that libtool may fail to recognize shared libraries
9085 *** as such. This will affect the creation of libtool libraries that
9086 *** depend on shared libraries, but programs linked with such libtool
9087 *** libraries will work regardless of this problem. Nevertheless, you
9088 *** may want to report the problem to your system manager and/or to
9089 *** [email protected]
9090
9091 _LT_EOF
9092 fi ;;
9093 esac
9094 fi
9095 break
9096 fi
9097 done
9098 IFS=$lt_save_ifs
9099 MAGIC_CMD=$lt_save_MAGIC_CMD
9100 ;;
9101 esac ;;
9102 esac
9103 fi
9104
9105 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9106 if test -n "$MAGIC_CMD"; then
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9108 printf "%s\n" "$MAGIC_CMD" >&6; }
9109 else
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 printf "%s\n" "no" >&6; }
9112 fi
9113
9114
9115
9116
9117
9118 if test -z "$lt_cv_path_MAGIC_CMD"; then
9119 if test -n "$ac_tool_prefix"; then
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9121 printf %s "checking for file... " >&6; }
9122 if test ${lt_cv_path_MAGIC_CMD+y}
9123 then :
9124 printf %s "(cached) " >&6
9125 else case e in #(
9126 e) case $MAGIC_CMD in
9127 [\\/*] | ?:[\\/]*)
9128 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9129 ;;
9130 *)
9131 lt_save_MAGIC_CMD=$MAGIC_CMD
9132 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9134 for ac_dir in $ac_dummy; do
9135 IFS=$lt_save_ifs
9136 test -z "$ac_dir" && ac_dir=.
9137 if test -f "$ac_dir/file"; then
9138 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9139 if test -n "$file_magic_test_file"; then
9140 case $deplibs_check_method in
9141 "file_magic "*)
9142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9143 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9145 $EGREP "$file_magic_regex" > /dev/null; then
9146 :
9147 else
9148 cat <<_LT_EOF 1>&2
9149
9150 *** Warning: the command libtool uses to detect shared libraries,
9151 *** $file_magic_cmd, produces output that libtool cannot recognize.
9152 *** The result is that libtool may fail to recognize shared libraries
9153 *** as such. This will affect the creation of libtool libraries that
9154 *** depend on shared libraries, but programs linked with such libtool
9155 *** libraries will work regardless of this problem. Nevertheless, you
9156 *** may want to report the problem to your system manager and/or to
9157 *** [email protected]
9158
9159 _LT_EOF
9160 fi ;;
9161 esac
9162 fi
9163 break
9164 fi
9165 done
9166 IFS=$lt_save_ifs
9167 MAGIC_CMD=$lt_save_MAGIC_CMD
9168 ;;
9169 esac ;;
9170 esac
9171 fi
9172
9173 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9174 if test -n "$MAGIC_CMD"; then
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9176 printf "%s\n" "$MAGIC_CMD" >&6; }
9177 else
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 printf "%s\n" "no" >&6; }
9180 fi
9181
9182
9183 else
9184 MAGIC_CMD=:
9185 fi
9186 fi
9187
9188 fi
9189 ;;
9190 esac
9191
9192 # Use C for the default configuration in the libtool script
9193
9194 lt_save_CC=$CC
9195 ac_ext=c
9196 ac_cpp='$CPP $CPPFLAGS'
9197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9200
9201
9202 # Source file extension for C test sources.
9203 ac_ext=c
9204
9205 # Object file extension for compiled C test sources.
9206 objext=o
9207 objext=$objext
9208
9209 # Code to be used in simple compile tests
9210 lt_simple_compile_test_code="int some_variable = 0;"
9211
9212 # Code to be used in simple link tests
9213 lt_simple_link_test_code='int main(void){return(0);}'
9214
9215
9216
9217
9218
9219
9220
9221 # If no C compiler was specified, use CC.
9222 LTCC=${LTCC-"$CC"}
9223
9224 # If no C compiler flags were specified, use CFLAGS.
9225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9226
9227 # Allow CC to be a program name with arguments.
9228 compiler=$CC
9229
9230 # Save the default compiler, since it gets overwritten when the other
9231 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9232 compiler_DEFAULT=$CC
9233
9234 # save warnings/boilerplate of simple test code
9235 ac_outfile=conftest.$ac_objext
9236 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9238 _lt_compiler_boilerplate=`cat conftest.err`
9239 $RM conftest*
9240
9241 ac_outfile=conftest.$ac_objext
9242 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9244 _lt_linker_boilerplate=`cat conftest.err`
9245 $RM -r conftest*
9246
9247
9248 ## CAVEAT EMPTOR:
9249 ## There is no encapsulation within the following macros, do not change
9250 ## the running order or otherwise move them around unless you know exactly
9251 ## what you are doing...
9252 if test -n "$compiler"; then
9253
9254 lt_prog_compiler_no_builtin_flag=
9255
9256 if test yes = "$GCC"; then
9257 case $cc_basename in
9258 nvcc*)
9259 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9260 *)
9261 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9262 esac
9263
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9265 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9266 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else case e in #(
9270 e) lt_cv_prog_compiler_rtti_exceptions=no
9271 ac_outfile=conftest.$ac_objext
9272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9273 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9274 # Insert the option either (1) after the last *FLAGS variable, or
9275 # (2) before a word containing "conftest.", or (3) at the end.
9276 # Note that $ac_compile itself does not contain backslashes and begins
9277 # with a dollar sign (not a hyphen), so the echo should work correctly.
9278 # The option is referenced via a variable to avoid confusing sed.
9279 lt_compile=`echo "$ac_compile" | $SED \
9280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9282 -e 's:$: $lt_compiler_flag:'`
9283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9284 (eval "$lt_compile" 2>conftest.err)
9285 ac_status=$?
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 if (exit $ac_status) && test -s "$ac_outfile"; then
9289 # The compiler can only warn and ignore the option if not recognized
9290 # So say no if there are warnings other than the usual output.
9291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9294 lt_cv_prog_compiler_rtti_exceptions=yes
9295 fi
9296 fi
9297 $RM conftest*
9298 ;;
9299 esac
9300 fi
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9302 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9303
9304 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9306 else
9307 :
9308 fi
9309
9310 fi
9311
9312
9313
9314
9315
9316
9317 lt_prog_compiler_wl=
9318 lt_prog_compiler_pic=
9319 lt_prog_compiler_static=
9320
9321
9322 if test yes = "$GCC"; then
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_static='-static'
9325
9326 case $host_os in
9327 aix*)
9328 # All AIX code is PIC.
9329 if test ia64 = "$host_cpu"; then
9330 # AIX 5 now supports IA64 processor
9331 lt_prog_compiler_static='-Bstatic'
9332 fi
9333 lt_prog_compiler_pic='-fPIC'
9334 ;;
9335
9336 amigaos*)
9337 case $host_cpu in
9338 powerpc)
9339 # see comment about AmigaOS4 .so support
9340 lt_prog_compiler_pic='-fPIC'
9341 ;;
9342 m68k)
9343 # FIXME: we need at least 68020 code to build shared libraries, but
9344 # adding the '-m68020' flag to GCC prevents building anything better,
9345 # like '-m68040'.
9346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9347 ;;
9348 esac
9349 ;;
9350
9351 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9352 # PIC is the default for these OSes.
9353 ;;
9354
9355 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9356 # This hack is so that the source file can tell whether it is being
9357 # built for inclusion in a dll (and should export symbols for example).
9358 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9359 # (--disable-auto-import) libraries
9360 lt_prog_compiler_pic='-DDLL_EXPORT'
9361 case $host_os in
9362 os2*)
9363 lt_prog_compiler_static='$wl-static'
9364 ;;
9365 esac
9366 ;;
9367
9368 darwin* | rhapsody*)
9369 # PIC is the default on this platform
9370 # Common symbols not allowed in MH_DYLIB files
9371 lt_prog_compiler_pic='-fno-common'
9372 ;;
9373
9374 haiku*)
9375 # PIC is the default for Haiku.
9376 # The "-static" flag exists, but is broken.
9377 lt_prog_compiler_static=
9378 ;;
9379
9380 hpux*)
9381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9383 # sets the default TLS model and affects inlining.
9384 case $host_cpu in
9385 hppa*64*)
9386 # +Z the default
9387 ;;
9388 *)
9389 lt_prog_compiler_pic='-fPIC'
9390 ;;
9391 esac
9392 ;;
9393
9394 interix[3-9]*)
9395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9396 # Instead, we relocate shared libraries at runtime.
9397 ;;
9398
9399 msdosdjgpp*)
9400 # Just because we use GCC doesn't mean we suddenly get shared libraries
9401 # on systems that don't support them.
9402 lt_prog_compiler_can_build_shared=no
9403 enable_shared=no
9404 ;;
9405
9406 *nto* | *qnx*)
9407 # QNX uses GNU C++, but need to define -shared option too, otherwise
9408 # it will coredump.
9409 lt_prog_compiler_pic='-fPIC -shared'
9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
9414 lt_prog_compiler_pic=-Kconform_pic
9415 fi
9416 ;;
9417
9418 *)
9419 lt_prog_compiler_pic='-fPIC'
9420 ;;
9421 esac
9422
9423 case $cc_basename in
9424 nvcc*) # Cuda Compiler Driver 2.2
9425 lt_prog_compiler_wl='-Xlinker '
9426 if test -n "$lt_prog_compiler_pic"; then
9427 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9428 fi
9429 ;;
9430 esac
9431 else
9432 # PORTME Check for flag to pass linker flags through the system compiler.
9433 case $host_os in
9434 aix*)
9435 lt_prog_compiler_wl='-Wl,'
9436 if test ia64 = "$host_cpu"; then
9437 # AIX 5 now supports IA64 processor
9438 lt_prog_compiler_static='-Bstatic'
9439 else
9440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9441 fi
9442 ;;
9443
9444 darwin* | rhapsody*)
9445 # PIC is the default on this platform
9446 # Common symbols not allowed in MH_DYLIB files
9447 lt_prog_compiler_pic='-fno-common'
9448 case $cc_basename in
9449 nagfor*)
9450 # NAG Fortran compiler
9451 lt_prog_compiler_wl='-Wl,-Wl,,'
9452 lt_prog_compiler_pic='-PIC'
9453 lt_prog_compiler_static='-Bstatic'
9454 ;;
9455 esac
9456 ;;
9457
9458 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9459 # This hack is so that the source file can tell whether it is being
9460 # built for inclusion in a dll (and should export symbols for example).
9461 lt_prog_compiler_pic='-DDLL_EXPORT'
9462 case $host_os in
9463 os2*)
9464 lt_prog_compiler_static='$wl-static'
9465 ;;
9466 esac
9467 ;;
9468
9469 hpux9* | hpux10* | hpux11*)
9470 lt_prog_compiler_wl='-Wl,'
9471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9472 # not for PA HP-UX.
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 # +Z the default
9476 ;;
9477 *)
9478 lt_prog_compiler_pic='+Z'
9479 ;;
9480 esac
9481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9482 lt_prog_compiler_static='$wl-a ${wl}archive'
9483 ;;
9484
9485 irix5* | irix6* | nonstopux*)
9486 lt_prog_compiler_wl='-Wl,'
9487 # PIC (with -KPIC) is the default.
9488 lt_prog_compiler_static='-non_shared'
9489 ;;
9490
9491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9492 case $cc_basename in
9493 # old Intel for x86_64, which still supported -KPIC.
9494 ecc*)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_pic='-KPIC'
9497 lt_prog_compiler_static='-static'
9498 ;;
9499 *flang* | ftn | f18* | f95*)
9500 # Flang compiler.
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_pic='-fPIC'
9503 lt_prog_compiler_static='-static'
9504 ;;
9505 # flang / f18. f95 an alias for gfortran or flang on Debian
9506 flang* | f18* | f95*)
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_pic='-fPIC'
9509 lt_prog_compiler_static='-static'
9510 ;;
9511 # icc used to be incompatible with GCC.
9512 # ICC 10 doesn't accept -KPIC any more.
9513 icc* | ifort*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-fPIC'
9516 lt_prog_compiler_static='-static'
9517 ;;
9518 # Lahey Fortran 8.1.
9519 lf95*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='--shared'
9522 lt_prog_compiler_static='--static'
9523 ;;
9524 nagfor*)
9525 # NAG Fortran compiler
9526 lt_prog_compiler_wl='-Wl,-Wl,,'
9527 lt_prog_compiler_pic='-PIC'
9528 lt_prog_compiler_static='-Bstatic'
9529 ;;
9530 tcc*)
9531 # Fabrice Bellard et al's Tiny C Compiler
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-fPIC'
9534 lt_prog_compiler_static='-static'
9535 ;;
9536 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9537 # Portland Group compilers (*not* the Pentium gcc compiler,
9538 # which looks to be a dead project)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-fpic'
9541 lt_prog_compiler_static='-Bstatic'
9542 ;;
9543 ccc*)
9544 lt_prog_compiler_wl='-Wl,'
9545 # All Alpha code is PIC.
9546 lt_prog_compiler_static='-non_shared'
9547 ;;
9548 xl* | bgxl* | bgf* | mpixl*)
9549 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9550 lt_prog_compiler_wl='-Wl,'
9551 lt_prog_compiler_pic='-qpic'
9552 lt_prog_compiler_static='-qstaticlink'
9553 ;;
9554 *)
9555 case `$CC -V 2>&1 | $SED 5q` in
9556 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9558 lt_prog_compiler_pic='-KPIC'
9559 lt_prog_compiler_static='-Bstatic'
9560 lt_prog_compiler_wl=''
9561 ;;
9562 *Sun\ F* | *Sun*Fortran*)
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_wl='-Qoption ld '
9566 ;;
9567 *Sun\ C*)
9568 # Sun C 5.9
9569 lt_prog_compiler_pic='-KPIC'
9570 lt_prog_compiler_static='-Bstatic'
9571 lt_prog_compiler_wl='-Wl,'
9572 ;;
9573 *Intel*\ [CF]*Compiler*)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='-fPIC'
9576 lt_prog_compiler_static='-static'
9577 ;;
9578 *Portland\ Group*)
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-fpic'
9581 lt_prog_compiler_static='-Bstatic'
9582 ;;
9583 esac
9584 ;;
9585 esac
9586 ;;
9587
9588 newsos6)
9589 lt_prog_compiler_pic='-KPIC'
9590 lt_prog_compiler_static='-Bstatic'
9591 ;;
9592
9593 *-mlibc)
9594 lt_prog_compiler_wl='-Wl,'
9595 lt_prog_compiler_pic='-fPIC'
9596 lt_prog_compiler_static='-static'
9597 ;;
9598
9599 *nto* | *qnx*)
9600 # QNX uses GNU C++, but need to define -shared option too, otherwise
9601 # it will coredump.
9602 lt_prog_compiler_pic='-fPIC -shared'
9603 ;;
9604
9605 osf3* | osf4* | osf5*)
9606 lt_prog_compiler_wl='-Wl,'
9607 # All OSF/1 code is PIC.
9608 lt_prog_compiler_static='-non_shared'
9609 ;;
9610
9611 rdos*)
9612 lt_prog_compiler_static='-non_shared'
9613 ;;
9614
9615 serenity*)
9616 ;;
9617
9618 solaris*)
9619 lt_prog_compiler_pic='-KPIC'
9620 lt_prog_compiler_static='-Bstatic'
9621 case $cc_basename in
9622 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9623 lt_prog_compiler_wl='-Qoption ld ';;
9624 *)
9625 lt_prog_compiler_wl='-Wl,';;
9626 esac
9627 ;;
9628
9629 sunos4*)
9630 lt_prog_compiler_wl='-Qoption ld '
9631 lt_prog_compiler_pic='-PIC'
9632 lt_prog_compiler_static='-Bstatic'
9633 ;;
9634
9635 sysv4 | sysv4.2uw2* | sysv4.3*)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-KPIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 ;;
9640
9641 sysv4*MP*)
9642 if test -d /usr/nec; then
9643 lt_prog_compiler_pic='-Kconform_pic'
9644 lt_prog_compiler_static='-Bstatic'
9645 fi
9646 ;;
9647
9648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9649 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9652 ;;
9653
9654 unicos*)
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_can_build_shared=no
9657 ;;
9658
9659 uts4*)
9660 lt_prog_compiler_pic='-pic'
9661 lt_prog_compiler_static='-Bstatic'
9662 ;;
9663
9664 *)
9665 lt_prog_compiler_can_build_shared=no
9666 ;;
9667 esac
9668 fi
9669
9670 case $host_os in
9671 # For platforms that do not support PIC, -DPIC is meaningless:
9672 *djgpp*)
9673 lt_prog_compiler_pic=
9674 ;;
9675 *)
9676 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9677 ;;
9678 esac
9679
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9681 printf %s "checking for $compiler option to produce PIC... " >&6; }
9682 if test ${lt_cv_prog_compiler_pic+y}
9683 then :
9684 printf %s "(cached) " >&6
9685 else case e in #(
9686 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9687 esac
9688 fi
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9690 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9699 if test ${lt_cv_prog_compiler_pic_works+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else case e in #(
9703 e) lt_cv_prog_compiler_pic_works=no
9704 ac_outfile=conftest.$ac_objext
9705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9706 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9707 # Insert the option either (1) after the last *FLAGS variable, or
9708 # (2) before a word containing "conftest.", or (3) at the end.
9709 # Note that $ac_compile itself does not contain backslashes and begins
9710 # with a dollar sign (not a hyphen), so the echo should work correctly.
9711 # The option is referenced via a variable to avoid confusing sed.
9712 lt_compile=`echo "$ac_compile" | $SED \
9713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9715 -e 's:$: $lt_compiler_flag:'`
9716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9717 (eval "$lt_compile" 2>conftest.err)
9718 ac_status=$?
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 if (exit $ac_status) && test -s "$ac_outfile"; then
9722 # The compiler can only warn and ignore the option if not recognized
9723 # So say no if there are warnings other than the usual output.
9724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9727 lt_cv_prog_compiler_pic_works=yes
9728 fi
9729 fi
9730 $RM conftest*
9731 ;;
9732 esac
9733 fi
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9735 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9736
9737 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9738 case $lt_prog_compiler_pic in
9739 "" | " "*) ;;
9740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741 esac
9742 else
9743 lt_prog_compiler_pic=
9744 lt_prog_compiler_can_build_shared=no
9745 fi
9746
9747 fi
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759 #
9760 # Check to make sure the static flag actually works.
9761 #
9762 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9764 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9765 if test ${lt_cv_prog_compiler_static_works+y}
9766 then :
9767 printf %s "(cached) " >&6
9768 else case e in #(
9769 e) lt_cv_prog_compiler_static_works=no
9770 save_LDFLAGS=$LDFLAGS
9771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9774 # The linker can only warn and ignore the option if not recognized
9775 # So say no if there are warnings
9776 if test -s conftest.err; then
9777 # Append any errors to the config.log.
9778 cat conftest.err 1>&5
9779 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9781 if diff conftest.exp conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_static_works=yes
9783 fi
9784 else
9785 lt_cv_prog_compiler_static_works=yes
9786 fi
9787 fi
9788 $RM -r conftest*
9789 LDFLAGS=$save_LDFLAGS
9790 ;;
9791 esac
9792 fi
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9794 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9795
9796 if test yes = "$lt_cv_prog_compiler_static_works"; then
9797 :
9798 else
9799 lt_prog_compiler_static=
9800 fi
9801
9802
9803
9804
9805
9806
9807
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9809 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9810 if test ${lt_cv_prog_compiler_c_o+y}
9811 then :
9812 printf %s "(cached) " >&6
9813 else case e in #(
9814 e) lt_cv_prog_compiler_c_o=no
9815 $RM -r conftest 2>/dev/null
9816 mkdir conftest
9817 cd conftest
9818 mkdir out
9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9820
9821 lt_compiler_flag="-o out/conftest2.$ac_objext"
9822 # Insert the option either (1) after the last *FLAGS variable, or
9823 # (2) before a word containing "conftest.", or (3) at the end.
9824 # Note that $ac_compile itself does not contain backslashes and begins
9825 # with a dollar sign (not a hyphen), so the echo should work correctly.
9826 lt_compile=`echo "$ac_compile" | $SED \
9827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9829 -e 's:$: $lt_compiler_flag:'`
9830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9831 (eval "$lt_compile" 2>out/conftest.err)
9832 ac_status=$?
9833 cat out/conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9836 then
9837 # The compiler can only warn and ignore the option if not recognized
9838 # So say no if there are warnings
9839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9842 lt_cv_prog_compiler_c_o=yes
9843 fi
9844 fi
9845 chmod u+w . 2>&5
9846 $RM conftest*
9847 # SGI C++ compiler will create directory out/ii_files/ for
9848 # template instantiation
9849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9850 $RM out/* && rmdir out
9851 cd ..
9852 $RM -r conftest
9853 $RM conftest*
9854 ;;
9855 esac
9856 fi
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9858 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9859
9860
9861
9862
9863
9864
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9866 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9867 if test ${lt_cv_prog_compiler_c_o+y}
9868 then :
9869 printf %s "(cached) " >&6
9870 else case e in #(
9871 e) lt_cv_prog_compiler_c_o=no
9872 $RM -r conftest 2>/dev/null
9873 mkdir conftest
9874 cd conftest
9875 mkdir out
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877
9878 lt_compiler_flag="-o out/conftest2.$ac_objext"
9879 # Insert the option either (1) after the last *FLAGS variable, or
9880 # (2) before a word containing "conftest.", or (3) at the end.
9881 # Note that $ac_compile itself does not contain backslashes and begins
9882 # with a dollar sign (not a hyphen), so the echo should work correctly.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>out/conftest.err)
9889 ac_status=$?
9890 cat out/conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893 then
9894 # The compiler can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_c_o=yes
9900 fi
9901 fi
9902 chmod u+w . 2>&5
9903 $RM conftest*
9904 # SGI C++ compiler will create directory out/ii_files/ for
9905 # template instantiation
9906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907 $RM out/* && rmdir out
9908 cd ..
9909 $RM -r conftest
9910 $RM conftest*
9911 ;;
9912 esac
9913 fi
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9915 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9916
9917
9918
9919
9920 hard_links=nottested
9921 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9922 # do not overwrite the value of need_locks provided by the user
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9924 printf %s "checking if we can lock with hard links... " >&6; }
9925 hard_links=yes
9926 $RM conftest*
9927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9928 touch conftest.a
9929 ln conftest.a conftest.b 2>&5 || hard_links=no
9930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9932 printf "%s\n" "$hard_links" >&6; }
9933 if test no = "$hard_links"; then
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9935 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9936 need_locks=warn
9937 fi
9938 else
9939 need_locks=no
9940 fi
9941
9942
9943
9944
9945
9946
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9948 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9949
9950 runpath_var=
9951 allow_undefined_flag=
9952 always_export_symbols=no
9953 archive_cmds=
9954 archive_expsym_cmds=
9955 compiler_needs_object=no
9956 enable_shared_with_static_runtimes=no
9957 export_dynamic_flag_spec=
9958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9959 hardcode_automatic=no
9960 hardcode_direct=no
9961 hardcode_direct_absolute=no
9962 hardcode_libdir_flag_spec=
9963 hardcode_libdir_separator=
9964 hardcode_minus_L=no
9965 hardcode_shlibpath_var=unsupported
9966 inherit_rpath=no
9967 link_all_deplibs=unknown
9968 module_cmds=
9969 module_expsym_cmds=
9970 old_archive_from_new_cmds=
9971 old_archive_from_expsyms_cmds=
9972 thread_safe_flag_spec=
9973 whole_archive_flag_spec=
9974 # include_expsyms should be a list of space-separated symbols to be *always*
9975 # included in the symbol list
9976 include_expsyms=
9977 # exclude_expsyms can be an extended regexp of symbols to exclude
9978 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9979 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9980 # as well as any symbol that contains 'd'.
9981 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9982 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9983 # platforms (ab)use it in PIC code, but their linkers get confused if
9984 # the symbol is explicitly referenced. Since portable code cannot
9985 # rely on this symbol name, it's probably fine to never include it in
9986 # preloaded symbol tables.
9987 # Exclude shared library initialization/finalization symbols.
9988 extract_expsyms_cmds=
9989
9990 case $host_os in
9991 cygwin* | mingw* | windows* | pw32* | cegcc*)
9992 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9993 # When not using gcc, we currently assume that we are using
9994 # Microsoft Visual C++ or Intel C++ Compiler.
9995 if test yes != "$GCC"; then
9996 with_gnu_ld=no
9997 fi
9998 ;;
9999 interix*)
10000 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10001 with_gnu_ld=yes
10002 ;;
10003 linux* | k*bsd*-gnu | gnu*)
10004 link_all_deplibs=no
10005 ;;
10006 esac
10007
10008 ld_shlibs=yes
10009
10010 # On some targets, GNU ld is compatible enough with the native linker
10011 # that we're better off using the native interface for both.
10012 lt_use_gnu_ld_interface=no
10013 if test yes = "$with_gnu_ld"; then
10014 case $host_os in
10015 aix*)
10016 # The AIX port of GNU ld has always aspired to compatibility
10017 # with the native linker. However, as the warning in the GNU ld
10018 # block says, versions before 2.19.5* couldn't really create working
10019 # shared libraries, regardless of the interface used.
10020 case `$LD -v 2>&1` in
10021 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10022 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10023 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10024 *)
10025 lt_use_gnu_ld_interface=yes
10026 ;;
10027 esac
10028 ;;
10029 *)
10030 lt_use_gnu_ld_interface=yes
10031 ;;
10032 esac
10033 fi
10034
10035 if test yes = "$lt_use_gnu_ld_interface"; then
10036 # If archive_cmds runs LD, not CC, wlarc should be empty
10037 wlarc='$wl'
10038
10039 # Set some defaults for GNU ld with shared library support. These
10040 # are reset later if shared libraries are not supported. Putting them
10041 # here allows them to be overridden if necessary.
10042 runpath_var=LD_RUN_PATH
10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10044 export_dynamic_flag_spec='$wl--export-dynamic'
10045 # ancient GNU ld didn't support --whole-archive et. al.
10046 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10047 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10048 else
10049 whole_archive_flag_spec=
10050 fi
10051 supports_anon_versioning=no
10052 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10053 *GNU\ gold*) supports_anon_versioning=yes ;;
10054 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10055 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10056 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10057 *\ 2.11.*) ;; # other 2.11 versions
10058 *) supports_anon_versioning=yes ;;
10059 esac
10060
10061 # See if GNU ld supports shared libraries.
10062 case $host_os in
10063 aix[3-9]*)
10064 # On AIX/PPC, the GNU linker is very broken
10065 if test ia64 != "$host_cpu"; then
10066 ld_shlibs=no
10067 cat <<_LT_EOF 1>&2
10068
10069 *** Warning: the GNU linker, at least up to release 2.19, is reported
10070 *** to be unable to reliably create shared libraries on AIX.
10071 *** Therefore, libtool is disabling shared libraries support. If you
10072 *** really care for shared libraries, you may want to install binutils
10073 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10074 *** You will then need to restart the configuration process.
10075
10076 _LT_EOF
10077 fi
10078 ;;
10079
10080 amigaos*)
10081 case $host_cpu in
10082 powerpc)
10083 # see comment about AmigaOS4 .so support
10084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10085 archive_expsym_cmds=''
10086 ;;
10087 m68k)
10088 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)'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_minus_L=yes
10091 ;;
10092 esac
10093 ;;
10094
10095 beos*)
10096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10097 allow_undefined_flag=unsupported
10098 # Joseph Beckenbach <[email protected]> says some releases of gcc
10099 # support --undefined. This deserves some investigation. FIXME
10100 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10101 else
10102 ld_shlibs=no
10103 fi
10104 ;;
10105
10106 cygwin* | mingw* | windows* | pw32* | cegcc*)
10107 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10108 # as there is no search path for DLLs.
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 export_dynamic_flag_spec='$wl--export-all-symbols'
10111 allow_undefined_flag=unsupported
10112 always_export_symbols=no
10113 enable_shared_with_static_runtimes=yes
10114 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'
10115 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10116 file_list_spec='@'
10117
10118 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10120 # If the export-symbols file already is a .def file, use it as
10121 # is; otherwise, prepend EXPORTS...
10122 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10123 cp $export_symbols $output_objdir/$soname.def;
10124 else
10125 echo EXPORTS > $output_objdir/$soname.def;
10126 cat $export_symbols >> $output_objdir/$soname.def;
10127 fi~
10128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129 else
10130 ld_shlibs=no
10131 fi
10132 ;;
10133
10134 haiku*)
10135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10136 link_all_deplibs=no
10137 ;;
10138
10139 os2*)
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_minus_L=yes
10142 allow_undefined_flag=unsupported
10143 shrext_cmds=.dll
10144 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10145 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10146 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10147 $ECHO EXPORTS >> $output_objdir/$libname.def~
10148 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10149 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10150 emximp -o $lib $output_objdir/$libname.def'
10151 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10154 $ECHO EXPORTS >> $output_objdir/$libname.def~
10155 prefix_cmds="$SED"~
10156 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10157 prefix_cmds="$prefix_cmds -e 1d";
10158 fi~
10159 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10160 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10161 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10162 emximp -o $lib $output_objdir/$libname.def'
10163 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10164 enable_shared_with_static_runtimes=yes
10165 file_list_spec='@'
10166 ;;
10167
10168 interix[3-9]*)
10169 hardcode_direct=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10172 export_dynamic_flag_spec='$wl-E'
10173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10174 # Instead, shared libraries are loaded at an image base (0x10000000 by
10175 # default) and relocated if they conflict, which is a slow very memory
10176 # consuming and fragmenting process. To avoid this, we pick a random,
10177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10180 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'
10181 ;;
10182
10183 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10184 tmp_diet=no
10185 if test linux-dietlibc = "$host_os"; then
10186 case $cc_basename in
10187 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10188 esac
10189 fi
10190 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10191 && test no = "$tmp_diet"
10192 then
10193 tmp_addflag=' $pic_flag'
10194 tmp_sharedflag='-shared'
10195 case $cc_basename,$host_cpu in
10196 pgcc*) # Portland Group C compiler
10197 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'
10198 tmp_addflag=' $pic_flag'
10199 ;;
10200 pgf77* | pgf90* | pgf95* | pgfortran*)
10201 # Portland Group f77 and f90 compilers
10202 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'
10203 tmp_addflag=' $pic_flag -Mnomain' ;;
10204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10205 tmp_addflag=' -i_dynamic' ;;
10206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10207 tmp_addflag=' -i_dynamic -nofor_main' ;;
10208 ifc* | ifort*) # Intel Fortran compiler
10209 tmp_addflag=' -nofor_main' ;;
10210 lf95*) # Lahey Fortran 8.1
10211 whole_archive_flag_spec=
10212 tmp_sharedflag='--shared' ;;
10213 nagfor*) # NAGFOR 5.3
10214 tmp_sharedflag='-Wl,-shared' ;;
10215 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10216 tmp_sharedflag='-qmkshrobj'
10217 tmp_addflag= ;;
10218 nvcc*) # Cuda Compiler Driver 2.2
10219 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'
10220 compiler_needs_object=yes
10221 ;;
10222 esac
10223 case `$CC -V 2>&1 | $SED 5q` in
10224 *Sun\ C*) # Sun C 5.9
10225 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'
10226 compiler_needs_object=yes
10227 tmp_sharedflag='-G' ;;
10228 *Sun\ F*) # Sun Fortran 8.3
10229 tmp_sharedflag='-G' ;;
10230 esac
10231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10232
10233 if test yes = "$supports_anon_versioning"; then
10234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10235 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10236 echo "local: *; };" >> $output_objdir/$libname.ver~
10237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10238 fi
10239
10240 case $cc_basename in
10241 tcc*)
10242 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10243 export_dynamic_flag_spec='-rdynamic'
10244 ;;
10245 xlf* | bgf* | bgxlf* | mpixlf*)
10246 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10247 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10249 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10250 if test yes = "$supports_anon_versioning"; then
10251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10252 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10253 echo "local: *; };" >> $output_objdir/$libname.ver~
10254 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10255 fi
10256 ;;
10257 esac
10258 else
10259 ld_shlibs=no
10260 fi
10261 ;;
10262
10263 *-mlibc)
10264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10266 ;;
10267
10268 netbsd* | netbsdelf*-gnu)
10269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10270 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10271 wlarc=
10272 else
10273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10275 fi
10276 ;;
10277
10278 solaris*)
10279 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10280 ld_shlibs=no
10281 cat <<_LT_EOF 1>&2
10282
10283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10284 *** create shared libraries on Solaris systems. Therefore, libtool
10285 *** is disabling shared libraries support. We urge you to upgrade GNU
10286 *** binutils to release 2.9.1 or newer. Another option is to modify
10287 *** your PATH or compiler configuration so that the native linker is
10288 *** used, and then restart.
10289
10290 _LT_EOF
10291 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10294 else
10295 ld_shlibs=no
10296 fi
10297 ;;
10298
10299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10300 case `$LD -v 2>&1` in
10301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10302 ld_shlibs=no
10303 cat <<_LT_EOF 1>&2
10304
10305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10306 *** reliably create shared libraries on SCO systems. Therefore, libtool
10307 *** is disabling shared libraries support. We urge you to upgrade GNU
10308 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10309 *** your PATH or compiler configuration so that the native linker is
10310 *** used, and then restart.
10311
10312 _LT_EOF
10313 ;;
10314 *)
10315 # For security reasons, it is highly recommended that you always
10316 # use absolute paths for naming shared libraries, and exclude the
10317 # DT_RUNPATH tag from executables and libraries. But doing so
10318 # requires that you compile everything twice, which is a pain.
10319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10323 else
10324 ld_shlibs=no
10325 fi
10326 ;;
10327 esac
10328 ;;
10329
10330 sunos4*)
10331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10332 wlarc=
10333 hardcode_direct=yes
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 *)
10338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10340 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10341 else
10342 ld_shlibs=no
10343 fi
10344 ;;
10345 esac
10346
10347 if test no = "$ld_shlibs"; then
10348 runpath_var=
10349 hardcode_libdir_flag_spec=
10350 export_dynamic_flag_spec=
10351 whole_archive_flag_spec=
10352 fi
10353 else
10354 # PORTME fill in a description of your system's linker (not GNU ld)
10355 case $host_os in
10356 aix3*)
10357 allow_undefined_flag=unsupported
10358 always_export_symbols=yes
10359 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'
10360 # Note: this linker hardcodes the directories in LIBPATH if there
10361 # are no directories specified by -L.
10362 hardcode_minus_L=yes
10363 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10364 # Neither direct hardcoding nor static linking is supported with a
10365 # broken collect2.
10366 hardcode_direct=unsupported
10367 fi
10368 ;;
10369
10370 aix[4-9]*)
10371 if test ia64 = "$host_cpu"; then
10372 # On IA64, the linker does run time linking by default, so we don't
10373 # have to do anything special.
10374 aix_use_runtimelinking=no
10375 exp_sym_flag='-Bexport'
10376 no_entry_flag=
10377 else
10378 # If we're using GNU nm, then we don't want the "-C" option.
10379 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10380 # Without the "-l" option, or with the "-B" option, AIX nm treats
10381 # weak defined symbols like other global defined symbols, whereas
10382 # GNU nm marks them as "W".
10383 # While the 'weak' keyword is ignored in the Export File, we need
10384 # it in the Import File for the 'aix-soname' feature, so we have
10385 # to replace the "-B" option with "-P" for AIX nm.
10386 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10387 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'
10388 else
10389 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'
10390 fi
10391 aix_use_runtimelinking=no
10392
10393 # Test if we are trying to use run time linking or normal
10394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10395 # have runtime linking enabled, and use it for executables.
10396 # For shared libraries, we enable/disable runtime linking
10397 # depending on the kind of the shared library created -
10398 # when "with_aix_soname,aix_use_runtimelinking" is:
10399 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10400 # "aix,yes" lib.so shared, rtl:yes, for executables
10401 # lib.a static archive
10402 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10403 # lib.a(lib.so.V) shared, rtl:no, for executables
10404 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10405 # lib.a(lib.so.V) shared, rtl:no
10406 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10407 # lib.a static archive
10408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10409 for ld_flag in $LDFLAGS; do
10410 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10411 aix_use_runtimelinking=yes
10412 break
10413 fi
10414 done
10415 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10416 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10417 # so we don't have lib.a shared libs to link our executables.
10418 # We have to force runtime linking in this case.
10419 aix_use_runtimelinking=yes
10420 LDFLAGS="$LDFLAGS -Wl,-brtl"
10421 fi
10422 ;;
10423 esac
10424
10425 exp_sym_flag='-bexport'
10426 no_entry_flag='-bnoentry'
10427 fi
10428
10429 # When large executables or shared objects are built, AIX ld can
10430 # have problems creating the table of contents. If linking a library
10431 # or program results in "error TOC overflow" add -mminimal-toc to
10432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10434
10435 archive_cmds=''
10436 hardcode_direct=yes
10437 hardcode_direct_absolute=yes
10438 hardcode_libdir_separator=':'
10439 link_all_deplibs=yes
10440 file_list_spec='$wl-f,'
10441 case $with_aix_soname,$aix_use_runtimelinking in
10442 aix,*) ;; # traditional, no import file
10443 svr4,* | *,yes) # use import file
10444 # The Import File defines what to hardcode.
10445 hardcode_direct=no
10446 hardcode_direct_absolute=no
10447 ;;
10448 esac
10449
10450 if test yes = "$GCC"; then
10451 case $host_os in aix4.[012]|aix4.[012].*)
10452 # We only want to do this on AIX 4.2 and lower, the check
10453 # below for broken collect2 doesn't work under 4.3+
10454 collect2name=`$CC -print-prog-name=collect2`
10455 if test -f "$collect2name" &&
10456 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10457 then
10458 # We have reworked collect2
10459 :
10460 else
10461 # We have old collect2
10462 hardcode_direct=unsupported
10463 # It fails to find uninstalled libraries when the uninstalled
10464 # path is not listed in the libpath. Setting hardcode_minus_L
10465 # to unsupported forces relinking
10466 hardcode_minus_L=yes
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_libdir_separator=
10469 fi
10470 ;;
10471 esac
10472 shared_flag='-shared'
10473 if test yes = "$aix_use_runtimelinking"; then
10474 shared_flag="$shared_flag "'$wl-G'
10475 fi
10476 # Need to ensure runtime linking is disabled for the traditional
10477 # shared library, or the linker may eventually find shared libraries
10478 # /with/ Import File - we do not want to mix them.
10479 shared_flag_aix='-shared'
10480 shared_flag_svr4='-shared $wl-G'
10481 else
10482 # not using gcc
10483 if test ia64 = "$host_cpu"; then
10484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10485 # chokes on -Wl,-G. The following line is correct:
10486 shared_flag='-G'
10487 else
10488 if test yes = "$aix_use_runtimelinking"; then
10489 shared_flag='$wl-G'
10490 else
10491 shared_flag='$wl-bM:SRE'
10492 fi
10493 shared_flag_aix='$wl-bM:SRE'
10494 shared_flag_svr4='$wl-G'
10495 fi
10496 fi
10497
10498 export_dynamic_flag_spec='$wl-bexpall'
10499 # It seems that -bexpall does not export symbols beginning with
10500 # underscore (_), so it is better to generate a list of symbols to export.
10501 always_export_symbols=yes
10502 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10503 # Warning - without using the other runtime loading flags (-brtl),
10504 # -berok will link without error, but may produce a broken library.
10505 allow_undefined_flag='-berok'
10506 # Determine the default libpath from the value encoded in an
10507 # empty executable.
10508 if test set = "${lt_cv_aix_libpath+set}"; then
10509 aix_libpath=$lt_cv_aix_libpath
10510 else
10511 if test ${lt_cv_aix_libpath_+y}
10512 then :
10513 printf %s "(cached) " >&6
10514 else case e in #(
10515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517
10518 int
10519 main (void)
10520 {
10521
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"
10527 then :
10528
10529 lt_aix_libpath_sed='
10530 /Import File Strings/,/^$/ {
10531 /^0/ {
10532 s/^0 *\([^ ]*\) *$/\1/
10533 p
10534 }
10535 }'
10536 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 # Check for a 64-bit object if we didn't find anything.
10538 if test -z "$lt_cv_aix_libpath_"; then
10539 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 fi
10541 fi
10542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10543 conftest$ac_exeext conftest.$ac_ext
10544 if test -z "$lt_cv_aix_libpath_"; then
10545 lt_cv_aix_libpath_=/usr/lib:/lib
10546 fi
10547 ;;
10548 esac
10549 fi
10550
10551 aix_libpath=$lt_cv_aix_libpath_
10552 fi
10553
10554 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10555 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
10556 else
10557 if test ia64 = "$host_cpu"; then
10558 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10559 allow_undefined_flag="-z nodefs"
10560 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"
10561 else
10562 # Determine the default libpath from the value encoded in an
10563 # empty executable.
10564 if test set = "${lt_cv_aix_libpath+set}"; then
10565 aix_libpath=$lt_cv_aix_libpath
10566 else
10567 if test ${lt_cv_aix_libpath_+y}
10568 then :
10569 printf %s "(cached) " >&6
10570 else case e in #(
10571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574 int
10575 main (void)
10576 {
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"
10583 then :
10584
10585 lt_aix_libpath_sed='
10586 /Import File Strings/,/^$/ {
10587 /^0/ {
10588 s/^0 *\([^ ]*\) *$/\1/
10589 p
10590 }
10591 }'
10592 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10593 # Check for a 64-bit object if we didn't find anything.
10594 if test -z "$lt_cv_aix_libpath_"; then
10595 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10596 fi
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10599 conftest$ac_exeext conftest.$ac_ext
10600 if test -z "$lt_cv_aix_libpath_"; then
10601 lt_cv_aix_libpath_=/usr/lib:/lib
10602 fi
10603 ;;
10604 esac
10605 fi
10606
10607 aix_libpath=$lt_cv_aix_libpath_
10608 fi
10609
10610 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10611 # Warning - without using the other run time loading flags,
10612 # -berok will link without error, but may produce a broken library.
10613 no_undefined_flag=' $wl-bernotok'
10614 allow_undefined_flag=' $wl-berok'
10615 if test yes = "$with_gnu_ld"; then
10616 # We only use this code for GNU lds that support --whole-archive.
10617 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10618 else
10619 # Exported symbols can be pulled into shared objects from archives
10620 whole_archive_flag_spec='$convenience'
10621 fi
10622 archive_cmds_need_lc=yes
10623 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10624 # -brtl affects multiple linker settings, -berok does not and is overridden later
10625 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10626 if test svr4 != "$with_aix_soname"; then
10627 # This is similar to how AIX traditionally builds its shared libraries.
10628 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'
10629 fi
10630 if test aix != "$with_aix_soname"; then
10631 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'
10632 else
10633 # used by -dlpreopen to get the symbols
10634 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10635 fi
10636 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10637 fi
10638 fi
10639 ;;
10640
10641 amigaos*)
10642 case $host_cpu in
10643 powerpc)
10644 # see comment about AmigaOS4 .so support
10645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646 archive_expsym_cmds=''
10647 ;;
10648 m68k)
10649 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)'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_minus_L=yes
10652 ;;
10653 esac
10654 ;;
10655
10656 bsdi[45]*)
10657 export_dynamic_flag_spec=-rdynamic
10658 ;;
10659
10660 cygwin* | mingw* | windows* | pw32* | cegcc*)
10661 # When not using gcc, we currently assume that we are using
10662 # Microsoft Visual C++ or Intel C++ Compiler.
10663 # hardcode_libdir_flag_spec is actually meaningless, as there is
10664 # no search path for DLLs.
10665 case $cc_basename in
10666 cl* | icl*)
10667 # Native MSVC or ICC
10668 hardcode_libdir_flag_spec=' '
10669 allow_undefined_flag=unsupported
10670 always_export_symbols=yes
10671 file_list_spec='@'
10672 # Tell ltmain to make .lib files, not .a files.
10673 libext=lib
10674 # Tell ltmain to make .dll files, not .so files.
10675 shrext_cmds=.dll
10676 # FIXME: Setting linknames here is a bad hack.
10677 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10678 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10679 cp "$export_symbols" "$output_objdir/$soname.def";
10680 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10681 else
10682 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10683 fi~
10684 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10685 linknames='
10686 # The linker will not automatically build a static lib if we build a DLL.
10687 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10688 enable_shared_with_static_runtimes=yes
10689 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10691 # Don't use ranlib
10692 old_postinstall_cmds='chmod 644 $oldlib'
10693 postlink_cmds='lt_outputfile="@OUTPUT@"~
10694 lt_tool_outputfile="@TOOL_OUTPUT@"~
10695 case $lt_outputfile in
10696 *.exe|*.EXE) ;;
10697 *)
10698 lt_outputfile=$lt_outputfile.exe
10699 lt_tool_outputfile=$lt_tool_outputfile.exe
10700 ;;
10701 esac~
10702 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10703 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10704 $RM "$lt_outputfile.manifest";
10705 fi'
10706 ;;
10707 *)
10708 # Assume MSVC and ICC wrapper
10709 hardcode_libdir_flag_spec=' '
10710 allow_undefined_flag=unsupported
10711 # Tell ltmain to make .lib files, not .a files.
10712 libext=lib
10713 # Tell ltmain to make .dll files, not .so files.
10714 shrext_cmds=.dll
10715 # FIXME: Setting linknames here is a bad hack.
10716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10717 # The linker will automatically build a .lib file if we build a DLL.
10718 old_archive_from_new_cmds='true'
10719 # FIXME: Should let the user specify the lib program.
10720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10721 enable_shared_with_static_runtimes=yes
10722 ;;
10723 esac
10724 ;;
10725
10726 darwin* | rhapsody*)
10727
10728
10729 archive_cmds_need_lc=no
10730 hardcode_direct=no
10731 hardcode_automatic=yes
10732 hardcode_shlibpath_var=unsupported
10733 if test yes = "$lt_cv_ld_force_load"; then
10734 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\"`'
10735
10736 else
10737 whole_archive_flag_spec=''
10738 fi
10739 link_all_deplibs=yes
10740 allow_undefined_flag=$_lt_dar_allow_undefined
10741 case $cc_basename in
10742 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10743 *) _lt_dar_can_shared=$GCC ;;
10744 esac
10745 if test yes = "$_lt_dar_can_shared"; then
10746 output_verbose_link_cmd=func_echo_all
10747 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10748 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10749 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"
10750 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"
10751
10752 else
10753 ld_shlibs=no
10754 fi
10755
10756 ;;
10757
10758 dgux*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_libdir_flag_spec='-L$libdir'
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10765 # support. Future versions do this automatically, but an explicit c++rt0.o
10766 # does not break anything, and helps significantly (at the cost of a little
10767 # extra space).
10768 freebsd2.2*)
10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10770 hardcode_libdir_flag_spec='-R$libdir'
10771 hardcode_direct=yes
10772 hardcode_shlibpath_var=no
10773 ;;
10774
10775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10776 freebsd2.*)
10777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_direct=yes
10779 hardcode_minus_L=yes
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10784 freebsd* | dragonfly* | midnightbsd*)
10785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786 hardcode_libdir_flag_spec='-R$libdir'
10787 hardcode_direct=yes
10788 hardcode_shlibpath_var=no
10789 ;;
10790
10791 hpux9*)
10792 if test yes = "$GCC"; then
10793 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'
10794 else
10795 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'
10796 fi
10797 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10798 hardcode_libdir_separator=:
10799 hardcode_direct=yes
10800
10801 # hardcode_minus_L: Not really in the search PATH,
10802 # but as the default location of the library.
10803 hardcode_minus_L=yes
10804 export_dynamic_flag_spec='$wl-E'
10805 ;;
10806
10807 hpux10*)
10808 if test yes,no = "$GCC,$with_gnu_ld"; then
10809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10812 fi
10813 if test no = "$with_gnu_ld"; then
10814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10815 hardcode_libdir_separator=:
10816 hardcode_direct=yes
10817 hardcode_direct_absolute=yes
10818 export_dynamic_flag_spec='$wl-E'
10819 # hardcode_minus_L: Not really in the search PATH,
10820 # but as the default location of the library.
10821 hardcode_minus_L=yes
10822 fi
10823 ;;
10824
10825 hpux11*)
10826 if test yes,no = "$GCC,$with_gnu_ld"; then
10827 case $host_cpu in
10828 hppa*64*)
10829 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 ;;
10831 ia64*)
10832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10833 ;;
10834 *)
10835 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836 ;;
10837 esac
10838 else
10839 case $host_cpu in
10840 hppa*64*)
10841 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10842 ;;
10843 ia64*)
10844 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10845 ;;
10846 *)
10847
10848 # Older versions of the 11.00 compiler do not understand -b yet
10849 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10851 printf %s "checking if $CC understands -b... " >&6; }
10852 if test ${lt_cv_prog_compiler__b+y}
10853 then :
10854 printf %s "(cached) " >&6
10855 else case e in #(
10856 e) lt_cv_prog_compiler__b=no
10857 save_LDFLAGS=$LDFLAGS
10858 LDFLAGS="$LDFLAGS -b"
10859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10861 # The linker can only warn and ignore the option if not recognized
10862 # So say no if there are warnings
10863 if test -s conftest.err; then
10864 # Append any errors to the config.log.
10865 cat conftest.err 1>&5
10866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10868 if diff conftest.exp conftest.er2 >/dev/null; then
10869 lt_cv_prog_compiler__b=yes
10870 fi
10871 else
10872 lt_cv_prog_compiler__b=yes
10873 fi
10874 fi
10875 $RM -r conftest*
10876 LDFLAGS=$save_LDFLAGS
10877 ;;
10878 esac
10879 fi
10880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10881 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10882
10883 if test yes = "$lt_cv_prog_compiler__b"; then
10884 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10885 else
10886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10887 fi
10888
10889 ;;
10890 esac
10891 fi
10892 if test no = "$with_gnu_ld"; then
10893 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10894 hardcode_libdir_separator=:
10895
10896 case $host_cpu in
10897 hppa*64*|ia64*)
10898 hardcode_direct=no
10899 hardcode_shlibpath_var=no
10900 ;;
10901 *)
10902 hardcode_direct=yes
10903 hardcode_direct_absolute=yes
10904 export_dynamic_flag_spec='$wl-E'
10905
10906 # hardcode_minus_L: Not really in the search PATH,
10907 # but as the default location of the library.
10908 hardcode_minus_L=yes
10909 ;;
10910 esac
10911 fi
10912 ;;
10913
10914 irix5* | irix6* | nonstopux*)
10915 if test yes = "$GCC"; then
10916 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'
10917 # Try to use the -exported_symbol ld option, if it does not
10918 # work, assume that -exports_file does not work either and
10919 # implicitly export all symbols.
10920 # This should be the same for all languages, so no per-tag cache variable.
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10922 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10923 if test ${lt_cv_irix_exported_symbol+y}
10924 then :
10925 printf %s "(cached) " >&6
10926 else case e in #(
10927 e) save_LDFLAGS=$LDFLAGS
10928 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 int foo (void) { return 0; }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"
10934 then :
10935 lt_cv_irix_exported_symbol=yes
10936 else case e in #(
10937 e) lt_cv_irix_exported_symbol=no ;;
10938 esac
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LDFLAGS=$save_LDFLAGS ;;
10943 esac
10944 fi
10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10946 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10947 if test yes = "$lt_cv_irix_exported_symbol"; then
10948 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'
10949 fi
10950 link_all_deplibs=no
10951 else
10952 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'
10953 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'
10954 fi
10955 archive_cmds_need_lc='no'
10956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10957 hardcode_libdir_separator=:
10958 inherit_rpath=yes
10959 link_all_deplibs=yes
10960 ;;
10961
10962 linux*)
10963 case $cc_basename in
10964 tcc*)
10965 # Fabrice Bellard et al's Tiny C Compiler
10966 ld_shlibs=yes
10967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10968 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10969 ;;
10970 esac
10971 ;;
10972
10973 *-mlibc)
10974 ;;
10975
10976 netbsd* | netbsdelf*-gnu)
10977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10979 else
10980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10981 fi
10982 hardcode_libdir_flag_spec='-R$libdir'
10983 hardcode_direct=yes
10984 hardcode_shlibpath_var=no
10985 ;;
10986
10987 newsos6)
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_direct=yes
10990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10991 hardcode_libdir_separator=:
10992 hardcode_shlibpath_var=no
10993 ;;
10994
10995 *nto* | *qnx*)
10996 ;;
10997
10998 openbsd*)
10999 if test -f /usr/libexec/ld.so; then
11000 hardcode_direct=yes
11001 hardcode_shlibpath_var=no
11002 hardcode_direct_absolute=yes
11003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11006 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11007 export_dynamic_flag_spec='$wl-E'
11008 else
11009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11011 fi
11012 else
11013 ld_shlibs=no
11014 fi
11015 ;;
11016
11017 os2*)
11018 hardcode_libdir_flag_spec='-L$libdir'
11019 hardcode_minus_L=yes
11020 allow_undefined_flag=unsupported
11021 shrext_cmds=.dll
11022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11025 $ECHO EXPORTS >> $output_objdir/$libname.def~
11026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11028 emximp -o $lib $output_objdir/$libname.def'
11029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11032 $ECHO EXPORTS >> $output_objdir/$libname.def~
11033 prefix_cmds="$SED"~
11034 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11035 prefix_cmds="$prefix_cmds -e 1d";
11036 fi~
11037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11040 emximp -o $lib $output_objdir/$libname.def'
11041 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11042 enable_shared_with_static_runtimes=yes
11043 file_list_spec='@'
11044 ;;
11045
11046 osf3*)
11047 if test yes = "$GCC"; then
11048 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11049 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'
11050 else
11051 allow_undefined_flag=' -expect_unresolved \*'
11052 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'
11053 fi
11054 archive_cmds_need_lc='no'
11055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11056 hardcode_libdir_separator=:
11057 ;;
11058
11059 osf4* | osf5*) # as osf3* with the addition of -msym flag
11060 if test yes = "$GCC"; then
11061 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11062 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'
11063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064 else
11065 allow_undefined_flag=' -expect_unresolved \*'
11066 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'
11067 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~
11068 $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'
11069
11070 # Both c and cxx compiler support -rpath directly
11071 hardcode_libdir_flag_spec='-rpath $libdir'
11072 fi
11073 archive_cmds_need_lc='no'
11074 hardcode_libdir_separator=:
11075 ;;
11076
11077 serenity*)
11078 ;;
11079
11080 solaris*)
11081 no_undefined_flag=' -z defs'
11082 if test yes = "$GCC"; then
11083 wlarc='$wl'
11084 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11086 $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'
11087 else
11088 case `$CC -V 2>&1` in
11089 *"Compilers 5.0"*)
11090 wlarc=''
11091 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11093 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11094 ;;
11095 *)
11096 wlarc='$wl'
11097 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11099 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11100 ;;
11101 esac
11102 fi
11103 hardcode_libdir_flag_spec='-R$libdir'
11104 hardcode_shlibpath_var=no
11105 case $host_os in
11106 solaris2.[0-5] | solaris2.[0-5].*) ;;
11107 *)
11108 # The compiler driver will combine and reorder linker options,
11109 # but understands '-z linker_flag'. GCC discards it without '$wl',
11110 # but is careful enough not to reorder.
11111 # Supported since Solaris 2.6 (maybe 2.5.1?)
11112 if test yes = "$GCC"; then
11113 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11114 else
11115 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11116 fi
11117 ;;
11118 esac
11119 link_all_deplibs=yes
11120 ;;
11121
11122 sunos4*)
11123 if test sequent = "$host_vendor"; then
11124 # Use $CC to link under sequent, because it throws in some extra .o
11125 # files that make .init and .fini sections work.
11126 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11127 else
11128 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11129 fi
11130 hardcode_libdir_flag_spec='-L$libdir'
11131 hardcode_direct=yes
11132 hardcode_minus_L=yes
11133 hardcode_shlibpath_var=no
11134 ;;
11135
11136 sysv4)
11137 case $host_vendor in
11138 sni)
11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_direct=yes # is this really true???
11141 ;;
11142 siemens)
11143 ## LD is ld it makes a PLAMLIB
11144 ## CC just makes a GrossModule.
11145 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11146 reload_cmds='$CC -r -o $output$reload_objs'
11147 hardcode_direct=no
11148 ;;
11149 motorola)
11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11151 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11152 ;;
11153 esac
11154 runpath_var='LD_RUN_PATH'
11155 hardcode_shlibpath_var=no
11156 ;;
11157
11158 sysv4.3*)
11159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11160 hardcode_shlibpath_var=no
11161 export_dynamic_flag_spec='-Bexport'
11162 ;;
11163
11164 sysv4*MP*)
11165 if test -d /usr/nec; then
11166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11167 hardcode_shlibpath_var=no
11168 runpath_var=LD_RUN_PATH
11169 hardcode_runpath_var=yes
11170 ld_shlibs=yes
11171 fi
11172 ;;
11173
11174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11175 no_undefined_flag='$wl-z,text'
11176 archive_cmds_need_lc=no
11177 hardcode_shlibpath_var=no
11178 runpath_var='LD_RUN_PATH'
11179
11180 if test yes = "$GCC"; then
11181 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 else
11184 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 fi
11187 ;;
11188
11189 sysv5* | sco3.2v5* | sco5v6*)
11190 # Note: We CANNOT use -z defs as we might desire, because we do not
11191 # link with -lc, and that would cause any symbols used from libc to
11192 # always be unresolved, which means just about no library would
11193 # ever link correctly. If we're not using GNU ld we use -z text
11194 # though, which does catch some bad symbols but isn't as heavy-handed
11195 # as -z defs.
11196 no_undefined_flag='$wl-z,text'
11197 allow_undefined_flag='$wl-z,nodefs'
11198 archive_cmds_need_lc=no
11199 hardcode_shlibpath_var=no
11200 hardcode_libdir_flag_spec='$wl-R,$libdir'
11201 hardcode_libdir_separator=':'
11202 link_all_deplibs=yes
11203 export_dynamic_flag_spec='$wl-Bexport'
11204 runpath_var='LD_RUN_PATH'
11205
11206 if test yes = "$GCC"; then
11207 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11208 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 else
11210 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11211 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11212 fi
11213 ;;
11214
11215 uts4*)
11216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_libdir_flag_spec='-L$libdir'
11218 hardcode_shlibpath_var=no
11219 ;;
11220
11221 *)
11222 ld_shlibs=no
11223 ;;
11224 esac
11225
11226 if test sni = "$host_vendor"; then
11227 case $host in
11228 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11229 export_dynamic_flag_spec='$wl-Blargedynsym'
11230 ;;
11231 esac
11232 fi
11233 fi
11234
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11236 printf "%s\n" "$ld_shlibs" >&6; }
11237 test no = "$ld_shlibs" && can_build_shared=no
11238
11239 with_gnu_ld=$with_gnu_ld
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255 #
11256 # Do we need to explicitly link libc?
11257 #
11258 case "x$archive_cmds_need_lc" in
11259 x|xyes)
11260 # Assume -lc should be added
11261 archive_cmds_need_lc=yes
11262
11263 if test yes,yes = "$GCC,$enable_shared"; then
11264 case $archive_cmds in
11265 *'~'*)
11266 # FIXME: we may have to deal with multi-command sequences.
11267 ;;
11268 '$CC '*)
11269 # Test whether the compiler implicitly links with -lc since on some
11270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11271 # to ld, don't add -lc before -lgcc.
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11273 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11274 if test ${lt_cv_archive_cmds_need_lc+y}
11275 then :
11276 printf %s "(cached) " >&6
11277 else case e in #(
11278 e) $RM conftest*
11279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11280
11281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11282 (eval $ac_compile) 2>&5
11283 ac_status=$?
11284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285 test $ac_status = 0; } 2>conftest.err; then
11286 soname=conftest
11287 lib=conftest
11288 libobjs=conftest.$ac_objext
11289 deplibs=
11290 wl=$lt_prog_compiler_wl
11291 pic_flag=$lt_prog_compiler_pic
11292 compiler_flags=-v
11293 linker_flags=-v
11294 verstring=
11295 output_objdir=.
11296 libname=conftest
11297 lt_save_allow_undefined_flag=$allow_undefined_flag
11298 allow_undefined_flag=
11299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11300 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11301 ac_status=$?
11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; }
11304 then
11305 lt_cv_archive_cmds_need_lc=no
11306 else
11307 lt_cv_archive_cmds_need_lc=yes
11308 fi
11309 allow_undefined_flag=$lt_save_allow_undefined_flag
11310 else
11311 cat conftest.err 1>&5
11312 fi
11313 $RM conftest*
11314 ;;
11315 esac
11316 fi
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11318 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11319 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11320 ;;
11321 esac
11322 fi
11323 ;;
11324 esac
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11478 printf %s "checking dynamic linker characteristics... " >&6; }
11479
11480 if test yes = "$GCC"; then
11481 case $host_os in
11482 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11483 *) lt_awk_arg='/^libraries:/' ;;
11484 esac
11485 case $host_os in
11486 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11487 *) lt_sed_strip_eq='s|=/|/|g' ;;
11488 esac
11489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11490 case $lt_search_path_spec in
11491 *\;*)
11492 # if the path contains ";" then we assume it to be the separator
11493 # otherwise default to the standard path separator (i.e. ":") - it is
11494 # assumed that no part of a normal pathname contains ";" but that should
11495 # okay in the real world where ";" in dirpaths is itself problematic.
11496 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11497 ;;
11498 *)
11499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11500 ;;
11501 esac
11502 # Ok, now we have the path, separated by spaces, we can step through it
11503 # and add multilib dir if necessary...
11504 lt_tmp_lt_search_path_spec=
11505 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11506 # ...but if some path component already ends with the multilib dir we assume
11507 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11508 case "$lt_multi_os_dir; $lt_search_path_spec " in
11509 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11510 lt_multi_os_dir=
11511 ;;
11512 esac
11513 for lt_sys_path in $lt_search_path_spec; do
11514 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11516 elif test -n "$lt_multi_os_dir"; then
11517 test -d "$lt_sys_path" && \
11518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11519 fi
11520 done
11521 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11522 BEGIN {RS = " "; FS = "/|\n";} {
11523 lt_foo = "";
11524 lt_count = 0;
11525 for (lt_i = NF; lt_i > 0; lt_i--) {
11526 if ($lt_i != "" && $lt_i != ".") {
11527 if ($lt_i == "..") {
11528 lt_count++;
11529 } else {
11530 if (lt_count == 0) {
11531 lt_foo = "/" $lt_i lt_foo;
11532 } else {
11533 lt_count--;
11534 }
11535 }
11536 }
11537 }
11538 if (lt_foo != "") { lt_freq[lt_foo]++; }
11539 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11540 }'`
11541 # AWK program above erroneously prepends '/' to C:/dos/paths
11542 # for these hosts.
11543 case $host_os in
11544 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11545 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11546 esac
11547 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11548 else
11549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11550 fi
11551 library_names_spec=
11552 libname_spec='lib$name'
11553 soname_spec=
11554 shrext_cmds=.so
11555 postinstall_cmds=
11556 postuninstall_cmds=
11557 finish_cmds=
11558 finish_eval=
11559 shlibpath_var=
11560 shlibpath_overrides_runpath=unknown
11561 version_type=none
11562 dynamic_linker="$host_os ld.so"
11563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11564 need_lib_prefix=unknown
11565 hardcode_into_libs=no
11566
11567 # when you set need_version to no, make sure it does not cause -set_version
11568 # flags to be left without arguments
11569 need_version=unknown
11570
11571
11572
11573 case $host_os in
11574 aix3*)
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11577 shlibpath_var=LIBPATH
11578
11579 # AIX 3 has no versioning support, so we append a major version to the name.
11580 soname_spec='$libname$release$shared_ext$major'
11581 ;;
11582
11583 aix[4-9]*)
11584 version_type=linux # correct to gnu/linux during the next big refactor
11585 need_lib_prefix=no
11586 need_version=no
11587 hardcode_into_libs=yes
11588 if test ia64 = "$host_cpu"; then
11589 # AIX 5 supports IA64
11590 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 else
11593 # With GCC up to 2.95.x, collect2 would create an import file
11594 # for dependence libraries. The import file would start with
11595 # the line '#! .'. This would cause the generated library to
11596 # depend on '.', always an invalid library. This was fixed in
11597 # development snapshots of GCC prior to 3.0.
11598 case $host_os in
11599 aix4 | aix4.[01] | aix4.[01].*)
11600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11601 echo ' yes '
11602 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11603 :
11604 else
11605 can_build_shared=no
11606 fi
11607 ;;
11608 esac
11609 # Using Import Files as archive members, it is possible to support
11610 # filename-based versioning of shared library archives on AIX. While
11611 # this would work for both with and without runtime linking, it will
11612 # prevent static linking of such archives. So we do filename-based
11613 # shared library versioning with .so extension only, which is used
11614 # when both runtime linking and shared linking is enabled.
11615 # Unfortunately, runtime linking may impact performance, so we do
11616 # not want this to be the default eventually. Also, we use the
11617 # versioned .so libs for executables only if there is the -brtl
11618 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11619 # To allow for filename-based versioning support, we need to create
11620 # libNAME.so.V as an archive file, containing:
11621 # *) an Import File, referring to the versioned filename of the
11622 # archive as well as the shared archive member, telling the
11623 # bitwidth (32 or 64) of that shared object, and providing the
11624 # list of exported symbols of that shared object, eventually
11625 # decorated with the 'weak' keyword
11626 # *) the shared object with the F_LOADONLY flag set, to really avoid
11627 # it being seen by the linker.
11628 # At run time we better use the real file rather than another symlink,
11629 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11630
11631 case $with_aix_soname,$aix_use_runtimelinking in
11632 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11633 # soname into executable. Probably we can add versioning support to
11634 # collect2, so additional links can be useful in future.
11635 aix,yes) # traditional libtool
11636 dynamic_linker='AIX unversionable lib.so'
11637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11638 # instead of lib<name>.a to let people know that these are not
11639 # typical AIX shared libraries.
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 ;;
11642 aix,no) # traditional AIX only
11643 dynamic_linker='AIX lib.a(lib.so.V)'
11644 # We preserve .a as extension for shared libraries through AIX4.2
11645 # and later when we are not doing run time linking.
11646 library_names_spec='$libname$release.a $libname.a'
11647 soname_spec='$libname$release$shared_ext$major'
11648 ;;
11649 svr4,*) # full svr4 only
11650 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11651 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11652 # We do not specify a path in Import Files, so LIBPATH fires.
11653 shlibpath_overrides_runpath=yes
11654 ;;
11655 *,yes) # both, prefer svr4
11656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11658 # unpreferred sharedlib libNAME.a needs extra handling
11659 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"'
11660 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"'
11661 # We do not specify a path in Import Files, so LIBPATH fires.
11662 shlibpath_overrides_runpath=yes
11663 ;;
11664 *,no) # both, prefer aix
11665 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11666 library_names_spec='$libname$release.a $libname.a'
11667 soname_spec='$libname$release$shared_ext$major'
11668 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11669 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)'
11670 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"'
11671 ;;
11672 esac
11673 shlibpath_var=LIBPATH
11674 fi
11675 ;;
11676
11677 amigaos*)
11678 case $host_cpu in
11679 powerpc)
11680 # Since July 2007 AmigaOS4 officially supports .so libraries.
11681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11683 ;;
11684 m68k)
11685 library_names_spec='$libname.ixlibrary $libname.a'
11686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11687 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'
11688 ;;
11689 esac
11690 ;;
11691
11692 beos*)
11693 library_names_spec='$libname$shared_ext'
11694 dynamic_linker="$host_os ld.so"
11695 shlibpath_var=LIBRARY_PATH
11696 ;;
11697
11698 bsdi[45]*)
11699 version_type=linux # correct to gnu/linux during the next big refactor
11700 need_version=no
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702 soname_spec='$libname$release$shared_ext$major'
11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11707 # the default ld.so.conf also contains /usr/contrib/lib and
11708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11709 # libtool to hard-code these into programs
11710 ;;
11711
11712 cygwin* | mingw* | windows* | pw32* | cegcc*)
11713 version_type=windows
11714 shrext_cmds=.dll
11715 need_version=no
11716 need_lib_prefix=no
11717
11718 case $GCC,$cc_basename in
11719 yes,*)
11720 # gcc
11721 library_names_spec='$libname.dll.a'
11722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11723 # If user builds GCC with multilib enabled,
11724 # it should just install on $(libdir)
11725 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11726 if test xyes = x"$multilib"; then
11727 postinstall_cmds='base_file=`basename \$file`~
11728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11729 dldir=$destdir/`dirname \$dlpath`~
11730 $install_prog $dir/$dlname $destdir/$dlname~
11731 chmod a+x $destdir/$dlname~
11732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11733 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11734 fi'
11735 else
11736 postinstall_cmds='base_file=`basename \$file`~
11737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11738 dldir=$destdir/`dirname \$dlpath`~
11739 test -d \$dldir || mkdir -p \$dldir~
11740 $install_prog $dir/$dlname \$dldir/$dlname~
11741 chmod a+x \$dldir/$dlname~
11742 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11743 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11744 fi'
11745 fi
11746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11747 dlpath=$dir/\$dldll~
11748 $RM \$dlpath'
11749 shlibpath_overrides_runpath=yes
11750
11751 case $host_os in
11752 cygwin*)
11753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11754 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11755
11756 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11757 ;;
11758 mingw* | windows* | cegcc*)
11759 # MinGW DLLs use traditional 'lib' prefix
11760 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11761 ;;
11762 pw32*)
11763 # pw32 DLLs use 'pw' prefix rather than 'lib'
11764 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11765 ;;
11766 esac
11767 dynamic_linker='Win32 ld.exe'
11768 ;;
11769
11770 *,cl* | *,icl*)
11771 # Native MSVC or ICC
11772 libname_spec='$name'
11773 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11774 library_names_spec='$libname.dll.lib'
11775
11776 case $build_os in
11777 mingw* | windows*)
11778 sys_lib_search_path_spec=
11779 lt_save_ifs=$IFS
11780 IFS=';'
11781 for lt_path in $LIB
11782 do
11783 IFS=$lt_save_ifs
11784 # Let DOS variable expansion print the short 8.3 style file name.
11785 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11786 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11787 done
11788 IFS=$lt_save_ifs
11789 # Convert to MSYS style.
11790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11791 ;;
11792 cygwin*)
11793 # Convert to unix form, then to dos form, then back to unix form
11794 # but this time dos style (no spaces!) so that the unix form looks
11795 # like /cygdrive/c/PROGRA~1:/cygdr...
11796 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11797 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11798 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11799 ;;
11800 *)
11801 sys_lib_search_path_spec=$LIB
11802 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11803 # It is most probably a Windows format PATH.
11804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11805 else
11806 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11807 fi
11808 # FIXME: find the short name or the path components, as spaces are
11809 # common. (e.g. "Program Files" -> "PROGRA~1")
11810 ;;
11811 esac
11812
11813 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11814 postinstall_cmds='base_file=`basename \$file`~
11815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11816 dldir=$destdir/`dirname \$dlpath`~
11817 test -d \$dldir || mkdir -p \$dldir~
11818 $install_prog $dir/$dlname \$dldir/$dlname'
11819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11820 dlpath=$dir/\$dldll~
11821 $RM \$dlpath'
11822 shlibpath_overrides_runpath=yes
11823 dynamic_linker='Win32 link.exe'
11824 ;;
11825
11826 *)
11827 # Assume MSVC and ICC wrapper
11828 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11829 dynamic_linker='Win32 ld.exe'
11830 ;;
11831 esac
11832 # FIXME: first we should search . and the directory the executable is in
11833 shlibpath_var=PATH
11834 ;;
11835
11836 darwin* | rhapsody*)
11837 dynamic_linker="$host_os dyld"
11838 version_type=darwin
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11842 soname_spec='$libname$release$major$shared_ext'
11843 shlibpath_overrides_runpath=yes
11844 shlibpath_var=DYLD_LIBRARY_PATH
11845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11846
11847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11849 ;;
11850
11851 dgux*)
11852 version_type=linux # correct to gnu/linux during the next big refactor
11853 need_lib_prefix=no
11854 need_version=no
11855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11856 soname_spec='$libname$release$shared_ext$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 ;;
11859
11860 freebsd* | dragonfly* | midnightbsd*)
11861 # DragonFly does not have aout. When/if they implement a new
11862 # versioning mechanism, adjust this.
11863 if test -x /usr/bin/objformat; then
11864 objformat=`/usr/bin/objformat`
11865 else
11866 case $host_os in
11867 freebsd[23].*) objformat=aout ;;
11868 *) objformat=elf ;;
11869 esac
11870 fi
11871 version_type=freebsd-$objformat
11872 case $version_type in
11873 freebsd-elf*)
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
11876 need_version=no
11877 need_lib_prefix=no
11878 ;;
11879 freebsd-*)
11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11881 need_version=yes
11882 ;;
11883 esac
11884 case $host_cpu in
11885 powerpc64)
11886 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11887 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11890 int test_pointer_size[sizeof (void *) - 5];
11891
11892 _ACEOF
11893 if ac_fn_c_try_compile "$LINENO"
11894 then :
11895 shlibpath_var=LD_LIBRARY_PATH
11896 else case e in #(
11897 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11898 esac
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11901 ;;
11902 *)
11903 shlibpath_var=LD_LIBRARY_PATH
11904 ;;
11905 esac
11906 case $host_os in
11907 freebsd2.*)
11908 shlibpath_overrides_runpath=yes
11909 ;;
11910 freebsd3.[01]* | freebsdelf3.[01]*)
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11913 ;;
11914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11916 shlibpath_overrides_runpath=no
11917 hardcode_into_libs=yes
11918 ;;
11919 *) # from 4.6 on, and DragonFly
11920 shlibpath_overrides_runpath=yes
11921 hardcode_into_libs=yes
11922 ;;
11923 esac
11924 ;;
11925
11926 haiku*)
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 need_lib_prefix=no
11929 need_version=no
11930 dynamic_linker="$host_os runtime_loader"
11931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11932 soname_spec='$libname$release$shared_ext$major'
11933 shlibpath_var=LIBRARY_PATH
11934 shlibpath_overrides_runpath=no
11935 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11936 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11937 hardcode_into_libs=no
11938 ;;
11939
11940 hpux9* | hpux10* | hpux11*)
11941 # Give a soname corresponding to the major version so that dld.sl refuses to
11942 # link against other versions.
11943 version_type=sunos
11944 need_lib_prefix=no
11945 need_version=no
11946 case $host_cpu in
11947 ia64*)
11948 shrext_cmds='.so'
11949 hardcode_into_libs=yes
11950 dynamic_linker="$host_os dld.so"
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 if test 32 = "$HPUX_IA64_MODE"; then
11956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11957 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11958 else
11959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11960 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11961 fi
11962 ;;
11963 hppa*64*)
11964 shrext_cmds='.sl'
11965 hardcode_into_libs=yes
11966 dynamic_linker="$host_os dld.sl"
11967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 soname_spec='$libname$release$shared_ext$major'
11971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11973 ;;
11974 *)
11975 shrext_cmds='.sl'
11976 dynamic_linker="$host_os dld.sl"
11977 shlibpath_var=SHLIB_PATH
11978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 soname_spec='$libname$release$shared_ext$major'
11981 ;;
11982 esac
11983 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11984 postinstall_cmds='chmod 555 $lib'
11985 # or fails outright, so override atomically:
11986 install_override_mode=555
11987 ;;
11988
11989 interix[3-9]*)
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 need_lib_prefix=no
11992 need_version=no
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=no
11998 hardcode_into_libs=yes
11999 ;;
12000
12001 irix5* | irix6* | nonstopux*)
12002 case $host_os in
12003 nonstopux*) version_type=nonstopux ;;
12004 *)
12005 if test yes = "$lt_cv_prog_gnu_ld"; then
12006 version_type=linux # correct to gnu/linux during the next big refactor
12007 else
12008 version_type=irix
12009 fi ;;
12010 esac
12011 need_lib_prefix=no
12012 need_version=no
12013 soname_spec='$libname$release$shared_ext$major'
12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12015 case $host_os in
12016 irix5* | nonstopux*)
12017 libsuff= shlibsuff=
12018 ;;
12019 *)
12020 case $LD in # libtool.m4 will add one of these switches to LD
12021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12022 libsuff= shlibsuff= libmagic=32-bit;;
12023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12024 libsuff=32 shlibsuff=N32 libmagic=N32;;
12025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12026 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12027 *) libsuff= shlibsuff= libmagic=never-match;;
12028 esac
12029 ;;
12030 esac
12031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12032 shlibpath_overrides_runpath=no
12033 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12034 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12035 hardcode_into_libs=yes
12036 ;;
12037
12038 # No shared lib support for Linux oldld, aout, or coff.
12039 linux*oldld* | linux*aout* | linux*coff*)
12040 dynamic_linker=no
12041 ;;
12042
12043 linux*android*)
12044 version_type=none # Android doesn't support versioned libraries.
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext'
12049 finish_cmds=
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052
12053 # This implies no fast_install, which is unacceptable.
12054 # Some rework will be needed to allow for fast_install
12055 # before this can be enabled.
12056 hardcode_into_libs=yes
12057
12058 dynamic_linker='Android linker'
12059 # -rpath works at least for libraries that are not overridden by
12060 # libraries installed in system locations.
12061 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12062 ;;
12063
12064 # This must be glibc/ELF.
12065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12066 version_type=linux # correct to gnu/linux during the next big refactor
12067 need_lib_prefix=no
12068 need_version=no
12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12070 soname_spec='$libname$release$shared_ext$major'
12071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 shlibpath_overrides_runpath=no
12074
12075 # Some binutils ld are patched to set DT_RUNPATH
12076 if test ${lt_cv_shlibpath_overrides_runpath+y}
12077 then :
12078 printf %s "(cached) " >&6
12079 else case e in #(
12080 e) lt_cv_shlibpath_overrides_runpath=no
12081 save_LDFLAGS=$LDFLAGS
12082 save_libdir=$libdir
12083 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12084 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087
12088 int
12089 main (void)
12090 {
12091
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"
12097 then :
12098 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12099 then :
12100 lt_cv_shlibpath_overrides_runpath=yes
12101 fi
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LDFLAGS=$save_LDFLAGS
12106 libdir=$save_libdir
12107 ;;
12108 esac
12109 fi
12110
12111 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12112
12113 # This implies no fast_install, which is unacceptable.
12114 # Some rework will be needed to allow for fast_install
12115 # before this can be enabled.
12116 hardcode_into_libs=yes
12117
12118 # Ideally, we could use ldconfig to report *all* directories which are
12119 # searched for libraries, however this is still not possible. Aside from not
12120 # being certain /sbin/ldconfig is available, command
12121 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12122 # even though it is searched at run-time. Try to do the best guess by
12123 # appending ld.so.conf contents (and includes) to the search path.
12124 if test -f /etc/ld.so.conf; then
12125 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' ' '`
12126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12127 fi
12128
12129 # We used to test for /lib/ld.so.1 and disable shared libraries on
12130 # powerpc, because MkLinux only supported shared libraries with the
12131 # GNU dynamic linker. Since this was broken with cross compilers,
12132 # most powerpc-linux boxes support dynamic linking these days and
12133 # people can always --disable-shared, the test was removed, and we
12134 # assume the GNU/Linux dynamic linker is in use.
12135 dynamic_linker='GNU/Linux ld.so'
12136 ;;
12137
12138 netbsdelf*-gnu)
12139 version_type=linux
12140 need_lib_prefix=no
12141 need_version=no
12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12143 soname_spec='$libname$release$shared_ext$major'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=no
12146 hardcode_into_libs=yes
12147 dynamic_linker='NetBSD ld.elf_so'
12148 ;;
12149
12150 netbsdelf*-gnu)
12151 version_type=linux
12152 need_lib_prefix=no
12153 need_version=no
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155 soname_spec='${libname}${release}${shared_ext}$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=no
12158 hardcode_into_libs=yes
12159 dynamic_linker='NetBSD ld.elf_so'
12160 ;;
12161
12162 netbsd*)
12163 version_type=sunos
12164 need_lib_prefix=no
12165 need_version=no
12166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12169 dynamic_linker='NetBSD (a.out) ld.so'
12170 else
12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12172 soname_spec='$libname$release$shared_ext$major'
12173 dynamic_linker='NetBSD ld.elf_so'
12174 fi
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=yes
12177 hardcode_into_libs=yes
12178 ;;
12179
12180 *-mlibc)
12181 version_type=linux # correct to gnu/linux during the next big refactor
12182 need_lib_prefix=no
12183 need_version=no
12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12185 soname_spec='$libname$release$shared_ext$major'
12186 dynamic_linker='mlibc ld.so'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=no
12189 hardcode_into_libs=yes
12190 ;;
12191
12192 newsos6)
12193 version_type=linux # correct to gnu/linux during the next big refactor
12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes
12197 ;;
12198
12199 *nto* | *qnx*)
12200 version_type=qnx
12201 need_lib_prefix=no
12202 need_version=no
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 soname_spec='$libname$release$shared_ext$major'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=no
12207 hardcode_into_libs=yes
12208 dynamic_linker='ldqnx.so'
12209 ;;
12210
12211 openbsd*)
12212 version_type=sunos
12213 sys_lib_dlsearch_path_spec=/usr/lib
12214 need_lib_prefix=no
12215 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12216 need_version=no
12217 else
12218 need_version=yes
12219 fi
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12224 ;;
12225
12226 os2*)
12227 libname_spec='$name'
12228 version_type=windows
12229 shrext_cmds=.dll
12230 need_version=no
12231 need_lib_prefix=no
12232 # OS/2 can only load a DLL with a base name of 8 characters or less.
12233 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12234 v=$($ECHO $release$versuffix | tr -d .-);
12235 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12236 $ECHO $n$v`$shared_ext'
12237 library_names_spec='${libname}_dll.$libext'
12238 dynamic_linker='OS/2 ld.exe'
12239 shlibpath_var=BEGINLIBPATH
12240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12242 postinstall_cmds='base_file=`basename \$file`~
12243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12244 dldir=$destdir/`dirname \$dlpath`~
12245 test -d \$dldir || mkdir -p \$dldir~
12246 $install_prog $dir/$dlname \$dldir/$dlname~
12247 chmod a+x \$dldir/$dlname~
12248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12250 fi'
12251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12252 dlpath=$dir/\$dldll~
12253 $RM \$dlpath'
12254 ;;
12255
12256 osf3* | osf4* | osf5*)
12257 version_type=osf
12258 need_lib_prefix=no
12259 need_version=no
12260 soname_spec='$libname$release$shared_ext$major'
12261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12265 ;;
12266
12267 rdos*)
12268 dynamic_linker=no
12269 ;;
12270
12271 serenity*)
12272 version_type=linux # correct to gnu/linux during the next big refactor
12273 need_lib_prefix=no
12274 need_version=no
12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12276 soname_spec='$libname$release$shared_ext$major'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=no
12279 dynamic_linker='SerenityOS LibELF'
12280 ;;
12281
12282 solaris*)
12283 version_type=linux # correct to gnu/linux during the next big refactor
12284 need_lib_prefix=no
12285 need_version=no
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287 soname_spec='$libname$release$shared_ext$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12290 hardcode_into_libs=yes
12291 # ldd complains unless libraries are executable
12292 postinstall_cmds='chmod +x $lib'
12293 ;;
12294
12295 sunos4*)
12296 version_type=sunos
12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 shlibpath_overrides_runpath=yes
12301 if test yes = "$with_gnu_ld"; then
12302 need_lib_prefix=no
12303 fi
12304 need_version=yes
12305 ;;
12306
12307 sysv4 | sysv4.3*)
12308 version_type=linux # correct to gnu/linux during the next big refactor
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310 soname_spec='$libname$release$shared_ext$major'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 case $host_vendor in
12313 sni)
12314 shlibpath_overrides_runpath=no
12315 need_lib_prefix=no
12316 runpath_var=LD_RUN_PATH
12317 ;;
12318 siemens)
12319 need_lib_prefix=no
12320 ;;
12321 motorola)
12322 need_lib_prefix=no
12323 need_version=no
12324 shlibpath_overrides_runpath=no
12325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12326 ;;
12327 esac
12328 ;;
12329
12330 sysv4*MP*)
12331 if test -d /usr/nec; then
12332 version_type=linux # correct to gnu/linux during the next big refactor
12333 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12334 soname_spec='$libname$shared_ext.$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 fi
12337 ;;
12338
12339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12340 version_type=sco
12341 need_lib_prefix=no
12342 need_version=no
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12344 soname_spec='$libname$release$shared_ext$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12347 hardcode_into_libs=yes
12348 if test yes = "$with_gnu_ld"; then
12349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12350 else
12351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12352 case $host_os in
12353 sco3.2v5*)
12354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12355 ;;
12356 esac
12357 fi
12358 sys_lib_dlsearch_path_spec='/usr/lib'
12359 ;;
12360
12361 tpf*)
12362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 need_lib_prefix=no
12365 need_version=no
12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 shlibpath_overrides_runpath=no
12369 hardcode_into_libs=yes
12370 ;;
12371
12372 uts4*)
12373 version_type=linux # correct to gnu/linux during the next big refactor
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375 soname_spec='$libname$release$shared_ext$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 ;;
12378
12379 emscripten*)
12380 version_type=none
12381 need_lib_prefix=no
12382 need_version=no
12383 library_names_spec='$libname$release$shared_ext'
12384 soname_spec='$libname$release$shared_ext'
12385 finish_cmds=
12386 dynamic_linker="Emscripten linker"
12387 lt_prog_compiler_wl=
12388 lt_prog_compiler_pic=
12389 lt_prog_compiler_static=
12390
12391
12392 if test yes = "$GCC"; then
12393 lt_prog_compiler_wl='-Wl,'
12394 lt_prog_compiler_static='-static'
12395
12396 case $host_os in
12397 aix*)
12398 # All AIX code is PIC.
12399 if test ia64 = "$host_cpu"; then
12400 # AIX 5 now supports IA64 processor
12401 lt_prog_compiler_static='-Bstatic'
12402 fi
12403 lt_prog_compiler_pic='-fPIC'
12404 ;;
12405
12406 amigaos*)
12407 case $host_cpu in
12408 powerpc)
12409 # see comment about AmigaOS4 .so support
12410 lt_prog_compiler_pic='-fPIC'
12411 ;;
12412 m68k)
12413 # FIXME: we need at least 68020 code to build shared libraries, but
12414 # adding the '-m68020' flag to GCC prevents building anything better,
12415 # like '-m68040'.
12416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12417 ;;
12418 esac
12419 ;;
12420
12421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12422 # PIC is the default for these OSes.
12423 ;;
12424
12425 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12426 # This hack is so that the source file can tell whether it is being
12427 # built for inclusion in a dll (and should export symbols for example).
12428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12429 # (--disable-auto-import) libraries
12430 lt_prog_compiler_pic='-DDLL_EXPORT'
12431 case $host_os in
12432 os2*)
12433 lt_prog_compiler_static='$wl-static'
12434 ;;
12435 esac
12436 ;;
12437
12438 darwin* | rhapsody*)
12439 # PIC is the default on this platform
12440 # Common symbols not allowed in MH_DYLIB files
12441 lt_prog_compiler_pic='-fno-common'
12442 ;;
12443
12444 haiku*)
12445 # PIC is the default for Haiku.
12446 # The "-static" flag exists, but is broken.
12447 lt_prog_compiler_static=
12448 ;;
12449
12450 hpux*)
12451 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12452 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12453 # sets the default TLS model and affects inlining.
12454 case $host_cpu in
12455 hppa*64*)
12456 # +Z the default
12457 ;;
12458 *)
12459 lt_prog_compiler_pic='-fPIC'
12460 ;;
12461 esac
12462 ;;
12463
12464 interix[3-9]*)
12465 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12466 # Instead, we relocate shared libraries at runtime.
12467 ;;
12468
12469 msdosdjgpp*)
12470 # Just because we use GCC doesn't mean we suddenly get shared libraries
12471 # on systems that don't support them.
12472 lt_prog_compiler_can_build_shared=no
12473 enable_shared=no
12474 ;;
12475
12476 *nto* | *qnx*)
12477 # QNX uses GNU C++, but need to define -shared option too, otherwise
12478 # it will coredump.
12479 lt_prog_compiler_pic='-fPIC -shared'
12480 ;;
12481
12482 sysv4*MP*)
12483 if test -d /usr/nec; then
12484 lt_prog_compiler_pic=-Kconform_pic
12485 fi
12486 ;;
12487
12488 *)
12489 lt_prog_compiler_pic='-fPIC'
12490 ;;
12491 esac
12492
12493 case $cc_basename in
12494 nvcc*) # Cuda Compiler Driver 2.2
12495 lt_prog_compiler_wl='-Xlinker '
12496 if test -n "$lt_prog_compiler_pic"; then
12497 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12498 fi
12499 ;;
12500 esac
12501 else
12502 # PORTME Check for flag to pass linker flags through the system compiler.
12503 case $host_os in
12504 aix*)
12505 lt_prog_compiler_wl='-Wl,'
12506 if test ia64 = "$host_cpu"; then
12507 # AIX 5 now supports IA64 processor
12508 lt_prog_compiler_static='-Bstatic'
12509 else
12510 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12511 fi
12512 ;;
12513
12514 darwin* | rhapsody*)
12515 # PIC is the default on this platform
12516 # Common symbols not allowed in MH_DYLIB files
12517 lt_prog_compiler_pic='-fno-common'
12518 case $cc_basename in
12519 nagfor*)
12520 # NAG Fortran compiler
12521 lt_prog_compiler_wl='-Wl,-Wl,,'
12522 lt_prog_compiler_pic='-PIC'
12523 lt_prog_compiler_static='-Bstatic'
12524 ;;
12525 esac
12526 ;;
12527
12528 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12529 # This hack is so that the source file can tell whether it is being
12530 # built for inclusion in a dll (and should export symbols for example).
12531 lt_prog_compiler_pic='-DDLL_EXPORT'
12532 case $host_os in
12533 os2*)
12534 lt_prog_compiler_static='$wl-static'
12535 ;;
12536 esac
12537 ;;
12538
12539 hpux9* | hpux10* | hpux11*)
12540 lt_prog_compiler_wl='-Wl,'
12541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12542 # not for PA HP-UX.
12543 case $host_cpu in
12544 hppa*64*|ia64*)
12545 # +Z the default
12546 ;;
12547 *)
12548 lt_prog_compiler_pic='+Z'
12549 ;;
12550 esac
12551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12552 lt_prog_compiler_static='$wl-a ${wl}archive'
12553 ;;
12554
12555 irix5* | irix6* | nonstopux*)
12556 lt_prog_compiler_wl='-Wl,'
12557 # PIC (with -KPIC) is the default.
12558 lt_prog_compiler_static='-non_shared'
12559 ;;
12560
12561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12562 case $cc_basename in
12563 # old Intel for x86_64, which still supported -KPIC.
12564 ecc*)
12565 lt_prog_compiler_wl='-Wl,'
12566 lt_prog_compiler_pic='-KPIC'
12567 lt_prog_compiler_static='-static'
12568 ;;
12569 *flang* | ftn | f18* | f95*)
12570 # Flang compiler.
12571 lt_prog_compiler_wl='-Wl,'
12572 lt_prog_compiler_pic='-fPIC'
12573 lt_prog_compiler_static='-static'
12574 ;;
12575 # flang / f18. f95 an alias for gfortran or flang on Debian
12576 flang* | f18* | f95*)
12577 lt_prog_compiler_wl='-Wl,'
12578 lt_prog_compiler_pic='-fPIC'
12579 lt_prog_compiler_static='-static'
12580 ;;
12581 # icc used to be incompatible with GCC.
12582 # ICC 10 doesn't accept -KPIC any more.
12583 icc* | ifort*)
12584 lt_prog_compiler_wl='-Wl,'
12585 lt_prog_compiler_pic='-fPIC'
12586 lt_prog_compiler_static='-static'
12587 ;;
12588 # Lahey Fortran 8.1.
12589 lf95*)
12590 lt_prog_compiler_wl='-Wl,'
12591 lt_prog_compiler_pic='--shared'
12592 lt_prog_compiler_static='--static'
12593 ;;
12594 nagfor*)
12595 # NAG Fortran compiler
12596 lt_prog_compiler_wl='-Wl,-Wl,,'
12597 lt_prog_compiler_pic='-PIC'
12598 lt_prog_compiler_static='-Bstatic'
12599 ;;
12600 tcc*)
12601 # Fabrice Bellard et al's Tiny C Compiler
12602 lt_prog_compiler_wl='-Wl,'
12603 lt_prog_compiler_pic='-fPIC'
12604 lt_prog_compiler_static='-static'
12605 ;;
12606 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12607 # Portland Group compilers (*not* the Pentium gcc compiler,
12608 # which looks to be a dead project)
12609 lt_prog_compiler_wl='-Wl,'
12610 lt_prog_compiler_pic='-fpic'
12611 lt_prog_compiler_static='-Bstatic'
12612 ;;
12613 ccc*)
12614 lt_prog_compiler_wl='-Wl,'
12615 # All Alpha code is PIC.
12616 lt_prog_compiler_static='-non_shared'
12617 ;;
12618 xl* | bgxl* | bgf* | mpixl*)
12619 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12620 lt_prog_compiler_wl='-Wl,'
12621 lt_prog_compiler_pic='-qpic'
12622 lt_prog_compiler_static='-qstaticlink'
12623 ;;
12624 *)
12625 case `$CC -V 2>&1 | $SED 5q` in
12626 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12627 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12628 lt_prog_compiler_pic='-KPIC'
12629 lt_prog_compiler_static='-Bstatic'
12630 lt_prog_compiler_wl=''
12631 ;;
12632 *Sun\ F* | *Sun*Fortran*)
12633 lt_prog_compiler_pic='-KPIC'
12634 lt_prog_compiler_static='-Bstatic'
12635 lt_prog_compiler_wl='-Qoption ld '
12636 ;;
12637 *Sun\ C*)
12638 # Sun C 5.9
12639 lt_prog_compiler_pic='-KPIC'
12640 lt_prog_compiler_static='-Bstatic'
12641 lt_prog_compiler_wl='-Wl,'
12642 ;;
12643 *Intel*\ [CF]*Compiler*)
12644 lt_prog_compiler_wl='-Wl,'
12645 lt_prog_compiler_pic='-fPIC'
12646 lt_prog_compiler_static='-static'
12647 ;;
12648 *Portland\ Group*)
12649 lt_prog_compiler_wl='-Wl,'
12650 lt_prog_compiler_pic='-fpic'
12651 lt_prog_compiler_static='-Bstatic'
12652 ;;
12653 esac
12654 ;;
12655 esac
12656 ;;
12657
12658 newsos6)
12659 lt_prog_compiler_pic='-KPIC'
12660 lt_prog_compiler_static='-Bstatic'
12661 ;;
12662
12663 *-mlibc)
12664 lt_prog_compiler_wl='-Wl,'
12665 lt_prog_compiler_pic='-fPIC'
12666 lt_prog_compiler_static='-static'
12667 ;;
12668
12669 *nto* | *qnx*)
12670 # QNX uses GNU C++, but need to define -shared option too, otherwise
12671 # it will coredump.
12672 lt_prog_compiler_pic='-fPIC -shared'
12673 ;;
12674
12675 osf3* | osf4* | osf5*)
12676 lt_prog_compiler_wl='-Wl,'
12677 # All OSF/1 code is PIC.
12678 lt_prog_compiler_static='-non_shared'
12679 ;;
12680
12681 rdos*)
12682 lt_prog_compiler_static='-non_shared'
12683 ;;
12684
12685 serenity*)
12686 ;;
12687
12688 solaris*)
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 case $cc_basename in
12692 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12693 lt_prog_compiler_wl='-Qoption ld ';;
12694 *)
12695 lt_prog_compiler_wl='-Wl,';;
12696 esac
12697 ;;
12698
12699 sunos4*)
12700 lt_prog_compiler_wl='-Qoption ld '
12701 lt_prog_compiler_pic='-PIC'
12702 lt_prog_compiler_static='-Bstatic'
12703 ;;
12704
12705 sysv4 | sysv4.2uw2* | sysv4.3*)
12706 lt_prog_compiler_wl='-Wl,'
12707 lt_prog_compiler_pic='-KPIC'
12708 lt_prog_compiler_static='-Bstatic'
12709 ;;
12710
12711 sysv4*MP*)
12712 if test -d /usr/nec; then
12713 lt_prog_compiler_pic='-Kconform_pic'
12714 lt_prog_compiler_static='-Bstatic'
12715 fi
12716 ;;
12717
12718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12719 lt_prog_compiler_wl='-Wl,'
12720 lt_prog_compiler_pic='-KPIC'
12721 lt_prog_compiler_static='-Bstatic'
12722 ;;
12723
12724 unicos*)
12725 lt_prog_compiler_wl='-Wl,'
12726 lt_prog_compiler_can_build_shared=no
12727 ;;
12728
12729 uts4*)
12730 lt_prog_compiler_pic='-pic'
12731 lt_prog_compiler_static='-Bstatic'
12732 ;;
12733
12734 *)
12735 lt_prog_compiler_can_build_shared=no
12736 ;;
12737 esac
12738 fi
12739
12740 case $host_os in
12741 # For platforms that do not support PIC, -DPIC is meaningless:
12742 *djgpp*)
12743 lt_prog_compiler_pic=
12744 ;;
12745 *)
12746 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12747 ;;
12748 esac
12749
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12751 printf %s "checking for $compiler option to produce PIC... " >&6; }
12752 if test ${lt_cv_prog_compiler_pic+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12757 esac
12758 fi
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12760 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12761 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12762
12763 #
12764 # Check to make sure the PIC flag actually works.
12765 #
12766 if test -n "$lt_prog_compiler_pic"; then
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12768 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12769 if test ${lt_cv_prog_compiler_pic_works+y}
12770 then :
12771 printf %s "(cached) " >&6
12772 else case e in #(
12773 e) lt_cv_prog_compiler_pic_works=no
12774 ac_outfile=conftest.$ac_objext
12775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12776 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 # The option is referenced via a variable to avoid confusing sed.
12782 lt_compile=`echo "$ac_compile" | $SED \
12783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12785 -e 's:$: $lt_compiler_flag:'`
12786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12787 (eval "$lt_compile" 2>conftest.err)
12788 ac_status=$?
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 if (exit $ac_status) && test -s "$ac_outfile"; then
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings other than the usual output.
12794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12797 lt_cv_prog_compiler_pic_works=yes
12798 fi
12799 fi
12800 $RM conftest*
12801 ;;
12802 esac
12803 fi
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12805 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12806
12807 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12808 case $lt_prog_compiler_pic in
12809 "" | " "*) ;;
12810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12811 esac
12812 else
12813 lt_prog_compiler_pic=
12814 lt_prog_compiler_can_build_shared=no
12815 fi
12816
12817 fi
12818
12819
12820
12821
12822
12823 #
12824 # Check to make sure the static flag actually works.
12825 #
12826 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12828 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12829 if test ${lt_cv_prog_compiler_static_works+y}
12830 then :
12831 printf %s "(cached) " >&6
12832 else case e in #(
12833 e) lt_cv_prog_compiler_static_works=no
12834 save_LDFLAGS=$LDFLAGS
12835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12838 # The linker can only warn and ignore the option if not recognized
12839 # So say no if there are warnings
12840 if test -s conftest.err; then
12841 # Append any errors to the config.log.
12842 cat conftest.err 1>&5
12843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12845 if diff conftest.exp conftest.er2 >/dev/null; then
12846 lt_cv_prog_compiler_static_works=yes
12847 fi
12848 else
12849 lt_cv_prog_compiler_static_works=yes
12850 fi
12851 fi
12852 $RM -r conftest*
12853 LDFLAGS=$save_LDFLAGS
12854 ;;
12855 esac
12856 fi
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12858 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12859
12860 if test yes = "$lt_cv_prog_compiler_static_works"; then
12861 :
12862 else
12863 lt_prog_compiler_static=
12864 fi
12865
12866
12867
12868 ='-fPIC'
12869 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12870 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12871 archive_cmds_need_lc=no
12872 no_undefined_flag=
12873 ;;
12874
12875 *)
12876 dynamic_linker=no
12877 ;;
12878 esac
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12880 printf "%s\n" "$dynamic_linker" >&6; }
12881 test no = "$dynamic_linker" && can_build_shared=no
12882
12883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12884 if test yes = "$GCC"; then
12885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12886 fi
12887
12888 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12889 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12890 fi
12891
12892 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12893 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12894 fi
12895
12896 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12897 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12898
12899 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12900 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12901
12902 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12903 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13002 printf %s "checking how to hardcode library paths into programs... " >&6; }
13003 hardcode_action=
13004 if test -n "$hardcode_libdir_flag_spec" ||
13005 test -n "$runpath_var" ||
13006 test yes = "$hardcode_automatic"; then
13007
13008 # We can hardcode non-existent directories.
13009 if test no != "$hardcode_direct" &&
13010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13011 # have to relink, otherwise we might link with an installed library
13012 # when we should be linking with a yet-to-be-installed one
13013 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13014 test no != "$hardcode_minus_L"; then
13015 # Linking always hardcodes the temporary library directory.
13016 hardcode_action=relink
13017 else
13018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13019 hardcode_action=immediate
13020 fi
13021 else
13022 # We cannot hardcode anything, or else we can only hardcode existing
13023 # directories.
13024 hardcode_action=unsupported
13025 fi
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13027 printf "%s\n" "$hardcode_action" >&6; }
13028
13029 if test relink = "$hardcode_action" ||
13030 test yes = "$inherit_rpath"; then
13031 # Fast installation is not supported
13032 enable_fast_install=no
13033 elif test yes = "$shlibpath_overrides_runpath" ||
13034 test no = "$enable_shared"; then
13035 # Fast installation is not necessary
13036 enable_fast_install=needless
13037 fi
13038
13039
13040
13041
13042
13043
13044 if test yes != "$enable_dlopen"; then
13045 enable_dlopen=unknown
13046 enable_dlopen_self=unknown
13047 enable_dlopen_self_static=unknown
13048 else
13049 lt_cv_dlopen=no
13050 lt_cv_dlopen_libs=
13051
13052 case $host_os in
13053 beos*)
13054 lt_cv_dlopen=load_add_on
13055 lt_cv_dlopen_libs=
13056 lt_cv_dlopen_self=yes
13057 ;;
13058
13059 mingw* | windows* | pw32* | cegcc*)
13060 lt_cv_dlopen=LoadLibrary
13061 lt_cv_dlopen_libs=
13062 ;;
13063
13064 cygwin*)
13065 lt_cv_dlopen=dlopen
13066 lt_cv_dlopen_libs=
13067 ;;
13068
13069 darwin*)
13070 # if libdl is installed we need to link against it
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13072 printf %s "checking for dlopen in -ldl... " >&6; }
13073 if test ${ac_cv_lib_dl_dlopen+y}
13074 then :
13075 printf %s "(cached) " >&6
13076 else case e in #(
13077 e) ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-ldl $LIBS"
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply.
13085 The 'extern "C"' is for builds by C++ compilers;
13086 although this is not generally supported in C code supporting it here
13087 has little cost and some practical benefit (sr 110532). */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char dlopen (void);
13092 int
13093 main (void)
13094 {
13095 return dlopen ();
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"
13101 then :
13102 ac_cv_lib_dl_dlopen=yes
13103 else case e in #(
13104 e) ac_cv_lib_dl_dlopen=no ;;
13105 esac
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13108 conftest$ac_exeext conftest.$ac_ext
13109 LIBS=$ac_check_lib_save_LIBS ;;
13110 esac
13111 fi
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13113 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13114 if test "x$ac_cv_lib_dl_dlopen" = xyes
13115 then :
13116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13117 else case e in #(
13118 e)
13119 lt_cv_dlopen=dyld
13120 lt_cv_dlopen_libs=
13121 lt_cv_dlopen_self=yes
13122 ;;
13123 esac
13124 fi
13125
13126 ;;
13127
13128 tpf*)
13129 # Don't try to run any link tests for TPF. We know it's impossible
13130 # because TPF is a cross-compiler, and we know how we open DSOs.
13131 lt_cv_dlopen=dlopen
13132 lt_cv_dlopen_libs=
13133 lt_cv_dlopen_self=no
13134 ;;
13135
13136 *)
13137 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13138 if test "x$ac_cv_func_shl_load" = xyes
13139 then :
13140 lt_cv_dlopen=shl_load
13141 else case e in #(
13142 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13143 printf %s "checking for shl_load in -ldld... " >&6; }
13144 if test ${ac_cv_lib_dld_shl_load+y}
13145 then :
13146 printf %s "(cached) " >&6
13147 else case e in #(
13148 e) ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-ldld $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply.
13156 The 'extern "C"' is for builds by C++ compilers;
13157 although this is not generally supported in C code supporting it here
13158 has little cost and some practical benefit (sr 110532). */
13159 #ifdef __cplusplus
13160 extern "C"
13161 #endif
13162 char shl_load (void);
13163 int
13164 main (void)
13165 {
13166 return shl_load ();
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_link "$LINENO"
13172 then :
13173 ac_cv_lib_dld_shl_load=yes
13174 else case e in #(
13175 e) ac_cv_lib_dld_shl_load=no ;;
13176 esac
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS ;;
13181 esac
13182 fi
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13184 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13185 if test "x$ac_cv_lib_dld_shl_load" = xyes
13186 then :
13187 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13188 else case e in #(
13189 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13190 if test "x$ac_cv_func_dlopen" = xyes
13191 then :
13192 lt_cv_dlopen=dlopen
13193 else case e in #(
13194 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13195 printf %s "checking for dlopen in -ldl... " >&6; }
13196 if test ${ac_cv_lib_dl_dlopen+y}
13197 then :
13198 printf %s "(cached) " >&6
13199 else case e in #(
13200 e) ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-ldl $LIBS"
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply.
13208 The 'extern "C"' is for builds by C++ compilers;
13209 although this is not generally supported in C code supporting it here
13210 has little cost and some practical benefit (sr 110532). */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char dlopen (void);
13215 int
13216 main (void)
13217 {
13218 return dlopen ();
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"
13224 then :
13225 ac_cv_lib_dl_dlopen=yes
13226 else case e in #(
13227 e) ac_cv_lib_dl_dlopen=no ;;
13228 esac
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS ;;
13233 esac
13234 fi
13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13236 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13237 if test "x$ac_cv_lib_dl_dlopen" = xyes
13238 then :
13239 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13240 else case e in #(
13241 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13242 printf %s "checking for dlopen in -lsvld... " >&6; }
13243 if test ${ac_cv_lib_svld_dlopen+y}
13244 then :
13245 printf %s "(cached) " >&6
13246 else case e in #(
13247 e) ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lsvld $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply.
13255 The 'extern "C"' is for builds by C++ compilers;
13256 although this is not generally supported in C code supporting it here
13257 has little cost and some practical benefit (sr 110532). */
13258 #ifdef __cplusplus
13259 extern "C"
13260 #endif
13261 char dlopen (void);
13262 int
13263 main (void)
13264 {
13265 return dlopen ();
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"
13271 then :
13272 ac_cv_lib_svld_dlopen=yes
13273 else case e in #(
13274 e) ac_cv_lib_svld_dlopen=no ;;
13275 esac
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS ;;
13280 esac
13281 fi
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13283 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13284 if test "x$ac_cv_lib_svld_dlopen" = xyes
13285 then :
13286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13287 else case e in #(
13288 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13289 printf %s "checking for dld_link in -ldld... " >&6; }
13290 if test ${ac_cv_lib_dld_dld_link+y}
13291 then :
13292 printf %s "(cached) " >&6
13293 else case e in #(
13294 e) ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-ldld $LIBS"
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply.
13302 The 'extern "C"' is for builds by C++ compilers;
13303 although this is not generally supported in C code supporting it here
13304 has little cost and some practical benefit (sr 110532). */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char dld_link (void);
13309 int
13310 main (void)
13311 {
13312 return dld_link ();
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"
13318 then :
13319 ac_cv_lib_dld_dld_link=yes
13320 else case e in #(
13321 e) ac_cv_lib_dld_dld_link=no ;;
13322 esac
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS ;;
13327 esac
13328 fi
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13330 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13331 if test "x$ac_cv_lib_dld_dld_link" = xyes
13332 then :
13333 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13334 fi
13335
13336 ;;
13337 esac
13338 fi
13339
13340 ;;
13341 esac
13342 fi
13343
13344 ;;
13345 esac
13346 fi
13347
13348 ;;
13349 esac
13350 fi
13351
13352 ;;
13353 esac
13354 fi
13355
13356 ;;
13357 esac
13358
13359 if test no = "$lt_cv_dlopen"; then
13360 enable_dlopen=no
13361 else
13362 enable_dlopen=yes
13363 fi
13364
13365 case $lt_cv_dlopen in
13366 dlopen)
13367 save_CPPFLAGS=$CPPFLAGS
13368 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13369
13370 save_LDFLAGS=$LDFLAGS
13371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13372
13373 save_LIBS=$LIBS
13374 LIBS="$lt_cv_dlopen_libs $LIBS"
13375
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13377 printf %s "checking whether a program can dlopen itself... " >&6; }
13378 if test ${lt_cv_dlopen_self+y}
13379 then :
13380 printf %s "(cached) " >&6
13381 else case e in #(
13382 e) if test yes = "$cross_compiling"; then :
13383 lt_cv_dlopen_self=cross
13384 else
13385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13386 lt_status=$lt_dlunknown
13387 cat > conftest.$ac_ext <<_LT_EOF
13388 #line $LINENO "configure"
13389 #include "confdefs.h"
13390
13391 #if HAVE_DLFCN_H
13392 #include <dlfcn.h>
13393 #endif
13394
13395 #include <stdio.h>
13396
13397 #ifdef RTLD_GLOBAL
13398 # define LT_DLGLOBAL RTLD_GLOBAL
13399 #else
13400 # ifdef DL_GLOBAL
13401 # define LT_DLGLOBAL DL_GLOBAL
13402 # else
13403 # define LT_DLGLOBAL 0
13404 # endif
13405 #endif
13406
13407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13408 find out it does not work in some platform. */
13409 #ifndef LT_DLLAZY_OR_NOW
13410 # ifdef RTLD_LAZY
13411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13412 # else
13413 # ifdef DL_LAZY
13414 # define LT_DLLAZY_OR_NOW DL_LAZY
13415 # else
13416 # ifdef RTLD_NOW
13417 # define LT_DLLAZY_OR_NOW RTLD_NOW
13418 # else
13419 # ifdef DL_NOW
13420 # define LT_DLLAZY_OR_NOW DL_NOW
13421 # else
13422 # define LT_DLLAZY_OR_NOW 0
13423 # endif
13424 # endif
13425 # endif
13426 # endif
13427 #endif
13428
13429 /* When -fvisibility=hidden is used, assume the code has been annotated
13430 correspondingly for the symbols needed. */
13431 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13432 int fnord (void) __attribute__((visibility("default")));
13433 #endif
13434
13435 int fnord (void) { return 42; }
13436 int main (void)
13437 {
13438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13439 int status = $lt_dlunknown;
13440
13441 if (self)
13442 {
13443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13444 else
13445 {
13446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13447 else puts (dlerror ());
13448 }
13449 /* dlclose (self); */
13450 }
13451 else
13452 puts (dlerror ());
13453
13454 return status;
13455 }
13456 _LT_EOF
13457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13458 (eval $ac_link) 2>&5
13459 ac_status=$?
13460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13462 (./conftest; exit; ) >&5 2>/dev/null
13463 lt_status=$?
13464 case x$lt_status in
13465 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13466 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13467 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13468 esac
13469 else :
13470 # compilation failed
13471 lt_cv_dlopen_self=no
13472 fi
13473 fi
13474 rm -fr conftest*
13475
13476 ;;
13477 esac
13478 fi
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13480 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13481
13482 if test yes = "$lt_cv_dlopen_self"; then
13483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13485 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13486 if test ${lt_cv_dlopen_self_static+y}
13487 then :
13488 printf %s "(cached) " >&6
13489 else case e in #(
13490 e) if test yes = "$cross_compiling"; then :
13491 lt_cv_dlopen_self_static=cross
13492 else
13493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13494 lt_status=$lt_dlunknown
13495 cat > conftest.$ac_ext <<_LT_EOF
13496 #line $LINENO "configure"
13497 #include "confdefs.h"
13498
13499 #if HAVE_DLFCN_H
13500 #include <dlfcn.h>
13501 #endif
13502
13503 #include <stdio.h>
13504
13505 #ifdef RTLD_GLOBAL
13506 # define LT_DLGLOBAL RTLD_GLOBAL
13507 #else
13508 # ifdef DL_GLOBAL
13509 # define LT_DLGLOBAL DL_GLOBAL
13510 # else
13511 # define LT_DLGLOBAL 0
13512 # endif
13513 #endif
13514
13515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13516 find out it does not work in some platform. */
13517 #ifndef LT_DLLAZY_OR_NOW
13518 # ifdef RTLD_LAZY
13519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13520 # else
13521 # ifdef DL_LAZY
13522 # define LT_DLLAZY_OR_NOW DL_LAZY
13523 # else
13524 # ifdef RTLD_NOW
13525 # define LT_DLLAZY_OR_NOW RTLD_NOW
13526 # else
13527 # ifdef DL_NOW
13528 # define LT_DLLAZY_OR_NOW DL_NOW
13529 # else
13530 # define LT_DLLAZY_OR_NOW 0
13531 # endif
13532 # endif
13533 # endif
13534 # endif
13535 #endif
13536
13537 /* When -fvisibility=hidden is used, assume the code has been annotated
13538 correspondingly for the symbols needed. */
13539 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13540 int fnord (void) __attribute__((visibility("default")));
13541 #endif
13542
13543 int fnord (void) { return 42; }
13544 int main (void)
13545 {
13546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13547 int status = $lt_dlunknown;
13548
13549 if (self)
13550 {
13551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13552 else
13553 {
13554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13555 else puts (dlerror ());
13556 }
13557 /* dlclose (self); */
13558 }
13559 else
13560 puts (dlerror ());
13561
13562 return status;
13563 }
13564 _LT_EOF
13565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13566 (eval $ac_link) 2>&5
13567 ac_status=$?
13568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13569 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13570 (./conftest; exit; ) >&5 2>/dev/null
13571 lt_status=$?
13572 case x$lt_status in
13573 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13574 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13575 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13576 esac
13577 else :
13578 # compilation failed
13579 lt_cv_dlopen_self_static=no
13580 fi
13581 fi
13582 rm -fr conftest*
13583
13584 ;;
13585 esac
13586 fi
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13588 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13589 fi
13590
13591 CPPFLAGS=$save_CPPFLAGS
13592 LDFLAGS=$save_LDFLAGS
13593 LIBS=$save_LIBS
13594 ;;
13595 esac
13596
13597 case $lt_cv_dlopen_self in
13598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13599 *) enable_dlopen_self=unknown ;;
13600 esac
13601
13602 case $lt_cv_dlopen_self_static in
13603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13604 *) enable_dlopen_self_static=unknown ;;
13605 esac
13606 fi
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624 striplib=
13625 old_striplib=
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13627 printf %s "checking whether stripping libraries is possible... " >&6; }
13628 if test -z "$STRIP"; then
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 printf "%s\n" "no" >&6; }
13631 else
13632 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13633 old_striplib="$STRIP --strip-debug"
13634 striplib="$STRIP --strip-unneeded"
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 printf "%s\n" "yes" >&6; }
13637 else
13638 case $host_os in
13639 darwin*)
13640 # FIXME - insert some real tests, host_os isn't really good enough
13641 striplib="$STRIP -x"
13642 old_striplib="$STRIP -S"
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13644 printf "%s\n" "yes" >&6; }
13645 ;;
13646 freebsd*)
13647 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13648 old_striplib="$STRIP --strip-debug"
13649 striplib="$STRIP --strip-unneeded"
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651 printf "%s\n" "yes" >&6; }
13652 else
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 printf "%s\n" "no" >&6; }
13655 fi
13656 ;;
13657 *)
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 printf "%s\n" "no" >&6; }
13660 ;;
13661 esac
13662 fi
13663 fi
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 # Report what library types will actually be built
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13678 printf %s "checking if libtool supports shared libraries... " >&6; }
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13680 printf "%s\n" "$can_build_shared" >&6; }
13681
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13683 printf %s "checking whether to build shared libraries... " >&6; }
13684 test no = "$can_build_shared" && enable_shared=no
13685
13686 # On AIX, shared libraries and static libraries use the same namespace, and
13687 # are all built from PIC.
13688 case $host_os in
13689 aix3*)
13690 test yes = "$enable_shared" && enable_static=no
13691 if test -n "$RANLIB"; then
13692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13693 postinstall_cmds='$RANLIB $lib'
13694 fi
13695 ;;
13696
13697 aix[4-9]*)
13698 if test ia64 != "$host_cpu"; then
13699 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13700 yes,aix,yes) ;; # shared object as lib.so file only
13701 yes,svr4,*) ;; # shared object as lib.so archive member only
13702 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13703 esac
13704 fi
13705 ;;
13706 esac
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13708 printf "%s\n" "$enable_shared" >&6; }
13709
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13711 printf %s "checking whether to build static libraries... " >&6; }
13712 # Make sure either enable_shared or enable_static is yes.
13713 test yes = "$enable_shared" || enable_static=yes
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13715 printf "%s\n" "$enable_static" >&6; }
13716
13717
13718
13719
13720 fi
13721 ac_ext=c
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726
13727 CC=$lt_save_CC
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743 ac_config_commands="$ac_config_commands libtool"
13744
13745
13746
13747
13748 # Only expand once:
13749
13750
13751
13752
13753
13754 AM_DEFAULT_VERBOSITY=0
13755
13756
13757 ac_ext=c
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 if test -n "$ac_tool_prefix"; then
13763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13766 printf %s "checking for $ac_word... " >&6; }
13767 if test ${ac_cv_prog_CC+y}
13768 then :
13769 printf %s "(cached) " >&6
13770 else case e in #(
13771 e) if test -n "$CC"; then
13772 ac_cv_prog_CC="$CC" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 case $as_dir in #(((
13779 '') as_dir=./ ;;
13780 */) ;;
13781 *) as_dir=$as_dir/ ;;
13782 esac
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13787 break 2
13788 fi
13789 done
13790 done
13791 IFS=$as_save_IFS
13792
13793 fi ;;
13794 esac
13795 fi
13796 CC=$ac_cv_prog_CC
13797 if test -n "$CC"; then
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13799 printf "%s\n" "$CC" >&6; }
13800 else
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 printf "%s\n" "no" >&6; }
13803 fi
13804
13805
13806 fi
13807 if test -z "$ac_cv_prog_CC"; then
13808 ac_ct_CC=$CC
13809 # Extract the first word of "gcc", so it can be a program name with args.
13810 set dummy gcc; ac_word=$2
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13812 printf %s "checking for $ac_word... " >&6; }
13813 if test ${ac_cv_prog_ac_ct_CC+y}
13814 then :
13815 printf %s "(cached) " >&6
13816 else case e in #(
13817 e) if test -n "$ac_ct_CC"; then
13818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823 IFS=$as_save_IFS
13824 case $as_dir in #(((
13825 '') as_dir=./ ;;
13826 */) ;;
13827 *) as_dir=$as_dir/ ;;
13828 esac
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_CC="gcc"
13832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi ;;
13840 esac
13841 fi
13842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13843 if test -n "$ac_ct_CC"; then
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13845 printf "%s\n" "$ac_ct_CC" >&6; }
13846 else
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 printf "%s\n" "no" >&6; }
13849 fi
13850
13851 if test "x$ac_ct_CC" = x; then
13852 CC=""
13853 else
13854 case $cross_compiling:$ac_tool_warned in
13855 yes:)
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13858 ac_tool_warned=yes ;;
13859 esac
13860 CC=$ac_ct_CC
13861 fi
13862 else
13863 CC="$ac_cv_prog_CC"
13864 fi
13865
13866 if test -z "$CC"; then
13867 if test -n "$ac_tool_prefix"; then
13868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13869 set dummy ${ac_tool_prefix}cc; ac_word=$2
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871 printf %s "checking for $ac_word... " >&6; }
13872 if test ${ac_cv_prog_CC+y}
13873 then :
13874 printf %s "(cached) " >&6
13875 else case e in #(
13876 e) if test -n "$CC"; then
13877 ac_cv_prog_CC="$CC" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13881 do
13882 IFS=$as_save_IFS
13883 case $as_dir in #(((
13884 '') as_dir=./ ;;
13885 */) ;;
13886 *) as_dir=$as_dir/ ;;
13887 esac
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_CC="${ac_tool_prefix}cc"
13891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894 done
13895 done
13896 IFS=$as_save_IFS
13897
13898 fi ;;
13899 esac
13900 fi
13901 CC=$ac_cv_prog_CC
13902 if test -n "$CC"; then
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13904 printf "%s\n" "$CC" >&6; }
13905 else
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907 printf "%s\n" "no" >&6; }
13908 fi
13909
13910
13911 fi
13912 fi
13913 if test -z "$CC"; then
13914 # Extract the first word of "cc", so it can be a program name with args.
13915 set dummy cc; ac_word=$2
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 printf %s "checking for $ac_word... " >&6; }
13918 if test ${ac_cv_prog_CC+y}
13919 then :
13920 printf %s "(cached) " >&6
13921 else case e in #(
13922 e) if test -n "$CC"; then
13923 ac_cv_prog_CC="$CC" # Let the user override the test.
13924 else
13925 ac_prog_rejected=no
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13928 do
13929 IFS=$as_save_IFS
13930 case $as_dir in #(((
13931 '') as_dir=./ ;;
13932 */) ;;
13933 *) as_dir=$as_dir/ ;;
13934 esac
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13937 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13938 ac_prog_rejected=yes
13939 continue
13940 fi
13941 ac_cv_prog_CC="cc"
13942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945 done
13946 done
13947 IFS=$as_save_IFS
13948
13949 if test $ac_prog_rejected = yes; then
13950 # We found a bogon in the path, so make sure we never use it.
13951 set dummy $ac_cv_prog_CC
13952 shift
13953 if test $# != 0; then
13954 # We chose a different compiler from the bogus one.
13955 # However, it has the same basename, so the bogon will be chosen
13956 # first if we set CC to just the basename; use the full file name.
13957 shift
13958 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13959 fi
13960 fi
13961 fi ;;
13962 esac
13963 fi
13964 CC=$ac_cv_prog_CC
13965 if test -n "$CC"; then
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13967 printf "%s\n" "$CC" >&6; }
13968 else
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 printf "%s\n" "no" >&6; }
13971 fi
13972
13973
13974 fi
13975 if test -z "$CC"; then
13976 if test -n "$ac_tool_prefix"; then
13977 for ac_prog in cl.exe
13978 do
13979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982 printf %s "checking for $ac_word... " >&6; }
13983 if test ${ac_cv_prog_CC+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else case e in #(
13987 e) if test -n "$CC"; then
13988 ac_cv_prog_CC="$CC" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13992 do
13993 IFS=$as_save_IFS
13994 case $as_dir in #(((
13995 '') as_dir=./ ;;
13996 */) ;;
13997 *) as_dir=$as_dir/ ;;
13998 esac
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14003 break 2
14004 fi
14005 done
14006 done
14007 IFS=$as_save_IFS
14008
14009 fi ;;
14010 esac
14011 fi
14012 CC=$ac_cv_prog_CC
14013 if test -n "$CC"; then
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14015 printf "%s\n" "$CC" >&6; }
14016 else
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 printf "%s\n" "no" >&6; }
14019 fi
14020
14021
14022 test -n "$CC" && break
14023 done
14024 fi
14025 if test -z "$CC"; then
14026 ac_ct_CC=$CC
14027 for ac_prog in cl.exe
14028 do
14029 # Extract the first word of "$ac_prog", so it can be a program name with args.
14030 set dummy $ac_prog; ac_word=$2
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 printf %s "checking for $ac_word... " >&6; }
14033 if test ${ac_cv_prog_ac_ct_CC+y}
14034 then :
14035 printf %s "(cached) " >&6
14036 else case e in #(
14037 e) if test -n "$ac_ct_CC"; then
14038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14039 else
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14042 do
14043 IFS=$as_save_IFS
14044 case $as_dir in #(((
14045 '') as_dir=./ ;;
14046 */) ;;
14047 *) as_dir=$as_dir/ ;;
14048 esac
14049 for ac_exec_ext in '' $ac_executable_extensions; do
14050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14051 ac_cv_prog_ac_ct_CC="$ac_prog"
14052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14053 break 2
14054 fi
14055 done
14056 done
14057 IFS=$as_save_IFS
14058
14059 fi ;;
14060 esac
14061 fi
14062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14063 if test -n "$ac_ct_CC"; then
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14065 printf "%s\n" "$ac_ct_CC" >&6; }
14066 else
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 printf "%s\n" "no" >&6; }
14069 fi
14070
14071
14072 test -n "$ac_ct_CC" && break
14073 done
14074
14075 if test "x$ac_ct_CC" = x; then
14076 CC=""
14077 else
14078 case $cross_compiling:$ac_tool_warned in
14079 yes:)
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14082 ac_tool_warned=yes ;;
14083 esac
14084 CC=$ac_ct_CC
14085 fi
14086 fi
14087
14088 fi
14089 if test -z "$CC"; then
14090 if test -n "$ac_tool_prefix"; then
14091 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14092 set dummy ${ac_tool_prefix}clang; ac_word=$2
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 printf %s "checking for $ac_word... " >&6; }
14095 if test ${ac_cv_prog_CC+y}
14096 then :
14097 printf %s "(cached) " >&6
14098 else case e in #(
14099 e) if test -n "$CC"; then
14100 ac_cv_prog_CC="$CC" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105 IFS=$as_save_IFS
14106 case $as_dir in #(((
14107 '') as_dir=./ ;;
14108 */) ;;
14109 *) as_dir=$as_dir/ ;;
14110 esac
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14113 ac_cv_prog_CC="${ac_tool_prefix}clang"
14114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14120
14121 fi ;;
14122 esac
14123 fi
14124 CC=$ac_cv_prog_CC
14125 if test -n "$CC"; then
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14127 printf "%s\n" "$CC" >&6; }
14128 else
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 printf "%s\n" "no" >&6; }
14131 fi
14132
14133
14134 fi
14135 if test -z "$ac_cv_prog_CC"; then
14136 ac_ct_CC=$CC
14137 # Extract the first word of "clang", so it can be a program name with args.
14138 set dummy clang; ac_word=$2
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14140 printf %s "checking for $ac_word... " >&6; }
14141 if test ${ac_cv_prog_ac_ct_CC+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else case e in #(
14145 e) if test -n "$ac_ct_CC"; then
14146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14147 else
14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149 for as_dir in $PATH
14150 do
14151 IFS=$as_save_IFS
14152 case $as_dir in #(((
14153 '') as_dir=./ ;;
14154 */) ;;
14155 *) as_dir=$as_dir/ ;;
14156 esac
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_ac_ct_CC="clang"
14160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14166
14167 fi ;;
14168 esac
14169 fi
14170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14171 if test -n "$ac_ct_CC"; then
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14173 printf "%s\n" "$ac_ct_CC" >&6; }
14174 else
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 printf "%s\n" "no" >&6; }
14177 fi
14178
14179 if test "x$ac_ct_CC" = x; then
14180 CC=""
14181 else
14182 case $cross_compiling:$ac_tool_warned in
14183 yes:)
14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14186 ac_tool_warned=yes ;;
14187 esac
14188 CC=$ac_ct_CC
14189 fi
14190 else
14191 CC="$ac_cv_prog_CC"
14192 fi
14193
14194 fi
14195
14196
14197 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14198 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14199 as_fn_error $? "no acceptable C compiler found in \$PATH
14200 See 'config.log' for more details" "$LINENO" 5; }
14201
14202 # Provide some information about the compiler.
14203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14204 set X $ac_compile
14205 ac_compiler=$2
14206 for ac_option in --version -v -V -qversion -version; do
14207 { { ac_try="$ac_compiler $ac_option >&5"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211 esac
14212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14213 printf "%s\n" "$ac_try_echo"; } >&5
14214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14215 ac_status=$?
14216 if test -s conftest.err; then
14217 sed '10a\
14218 ... rest of stderr output deleted ...
14219 10q' conftest.err >conftest.er1
14220 cat conftest.er1 >&5
14221 fi
14222 rm -f conftest.er1 conftest.err
14223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14224 test $ac_status = 0; }
14225 done
14226
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14228 printf %s "checking whether the compiler supports GNU C... " >&6; }
14229 if test ${ac_cv_c_compiler_gnu+y}
14230 then :
14231 printf %s "(cached) " >&6
14232 else case e in #(
14233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235
14236 int
14237 main (void)
14238 {
14239 #ifndef __GNUC__
14240 choke me
14241 #endif
14242
14243 ;
14244 return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"
14248 then :
14249 ac_compiler_gnu=yes
14250 else case e in #(
14251 e) ac_compiler_gnu=no ;;
14252 esac
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14256 ;;
14257 esac
14258 fi
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14260 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14262
14263 if test $ac_compiler_gnu = yes; then
14264 GCC=yes
14265 else
14266 GCC=
14267 fi
14268 ac_test_CFLAGS=${CFLAGS+y}
14269 ac_save_CFLAGS=$CFLAGS
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14271 printf %s "checking whether $CC accepts -g... " >&6; }
14272 if test ${ac_cv_prog_cc_g+y}
14273 then :
14274 printf %s "(cached) " >&6
14275 else case e in #(
14276 e) ac_save_c_werror_flag=$ac_c_werror_flag
14277 ac_c_werror_flag=yes
14278 ac_cv_prog_cc_g=no
14279 CFLAGS="-g"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282
14283 int
14284 main (void)
14285 {
14286
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_compile "$LINENO"
14292 then :
14293 ac_cv_prog_cc_g=yes
14294 else case e in #(
14295 e) CFLAGS=""
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298
14299 int
14300 main (void)
14301 {
14302
14303 ;
14304 return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"
14308 then :
14309
14310 else case e in #(
14311 e) ac_c_werror_flag=$ac_save_c_werror_flag
14312 CFLAGS="-g"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315
14316 int
14317 main (void)
14318 {
14319
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"
14325 then :
14326 ac_cv_prog_cc_g=yes
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14329 esac
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14332 esac
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14335 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14336 esac
14337 fi
14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14339 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14340 if test $ac_test_CFLAGS; then
14341 CFLAGS=$ac_save_CFLAGS
14342 elif test $ac_cv_prog_cc_g = yes; then
14343 if test "$GCC" = yes; then
14344 CFLAGS="-g -O2"
14345 else
14346 CFLAGS="-g"
14347 fi
14348 else
14349 if test "$GCC" = yes; then
14350 CFLAGS="-O2"
14351 else
14352 CFLAGS=
14353 fi
14354 fi
14355 ac_prog_cc_stdc=no
14356 if test x$ac_prog_cc_stdc = xno
14357 then :
14358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14359 printf %s "checking for $CC option to enable C11 features... " >&6; }
14360 if test ${ac_cv_prog_cc_c11+y}
14361 then :
14362 printf %s "(cached) " >&6
14363 else case e in #(
14364 e) ac_cv_prog_cc_c11=no
14365 ac_save_CC=$CC
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 $ac_c_conftest_c11_program
14369 _ACEOF
14370 for ac_arg in '' -std=gnu11
14371 do
14372 CC="$ac_save_CC $ac_arg"
14373 if ac_fn_c_try_compile "$LINENO"
14374 then :
14375 ac_cv_prog_cc_c11=$ac_arg
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext conftest.beam
14378 test "x$ac_cv_prog_cc_c11" != "xno" && break
14379 done
14380 rm -f conftest.$ac_ext
14381 CC=$ac_save_CC ;;
14382 esac
14383 fi
14384
14385 if test "x$ac_cv_prog_cc_c11" = xno
14386 then :
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14388 printf "%s\n" "unsupported" >&6; }
14389 else case e in #(
14390 e) if test "x$ac_cv_prog_cc_c11" = x
14391 then :
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14393 printf "%s\n" "none needed" >&6; }
14394 else case e in #(
14395 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14396 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14397 CC="$CC $ac_cv_prog_cc_c11" ;;
14398 esac
14399 fi
14400 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14401 ac_prog_cc_stdc=c11 ;;
14402 esac
14403 fi
14404 fi
14405 if test x$ac_prog_cc_stdc = xno
14406 then :
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14408 printf %s "checking for $CC option to enable C99 features... " >&6; }
14409 if test ${ac_cv_prog_cc_c99+y}
14410 then :
14411 printf %s "(cached) " >&6
14412 else case e in #(
14413 e) ac_cv_prog_cc_c99=no
14414 ac_save_CC=$CC
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417 $ac_c_conftest_c99_program
14418 _ACEOF
14419 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14420 do
14421 CC="$ac_save_CC $ac_arg"
14422 if ac_fn_c_try_compile "$LINENO"
14423 then :
14424 ac_cv_prog_cc_c99=$ac_arg
14425 fi
14426 rm -f core conftest.err conftest.$ac_objext conftest.beam
14427 test "x$ac_cv_prog_cc_c99" != "xno" && break
14428 done
14429 rm -f conftest.$ac_ext
14430 CC=$ac_save_CC ;;
14431 esac
14432 fi
14433
14434 if test "x$ac_cv_prog_cc_c99" = xno
14435 then :
14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14437 printf "%s\n" "unsupported" >&6; }
14438 else case e in #(
14439 e) if test "x$ac_cv_prog_cc_c99" = x
14440 then :
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14442 printf "%s\n" "none needed" >&6; }
14443 else case e in #(
14444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14445 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14446 CC="$CC $ac_cv_prog_cc_c99" ;;
14447 esac
14448 fi
14449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14450 ac_prog_cc_stdc=c99 ;;
14451 esac
14452 fi
14453 fi
14454 if test x$ac_prog_cc_stdc = xno
14455 then :
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14457 printf %s "checking for $CC option to enable C89 features... " >&6; }
14458 if test ${ac_cv_prog_cc_c89+y}
14459 then :
14460 printf %s "(cached) " >&6
14461 else case e in #(
14462 e) ac_cv_prog_cc_c89=no
14463 ac_save_CC=$CC
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466 $ac_c_conftest_c89_program
14467 _ACEOF
14468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14469 do
14470 CC="$ac_save_CC $ac_arg"
14471 if ac_fn_c_try_compile "$LINENO"
14472 then :
14473 ac_cv_prog_cc_c89=$ac_arg
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext conftest.beam
14476 test "x$ac_cv_prog_cc_c89" != "xno" && break
14477 done
14478 rm -f conftest.$ac_ext
14479 CC=$ac_save_CC ;;
14480 esac
14481 fi
14482
14483 if test "x$ac_cv_prog_cc_c89" = xno
14484 then :
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14486 printf "%s\n" "unsupported" >&6; }
14487 else case e in #(
14488 e) if test "x$ac_cv_prog_cc_c89" = x
14489 then :
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14491 printf "%s\n" "none needed" >&6; }
14492 else case e in #(
14493 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14494 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14495 CC="$CC $ac_cv_prog_cc_c89" ;;
14496 esac
14497 fi
14498 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14499 ac_prog_cc_stdc=c89 ;;
14500 esac
14501 fi
14502 fi
14503
14504 ac_ext=c
14505 ac_cpp='$CPP $CPPFLAGS'
14506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14509
14510
14511 ac_ext=c
14512 ac_cpp='$CPP $CPPFLAGS'
14513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14517 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14518 if test ${am_cv_prog_cc_c_o+y}
14519 then :
14520 printf %s "(cached) " >&6
14521 else case e in #(
14522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524
14525 int
14526 main (void)
14527 {
14528
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 # Make sure it works both with $CC and with simple cc.
14534 # Following AC_PROG_CC_C_O, we do the test twice because some
14535 # compilers refuse to overwrite an existing .o file with -o,
14536 # though they will create one.
14537 am_cv_prog_cc_c_o=yes
14538 for am_i in 1 2; do
14539 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14540 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } \
14544 && test -f conftest2.$ac_objext; then
14545 : OK
14546 else
14547 am_cv_prog_cc_c_o=no
14548 break
14549 fi
14550 done
14551 rm -f core conftest*
14552 unset am_i ;;
14553 esac
14554 fi
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14556 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14557 if test "$am_cv_prog_cc_c_o" != yes; then
14558 # Losing compiler, so override with the script.
14559 # FIXME: It is wrong to rewrite CC.
14560 # But if we don't then we get into trouble of one sort or another.
14561 # A longer-term fix would be to have automake use am__CC in this case,
14562 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14563 CC="$am_aux_dir/compile $CC"
14564 fi
14565 ac_ext=c
14566 ac_cpp='$CPP $CPPFLAGS'
14567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14570
14571
14572 depcc="$CC" am_compiler_list=
14573
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14575 printf %s "checking dependency style of $depcc... " >&6; }
14576 if test ${am_cv_CC_dependencies_compiler_type+y}
14577 then :
14578 printf %s "(cached) " >&6
14579 else case e in #(
14580 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14581 # We make a subdir and do the tests there. Otherwise we can end up
14582 # making bogus files that we don't know about and never remove. For
14583 # instance it was reported that on HP-UX the gcc test will end up
14584 # making a dummy file named 'D' -- because '-MD' means "put the output
14585 # in D".
14586 rm -rf conftest.dir
14587 mkdir conftest.dir
14588 # Copy depcomp to subdir because otherwise we won't find it if we're
14589 # using a relative directory.
14590 cp "$am_depcomp" conftest.dir
14591 cd conftest.dir
14592 # We will build objects and dependencies in a subdirectory because
14593 # it helps to detect inapplicable dependency modes. For instance
14594 # both Tru64's cc and ICC support -MD to output dependencies as a
14595 # side effect of compilation, but ICC will put the dependencies in
14596 # the current directory while Tru64 will put them in the object
14597 # directory.
14598 mkdir sub
14599
14600 am_cv_CC_dependencies_compiler_type=none
14601 if test "$am_compiler_list" = ""; then
14602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14603 fi
14604 am__universal=false
14605 case " $depcc " in #(
14606 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14607 esac
14608
14609 for depmode in $am_compiler_list; do
14610 # Setup a source with many dependencies, because some compilers
14611 # like to wrap large dependency lists on column 80 (with \), and
14612 # we should not choose a depcomp mode which is confused by this.
14613 #
14614 # We need to recreate these files for each test, as the compiler may
14615 # overwrite some of them when testing with obscure command lines.
14616 # This happens at least with the AIX C compiler.
14617 : > sub/conftest.c
14618 for i in 1 2 3 4 5 6; do
14619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14620 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14621 # Solaris 10 /bin/sh.
14622 echo '/* dummy */' > sub/conftst$i.h
14623 done
14624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14625
14626 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14627 # mode. It turns out that the SunPro C++ compiler does not properly
14628 # handle '-M -o', and we need to detect this. Also, some Intel
14629 # versions had trouble with output in subdirs.
14630 am__obj=sub/conftest.${OBJEXT-o}
14631 am__minus_obj="-o $am__obj"
14632 case $depmode in
14633 gcc)
14634 # This depmode causes a compiler race in universal mode.
14635 test "$am__universal" = false || continue
14636 ;;
14637 nosideeffect)
14638 # After this tag, mechanisms are not by side-effect, so they'll
14639 # only be used when explicitly requested.
14640 if test "x$enable_dependency_tracking" = xyes; then
14641 continue
14642 else
14643 break
14644 fi
14645 ;;
14646 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14647 # This compiler won't grok '-c -o', but also, the minuso test has
14648 # not run yet. These depmodes are late enough in the game, and
14649 # so weak that their functioning should not be impacted.
14650 am__obj=conftest.${OBJEXT-o}
14651 am__minus_obj=
14652 ;;
14653 none) break ;;
14654 esac
14655 if depmode=$depmode \
14656 source=sub/conftest.c object=$am__obj \
14657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14659 >/dev/null 2>conftest.err &&
14660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14664 # icc doesn't choke on unknown options, it will just issue warnings
14665 # or remarks (even with -Werror). So we grep stderr for any message
14666 # that says an option was ignored or not supported.
14667 # When given -MP, icc 7.0 and 7.1 complain thus:
14668 # icc: Command line warning: ignoring option '-M'; no argument required
14669 # The diagnosis changed in icc 8.0:
14670 # icc: Command line remark: option '-MP' not supported
14671 if (grep 'ignoring option' conftest.err ||
14672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14673 am_cv_CC_dependencies_compiler_type=$depmode
14674 break
14675 fi
14676 fi
14677 done
14678
14679 cd ..
14680 rm -rf conftest.dir
14681 else
14682 am_cv_CC_dependencies_compiler_type=none
14683 fi
14684 ;;
14685 esac
14686 fi
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14688 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14689 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14690
14691 if
14692 test "x$enable_dependency_tracking" != xno \
14693 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14694 am__fastdepCC_TRUE=
14695 am__fastdepCC_FALSE='#'
14696 else
14697 am__fastdepCC_TRUE='#'
14698 am__fastdepCC_FALSE=
14699 fi
14700
14701
14702 if test -e penmp || test -e mp; then
14703 as_fn_error $? "AC_OPENMP clobbers files named 'mp' and 'penmp'. Aborting configure because one of these files already exists." "$LINENO" 5
14704 fi
14705 # Check whether --enable-openmp was given.
14706 if test ${enable_openmp+y}
14707 then :
14708 enableval=$enable_openmp;
14709 fi
14710
14711 OPENMP_CFLAGS=
14712 if test "$enable_openmp" != no; then
14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
14714 printf %s "checking for $CC option to support OpenMP... " >&6; }
14715 if test ${ac_cv_prog_c_openmp+y}
14716 then :
14717 printf %s "(cached) " >&6
14718 else case e in #(
14719 e) ac_cv_prog_c_openmp='not found'
14720 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
14721 -Popenmp --openmp; do
14722
14723 ac_save_CFLAGS=$CFLAGS
14724 CFLAGS="$CFLAGS $ac_option"
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727
14728 #ifndef _OPENMP
14729 #error "OpenMP not supported"
14730 #endif
14731 #include <omp.h>
14732 int main (void) { return omp_get_num_threads (); }
14733
14734 _ACEOF
14735 if ac_fn_c_try_compile "$LINENO"
14736 then :
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739
14740 #ifndef _OPENMP
14741 #error "OpenMP not supported"
14742 #endif
14743 #include <omp.h>
14744 int main (void) { return omp_get_num_threads (); }
14745
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"
14748 then :
14749 ac_cv_prog_c_openmp=$ac_option
14750 else case e in #(
14751 e) ac_cv_prog_c_openmp='unsupported' ;;
14752 esac
14753 fi
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14755 conftest$ac_exeext conftest.$ac_ext
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14758 CFLAGS=$ac_save_CFLAGS
14759
14760 if test "$ac_cv_prog_c_openmp" != 'not found'; then
14761 break
14762 fi
14763 done
14764 if test "$ac_cv_prog_c_openmp" = 'not found'; then
14765 ac_cv_prog_c_openmp='unsupported'
14766 elif test "$ac_cv_prog_c_openmp" = ''; then
14767 ac_cv_prog_c_openmp='none needed'
14768 fi
14769 rm -f penmp mp ;;
14770 esac
14771 fi
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
14773 printf "%s\n" "$ac_cv_prog_c_openmp" >&6; }
14774 if test "$ac_cv_prog_c_openmp" != 'unsupported' && \
14775 test "$ac_cv_prog_c_openmp" != 'none needed'; then
14776 OPENMP_CFLAGS="$ac_cv_prog_c_openmp"
14777 fi
14778 fi
14779
14780
14781 CPPFLAGS="$CPPFLAGS $OPENMP_CFLAGS"
14782 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
14783
14784 # adding the lib to the files to link
14785 LIBS="-lm"
14786
14787
14788
14789 tmpval=`echo $CFLAGS | grep -c '\-DMULTIARCH'`
14790 if test $tmpval -gt 0; then
14791 HAVE_MULTIARCH_TRUE=
14792 HAVE_MULTIARCH_FALSE='#'
14793 else
14794 HAVE_MULTIARCH_TRUE='#'
14795 HAVE_MULTIARCH_FALSE=
14796 fi
14797
14798
14799 PACKAGE_LIBS="-lsharp"
14800
14801
14802 # we need the expanded forms...
14803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14805
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
14807 printf %s "checking our pkgconfig libname... " >&6; }
14808 test ".$ax_create_pkgconfig_libname" != "." || \
14809 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
14810 test ".$ax_create_pkgconfig_libname" != "." || \
14811 ax_create_pkgconfig_libname="$PACKAGE"
14812 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
14813 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
14815 printf "%s\n" "$ax_create_pkgconfig_libname" >&6; }
14816
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
14818 printf %s "checking our pkgconfig version... " >&6; }
14819 test ".$ax_create_pkgconfig_version" != "." || \
14820 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
14821 test ".$ax_create_pkgconfig_version" != "." || \
14822 ax_create_pkgconfig_version="$VERSION"
14823 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
14824 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
14826 printf "%s\n" "$ax_create_pkgconfig_version" >&6; }
14827
14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
14829 printf %s "checking our pkgconfig_libdir... " >&6; }
14830 test ".$pkgconfig_libdir" = "." && \
14831 pkgconfig_libdir='${libdir}/pkgconfig'
14832 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
14833 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
14834 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
14836 printf "%s\n" "$pkgconfig_libdir" >&6; }
14837 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
14839 printf "%s\n" "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
14840
14841
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
14843 printf %s "checking our pkgconfig_libfile... " >&6; }
14844 test ".$pkgconfig_libfile" != "." || \
14845 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
14846 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
14847 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
14849 printf "%s\n" "$pkgconfig_libfile" >&6; }
14850 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
14852 printf "%s\n" "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
14853
14854
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
14856 printf %s "checking our package / suffix... " >&6; }
14857 ax_create_pkgconfig_suffix="$program_suffix"
14858 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
14860 printf "%s\n" "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
14861
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
14863 printf %s "checking our pkgconfig description... " >&6; }
14864 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
14865 test ".$ax_create_pkgconfig_description" != "." || \
14866 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
14867 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
14868 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
14870 printf "%s\n" "$ax_create_pkgconfig_description" >&6; }
14871
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
14873 printf %s "checking our pkgconfig requires... " >&6; }
14874 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
14875 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
14876 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
14878 printf "%s\n" "$ax_create_pkgconfig_requires" >&6; }
14879
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
14881 printf %s "checking our pkgconfig ext libs... " >&6; }
14882 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
14883 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
14884 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
14885 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
14886 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
14888 printf "%s\n" "$ax_create_pkgconfig_libs" >&6; }
14889
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
14891 printf %s "checking our pkgconfig cppflags... " >&6; }
14892 ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS"
14893 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
14894 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
14896 printf "%s\n" "$ax_create_pkgconfig_cppflags" >&6; }
14897
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
14899 printf %s "checking our pkgconfig ldflags... " >&6; }
14900 ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS"
14901 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
14902 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
14904 printf "%s\n" "$ax_create_pkgconfig_ldflags" >&6; }
14905
14906 test ".$ax_create_pkgconfig_generate" != "." || \
14907 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
14908 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
14909 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
14910 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
14912 printf "%s\n" "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
14913
14914 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
14915 ax_create_pkgconfig_src_libdir=`pwd`
14916 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
14917 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14918 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
14919 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
14920 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
14921 printf "%s\n" X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
14922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14923 s//\1/
14924 q
14925 }
14926 /^X\(\/\/\)[^/].*/{
14927 s//\1/
14928 q
14929 }
14930 /^X\(\/\/\)$/{
14931 s//\1/
14932 q
14933 }
14934 /^X\(\/\).*/{
14935 s//\1/
14936 q
14937 }
14938 s/.*/./; q'`
14939 test ! -d $ax_create_pkgconfig_src_libdir/src || \
14940 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
14941 case ".$objdir" in
14942 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
14944 printf "%s\n" "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
14945 fi
14946
14947 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
14948 ax_create_pkgconfig_src_headers=`pwd`
14949 v="$ac_top_srcdir" ;
14950 test ".$v" != "." || v="$ax_spec_dir"
14951 test ".$v" != "." || v="$srcdir"
14952 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
14953 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
14954 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14955 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
14956 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
14957 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
14958 printf "%s\n" X"$ax_create_pkgconfig_src_headers/$v/x" |
14959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\/\)[^/].*/{
14964 s//\1/
14965 q
14966 }
14967 /^X\(\/\/\)$/{
14968 s//\1/
14969 q
14970 }
14971 /^X\(\/\).*/{
14972 s//\1/
14973 q
14974 }
14975 s/.*/./; q'`
14976 test ! -d $ax_create_pkgconfig_src_headers/include || \
14977 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
14979 printf "%s\n" "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
14980 fi
14981
14982
14983 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
14984
14985
14986
14987
14988
14989 ac_config_files="$ac_config_files Makefile"
14990
14991 cat >confcache <<\_ACEOF
14992 # This file is a shell script that caches the results of configure
14993 # tests run on this system so they can be shared between configure
14994 # scripts and configure runs, see configure's option --config-cache.
14995 # It is not useful on other systems. If it contains results you don't
14996 # want to keep, you may remove or edit it.
14997 #
14998 # config.status only pays attention to the cache file if you give it
14999 # the --recheck option to rerun configure.
15000 #
15001 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15002 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15003 # following values.
15004
15005 _ACEOF
15006
15007 # The following way of writing the cache mishandles newlines in values,
15008 # but we know of no workaround that is simple, portable, and efficient.
15009 # So, we kill variables containing newlines.
15010 # Ultrix sh set writes to stderr and can't be redirected directly,
15011 # and sets the high bit in the cache file unless we assign to the vars.
15012 (
15013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15014 eval ac_val=\$$ac_var
15015 case $ac_val in #(
15016 *${as_nl}*)
15017 case $ac_var in #(
15018 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15019 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15020 esac
15021 case $ac_var in #(
15022 _ | IFS | as_nl) ;; #(
15023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15024 *) { eval $ac_var=; unset $ac_var;} ;;
15025 esac ;;
15026 esac
15027 done
15028
15029 (set) 2>&1 |
15030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15031 *${as_nl}ac_space=\ *)
15032 # 'set' does not quote correctly, so add quotes: double-quote
15033 # substitution turns \\\\ into \\, and sed turns \\ into \.
15034 sed -n \
15035 "s/'/'\\\\''/g;
15036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15037 ;; #(
15038 *)
15039 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15041 ;;
15042 esac |
15043 sort
15044 ) |
15045 sed '
15046 /^ac_cv_env_/b end
15047 t clear
15048 :clear
15049 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15050 t end
15051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15052 :end' >>confcache
15053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15054 if test -w "$cache_file"; then
15055 if test "x$cache_file" != "x/dev/null"; then
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15057 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15058 if test ! -f "$cache_file" || test -h "$cache_file"; then
15059 cat confcache >"$cache_file"
15060 else
15061 case $cache_file in #(
15062 */* | ?:*)
15063 mv -f confcache "$cache_file"$$ &&
15064 mv -f "$cache_file"$$ "$cache_file" ;; #(
15065 *)
15066 mv -f confcache "$cache_file" ;;
15067 esac
15068 fi
15069 fi
15070 else
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15072 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15073 fi
15074 fi
15075 rm -f confcache
15076
15077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15078 # Let make expand exec_prefix.
15079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15080
15081 # Transform confdefs.h into DEFS.
15082 # Protect against shell expansion while executing Makefile rules.
15083 # Protect against Makefile macro expansion.
15084 #
15085 # If the first sed substitution is executed (which looks for macros that
15086 # take arguments), then branch to the quote section. Otherwise,
15087 # look for a macro that doesn't take arguments.
15088 ac_script='
15089 :mline
15090 /\\$/{
15091 N
15092 s,\\\n,,
15093 b mline
15094 }
15095 t clear
15096 :clear
15097 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15098 t quote
15099 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15100 t quote
15101 b any
15102 :quote
15103 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15104 s/\$/$$/g
15105 H
15106 :any
15107 ${
15108 g
15109 s/^\n//
15110 s/\n/ /g
15111 p
15112 }
15113 '
15114 DEFS=`sed -n "$ac_script" confdefs.h`
15115
15116
15117 ac_libobjs=
15118 ac_ltlibobjs=
15119 U=
15120 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15121 # 1. Remove the extension, and $U if already installed.
15122 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15123 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15125 # will be set to the directory where LIBOBJS objects are built.
15126 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15127 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15128 done
15129 LIBOBJS=$ac_libobjs
15130
15131 LTLIBOBJS=$ac_ltlibobjs
15132
15133
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15135 printf %s "checking that generated files are newer than configure... " >&6; }
15136 if test -n "$am_sleep_pid"; then
15137 # Hide warnings about reused PIDs.
15138 wait $am_sleep_pid 2>/dev/null
15139 fi
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15141 printf "%s\n" "done" >&6; }
15142 case $enable_silent_rules in # (((
15143 yes) AM_DEFAULT_VERBOSITY=0;;
15144 no) AM_DEFAULT_VERBOSITY=1;;
15145 esac
15146 if test $am_cv_make_support_nested_variables = yes; then
15147 AM_V='$(V)'
15148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15149 else
15150 AM_V=$AM_DEFAULT_VERBOSITY
15151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15152 fi
15153
15154 if test -n "$EXEEXT"; then
15155 am__EXEEXT_TRUE=
15156 am__EXEEXT_FALSE='#'
15157 else
15158 am__EXEEXT_TRUE='#'
15159 am__EXEEXT_FALSE=
15160 fi
15161
15162 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15163 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15165 fi
15166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15167 as_fn_error $? "conditional \"AMDEP\" was never defined.
15168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15169 fi
15170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15173 fi
15174 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15175 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15177 fi
15178 if test -z "${HAVE_MULTIARCH_TRUE}" && test -z "${HAVE_MULTIARCH_FALSE}"; then
15179 as_fn_error $? "conditional \"HAVE_MULTIARCH\" was never defined.
15180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15181 fi
15182
15183 : "${CONFIG_STATUS=./config.status}"
15184 ac_write_fail=0
15185 ac_clean_files_save=$ac_clean_files
15186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15188 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15189 as_write_fail=0
15190 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15191 #! $SHELL
15192 # Generated by $as_me.
15193 # Run this file to recreate the current configuration.
15194 # Compiler output produced by configure, useful for debugging
15195 # configure, is in config.log if it exists.
15196
15197 debug=false
15198 ac_cs_recheck=false
15199 ac_cs_silent=false
15200
15201 SHELL=\${CONFIG_SHELL-$SHELL}
15202 export SHELL
15203 _ASEOF
15204 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15205 ## -------------------- ##
15206 ## M4sh Initialization. ##
15207 ## -------------------- ##
15208
15209 # Be more Bourne compatible
15210 DUALCASE=1; export DUALCASE # for MKS sh
15211 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15212 then :
15213 emulate sh
15214 NULLCMD=:
15215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15216 # is contrary to our usage. Disable this feature.
15217 alias -g '${1+"$@"}'='"$@"'
15218 setopt NO_GLOB_SUBST
15219 else case e in #(
15220 e) case `(set -o) 2>/dev/null` in #(
15221 *posix*) :
15222 set -o posix ;; #(
15223 *) :
15224 ;;
15225 esac ;;
15226 esac
15227 fi
15228
15229
15230
15231 # Reset variables that may have inherited troublesome values from
15232 # the environment.
15233
15234 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15235 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15236 # side effect of setting IFS to empty, thus disabling word splitting.)
15237 # Quoting is to prevent editors from complaining about space-tab.
15238 as_nl='
15239 '
15240 export as_nl
15241 IFS=" "" $as_nl"
15242
15243 PS1='$ '
15244 PS2='> '
15245 PS4='+ '
15246
15247 # Ensure predictable behavior from utilities with locale-dependent output.
15248 LC_ALL=C
15249 export LC_ALL
15250 LANGUAGE=C
15251 export LANGUAGE
15252
15253 # We cannot yet rely on "unset" to work, but we need these variables
15254 # to be unset--not just set to an empty or harmless value--now, to
15255 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15256 # also avoids known problems related to "unset" and subshell syntax
15257 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15258 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15259 do eval test \${$as_var+y} \
15260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15261 done
15262
15263 # Ensure that fds 0, 1, and 2 are open.
15264 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15265 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15266 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15267
15268 # The user is always right.
15269 if ${PATH_SEPARATOR+false} :; then
15270 PATH_SEPARATOR=:
15271 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15272 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15273 PATH_SEPARATOR=';'
15274 }
15275 fi
15276
15277
15278 # Find who we are. Look in the path if we contain no directory separator.
15279 as_myself=
15280 case $0 in #((
15281 *[\\/]* ) as_myself=$0 ;;
15282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15283 for as_dir in $PATH
15284 do
15285 IFS=$as_save_IFS
15286 case $as_dir in #(((
15287 '') as_dir=./ ;;
15288 */) ;;
15289 *) as_dir=$as_dir/ ;;
15290 esac
15291 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15292 done
15293 IFS=$as_save_IFS
15294
15295 ;;
15296 esac
15297 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15298 # in which case we are not to be found in the path.
15299 if test "x$as_myself" = x; then
15300 as_myself=$0
15301 fi
15302 if test ! -f "$as_myself"; then
15303 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15304 exit 1
15305 fi
15306
15307
15308
15309 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15310 # ----------------------------------------
15311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15313 # script with STATUS, using 1 if that was 0.
15314 as_fn_error ()
15315 {
15316 as_status=$1; test $as_status -eq 0 && as_status=1
15317 if test "$4"; then
15318 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15320 fi
15321 printf "%s\n" "$as_me: error: $2" >&2
15322 as_fn_exit $as_status
15323 } # as_fn_error
15324
15325
15326 # as_fn_set_status STATUS
15327 # -----------------------
15328 # Set $? to STATUS, without forking.
15329 as_fn_set_status ()
15330 {
15331 return $1
15332 } # as_fn_set_status
15333
15334 # as_fn_exit STATUS
15335 # -----------------
15336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15337 as_fn_exit ()
15338 {
15339 set +e
15340 as_fn_set_status $1
15341 exit $1
15342 } # as_fn_exit
15343
15344 # as_fn_unset VAR
15345 # ---------------
15346 # Portably unset VAR.
15347 as_fn_unset ()
15348 {
15349 { eval $1=; unset $1;}
15350 }
15351 as_unset=as_fn_unset
15352
15353 # as_fn_append VAR VALUE
15354 # ----------------------
15355 # Append the text in VALUE to the end of the definition contained in VAR. Take
15356 # advantage of any shell optimizations that allow amortized linear growth over
15357 # repeated appends, instead of the typical quadratic growth present in naive
15358 # implementations.
15359 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15360 then :
15361 eval 'as_fn_append ()
15362 {
15363 eval $1+=\$2
15364 }'
15365 else case e in #(
15366 e) as_fn_append ()
15367 {
15368 eval $1=\$$1\$2
15369 } ;;
15370 esac
15371 fi # as_fn_append
15372
15373 # as_fn_arith ARG...
15374 # ------------------
15375 # Perform arithmetic evaluation on the ARGs, and store the result in the
15376 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15377 # must be portable across $(()) and expr.
15378 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15379 then :
15380 eval 'as_fn_arith ()
15381 {
15382 as_val=$(( $* ))
15383 }'
15384 else case e in #(
15385 e) as_fn_arith ()
15386 {
15387 as_val=`expr "$@" || test $? -eq 1`
15388 } ;;
15389 esac
15390 fi # as_fn_arith
15391
15392
15393 if expr a : '\(a\)' >/dev/null 2>&1 &&
15394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15395 as_expr=expr
15396 else
15397 as_expr=false
15398 fi
15399
15400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15401 as_basename=basename
15402 else
15403 as_basename=false
15404 fi
15405
15406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15407 as_dirname=dirname
15408 else
15409 as_dirname=false
15410 fi
15411
15412 as_me=`$as_basename -- "$0" ||
15413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15414 X"$0" : 'X\(//\)$' \| \
15415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15416 printf "%s\n" X/"$0" |
15417 sed '/^.*\/\([^/][^/]*\)\/*$/{
15418 s//\1/
15419 q
15420 }
15421 /^X\/\(\/\/\)$/{
15422 s//\1/
15423 q
15424 }
15425 /^X\/\(\/\).*/{
15426 s//\1/
15427 q
15428 }
15429 s/.*/./; q'`
15430
15431 # Avoid depending upon Character Ranges.
15432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15435 as_cr_digits='0123456789'
15436 as_cr_alnum=$as_cr_Letters$as_cr_digits
15437
15438
15439 # Determine whether it's possible to make 'echo' print without a newline.
15440 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15441 # for compatibility with existing Makefiles.
15442 ECHO_C= ECHO_N= ECHO_T=
15443 case `echo -n x` in #(((((
15444 -n*)
15445 case `echo 'xy\c'` in
15446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15447 xy) ECHO_C='\c';;
15448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15449 ECHO_T=' ';;
15450 esac;;
15451 *)
15452 ECHO_N='-n';;
15453 esac
15454
15455 # For backward compatibility with old third-party macros, we provide
15456 # the shell variables $as_echo and $as_echo_n. New code should use
15457 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15458 as_echo='printf %s\n'
15459 as_echo_n='printf %s'
15460
15461 rm -f conf$$ conf$$.exe conf$$.file
15462 if test -d conf$$.dir; then
15463 rm -f conf$$.dir/conf$$.file
15464 else
15465 rm -f conf$$.dir
15466 mkdir conf$$.dir 2>/dev/null
15467 fi
15468 if (echo >conf$$.file) 2>/dev/null; then
15469 if ln -s conf$$.file conf$$ 2>/dev/null; then
15470 as_ln_s='ln -s'
15471 # ... but there are two gotchas:
15472 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15473 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15474 # In both cases, we have to default to 'cp -pR'.
15475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15476 as_ln_s='cp -pR'
15477 elif ln conf$$.file conf$$ 2>/dev/null; then
15478 as_ln_s=ln
15479 else
15480 as_ln_s='cp -pR'
15481 fi
15482 else
15483 as_ln_s='cp -pR'
15484 fi
15485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15486 rmdir conf$$.dir 2>/dev/null
15487
15488
15489 # as_fn_mkdir_p
15490 # -------------
15491 # Create "$as_dir" as a directory, including parents if necessary.
15492 as_fn_mkdir_p ()
15493 {
15494
15495 case $as_dir in #(
15496 -*) as_dir=./$as_dir;;
15497 esac
15498 test -d "$as_dir" || eval $as_mkdir_p || {
15499 as_dirs=
15500 while :; do
15501 case $as_dir in #(
15502 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15503 *) as_qdir=$as_dir;;
15504 esac
15505 as_dirs="'$as_qdir' $as_dirs"
15506 as_dir=`$as_dirname -- "$as_dir" ||
15507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15508 X"$as_dir" : 'X\(//\)[^/]' \| \
15509 X"$as_dir" : 'X\(//\)$' \| \
15510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15511 printf "%s\n" X"$as_dir" |
15512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15513 s//\1/
15514 q
15515 }
15516 /^X\(\/\/\)[^/].*/{
15517 s//\1/
15518 q
15519 }
15520 /^X\(\/\/\)$/{
15521 s//\1/
15522 q
15523 }
15524 /^X\(\/\).*/{
15525 s//\1/
15526 q
15527 }
15528 s/.*/./; q'`
15529 test -d "$as_dir" && break
15530 done
15531 test -z "$as_dirs" || eval "mkdir $as_dirs"
15532 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15533
15534
15535 } # as_fn_mkdir_p
15536 if mkdir -p . 2>/dev/null; then
15537 as_mkdir_p='mkdir -p "$as_dir"'
15538 else
15539 test -d ./-p && rmdir ./-p
15540 as_mkdir_p=false
15541 fi
15542
15543
15544 # as_fn_executable_p FILE
15545 # -----------------------
15546 # Test if FILE is an executable regular file.
15547 as_fn_executable_p ()
15548 {
15549 test -f "$1" && test -x "$1"
15550 } # as_fn_executable_p
15551 as_test_x='test -x'
15552 as_executable_p=as_fn_executable_p
15553
15554 # Sed expression to map a string onto a valid CPP name.
15555 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15556 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15557
15558 # Sed expression to map a string onto a valid variable name.
15559 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15560 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15561
15562
15563 exec 6>&1
15564 ## ----------------------------------- ##
15565 ## Main body of $CONFIG_STATUS script. ##
15566 ## ----------------------------------- ##
15567 _ASEOF
15568 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15569
15570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571 # Save the log message, to keep $0 and so on meaningful, and to
15572 # report actual input values of CONFIG_FILES etc. instead of their
15573 # values after options handling.
15574 ac_log="
15575 This file was extended by libsharp $as_me 1.0.0, which was
15576 generated by GNU Autoconf 2.72. Invocation command line was
15577
15578 CONFIG_FILES = $CONFIG_FILES
15579 CONFIG_HEADERS = $CONFIG_HEADERS
15580 CONFIG_LINKS = $CONFIG_LINKS
15581 CONFIG_COMMANDS = $CONFIG_COMMANDS
15582 $ $0 $@
15583
15584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15585 "
15586
15587 _ACEOF
15588
15589 case $ac_config_files in *"
15590 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15591 esac
15592
15593
15594
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 # Files that config.status was made for.
15597 config_files="$ac_config_files"
15598 config_commands="$ac_config_commands"
15599
15600 _ACEOF
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603 ac_cs_usage="\
15604 '$as_me' instantiates files and other configuration actions
15605 from templates according to the current configuration. Unless the files
15606 and actions are specified as TAGs, all are instantiated by default.
15607
15608 Usage: $0 [OPTION]... [TAG]...
15609
15610 -h, --help print this help, then exit
15611 -V, --version print version number and configuration settings, then exit
15612 --config print configuration, then exit
15613 -q, --quiet, --silent
15614 do not print progress messages
15615 -d, --debug don't remove temporary files
15616 --recheck update $as_me by reconfiguring in the same conditions
15617 --file=FILE[:TEMPLATE]
15618 instantiate the configuration file FILE
15619
15620 Configuration files:
15621 $config_files
15622
15623 Configuration commands:
15624 $config_commands
15625
15626 Report bugs to the package provider."
15627
15628 _ACEOF
15629 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15630 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15632 ac_cs_config='$ac_cs_config_escaped'
15633 ac_cs_version="\\
15634 libsharp config.status 1.0.0
15635 configured by $0, generated by GNU Autoconf 2.72,
15636 with options \\"\$ac_cs_config\\"
15637
15638 Copyright (C) 2023 Free Software Foundation, Inc.
15639 This config.status script is free software; the Free Software Foundation
15640 gives unlimited permission to copy, distribute and modify it."
15641
15642 ac_pwd='$ac_pwd'
15643 srcdir='$srcdir'
15644 INSTALL='$INSTALL'
15645 MKDIR_P='$MKDIR_P'
15646 AWK='$AWK'
15647 test -n "\$AWK" || AWK=awk
15648 _ACEOF
15649
15650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15651 # The default lists apply if the user does not specify any file.
15652 ac_need_defaults=:
15653 while test $# != 0
15654 do
15655 case $1 in
15656 --*=?*)
15657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15659 ac_shift=:
15660 ;;
15661 --*=)
15662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15663 ac_optarg=
15664 ac_shift=:
15665 ;;
15666 *)
15667 ac_option=$1
15668 ac_optarg=$2
15669 ac_shift=shift
15670 ;;
15671 esac
15672
15673 case $ac_option in
15674 # Handling of the options.
15675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15676 ac_cs_recheck=: ;;
15677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15678 printf "%s\n" "$ac_cs_version"; exit ;;
15679 --config | --confi | --conf | --con | --co | --c )
15680 printf "%s\n" "$ac_cs_config"; exit ;;
15681 --debug | --debu | --deb | --de | --d | -d )
15682 debug=: ;;
15683 --file | --fil | --fi | --f )
15684 $ac_shift
15685 case $ac_optarg in
15686 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15687 '') as_fn_error $? "missing file argument" ;;
15688 esac
15689 as_fn_append CONFIG_FILES " '$ac_optarg'"
15690 ac_need_defaults=false;;
15691 --he | --h | --help | --hel | -h )
15692 printf "%s\n" "$ac_cs_usage"; exit ;;
15693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15695 ac_cs_silent=: ;;
15696
15697 # This is an error.
15698 -*) as_fn_error $? "unrecognized option: '$1'
15699 Try '$0 --help' for more information." ;;
15700
15701 *) as_fn_append ac_config_targets " $1"
15702 ac_need_defaults=false ;;
15703
15704 esac
15705 shift
15706 done
15707
15708 ac_configure_extra_args=
15709
15710 if $ac_cs_silent; then
15711 exec 6>/dev/null
15712 ac_configure_extra_args="$ac_configure_extra_args --silent"
15713 fi
15714
15715 _ACEOF
15716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15717 if \$ac_cs_recheck; then
15718 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15719 shift
15720 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15721 CONFIG_SHELL='$SHELL'
15722 export CONFIG_SHELL
15723 exec "\$@"
15724 fi
15725
15726 _ACEOF
15727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15728 exec 5>>config.log
15729 {
15730 echo
15731 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15732 ## Running $as_me. ##
15733 _ASBOX
15734 printf "%s\n" "$ac_log"
15735 } >&5
15736
15737 _ACEOF
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 #
15740 # INIT-COMMANDS
15741 #
15742 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15743
15744
15745 # The HP-UX ksh and POSIX shell print the target directory to stdout
15746 # if CDPATH is set.
15747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15748
15749 sed_quote_subst='$sed_quote_subst'
15750 double_quote_subst='$double_quote_subst'
15751 delay_variable_subst='$delay_variable_subst'
15752 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15753 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15754 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15755 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15756 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15757 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15758 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15759 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15760 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15761 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15782 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15783 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15786 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15787 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15788 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15789 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15790 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15791 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15792 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15793 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15794 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15795 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15796 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15797 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15798 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15799 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15800 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15801 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15802 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15803 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15804 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15805 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15806 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15807 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15808 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15810 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15812 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"`'
15813 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15814 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15815 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15816 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15817 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15818 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15819 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15820 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15821 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15823 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15824 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15825 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15826 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15827 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15828 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15829 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15830 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15831 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15832 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15833 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15835 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15836 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15837 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15838 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15839 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15841 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15842 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15843 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15844 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15845 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15846 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15847 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15848 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15850 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15852 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15853 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15854 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15855 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15856 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15857 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15858 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15859 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15860 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15861 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15862 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15863 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15864 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15865 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15866 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15867 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15868 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15869 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15870 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15871 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15872 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15873 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15874 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15875 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15876 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15877 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15878 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15879 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15880 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15881 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15882 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15883 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15884 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15885 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15886 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15887 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15888 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15889
15890 LTCC='$LTCC'
15891 LTCFLAGS='$LTCFLAGS'
15892 compiler='$compiler_DEFAULT'
15893
15894 # A function that is used when there is no print builtin or printf.
15895 func_fallback_echo ()
15896 {
15897 eval 'cat <<_LTECHO_EOF
15898 \$1
15899 _LTECHO_EOF'
15900 }
15901
15902 # Quote evaled strings.
15903 for var in SHELL \
15904 ECHO \
15905 PATH_SEPARATOR \
15906 SED \
15907 GREP \
15908 EGREP \
15909 FGREP \
15910 LD \
15911 NM \
15912 LN_S \
15913 lt_SP2NL \
15914 lt_NL2SP \
15915 reload_flag \
15916 FILECMD \
15917 OBJDUMP \
15918 deplibs_check_method \
15919 file_magic_cmd \
15920 file_magic_glob \
15921 want_nocaseglob \
15922 DLLTOOL \
15923 sharedlib_from_linklib_cmd \
15924 AR \
15925 archiver_list_spec \
15926 STRIP \
15927 RANLIB \
15928 CC \
15929 CFLAGS \
15930 compiler \
15931 lt_cv_sys_global_symbol_pipe \
15932 lt_cv_sys_global_symbol_to_cdecl \
15933 lt_cv_sys_global_symbol_to_import \
15934 lt_cv_sys_global_symbol_to_c_name_address \
15935 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15936 lt_cv_nm_interface \
15937 nm_file_list_spec \
15938 lt_cv_truncate_bin \
15939 lt_prog_compiler_no_builtin_flag \
15940 lt_prog_compiler_pic \
15941 lt_prog_compiler_wl \
15942 lt_prog_compiler_static \
15943 lt_cv_prog_compiler_c_o \
15944 need_locks \
15945 MANIFEST_TOOL \
15946 DSYMUTIL \
15947 NMEDIT \
15948 LIPO \
15949 OTOOL \
15950 OTOOL64 \
15951 shrext_cmds \
15952 export_dynamic_flag_spec \
15953 whole_archive_flag_spec \
15954 compiler_needs_object \
15955 with_gnu_ld \
15956 allow_undefined_flag \
15957 no_undefined_flag \
15958 hardcode_libdir_flag_spec \
15959 hardcode_libdir_separator \
15960 exclude_expsyms \
15961 include_expsyms \
15962 file_list_spec \
15963 variables_saved_for_relink \
15964 libname_spec \
15965 library_names_spec \
15966 soname_spec \
15967 install_override_mode \
15968 finish_eval \
15969 old_striplib \
15970 striplib; do
15971 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15972 *[\\\\\\\`\\"\\\$]*)
15973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15974 ;;
15975 *)
15976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15977 ;;
15978 esac
15979 done
15980
15981 # Double-quote double-evaled strings.
15982 for var in reload_cmds \
15983 old_postinstall_cmds \
15984 old_postuninstall_cmds \
15985 old_archive_cmds \
15986 extract_expsyms_cmds \
15987 old_archive_from_new_cmds \
15988 old_archive_from_expsyms_cmds \
15989 archive_cmds \
15990 archive_expsym_cmds \
15991 module_cmds \
15992 module_expsym_cmds \
15993 export_symbols_cmds \
15994 prelink_cmds \
15995 postlink_cmds \
15996 postinstall_cmds \
15997 postuninstall_cmds \
15998 finish_cmds \
15999 sys_lib_search_path_spec \
16000 configure_time_dlsearch_path \
16001 configure_time_lt_sys_library_path; do
16002 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16003 *[\\\\\\\`\\"\\\$]*)
16004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16005 ;;
16006 *)
16007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16008 ;;
16009 esac
16010 done
16011
16012 ac_aux_dir='$ac_aux_dir'
16013
16014 # See if we are running on zsh, and set the options that allow our
16015 # commands through without removal of \ escapes INIT.
16016 if test -n "\${ZSH_VERSION+set}"; then
16017 setopt NO_GLOB_SUBST
16018 fi
16019
16020
16021 PACKAGE='$PACKAGE'
16022 VERSION='$VERSION'
16023 RM='$RM'
16024 ofile='$ofile'
16025
16026
16027
16028
16029 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
16030 pkgconfig_prefix='$prefix'
16031 pkgconfig_execprefix='$exec_prefix'
16032 pkgconfig_bindir='$bindir'
16033 pkgconfig_libdir='$libdir'
16034 pkgconfig_includedir='$includedir'
16035 pkgconfig_datarootdir='$datarootdir'
16036 pkgconfig_datadir='$datadir'
16037 pkgconfig_sysconfdir='$sysconfdir'
16038 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
16039 pkgconfig_package='$PACKAGE_NAME'
16040 pkgconfig_libname='$ax_create_pkgconfig_libname'
16041 pkgconfig_description='$ax_create_pkgconfig_description'
16042 pkgconfig_version='$ax_create_pkgconfig_version'
16043 pkgconfig_requires='$ax_create_pkgconfig_requires'
16044 pkgconfig_libs='$ax_create_pkgconfig_libs'
16045 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
16046 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
16047 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
16048 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
16049
16050
16051 _ACEOF
16052
16053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16054
16055 # Handling of arguments.
16056 for ac_config_target in $ac_config_targets
16057 do
16058 case $ac_config_target in
16059 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16060 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16061 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
16062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16063
16064 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16065 esac
16066 done
16067
16068
16069 # If the user did not use the arguments to specify the items to instantiate,
16070 # then the envvar interface is used. Set only those that are not.
16071 # We use the long form for the default assignment because of an extremely
16072 # bizarre bug on SunOS 4.1.3.
16073 if $ac_need_defaults; then
16074 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16075 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16076 fi
16077
16078 # Have a temporary directory for convenience. Make it in the build tree
16079 # simply because there is no reason against having it here, and in addition,
16080 # creating and moving files from /tmp can sometimes cause problems.
16081 # Hook for its removal unless debugging.
16082 # Note that there is a small window in which the directory will not be cleaned:
16083 # after its creation but before its name has been assigned to '$tmp'.
16084 $debug ||
16085 {
16086 tmp= ac_tmp=
16087 trap 'exit_status=$?
16088 : "${ac_tmp:=$tmp}"
16089 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16090 ' 0
16091 trap 'as_fn_exit 1' 1 2 13 15
16092 }
16093 # Create a (secure) tmp directory for tmp files.
16094
16095 {
16096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16097 test -d "$tmp"
16098 } ||
16099 {
16100 tmp=./conf$$-$RANDOM
16101 (umask 077 && mkdir "$tmp")
16102 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16103 ac_tmp=$tmp
16104
16105 # Set up the scripts for CONFIG_FILES section.
16106 # No need to generate them if there are no CONFIG_FILES.
16107 # This happens for instance with './config.status config.h'.
16108 if test -n "$CONFIG_FILES"; then
16109
16110
16111 ac_cr=`echo X | tr X '\015'`
16112 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16113 # But we know of no other shell where ac_cr would be empty at this
16114 # point, so we can use a bashism as a fallback.
16115 if test "x$ac_cr" = x; then
16116 eval ac_cr=\$\'\\r\'
16117 fi
16118 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16119 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16120 ac_cs_awk_cr='\\r'
16121 else
16122 ac_cs_awk_cr=$ac_cr
16123 fi
16124
16125 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16126 _ACEOF
16127
16128
16129 {
16130 echo "cat >conf$$subs.awk <<_ACEOF" &&
16131 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16132 echo "_ACEOF"
16133 } >conf$$subs.sh ||
16134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16135 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16136 ac_delim='%!_!# '
16137 for ac_last_try in false false false false false :; do
16138 . ./conf$$subs.sh ||
16139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16140
16141 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16142 if test $ac_delim_n = $ac_delim_num; then
16143 break
16144 elif $ac_last_try; then
16145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16146 else
16147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16148 fi
16149 done
16150 rm -f conf$$subs.sh
16151
16152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16153 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16154 _ACEOF
16155 sed -n '
16156 h
16157 s/^/S["/; s/!.*/"]=/
16158 p
16159 g
16160 s/^[^!]*!//
16161 :repl
16162 t repl
16163 s/'"$ac_delim"'$//
16164 t delim
16165 :nl
16166 h
16167 s/\(.\{148\}\)..*/\1/
16168 t more1
16169 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16170 p
16171 n
16172 b repl
16173 :more1
16174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16175 p
16176 g
16177 s/.\{148\}//
16178 t nl
16179 :delim
16180 h
16181 s/\(.\{148\}\)..*/\1/
16182 t more2
16183 s/["\\]/\\&/g; s/^/"/; s/$/"/
16184 p
16185 b
16186 :more2
16187 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16188 p
16189 g
16190 s/.\{148\}//
16191 t delim
16192 ' <conf$$subs.awk | sed '
16193 /^[^""]/{
16194 N
16195 s/\n//
16196 }
16197 ' >>$CONFIG_STATUS || ac_write_fail=1
16198 rm -f conf$$subs.awk
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 _ACAWK
16201 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16202 for (key in S) S_is_set[key] = 1
16203 FS = ""
16204
16205 }
16206 {
16207 line = $ 0
16208 nfields = split(line, field, "@")
16209 substed = 0
16210 len = length(field[1])
16211 for (i = 2; i < nfields; i++) {
16212 key = field[i]
16213 keylen = length(key)
16214 if (S_is_set[key]) {
16215 value = S[key]
16216 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16217 len += length(value) + length(field[++i])
16218 substed = 1
16219 } else
16220 len += 1 + keylen
16221 }
16222
16223 print line
16224 }
16225
16226 _ACAWK
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16230 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16231 else
16232 cat
16233 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16234 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16235 _ACEOF
16236
16237 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16238 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16239 # trailing colons and then remove the whole line if VPATH becomes empty
16240 # (actually we leave an empty line to preserve line numbers).
16241 if test "x$srcdir" = x.; then
16242 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16243 h
16244 s///
16245 s/^/:/
16246 s/[ ]*$/:/
16247 s/:\$(srcdir):/:/g
16248 s/:\${srcdir}:/:/g
16249 s/:@srcdir@:/:/g
16250 s/^:*//
16251 s/:*$//
16252 x
16253 s/\(=[ ]*\).*/\1/
16254 G
16255 s/\n//
16256 s/^[^=]*=[ ]*$//
16257 }'
16258 fi
16259
16260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261 fi # test -n "$CONFIG_FILES"
16262
16263
16264 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16265 shift
16266 for ac_tag
16267 do
16268 case $ac_tag in
16269 :[FHLC]) ac_mode=$ac_tag; continue;;
16270 esac
16271 case $ac_mode$ac_tag in
16272 :[FHL]*:*);;
16273 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16274 :[FH]-) ac_tag=-:-;;
16275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16276 esac
16277 ac_save_IFS=$IFS
16278 IFS=:
16279 set x $ac_tag
16280 IFS=$ac_save_IFS
16281 shift
16282 ac_file=$1
16283 shift
16284
16285 case $ac_mode in
16286 :L) ac_source=$1;;
16287 :[FH])
16288 ac_file_inputs=
16289 for ac_f
16290 do
16291 case $ac_f in
16292 -) ac_f="$ac_tmp/stdin";;
16293 *) # Look for the file first in the build tree, then in the source tree
16294 # (if the path is not absolute). The absolute path cannot be DOS-style,
16295 # because $ac_f cannot contain ':'.
16296 test -f "$ac_f" ||
16297 case $ac_f in
16298 [\\/$]*) false;;
16299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16300 esac ||
16301 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16302 esac
16303 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16304 as_fn_append ac_file_inputs " '$ac_f'"
16305 done
16306
16307 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16308 # use $as_me), people would be surprised to read:
16309 # /* config.h. Generated by config.status. */
16310 configure_input='Generated from '`
16311 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16312 `' by configure.'
16313 if test x"$ac_file" != x-; then
16314 configure_input="$ac_file. $configure_input"
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16316 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16317 fi
16318 # Neutralize special characters interpreted by sed in replacement strings.
16319 case $configure_input in #(
16320 *\&* | *\|* | *\\* )
16321 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16323 *) ac_sed_conf_input=$configure_input;;
16324 esac
16325
16326 case $ac_tag in
16327 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16329 esac
16330 ;;
16331 esac
16332
16333 ac_dir=`$as_dirname -- "$ac_file" ||
16334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16335 X"$ac_file" : 'X\(//\)[^/]' \| \
16336 X"$ac_file" : 'X\(//\)$' \| \
16337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16338 printf "%s\n" X"$ac_file" |
16339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16340 s//\1/
16341 q
16342 }
16343 /^X\(\/\/\)[^/].*/{
16344 s//\1/
16345 q
16346 }
16347 /^X\(\/\/\)$/{
16348 s//\1/
16349 q
16350 }
16351 /^X\(\/\).*/{
16352 s//\1/
16353 q
16354 }
16355 s/.*/./; q'`
16356 as_dir="$ac_dir"; as_fn_mkdir_p
16357 ac_builddir=.
16358
16359 case "$ac_dir" in
16360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16361 *)
16362 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16363 # A ".." for each directory in $ac_dir_suffix.
16364 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16365 case $ac_top_builddir_sub in
16366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16368 esac ;;
16369 esac
16370 ac_abs_top_builddir=$ac_pwd
16371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16372 # for backward compatibility:
16373 ac_top_builddir=$ac_top_build_prefix
16374
16375 case $srcdir in
16376 .) # We are building in place.
16377 ac_srcdir=.
16378 ac_top_srcdir=$ac_top_builddir_sub
16379 ac_abs_top_srcdir=$ac_pwd ;;
16380 [\\/]* | ?:[\\/]* ) # Absolute name.
16381 ac_srcdir=$srcdir$ac_dir_suffix;
16382 ac_top_srcdir=$srcdir
16383 ac_abs_top_srcdir=$srcdir ;;
16384 *) # Relative name.
16385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16386 ac_top_srcdir=$ac_top_build_prefix$srcdir
16387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16388 esac
16389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16390
16391
16392 case $ac_mode in
16393 :F)
16394 #
16395 # CONFIG_FILE
16396 #
16397
16398 case $INSTALL in
16399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16401 esac
16402 ac_MKDIR_P=$MKDIR_P
16403 case $MKDIR_P in
16404 [\\/$]* | ?:[\\/]* ) ;;
16405 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16406 esac
16407 _ACEOF
16408
16409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16410 # If the template does not know about datarootdir, expand it.
16411 # FIXME: This hack should be removed a few years after 2.60.
16412 ac_datarootdir_hack=; ac_datarootdir_seen=
16413 ac_sed_dataroot='
16414 /datarootdir/ {
16415 p
16416 q
16417 }
16418 /@datadir@/p
16419 /@docdir@/p
16420 /@infodir@/p
16421 /@localedir@/p
16422 /@mandir@/p'
16423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16424 *datarootdir*) ac_datarootdir_seen=yes;;
16425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16427 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16428 _ACEOF
16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430 ac_datarootdir_hack='
16431 s&@datadir@&$datadir&g
16432 s&@docdir@&$docdir&g
16433 s&@infodir@&$infodir&g
16434 s&@localedir@&$localedir&g
16435 s&@mandir@&$mandir&g
16436 s&\\\${datarootdir}&$datarootdir&g' ;;
16437 esac
16438 _ACEOF
16439
16440 # Neutralize VPATH when '$srcdir' = '.'.
16441 # Shell code in configure.ac might set extrasub.
16442 # FIXME: do we really want to maintain this feature?
16443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16444 ac_sed_extra="$ac_vpsub
16445 $extrasub
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448 :t
16449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16450 s|@configure_input@|$ac_sed_conf_input|;t t
16451 s&@top_builddir@&$ac_top_builddir_sub&;t t
16452 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16453 s&@srcdir@&$ac_srcdir&;t t
16454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16455 s&@top_srcdir@&$ac_top_srcdir&;t t
16456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16457 s&@builddir@&$ac_builddir&;t t
16458 s&@abs_builddir@&$ac_abs_builddir&;t t
16459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16460 s&@INSTALL@&$ac_INSTALL&;t t
16461 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16462 $ac_datarootdir_hack
16463 "
16464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16465 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16466
16467 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16468 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16469 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16470 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16472 which seems to be undefined. Please make sure it is defined" >&5
16473 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16474 which seems to be undefined. Please make sure it is defined" >&2;}
16475
16476 rm -f "$ac_tmp/stdin"
16477 case $ac_file in
16478 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16479 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16480 esac \
16481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16482 ;;
16483
16484
16485 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16486 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16487 ;;
16488 esac
16489
16490
16491 case $ac_file$ac_mode in
16492 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16493 # Older Autoconf quotes --file arguments for eval, but not when files
16494 # are listed without --file. Let's play safe and only enable the eval
16495 # if we detect the quoting.
16496 # TODO: see whether this extra hack can be removed once we start
16497 # requiring Autoconf 2.70 or later.
16498 case $CONFIG_FILES in #(
16499 *\'*) :
16500 eval set x "$CONFIG_FILES" ;; #(
16501 *) :
16502 set x $CONFIG_FILES ;; #(
16503 *) :
16504 ;;
16505 esac
16506 shift
16507 # Used to flag and report bootstrapping failures.
16508 am_rc=0
16509 for am_mf
16510 do
16511 # Strip MF so we end up with the name of the file.
16512 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16513 # Check whether this is an Automake generated Makefile which includes
16514 # dependency-tracking related rules and includes.
16515 # Grep'ing the whole file directly is not great: AIX grep has a line
16516 # limit of 2048, but all sed's we know have understand at least 4000.
16517 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16518 || continue
16519 am_dirpart=`$as_dirname -- "$am_mf" ||
16520 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16521 X"$am_mf" : 'X\(//\)[^/]' \| \
16522 X"$am_mf" : 'X\(//\)$' \| \
16523 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16524 printf "%s\n" X"$am_mf" |
16525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16526 s//\1/
16527 q
16528 }
16529 /^X\(\/\/\)[^/].*/{
16530 s//\1/
16531 q
16532 }
16533 /^X\(\/\/\)$/{
16534 s//\1/
16535 q
16536 }
16537 /^X\(\/\).*/{
16538 s//\1/
16539 q
16540 }
16541 s/.*/./; q'`
16542 am_filepart=`$as_basename -- "$am_mf" ||
16543 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16544 X"$am_mf" : 'X\(//\)$' \| \
16545 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16546 printf "%s\n" X/"$am_mf" |
16547 sed '/^.*\/\([^/][^/]*\)\/*$/{
16548 s//\1/
16549 q
16550 }
16551 /^X\/\(\/\/\)$/{
16552 s//\1/
16553 q
16554 }
16555 /^X\/\(\/\).*/{
16556 s//\1/
16557 q
16558 }
16559 s/.*/./; q'`
16560 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16561 && sed -e '/# am--include-marker/d' "$am_filepart" \
16562 | $MAKE -f - am--depfiles" >&5
16563 (cd "$am_dirpart" \
16564 && sed -e '/# am--include-marker/d' "$am_filepart" \
16565 | $MAKE -f - am--depfiles) >&5 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } || am_rc=$?
16569 done
16570 if test $am_rc -ne 0; then
16571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16572 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16573 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16574 for automatic dependency tracking. If GNU make was not used, consider
16575 re-running the configure script with MAKE=\"gmake\" (or whatever is
16576 necessary). You can also try re-running configure with the
16577 '--disable-dependency-tracking' option to at least be able to build
16578 the package (albeit without support for automatic dependency tracking).
16579 See 'config.log' for more details" "$LINENO" 5; }
16580 fi
16581 { am_dirpart=; unset am_dirpart;}
16582 { am_filepart=; unset am_filepart;}
16583 { am_mf=; unset am_mf;}
16584 { am_rc=; unset am_rc;}
16585 rm -f conftest-deps.mk
16586 }
16587 ;;
16588 "libtool":C)
16589
16590 # See if we are running on zsh, and set the options that allow our
16591 # commands through without removal of \ escapes.
16592 if test -n "${ZSH_VERSION+set}"; then
16593 setopt NO_GLOB_SUBST
16594 fi
16595
16596 cfgfile=${ofile}T
16597 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16598 $RM "$cfgfile"
16599
16600 cat <<_LT_EOF >> "$cfgfile"
16601 #! $SHELL
16602 # Generated automatically by $as_me ($PACKAGE) $VERSION
16603 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16604
16605 # Provide generalized library-building support services.
16606 # Written by Gordon Matzigkeit, 1996
16607
16608 # Copyright (C) 2024 Free Software Foundation, Inc.
16609 # This is free software; see the source for copying conditions. There is NO
16610 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16611
16612 # GNU Libtool is free software; you can redistribute it and/or modify
16613 # it under the terms of the GNU General Public License as published by
16614 # the Free Software Foundation; either version 2 of the License, or
16615 # (at your option) any later version.
16616 #
16617 # As a special exception to the GNU General Public License, if you
16618 # distribute this file as part of a program or library that is built
16619 # using GNU Libtool, you may include this file under the same
16620 # distribution terms that you use for the rest of that program.
16621 #
16622 # GNU Libtool is distributed in the hope that it will be useful, but
16623 # WITHOUT ANY WARRANTY; without even the implied warranty of
16624 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16625 # GNU General Public License for more details.
16626 #
16627 # You should have received a copy of the GNU General Public License
16628 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16629
16630
16631 # The names of the tagged configurations supported by this script.
16632 available_tags=''
16633
16634 # Configured defaults for sys_lib_dlsearch_path munging.
16635 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16636
16637 # ### BEGIN LIBTOOL CONFIG
16638
16639 # Which release of libtool.m4 was used?
16640 macro_version=$macro_version
16641 macro_revision=$macro_revision
16642
16643 # Whether or not to build shared libraries.
16644 build_libtool_libs=$enable_shared
16645
16646 # Whether or not to build static libraries.
16647 build_old_libs=$enable_static
16648
16649 # What type of objects to build.
16650 pic_mode=$pic_mode
16651
16652 # Whether or not to optimize for fast installation.
16653 fast_install=$enable_fast_install
16654
16655 # Shared archive member basename,for filename based shared library versioning on AIX.
16656 shared_archive_member_spec=$shared_archive_member_spec
16657
16658 # Shell to use when invoking shell scripts.
16659 SHELL=$lt_SHELL
16660
16661 # An echo program that protects backslashes.
16662 ECHO=$lt_ECHO
16663
16664 # The PATH separator for the build system.
16665 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16666
16667 # The host system.
16668 host_alias=$host_alias
16669 host=$host
16670 host_os=$host_os
16671
16672 # The build system.
16673 build_alias=$build_alias
16674 build=$build
16675 build_os=$build_os
16676
16677 # A sed program that does not truncate output.
16678 SED=$lt_SED
16679
16680 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16681 Xsed="\$SED -e 1s/^X//"
16682
16683 # A grep program that handles long lines.
16684 GREP=$lt_GREP
16685
16686 # An ERE matcher.
16687 EGREP=$lt_EGREP
16688
16689 # A literal string matcher.
16690 FGREP=$lt_FGREP
16691
16692 # A BSD- or MS-compatible name lister.
16693 NM=$lt_NM
16694
16695 # Whether we need soft or hard links.
16696 LN_S=$lt_LN_S
16697
16698 # What is the maximum length of a command?
16699 max_cmd_len=$max_cmd_len
16700
16701 # Object file suffix (normally "o").
16702 objext=$ac_objext
16703
16704 # Executable file suffix (normally "").
16705 exeext=$exeext
16706
16707 # whether the shell understands "unset".
16708 lt_unset=$lt_unset
16709
16710 # turn spaces into newlines.
16711 SP2NL=$lt_lt_SP2NL
16712
16713 # turn newlines into spaces.
16714 NL2SP=$lt_lt_NL2SP
16715
16716 # convert \$build file names to \$host format.
16717 to_host_file_cmd=$lt_cv_to_host_file_cmd
16718
16719 # convert \$build files to toolchain format.
16720 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16721
16722 # A file(cmd) program that detects file types.
16723 FILECMD=$lt_FILECMD
16724
16725 # An object symbol dumper.
16726 OBJDUMP=$lt_OBJDUMP
16727
16728 # Method to check whether dependent libraries are shared objects.
16729 deplibs_check_method=$lt_deplibs_check_method
16730
16731 # Command to use when deplibs_check_method = "file_magic".
16732 file_magic_cmd=$lt_file_magic_cmd
16733
16734 # How to find potential files when deplibs_check_method = "file_magic".
16735 file_magic_glob=$lt_file_magic_glob
16736
16737 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16738 want_nocaseglob=$lt_want_nocaseglob
16739
16740 # DLL creation program.
16741 DLLTOOL=$lt_DLLTOOL
16742
16743 # Command to associate shared and link libraries.
16744 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16745
16746 # The archiver.
16747 AR=$lt_AR
16748
16749 # Flags to create an archive (by configure).
16750 lt_ar_flags=$lt_ar_flags
16751
16752 # Flags to create an archive.
16753 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16754
16755 # How to feed a file listing to the archiver.
16756 archiver_list_spec=$lt_archiver_list_spec
16757
16758 # A symbol stripping program.
16759 STRIP=$lt_STRIP
16760
16761 # Commands used to install an old-style archive.
16762 RANLIB=$lt_RANLIB
16763 old_postinstall_cmds=$lt_old_postinstall_cmds
16764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16765
16766 # Whether to use a lock for old archive extraction.
16767 lock_old_archive_extraction=$lock_old_archive_extraction
16768
16769 # A C compiler.
16770 LTCC=$lt_CC
16771
16772 # LTCC compiler flags.
16773 LTCFLAGS=$lt_CFLAGS
16774
16775 # Take the output of nm and produce a listing of raw symbols and C names.
16776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16777
16778 # Transform the output of nm in a proper C declaration.
16779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16780
16781 # Transform the output of nm into a list of symbols to manually relocate.
16782 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16783
16784 # Transform the output of nm in a C name address pair.
16785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16786
16787 # Transform the output of nm in a C name address pair when lib prefix is needed.
16788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16789
16790 # The name lister interface.
16791 nm_interface=$lt_lt_cv_nm_interface
16792
16793 # Specify filename containing input files for \$NM.
16794 nm_file_list_spec=$lt_nm_file_list_spec
16795
16796 # The root where to search for dependent libraries,and where our libraries should be installed.
16797 lt_sysroot=$lt_sysroot
16798
16799 # Command to truncate a binary pipe.
16800 lt_truncate_bin=$lt_lt_cv_truncate_bin
16801
16802 # The name of the directory that contains temporary libtool files.
16803 objdir=$objdir
16804
16805 # Used to examine libraries when file_magic_cmd begins with "file".
16806 MAGIC_CMD=$MAGIC_CMD
16807
16808 # Must we lock files when doing compilation?
16809 need_locks=$lt_need_locks
16810
16811 # Manifest tool.
16812 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16813
16814 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16815 DSYMUTIL=$lt_DSYMUTIL
16816
16817 # Tool to change global to local symbols on Mac OS X.
16818 NMEDIT=$lt_NMEDIT
16819
16820 # Tool to manipulate fat objects and archives on Mac OS X.
16821 LIPO=$lt_LIPO
16822
16823 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16824 OTOOL=$lt_OTOOL
16825
16826 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16827 OTOOL64=$lt_OTOOL64
16828
16829 # Old archive suffix (normally "a").
16830 libext=$libext
16831
16832 # Shared library suffix (normally ".so").
16833 shrext_cmds=$lt_shrext_cmds
16834
16835 # The commands to extract the exported symbol list from a shared archive.
16836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16837
16838 # Variables whose values should be saved in libtool wrapper scripts and
16839 # restored at link time.
16840 variables_saved_for_relink=$lt_variables_saved_for_relink
16841
16842 # Do we need the "lib" prefix for modules?
16843 need_lib_prefix=$need_lib_prefix
16844
16845 # Do we need a version for libraries?
16846 need_version=$need_version
16847
16848 # Library versioning type.
16849 version_type=$version_type
16850
16851 # Shared library runtime path variable.
16852 runpath_var=$runpath_var
16853
16854 # Shared library path variable.
16855 shlibpath_var=$shlibpath_var
16856
16857 # Is shlibpath searched before the hard-coded library search path?
16858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16859
16860 # Format of library name prefix.
16861 libname_spec=$lt_libname_spec
16862
16863 # List of archive names. First name is the real one, the rest are links.
16864 # The last name is the one that the linker finds with -lNAME
16865 library_names_spec=$lt_library_names_spec
16866
16867 # The coded name of the library, if different from the real name.
16868 soname_spec=$lt_soname_spec
16869
16870 # Permission mode override for installation of shared libraries.
16871 install_override_mode=$lt_install_override_mode
16872
16873 # Command to use after installation of a shared archive.
16874 postinstall_cmds=$lt_postinstall_cmds
16875
16876 # Command to use after uninstallation of a shared archive.
16877 postuninstall_cmds=$lt_postuninstall_cmds
16878
16879 # Commands used to finish a libtool library installation in a directory.
16880 finish_cmds=$lt_finish_cmds
16881
16882 # As "finish_cmds", except a single script fragment to be evaled but
16883 # not shown.
16884 finish_eval=$lt_finish_eval
16885
16886 # Whether we should hardcode library paths into libraries.
16887 hardcode_into_libs=$hardcode_into_libs
16888
16889 # Compile-time system search path for libraries.
16890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16891
16892 # Detected run-time system search path for libraries.
16893 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16894
16895 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16896 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16897
16898 # Whether dlopen is supported.
16899 dlopen_support=$enable_dlopen
16900
16901 # Whether dlopen of programs is supported.
16902 dlopen_self=$enable_dlopen_self
16903
16904 # Whether dlopen of statically linked programs is supported.
16905 dlopen_self_static=$enable_dlopen_self_static
16906
16907 # Commands to strip libraries.
16908 old_striplib=$lt_old_striplib
16909 striplib=$lt_striplib
16910
16911
16912 # The linker used to build libraries.
16913 LD=$lt_LD
16914
16915 # How to create reloadable object files.
16916 reload_flag=$lt_reload_flag
16917 reload_cmds=$lt_reload_cmds
16918
16919 # Commands used to build an old-style archive.
16920 old_archive_cmds=$lt_old_archive_cmds
16921
16922 # A language specific compiler.
16923 CC=$lt_compiler
16924
16925 # Is the compiler the GNU compiler?
16926 with_gcc=$GCC
16927
16928 # Compiler flag to turn off builtin functions.
16929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16930
16931 # Additional compiler flags for building library objects.
16932 pic_flag=$lt_lt_prog_compiler_pic
16933
16934 # How to pass a linker flag through the compiler.
16935 wl=$lt_lt_prog_compiler_wl
16936
16937 # Compiler flag to prevent dynamic linking.
16938 link_static_flag=$lt_lt_prog_compiler_static
16939
16940 # Does compiler simultaneously support -c and -o options?
16941 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16942
16943 # Whether or not to add -lc for building shared libraries.
16944 build_libtool_need_lc=$archive_cmds_need_lc
16945
16946 # Whether or not to disallow shared libs when runtime libs are static.
16947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16948
16949 # Compiler flag to allow reflexive dlopens.
16950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16951
16952 # Compiler flag to generate shared objects directly from archives.
16953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16954
16955 # Whether the compiler copes with passing no objects directly.
16956 compiler_needs_object=$lt_compiler_needs_object
16957
16958 # Create an old-style archive from a shared archive.
16959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16960
16961 # Create a temporary old-style archive to link instead of a shared archive.
16962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16963
16964 # Commands used to build a shared archive.
16965 archive_cmds=$lt_archive_cmds
16966 archive_expsym_cmds=$lt_archive_expsym_cmds
16967
16968 # Commands used to build a loadable module if different from building
16969 # a shared archive.
16970 module_cmds=$lt_module_cmds
16971 module_expsym_cmds=$lt_module_expsym_cmds
16972
16973 # Whether we are building with GNU ld or not.
16974 with_gnu_ld=$lt_with_gnu_ld
16975
16976 # Flag that allows shared libraries with undefined symbols to be built.
16977 allow_undefined_flag=$lt_allow_undefined_flag
16978
16979 # Flag that enforces no undefined symbols.
16980 no_undefined_flag=$lt_no_undefined_flag
16981
16982 # Flag to hardcode \$libdir into a binary during linking.
16983 # This must work even if \$libdir does not exist
16984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16985
16986 # Whether we need a single "-rpath" flag with a separated argument.
16987 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16988
16989 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16990 # DIR into the resulting binary.
16991 hardcode_direct=$hardcode_direct
16992
16993 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16994 # DIR into the resulting binary and the resulting library dependency is
16995 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16996 # library is relocated.
16997 hardcode_direct_absolute=$hardcode_direct_absolute
16998
16999 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17000 # into the resulting binary.
17001 hardcode_minus_L=$hardcode_minus_L
17002
17003 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17004 # into the resulting binary.
17005 hardcode_shlibpath_var=$hardcode_shlibpath_var
17006
17007 # Set to "yes" if building a shared library automatically hardcodes DIR
17008 # into the library and all subsequent libraries and executables linked
17009 # against it.
17010 hardcode_automatic=$hardcode_automatic
17011
17012 # Set to yes if linker adds runtime paths of dependent libraries
17013 # to runtime path list.
17014 inherit_rpath=$inherit_rpath
17015
17016 # Whether libtool must link a program against all its dependency libraries.
17017 link_all_deplibs=$link_all_deplibs
17018
17019 # Set to "yes" if exported symbols are required.
17020 always_export_symbols=$always_export_symbols
17021
17022 # The commands to list exported symbols.
17023 export_symbols_cmds=$lt_export_symbols_cmds
17024
17025 # Symbols that should not be listed in the preloaded symbols.
17026 exclude_expsyms=$lt_exclude_expsyms
17027
17028 # Symbols that must always be exported.
17029 include_expsyms=$lt_include_expsyms
17030
17031 # Commands necessary for linking programs (against libraries) with templates.
17032 prelink_cmds=$lt_prelink_cmds
17033
17034 # Commands necessary for finishing linking programs.
17035 postlink_cmds=$lt_postlink_cmds
17036
17037 # Specify filename containing input files.
17038 file_list_spec=$lt_file_list_spec
17039
17040 # How to hardcode a shared library path into an executable.
17041 hardcode_action=$hardcode_action
17042
17043 # ### END LIBTOOL CONFIG
17044
17045 _LT_EOF
17046
17047 cat <<'_LT_EOF' >> "$cfgfile"
17048
17049 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17050
17051 # func_munge_path_list VARIABLE PATH
17052 # -----------------------------------
17053 # VARIABLE is name of variable containing _space_ separated list of
17054 # directories to be munged by the contents of PATH, which is string
17055 # having a format:
17056 # "DIR[:DIR]:"
17057 # string "DIR[ DIR]" will be prepended to VARIABLE
17058 # ":DIR[:DIR]"
17059 # string "DIR[ DIR]" will be appended to VARIABLE
17060 # "DIRP[:DIRP]::[DIRA:]DIRA"
17061 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17062 # "DIRA[ DIRA]" will be appended to VARIABLE
17063 # "DIR[:DIR]"
17064 # VARIABLE will be replaced by "DIR[ DIR]"
17065 func_munge_path_list ()
17066 {
17067 case x$2 in
17068 x)
17069 ;;
17070 *:)
17071 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17072 ;;
17073 x:*)
17074 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17075 ;;
17076 *::*)
17077 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17078 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17079 ;;
17080 *)
17081 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17082 ;;
17083 esac
17084 }
17085
17086
17087 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17088 func_cc_basename ()
17089 {
17090 for cc_temp in $*""; do
17091 case $cc_temp in
17092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17094 \-*) ;;
17095 *) break;;
17096 esac
17097 done
17098 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17099 }
17100
17101
17102 # ### END FUNCTIONS SHARED WITH CONFIGURE
17103
17104 _LT_EOF
17105
17106 case $host_os in
17107 aix3*)
17108 cat <<\_LT_EOF >> "$cfgfile"
17109 # AIX sometimes has problems with the GCC collect2 program. For some
17110 # reason, if we set the COLLECT_NAMES environment variable, the problems
17111 # vanish in a puff of smoke.
17112 if test set != "${COLLECT_NAMES+set}"; then
17113 COLLECT_NAMES=
17114 export COLLECT_NAMES
17115 fi
17116 _LT_EOF
17117 ;;
17118 esac
17119
17120
17121
17122 ltmain=$ac_aux_dir/ltmain.sh
17123
17124
17125 # We use sed instead of cat because bash on DJGPP gets confused if
17126 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17127 # text mode, it properly converts lines to CR/LF. This bash problem
17128 # is reportedly fixed, but why not run on old versions too?
17129 $SED '$q' "$ltmain" >> "$cfgfile" \
17130 || (rm -f "$cfgfile"; exit 1)
17131
17132 mv -f "$cfgfile" "$ofile" ||
17133 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17134 chmod +x "$ofile"
17135
17136 ;;
17137 "$ax_create_pkgconfig_generate":C)
17138 pkgconfig_generate="$ax_create_pkgconfig_generate"
17139 if test ! -f "$pkgconfig_generate.in"
17140 then generate="true"
17141 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
17142 then generate="true"
17143 else generate="false";
17144 fi
17145 if $generate ; then
17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
17147 printf "%s\n" "$as_me: creating $pkgconfig_generate.in" >&6;}
17148 cat > $pkgconfig_generate.in <<AXEOF
17149 # generated by configure / remove this line to disable regeneration
17150 prefix=@prefix@
17151 exec_prefix=@exec_prefix@
17152 bindir=@bindir@
17153 libdir=@libdir@
17154 datarootdir=@datarootdir@
17155 datadir=@datadir@
17156 sysconfdir=@sysconfdir@
17157 includedir=@includedir@
17158 package=@PACKAGE@
17159 suffix=@suffix@
17160
17161 Name: @PACKAGE_NAME@
17162 Description: @PACKAGE_DESCRIPTION@
17163 Version: @PACKAGE_VERSION@
17164 Requires: @PACKAGE_REQUIRES@
17165 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
17166 Cflags: -I\${includedir} @CPPFLAGS@
17167 AXEOF
17168 fi # DONE generate $pkgconfig_generate.in
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
17170 printf "%s\n" "$as_me: creating $pkgconfig_generate" >&6;}
17171 cat >conftest.sed <<AXEOF
17172 s|@prefix@|${pkgconfig_prefix}|
17173 s|@exec_prefix@|${pkgconfig_execprefix}|
17174 s|@bindir@|${pkgconfig_bindir}|
17175 s|@libdir@|${pkgconfig_libdir}|
17176 s|@datarootdir@|${pkgconfig_datarootdir}|
17177 s|@datadir@|${pkgconfig_datadir}|
17178 s|@sysconfdir@|${pkgconfig_sysconfdir}|
17179 s|@includedir@|${pkgconfig_includedir}|
17180 s|@suffix@|${pkgconfig_suffix}|
17181 s|@PACKAGE@|${pkgconfig_package}|
17182 s|@PACKAGE_NAME@|${pkgconfig_libname}|
17183 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
17184 s|@PACKAGE_VERSION@|${pkgconfig_version}|
17185 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
17186 s|@LIBS@|${pkgconfig_libs}|
17187 s|@LDFLAGS@|${pkgconfig_ldflags}|
17188 s|@CPPFLAGS@|${pkgconfig_cppflags}|
17189 AXEOF
17190 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
17191 if test ! -s $pkgconfig_generate ; then
17192 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
17193 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
17194 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
17196 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
17197 cat >conftest.sed <<AXEOF
17198 s|@prefix@|${pkgconfig_prefix}|
17199 s|@exec_prefix@|${pkgconfig_execprefix}|
17200 s|@bindir@|${pkgconfig_bindir}|
17201 s|@libdir@|${pkgconfig_src_libdir}|
17202 s|@datarootdir@|${pkgconfig_datarootdir}|
17203 s|@datadir@|${pkgconfig_datadir}|
17204 s|@sysconfdir@|${pkgconfig_sysconfdir}|
17205 s|@includedir@|${pkgconfig_src_headers}|
17206 s|@suffix@|${pkgconfig_suffix}|
17207 s|@PACKAGE@|${pkgconfig_package}|
17208 s|@PACKAGE_NAME@|${pkgconfig_libname}|
17209 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
17210 s|@PACKAGE_VERSION@|${pkgconfig_version}|
17211 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
17212 s|@LIBS@|${pkgconfig_libs}|
17213 s|@LDFLAGS@|${pkgconfig_ldflags}|
17214 s|@CPPFLAGS@|${pkgconfig_cppflags}|
17215 AXEOF
17216 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
17217 if test ! -s $pkgconfig_uninstalled ; then
17218 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
17219 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
17220 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
17221 if test ".$pkgconfig_requires_add" != "." ; then
17222 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
17223 else pkgconfig_requires_add=":" ; fi
17224 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
17226 printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;}
17227 cat >conftest.sed <<AXEOF
17228 s|@prefix@|\"${pkgconfig_prefix}\"|
17229 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
17230 s|@bindir@|\"${pkgconfig_bindir}\"|
17231 s|@libdir@|\"${pkgconfig_src_libdir}\"|
17232 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
17233 s|@datadir@|\"${pkgconfig_datadir}\"|
17234 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
17235 s|@includedir@|\"${pkgconfig_src_headers}\"|
17236 s|@suffix@|\"${pkgconfig_suffix}\"|
17237 s|@PACKAGE@|\"${pkgconfig_package}\"|
17238 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
17239 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
17240 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
17241 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
17242 s|@LIBS@|\"${pkgconfig_libs}\"|
17243 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
17244 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
17245 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
17246 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
17247 s>Version: *>\\;\\; --modversion|--version) echo >
17248 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
17249 s>Libs: *>\\;\\; --libs) echo >
17250 s>Cflags: *>\\;\\; --cflags) echo >
17251 /--libs)/a\\
17252 $pkgconfig_requires_add
17253 /--cflags)/a\\
17254 $pkgconfig_requires_add\\
17255 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
17256 ;; --uninstalled) exit 0 \\
17257 ;; *) ;; esac done
17258 AXEOF
17259 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
17260 if test ! -s $pkgconfig_uninstalled ; then
17261 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
17262 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
17263 ;;
17264
17265 esac
17266 done # for ac_tag
17267
17268
17269 as_fn_exit 0
17270 _ACEOF
17271 ac_clean_files=$ac_clean_files_save
17272
17273 test $ac_write_fail = 0 ||
17274 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17275
17276
17277 # configure is writing to config.log, and then calls config.status.
17278 # config.status does its own redirection, appending to config.log.
17279 # Unfortunately, on DOS this fails, as config.log is still kept open
17280 # by configure, so config.status won't be able to write to it; its
17281 # output is simply discarded. So we exec the FD to /dev/null,
17282 # effectively closing config.log, so it can be properly (re)opened and
17283 # appended to by config.status. When coming back to configure, we
17284 # need to make the FD available again.
17285 if test "$no_create" != yes; then
17286 ac_cs_success=:
17287 ac_config_status_args=
17288 test "$silent" = yes &&
17289 ac_config_status_args="$ac_config_status_args --quiet"
17290 exec 5>/dev/null
17291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17292 exec 5>>config.log
17293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17294 # would make configure fail if this is the last instruction.
17295 $ac_cs_success || as_fn_exit 1
17296 fi
17297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17299 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17300 fi
17301
17302