Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for pkgconf 2.5.1.
4 #
5 # Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/pkgconf/pkgconf/issues/new about
283 $0: your system, including any error possibly output before
284 $0: this message. Then install a modern shell, or manually
285 $0: run the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='pkgconf'
616 PACKAGE_TARNAME='pkgconf'
617 PACKAGE_VERSION='2.5.1'
618 PACKAGE_STRING='pkgconf 2.5.1'
619 PACKAGE_BUGREPORT='https://github.com/pkgconf/pkgconf/issues/new'
620 PACKAGE_URL=''
621
622 ac_unique_file="cli/main.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 CPP
661 SYSTEM_INCLUDEDIR
662 SYSTEM_LIBDIR
663 PKG_DEFAULT_PATH
664 PERSONALITY_PATH
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 am__xargs_n
697 am__rm_f_notfound
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 CSCOPE
703 ETAGS
704 CTAGS
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__include
713 DEPDIR
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
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_dependency_tracking
788 enable_silent_rules
789 enable_shared
790 enable_static
791 enable_pic
792 with_pic
793 enable_fast_install
794 enable_aix_soname
795 with_aix_soname
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 enable_largefile
800 with_personality_dir
801 with_pkg_config_dir
802 with_system_libdir
803 with_system_includedir
804 enable_year2038
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 LT_SYS_LIBRARY_PATH
815 CPP'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 runstatedir='${localstatedir}/run'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: '$ac_useropt'"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
945
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: '$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -runstatedir | --runstatedir | --runstatedi | --runstated \
1106 | --runstate | --runstat | --runsta | --runst | --runs \
1107 | --run | --ru | --r)
1108 ac_prev=runstatedir ;;
1109 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1110 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1111 | --run=* | --ru=* | --r=*)
1112 runstatedir=$ac_optarg ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1158
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: '$ac_useropt'"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: '$ac_useropt'"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1208
1209 -*) as_fn_error $? "unrecognized option: '$ac_option'
1210 Try '$0 --help' for more information"
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1222
1223 *)
1224 # FIXME: should be removed in autoconf 3.0.
1225 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 ;;
1230
1231 esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $? "missing argument to $ac_option"
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245 fi
1246
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir runstatedir
1252 do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1267
1268 # There might be people who depend on the old broken behavior: '$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1274
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $? "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $? "pwd does not report name of working directory"
1296
1297
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 printf "%s\n" X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329 else
1330 ac_srcdir_defaulted=no
1331 fi
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 fi
1336 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 'configure' configures pkgconf 2.5.1 to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print 'checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for '--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or '..']
1383
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390 By default, 'make install' will install all the files in
1391 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than '$ac_default_prefix' using '--prefix',
1393 for instance '--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/pkgconf]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418 _ACEOF
1419
1420 cat <<\_ACEOF
1421
1422 Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426
1427 System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 _ACEOF
1431 fi
1432
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of pkgconf 2.5.1:";;
1436 esac
1437 cat <<\_ACEOF
1438
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --enable-fast-install[=PKGS]
1454 optimize for fast installation [default=yes]
1455 --enable-aix-soname=aix|svr4|both
1456 shared library versioning (aka "SONAME") variant to
1457 provide on AIX, [default=aix].
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --disable-largefile omit support for large files
1460 --enable-year2038 support timestamps after 2038
1461
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467 compiler's sysroot if not specified).
1468 --with-personality-dir specify the place where cross-compile personality
1469 files will be found
1470 --with-pkg-config-dir specify the place where pc files will be found
1471 --with-system-libdir specify the system library directory (default
1472 LIBDIR)
1473 --with-system-includedir
1474 specify the system include directory (default
1475 INCLUDEDIR)
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 LT_SYS_LIBRARY_PATH
1486 User-defined run-time library search path.
1487 CPP C preprocessor
1488
1489 Use these variables to override the choices made by 'configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for configure.gnu first; this name is used for a wrapper for
1539 # Metaconfig's "Configure" on case-insensitive file systems.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 pkgconf configure 2.5.1
1557 generated by GNU Autoconf 2.72
1558
1559 Copyright (C) 2023 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest.beam
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 printf "%s\n" "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext
1596 then :
1597 ac_retval=0
1598 else case e in #(
1599 e) printf "%s\n" "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1 ;;
1603 esac
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_compile
1609
1610 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1611 # ------------------------------------------------------------------
1612 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1613 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1614 ac_fn_check_decl ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 as_decl_name=`echo $2|sed 's/ *(.*//'`
1618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1619 printf %s "checking whether $as_decl_name is declared... " >&6; }
1620 if eval test \${$3+y}
1621 then :
1622 printf %s "(cached) " >&6
1623 else case e in #(
1624 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1625 eval ac_save_FLAGS=\$$6
1626 as_fn_append $6 " $5"
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 int
1631 main (void)
1632 {
1633 #ifndef $as_decl_name
1634 #ifdef __cplusplus
1635 (void) $as_decl_use;
1636 #else
1637 (void) $as_decl_name;
1638 #endif
1639 #endif
1640
1641 ;
1642 return 0;
1643 }
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"
1646 then :
1647 eval "$3=yes"
1648 else case e in #(
1649 e) eval "$3=no" ;;
1650 esac
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1653 eval $6=\$ac_save_FLAGS
1654 ;;
1655 esac
1656 fi
1657 eval ac_res=\$$3
1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 printf "%s\n" "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662 } # ac_fn_check_decl
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 printf %s "checking for $2... " >&6; }
1673 if eval test \${$3+y}
1674 then :
1675 printf %s "(cached) " >&6
1676 else case e in #(
1677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"
1683 then :
1684 eval "$3=yes"
1685 else case e in #(
1686 e) eval "$3=no" ;;
1687 esac
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1690 esac
1691 fi
1692 eval ac_res=\$$3
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 printf "%s\n" "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 printf "%s\n" "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1727 }
1728 then :
1729 ac_retval=0
1730 else case e in #(
1731 e) printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1 ;;
1735 esac
1736 fi
1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739 # interfere with the next link command; also delete a directory that is
1740 # left behind by Apple's compiler. We do this before executing the actions.
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_link
1746
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 printf %s "checking for $2... " >&6; }
1755 if eval test \${$3+y}
1756 then :
1757 printf %s "(cached) " >&6
1758 else case e in #(
1759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1764
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (void); below. */
1767
1768 #include <limits.h>
1769 #undef $2
1770
1771 /* Override any GCC internal prototype to avoid an error.
1772 Use char because int might match the return type of a GCC
1773 builtin and then its argument prototype would still apply. */
1774 #ifdef __cplusplus
1775 extern "C"
1776 #endif
1777 char $2 (void);
1778 /* The GNU C library defines this for functions which it implements
1779 to always fail with ENOSYS. Some functions are actually named
1780 something starting with __ and the normal name is an alias. */
1781 #if defined __stub_$2 || defined __stub___$2
1782 choke me
1783 #endif
1784
1785 int
1786 main (void)
1787 {
1788 return $2 ();
1789 ;
1790 return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_link "$LINENO"
1794 then :
1795 eval "$3=yes"
1796 else case e in #(
1797 e) eval "$3=no" ;;
1798 esac
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1801 conftest$ac_exeext conftest.$ac_ext ;;
1802 esac
1803 fi
1804 eval ac_res=\$$3
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 printf "%s\n" "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809 } # ac_fn_c_check_func
1810
1811 # ac_fn_c_try_cpp LINENO
1812 # ----------------------
1813 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_cpp ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_cpp conftest.$ac_ext"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 printf "%s\n" "$ac_try_echo"; } >&5
1824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } > conftest.i && {
1833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 }
1836 then :
1837 ac_retval=0
1838 else case e in #(
1839 e) printf "%s\n" "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1 ;;
1843 esac
1844 fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_cpp
1849 ac_configure_args_raw=
1850 for ac_arg
1851 do
1852 case $ac_arg in
1853 *\'*)
1854 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 as_fn_append ac_configure_args_raw " '$ac_arg'"
1857 done
1858
1859 case $ac_configure_args_raw in
1860 *$as_nl*)
1861 ac_safe_unquote= ;;
1862 *)
1863 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1864 ac_unsafe_a="$ac_unsafe_z#~"
1865 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1866 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1867 esac
1868
1869 cat >config.log <<_ACEOF
1870 This file contains any messages produced by compilers while
1871 running configure, to aid debugging if configure makes a mistake.
1872
1873 It was created by pkgconf $as_me 2.5.1, which was
1874 generated by GNU Autoconf 2.72. Invocation command line was
1875
1876 $ $0$ac_configure_args_raw
1877
1878 _ACEOF
1879 exec 5>>config.log
1880 {
1881 cat <<_ASUNAME
1882 ## --------- ##
1883 ## Platform. ##
1884 ## --------- ##
1885
1886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891
1892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894
1895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902
1903 _ASUNAME
1904
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 case $as_dir in #(((
1910 '') as_dir=./ ;;
1911 */) ;;
1912 *) as_dir=$as_dir/ ;;
1913 esac
1914 printf "%s\n" "PATH: $as_dir"
1915 done
1916 IFS=$as_save_IFS
1917
1918 } >&5
1919
1920 cat >&5 <<_ACEOF
1921
1922
1923 ## ----------- ##
1924 ## Core tests. ##
1925 ## ----------- ##
1926
1927 _ACEOF
1928
1929
1930 # Keep a trace of the command line.
1931 # Strip out --no-create and --no-recursion so they do not pile up.
1932 # Strip out --silent because we don't want to record it for future runs.
1933 # Also quote any args containing shell meta-characters.
1934 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_configure_args=
1936 ac_configure_args0=
1937 ac_configure_args1=
1938 ac_must_keep_next=false
1939 for ac_pass in 1 2
1940 do
1941 for ac_arg
1942 do
1943 case $ac_arg in
1944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946 | -silent | --silent | --silen | --sile | --sil)
1947 continue ;;
1948 *\'*)
1949 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 case $ac_pass in
1952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953 2)
1954 as_fn_append ac_configure_args1 " '$ac_arg'"
1955 if test $ac_must_keep_next = true; then
1956 ac_must_keep_next=false # Got value, back to normal.
1957 else
1958 case $ac_arg in
1959 *=* | --config-cache | -C | -disable-* | --disable-* \
1960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962 | -with-* | --with-* | -without-* | --without-* | --x)
1963 case "$ac_configure_args0 " in
1964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 esac
1966 ;;
1967 -* ) ac_must_keep_next=true ;;
1968 esac
1969 fi
1970 as_fn_append ac_configure_args " '$ac_arg'"
1971 ;;
1972 esac
1973 done
1974 done
1975 { ac_configure_args0=; unset ac_configure_args0;}
1976 { ac_configure_args1=; unset ac_configure_args1;}
1977
1978 # When interrupted or exit'd, cleanup temporary files, and complete
1979 # config.log. We remove comments because anyway the quotes in there
1980 # would cause problems or look ugly.
1981 # WARNING: Use '\'' to represent an apostrophe within the trap.
1982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983 trap 'exit_status=$?
1984 # Sanitize IFS.
1985 IFS=" "" $as_nl"
1986 # Save into config.log some information that might help in debugging.
1987 {
1988 echo
1989
1990 printf "%s\n" "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1995 (
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2018 *)
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ;;
2021 esac |
2022 sort
2023 )
2024 echo
2025
2026 printf "%s\n" "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 printf "%s\n" "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 printf "%s\n" "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 printf "%s\n" "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054 fi
2055
2056 if test -s confdefs.h; then
2057 printf "%s\n" "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2063 fi
2064 test "$ac_signal" != 0 &&
2065 printf "%s\n" "$as_me: caught signal $ac_signal"
2066 printf "%s\n" "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 printf "%s\n" "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 if test -n "$CONFIG_SITE"; then
2100 ac_site_files="$CONFIG_SITE"
2101 elif test "x$prefix" != xNONE; then
2102 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2103 else
2104 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2105 fi
2106
2107 for ac_site_file in $ac_site_files
2108 do
2109 case $ac_site_file in #(
2110 */*) :
2111 ;; #(
2112 *) :
2113 ac_site_file=./$ac_site_file ;;
2114 esac
2115 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2119 . "$ac_site_file" \
2120 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2121 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See 'config.log' for more details" "$LINENO" 5; }
2124 fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2143
2144 # Test code for whether the C compiler supports C89 (global declarations)
2145 ac_c_conftest_c89_globals='
2146 /* Does the compiler advertise C89 conformance?
2147 Do not test the value of __STDC__, because some compilers set it to 0
2148 while being otherwise adequately conformant. */
2149 #if !defined __STDC__
2150 # error "Compiler does not advertise C89 conformance"
2151 #endif
2152
2153 #include <stddef.h>
2154 #include <stdarg.h>
2155 struct stat;
2156 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2157 struct buf { int x; };
2158 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (char **p, int i)
2160 {
2161 return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171 }
2172
2173 /* C89 style stringification. */
2174 #define noexpand_stringify(a) #a
2175 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2176
2177 /* C89 style token pasting. Exercises some of the corner cases that
2178 e.g. old MSVC gets wrong, but not very hard. */
2179 #define noexpand_concat(a,b) a##b
2180 #define expand_concat(a,b) noexpand_concat(a,b)
2181 extern int vA;
2182 extern int vbee;
2183 #define aye A
2184 #define bee B
2185 int *pvA = &expand_concat(v,aye);
2186 int *pvbee = &noexpand_concat(v,bee);
2187
2188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2189 function prototypes and stuff, but not \xHH hex character constants.
2190 These do not provoke an error unfortunately, instead are silently treated
2191 as an "x". The following induces an error, until -std is added to get
2192 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2193 array size at least. It is necessary to write \x00 == 0 to get something
2194 that is true only with -std. */
2195 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2196
2197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2198 inside strings and character constants. */
2199 #define FOO(x) '\''x'\''
2200 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2201
2202 int test (int i, double x);
2203 struct s1 {int (*f) (int a);};
2204 struct s2 {int (*f) (double a);};
2205 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2206 int, int);'
2207
2208 # Test code for whether the C compiler supports C89 (body of main).
2209 ac_c_conftest_c89_main='
2210 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2211 '
2212
2213 # Test code for whether the C compiler supports C99 (global declarations)
2214 ac_c_conftest_c99_globals='
2215 /* Does the compiler advertise C99 conformance? */
2216 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2217 # error "Compiler does not advertise C99 conformance"
2218 #endif
2219
2220 // See if C++-style comments work.
2221
2222 #include <stdbool.h>
2223 extern int puts (const char *);
2224 extern int printf (const char *, ...);
2225 extern int dprintf (int, const char *, ...);
2226 extern void *malloc (size_t);
2227 extern void free (void *);
2228
2229 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2230 // dprintf is used instead of fprintf to avoid needing to declare
2231 // FILE and stderr.
2232 #define debug(...) dprintf (2, __VA_ARGS__)
2233 #define showlist(...) puts (#__VA_ARGS__)
2234 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235 static void
2236 test_varargs_macros (void)
2237 {
2238 int x = 1234;
2239 int y = 5678;
2240 debug ("Flag");
2241 debug ("X = %d\n", x);
2242 showlist (The first, second, and third items.);
2243 report (x>y, "x is %d but y is %d", x, y);
2244 }
2245
2246 // Check long long types.
2247 #define BIG64 18446744073709551615ull
2248 #define BIG32 4294967295ul
2249 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250 #if !BIG_OK
2251 #error "your preprocessor is broken"
2252 #endif
2253 #if BIG_OK
2254 #else
2255 #error "your preprocessor is broken"
2256 #endif
2257 static long long int bignum = -9223372036854775807LL;
2258 static unsigned long long int ubignum = BIG64;
2259
2260 struct incomplete_array
2261 {
2262 int datasize;
2263 double data[];
2264 };
2265
2266 struct named_init {
2267 int number;
2268 const wchar_t *name;
2269 double average;
2270 };
2271
2272 typedef const char *ccp;
2273
2274 static inline int
2275 test_restrict (ccp restrict text)
2276 {
2277 // Iterate through items via the restricted pointer.
2278 // Also check for declarations in for loops.
2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280 continue;
2281 return 0;
2282 }
2283
2284 // Check varargs and va_copy.
2285 static bool
2286 test_varargs (const char *format, ...)
2287 {
2288 va_list args;
2289 va_start (args, format);
2290 va_list args_copy;
2291 va_copy (args_copy, args);
2292
2293 const char *str = "";
2294 int number = 0;
2295 float fnumber = 0;
2296
2297 while (*format)
2298 {
2299 switch (*format++)
2300 {
2301 case '\''s'\'': // string
2302 str = va_arg (args_copy, const char *);
2303 break;
2304 case '\''d'\'': // int
2305 number = va_arg (args_copy, int);
2306 break;
2307 case '\''f'\'': // float
2308 fnumber = va_arg (args_copy, double);
2309 break;
2310 default:
2311 break;
2312 }
2313 }
2314 va_end (args_copy);
2315 va_end (args);
2316
2317 return *str && number && fnumber;
2318 }
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (body of main).
2322 ac_c_conftest_c99_main='
2323 // Check bool.
2324 _Bool success = false;
2325 success |= (argc != 0);
2326
2327 // Check restrict.
2328 if (test_restrict ("String literal") == 0)
2329 success = true;
2330 char *restrict newvar = "Another string";
2331
2332 // Check varargs.
2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334 test_varargs_macros ();
2335
2336 // Check flexible array members.
2337 struct incomplete_array *ia =
2338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2339 ia->datasize = 10;
2340 for (int i = 0; i < ia->datasize; ++i)
2341 ia->data[i] = i * 1.234;
2342 // Work around memory leak warnings.
2343 free (ia);
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 int dynamic_array[ni.number];
2355 dynamic_array[0] = argv[0][0];
2356 dynamic_array[ni.number - 1] = 543;
2357
2358 // work around unused variable warnings
2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360 || dynamic_array[ni.number - 1] != 543);
2361 '
2362
2363 # Test code for whether the C compiler supports C11 (global declarations)
2364 ac_c_conftest_c11_globals='
2365 /* Does the compiler advertise C11 conformance? */
2366 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367 # error "Compiler does not advertise C11 conformance"
2368 #endif
2369
2370 // Check _Alignas.
2371 char _Alignas (double) aligned_as_double;
2372 char _Alignas (0) no_special_alignment;
2373 extern char aligned_as_int;
2374 char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376 // Check _Alignof.
2377 enum
2378 {
2379 int_alignment = _Alignof (int),
2380 int_array_alignment = _Alignof (int[100]),
2381 char_alignment = _Alignof (char)
2382 };
2383 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385 // Check _Noreturn.
2386 int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388 // Check _Static_assert.
2389 struct test_static_assert
2390 {
2391 int x;
2392 _Static_assert (sizeof (int) <= sizeof (long int),
2393 "_Static_assert does not work in struct");
2394 long int y;
2395 };
2396
2397 // Check UTF-8 literals.
2398 #define u8 syntax error!
2399 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401 // Check duplicate typedefs.
2402 typedef long *long_ptr;
2403 typedef long int *long_ptr;
2404 typedef long_ptr long_ptr;
2405
2406 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407 struct anonymous
2408 {
2409 union {
2410 struct { int i; int j; };
2411 struct { int k; long int l; } w;
2412 };
2413 int m;
2414 } v1;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (body of main).
2418 ac_c_conftest_c11_main='
2419 _Static_assert ((offsetof (struct anonymous, i)
2420 == offsetof (struct anonymous, w.k)),
2421 "Anonymous union alignment botch");
2422 v1.i = 2;
2423 v1.w.k = 5;
2424 ok |= v1.i != 5;
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (complete).
2428 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429 ${ac_c_conftest_c99_globals}
2430 ${ac_c_conftest_c11_globals}
2431
2432 int
2433 main (int argc, char **argv)
2434 {
2435 int ok = 0;
2436 ${ac_c_conftest_c89_main}
2437 ${ac_c_conftest_c99_main}
2438 ${ac_c_conftest_c11_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C99 (complete).
2444 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446
2447 int
2448 main (int argc, char **argv)
2449 {
2450 int ok = 0;
2451 ${ac_c_conftest_c89_main}
2452 ${ac_c_conftest_c99_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C89 (complete).
2458 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460 int
2461 main (int argc, char **argv)
2462 {
2463 int ok = 0;
2464 ${ac_c_conftest_c89_main}
2465 return ok;
2466 }
2467 "
2468
2469 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2470 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2471 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2472 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2473 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2474 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2475 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2476 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2477 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else case e in #(
2558 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2559 esac
2560 fi
2561
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 if test -f "${ac_aux_dir}config.guess"; then
2568 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2569 fi
2570 if test -f "${ac_aux_dir}config.sub"; then
2571 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2572 fi
2573 if test -f "$ac_aux_dir/configure"; then
2574 ac_configure="$SHELL ${ac_aux_dir}configure"
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2588 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2602 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2606 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2610 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2612 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2629 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2633 and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659 # Expand $ac_aux_dir to an absolute path.
2660 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2661
2662 ac_ext=c
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 printf %s "checking for $ac_word... " >&6; }
2672 if test ${ac_cv_prog_CC+y}
2673 then :
2674 printf %s "(cached) " >&6
2675 else case e in #(
2676 e) if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 case $as_dir in #(((
2684 '') as_dir=./ ;;
2685 */) ;;
2686 *) as_dir=$as_dir/ ;;
2687 esac
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi ;;
2699 esac
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 printf "%s\n" "$CC" >&6; }
2705 else
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 printf "%s\n" "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$ac_cv_prog_CC"; then
2713 ac_ct_CC=$CC
2714 # Extract the first word of "gcc", so it can be a program name with args.
2715 set dummy gcc; ac_word=$2
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 printf %s "checking for $ac_word... " >&6; }
2718 if test ${ac_cv_prog_ac_ct_CC+y}
2719 then :
2720 printf %s "(cached) " >&6
2721 else case e in #(
2722 e) if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 case $as_dir in #(((
2730 '') as_dir=./ ;;
2731 */) ;;
2732 *) as_dir=$as_dir/ ;;
2733 esac
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_ac_ct_CC="gcc"
2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi ;;
2745 esac
2746 fi
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 printf "%s\n" "$ac_ct_CC" >&6; }
2751 else
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 printf "%s\n" "no" >&6; }
2754 fi
2755
2756 if test "x$ac_ct_CC" = x; then
2757 CC=""
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 CC=$ac_ct_CC
2766 fi
2767 else
2768 CC="$ac_cv_prog_CC"
2769 fi
2770
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 printf %s "checking for $ac_word... " >&6; }
2777 if test ${ac_cv_prog_CC+y}
2778 then :
2779 printf %s "(cached) " >&6
2780 else case e in #(
2781 e) if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 case $as_dir in #(((
2789 '') as_dir=./ ;;
2790 */) ;;
2791 *) as_dir=$as_dir/ ;;
2792 esac
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}cc"
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi ;;
2804 esac
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 printf "%s\n" "$CC" >&6; }
2810 else
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 printf "%s\n" "no" >&6; }
2813 fi
2814
2815
2816 fi
2817 fi
2818 if test -z "$CC"; then
2819 # Extract the first word of "cc", so it can be a program name with args.
2820 set dummy cc; ac_word=$2
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 printf %s "checking for $ac_word... " >&6; }
2823 if test ${ac_cv_prog_CC+y}
2824 then :
2825 printf %s "(cached) " >&6
2826 else case e in #(
2827 e) if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 ac_prog_rejected=no
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 case $as_dir in #(((
2836 '') as_dir=./ ;;
2837 */) ;;
2838 *) as_dir=$as_dir/ ;;
2839 esac
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2842 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2843 ac_prog_rejected=yes
2844 continue
2845 fi
2846 ac_cv_prog_CC="cc"
2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 if test $ac_prog_rejected = yes; then
2855 # We found a bogon in the path, so make sure we never use it.
2856 set dummy $ac_cv_prog_CC
2857 shift
2858 if test $# != 0; then
2859 # We chose a different compiler from the bogus one.
2860 # However, it has the same basename, so the bogon will be chosen
2861 # first if we set CC to just the basename; use the full file name.
2862 shift
2863 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2864 fi
2865 fi
2866 fi ;;
2867 esac
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 printf "%s\n" "$CC" >&6; }
2873 else
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 printf "%s\n" "no" >&6; }
2876 fi
2877
2878
2879 fi
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in cl.exe
2883 do
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 printf %s "checking for $ac_word... " >&6; }
2888 if test ${ac_cv_prog_CC+y}
2889 then :
2890 printf %s "(cached) " >&6
2891 else case e in #(
2892 e) if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 case $as_dir in #(((
2900 '') as_dir=./ ;;
2901 */) ;;
2902 *) as_dir=$as_dir/ ;;
2903 esac
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi ;;
2915 esac
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 printf "%s\n" "$CC" >&6; }
2921 else
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 printf "%s\n" "no" >&6; }
2924 fi
2925
2926
2927 test -n "$CC" && break
2928 done
2929 fi
2930 if test -z "$CC"; then
2931 ac_ct_CC=$CC
2932 for ac_prog in cl.exe
2933 do
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 printf %s "checking for $ac_word... " >&6; }
2938 if test ${ac_cv_prog_ac_ct_CC+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else case e in #(
2942 e) if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 case $as_dir in #(((
2950 '') as_dir=./ ;;
2951 */) ;;
2952 *) as_dir=$as_dir/ ;;
2953 esac
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_CC="$ac_prog"
2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi ;;
2965 esac
2966 fi
2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2970 printf "%s\n" "$ac_ct_CC" >&6; }
2971 else
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 printf "%s\n" "no" >&6; }
2974 fi
2975
2976
2977 test -n "$ac_ct_CC" && break
2978 done
2979
2980 if test "x$ac_ct_CC" = x; then
2981 CC=""
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CC=$ac_ct_CC
2990 fi
2991 fi
2992
2993 fi
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}clang; ac_word=$2
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 printf %s "checking for $ac_word... " >&6; }
3000 if test ${ac_cv_prog_CC+y}
3001 then :
3002 printf %s "(cached) " >&6
3003 else case e in #(
3004 e) if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 case $as_dir in #(((
3012 '') as_dir=./ ;;
3013 */) ;;
3014 *) as_dir=$as_dir/ ;;
3015 esac
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}clang"
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi ;;
3027 esac
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 printf "%s\n" "$CC" >&6; }
3033 else
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 printf "%s\n" "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$ac_cv_prog_CC"; then
3041 ac_ct_CC=$CC
3042 # Extract the first word of "clang", so it can be a program name with args.
3043 set dummy clang; ac_word=$2
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 printf %s "checking for $ac_word... " >&6; }
3046 if test ${ac_cv_prog_ac_ct_CC+y}
3047 then :
3048 printf %s "(cached) " >&6
3049 else case e in #(
3050 e) if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 case $as_dir in #(((
3058 '') as_dir=./ ;;
3059 */) ;;
3060 *) as_dir=$as_dir/ ;;
3061 esac
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_CC="clang"
3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi ;;
3073 esac
3074 fi
3075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076 if test -n "$ac_ct_CC"; then
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3078 printf "%s\n" "$ac_ct_CC" >&6; }
3079 else
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 printf "%s\n" "no" >&6; }
3082 fi
3083
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3094 fi
3095 else
3096 CC="$ac_cv_prog_CC"
3097 fi
3098
3099 fi
3100
3101
3102 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3104 as_fn_error $? "no acceptable C compiler found in \$PATH
3105 See 'config.log' for more details" "$LINENO" 5; }
3106
3107 # Provide some information about the compiler.
3108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3109 set X $ac_compile
3110 ac_compiler=$2
3111 for ac_option in --version -v -V -qversion -version; do
3112 { { ac_try="$ac_compiler $ac_option >&5"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 printf "%s\n" "$ac_try_echo"; } >&5
3119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120 ac_status=$?
3121 if test -s conftest.err; then
3122 sed '10a\
3123 ... rest of stderr output deleted ...
3124 10q' conftest.err >conftest.er1
3125 cat conftest.er1 >&5
3126 fi
3127 rm -f conftest.er1 conftest.err
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 done
3131
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134
3135 int
3136 main (void)
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 ac_clean_files_save=$ac_clean_files
3144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145 # Try to create an executable without -o first, disregard a.out.
3146 # It will help us diagnose broken compilers, and finding out an intuition
3147 # of exeext.
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149 printf %s "checking whether the C compiler works... " >&6; }
3150 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152 # The possible output files:
3153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155 ac_rmfiles=
3156 for ac_file in $ac_files
3157 do
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161 esac
3162 done
3163 rm -f $ac_rmfiles
3164
3165 if { { ac_try="$ac_link_default"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 printf "%s\n" "$ac_try_echo"; } >&5
3172 (eval "$ac_link_default") 2>&5
3173 ac_status=$?
3174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }
3176 then :
3177 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3178 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3179 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3180 # so that the user can short-circuit this test for compilers unknown to
3181 # Autoconf.
3182 for ac_file in $ac_files ''
3183 do
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3187 ;;
3188 [ab].out )
3189 # We found the default executable, but exeext='' is most
3190 # certainly right.
3191 break;;
3192 *.* )
3193 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3194 then :; else
3195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 fi
3197 # We set ac_cv_exeext here because the later test for it is not
3198 # safe: cross compilers may not add the suffix if given an '-o'
3199 # argument, so we may need to know it at that point already.
3200 # Even if this section looks crufty: it has the advantage of
3201 # actually working.
3202 break;;
3203 * )
3204 break;;
3205 esac
3206 done
3207 test "$ac_cv_exeext" = no && ac_cv_exeext=
3208
3209 else case e in #(
3210 e) ac_file='' ;;
3211 esac
3212 fi
3213 if test -z "$ac_file"
3214 then :
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf "%s\n" "no" >&6; }
3217 printf "%s\n" "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3222 as_fn_error 77 "C compiler cannot create executables
3223 See 'config.log' for more details" "$LINENO" 5; }
3224 else case e in #(
3225 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 printf "%s\n" "yes" >&6; } ;;
3227 esac
3228 fi
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3230 printf %s "checking for C compiler default output file name... " >&6; }
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3232 printf "%s\n" "$ac_file" >&6; }
3233 ac_exeext=$ac_cv_exeext
3234
3235 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3236 ac_clean_files=$ac_clean_files_save
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3238 printf %s "checking for suffix of executables... " >&6; }
3239 if { { ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 printf "%s\n" "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 then :
3251 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3252 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3253 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3254 # 'rm'.
3255 for ac_file in conftest.exe conftest conftest.*; do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 break;;
3261 * ) break;;
3262 esac
3263 done
3264 else case e in #(
3265 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3266 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3268 See 'config.log' for more details" "$LINENO" 5; } ;;
3269 esac
3270 fi
3271 rm -f conftest conftest$ac_cv_exeext
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3273 printf "%s\n" "$ac_cv_exeext" >&6; }
3274
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280 #include <stdio.h>
3281 int
3282 main (void)
3283 {
3284 FILE *f = fopen ("conftest.out", "w");
3285 if (!f)
3286 return 1;
3287 return ferror (f) || fclose (f) != 0;
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 ac_clean_files="$ac_clean_files conftest.out"
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3297 printf %s "checking whether we are cross compiling... " >&6; }
3298 if test "$cross_compiling" != yes; then
3299 { { ac_try="$ac_link"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 printf "%s\n" "$ac_try_echo"; } >&5
3306 (eval "$ac_link") 2>&5
3307 ac_status=$?
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 if { ac_try='./conftest$ac_cv_exeext'
3311 { { case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 printf "%s\n" "$ac_try_echo"; } >&5
3317 (eval "$ac_try") 2>&5
3318 ac_status=$?
3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; }; then
3321 cross_compiling=no
3322 else
3323 if test "$cross_compiling" = maybe; then
3324 cross_compiling=yes
3325 else
3326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3327 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3328 as_fn_error 77 "cannot run C compiled programs.
3329 If you meant to cross compile, use '--host'.
3330 See 'config.log' for more details" "$LINENO" 5; }
3331 fi
3332 fi
3333 fi
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335 printf "%s\n" "$cross_compiling" >&6; }
3336
3337 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3338 conftest.o conftest.obj conftest.out
3339 ac_clean_files=$ac_clean_files_save
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3341 printf %s "checking for suffix of object files... " >&6; }
3342 if test ${ac_cv_objext+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else case e in #(
3346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main (void)
3351 {
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.o conftest.obj
3358 if { { ac_try="$ac_compile"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 printf "%s\n" "$ac_try_echo"; } >&5
3365 (eval "$ac_compile") 2>&5
3366 ac_status=$?
3367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3369 then :
3370 for ac_file in conftest.o conftest.obj conftest.*; do
3371 test -f "$ac_file" || continue;
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375 break;;
3376 esac
3377 done
3378 else case e in #(
3379 e) printf "%s\n" "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3383 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot compute suffix of object files: cannot compile
3385 See 'config.log' for more details" "$LINENO" 5; } ;;
3386 esac
3387 fi
3388 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3389 esac
3390 fi
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 printf "%s\n" "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3396 printf %s "checking whether the compiler supports GNU C... " >&6; }
3397 if test ${ac_cv_c_compiler_gnu+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else case e in #(
3401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403
3404 int
3405 main (void)
3406 {
3407 #ifndef __GNUC__
3408 choke me
3409 #endif
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"
3416 then :
3417 ac_compiler_gnu=yes
3418 else case e in #(
3419 e) ac_compiler_gnu=no ;;
3420 esac
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3424 ;;
3425 esac
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3428 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431 if test $ac_compiler_gnu = yes; then
3432 GCC=yes
3433 else
3434 GCC=
3435 fi
3436 ac_test_CFLAGS=${CFLAGS+y}
3437 ac_save_CFLAGS=$CFLAGS
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3439 printf %s "checking whether $CC accepts -g... " >&6; }
3440 if test ${ac_cv_prog_cc_g+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else case e in #(
3444 e) ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3446 ac_cv_prog_cc_g=no
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main (void)
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"
3460 then :
3461 ac_cv_prog_cc_g=yes
3462 else case e in #(
3463 e) CFLAGS=""
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main (void)
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"
3476 then :
3477
3478 else case e in #(
3479 e) ac_c_werror_flag=$ac_save_c_werror_flag
3480 CFLAGS="-g"
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main (void)
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"
3493 then :
3494 ac_cv_prog_cc_g=yes
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3497 esac
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3500 esac
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3504 esac
3505 fi
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3507 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3508 if test $ac_test_CFLAGS; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3512 CFLAGS="-g -O2"
3513 else
3514 CFLAGS="-g"
3515 fi
3516 else
3517 if test "$GCC" = yes; then
3518 CFLAGS="-O2"
3519 else
3520 CFLAGS=
3521 fi
3522 fi
3523 ac_prog_cc_stdc=no
3524 if test x$ac_prog_cc_stdc = xno
3525 then :
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3527 printf %s "checking for $CC option to enable C11 features... " >&6; }
3528 if test ${ac_cv_prog_cc_c11+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else case e in #(
3532 e) ac_cv_prog_cc_c11=no
3533 ac_save_CC=$CC
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 $ac_c_conftest_c11_program
3537 _ACEOF
3538 for ac_arg in '' -std=gnu11
3539 do
3540 CC="$ac_save_CC $ac_arg"
3541 if ac_fn_c_try_compile "$LINENO"
3542 then :
3543 ac_cv_prog_cc_c11=$ac_arg
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.beam
3546 test "x$ac_cv_prog_cc_c11" != "xno" && break
3547 done
3548 rm -f conftest.$ac_ext
3549 CC=$ac_save_CC ;;
3550 esac
3551 fi
3552
3553 if test "x$ac_cv_prog_cc_c11" = xno
3554 then :
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3556 printf "%s\n" "unsupported" >&6; }
3557 else case e in #(
3558 e) if test "x$ac_cv_prog_cc_c11" = x
3559 then :
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3561 printf "%s\n" "none needed" >&6; }
3562 else case e in #(
3563 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3564 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3565 CC="$CC $ac_cv_prog_cc_c11" ;;
3566 esac
3567 fi
3568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3569 ac_prog_cc_stdc=c11 ;;
3570 esac
3571 fi
3572 fi
3573 if test x$ac_prog_cc_stdc = xno
3574 then :
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3576 printf %s "checking for $CC option to enable C99 features... " >&6; }
3577 if test ${ac_cv_prog_cc_c99+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else case e in #(
3581 e) ac_cv_prog_cc_c99=no
3582 ac_save_CC=$CC
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 $ac_c_conftest_c99_program
3586 _ACEOF
3587 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"
3591 then :
3592 ac_cv_prog_cc_c99=$ac_arg
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.beam
3595 test "x$ac_cv_prog_cc_c99" != "xno" && break
3596 done
3597 rm -f conftest.$ac_ext
3598 CC=$ac_save_CC ;;
3599 esac
3600 fi
3601
3602 if test "x$ac_cv_prog_cc_c99" = xno
3603 then :
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3605 printf "%s\n" "unsupported" >&6; }
3606 else case e in #(
3607 e) if test "x$ac_cv_prog_cc_c99" = x
3608 then :
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 printf "%s\n" "none needed" >&6; }
3611 else case e in #(
3612 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3613 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3614 CC="$CC $ac_cv_prog_cc_c99" ;;
3615 esac
3616 fi
3617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3618 ac_prog_cc_stdc=c99 ;;
3619 esac
3620 fi
3621 fi
3622 if test x$ac_prog_cc_stdc = xno
3623 then :
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3625 printf %s "checking for $CC option to enable C89 features... " >&6; }
3626 if test ${ac_cv_prog_cc_c89+y}
3627 then :
3628 printf %s "(cached) " >&6
3629 else case e in #(
3630 e) ac_cv_prog_cc_c89=no
3631 ac_save_CC=$CC
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634 $ac_c_conftest_c89_program
3635 _ACEOF
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637 do
3638 CC="$ac_save_CC $ac_arg"
3639 if ac_fn_c_try_compile "$LINENO"
3640 then :
3641 ac_cv_prog_cc_c89=$ac_arg
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.beam
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3645 done
3646 rm -f conftest.$ac_ext
3647 CC=$ac_save_CC ;;
3648 esac
3649 fi
3650
3651 if test "x$ac_cv_prog_cc_c89" = xno
3652 then :
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 printf "%s\n" "unsupported" >&6; }
3655 else case e in #(
3656 e) if test "x$ac_cv_prog_cc_c89" = x
3657 then :
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 printf "%s\n" "none needed" >&6; }
3660 else case e in #(
3661 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3662 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3663 CC="$CC $ac_cv_prog_cc_c89" ;;
3664 esac
3665 fi
3666 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3667 ac_prog_cc_stdc=c89 ;;
3668 esac
3669 fi
3670 fi
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3685 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3686 if test ${am_cv_prog_cc_c_o+y}
3687 then :
3688 printf %s "(cached) " >&6
3689 else case e in #(
3690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692
3693 int
3694 main (void)
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 # Make sure it works both with $CC and with simple cc.
3702 # Following AC_PROG_CC_C_O, we do the test twice because some
3703 # compilers refuse to overwrite an existing .o file with -o,
3704 # though they will create one.
3705 am_cv_prog_cc_c_o=yes
3706 for am_i in 1 2; do
3707 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3708 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } \
3712 && test -f conftest2.$ac_objext; then
3713 : OK
3714 else
3715 am_cv_prog_cc_c_o=no
3716 break
3717 fi
3718 done
3719 rm -f core conftest*
3720 unset am_i ;;
3721 esac
3722 fi
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3724 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3725 if test "$am_cv_prog_cc_c_o" != yes; then
3726 # Losing compiler, so override with the script.
3727 # FIXME: It is wrong to rewrite CC.
3728 # But if we don't then we get into trouble of one sort or another.
3729 # A longer-term fix would be to have automake use am__CC in this case,
3730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3731 CC="$am_aux_dir/compile $CC"
3732 fi
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739
3740
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
3742 printf %s "checking whether C compiler accepts -Wall... " >&6; }
3743 if test ${ax_cv_check_cflags___Wall+y}
3744 then :
3745 printf %s "(cached) " >&6
3746 else case e in #(
3747 e)
3748 ax_check_save_flags=$CFLAGS
3749 CFLAGS="$CFLAGS -Wall"
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752
3753 int
3754 main (void)
3755 {
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"
3762 then :
3763 ax_cv_check_cflags___Wall=yes
3764 else case e in #(
3765 e) ax_cv_check_cflags___Wall=no ;;
3766 esac
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3769 CFLAGS=$ax_check_save_flags ;;
3770 esac
3771 fi
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
3773 printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
3774 if test "x$ax_cv_check_cflags___Wall" = xyes
3775 then :
3776 CFLAGS="$CFLAGS -Wall"
3777 else case e in #(
3778 e) : ;;
3779 esac
3780 fi
3781
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
3783 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
3784 if test ${ax_cv_check_cflags___Wextra+y}
3785 then :
3786 printf %s "(cached) " >&6
3787 else case e in #(
3788 e)
3789 ax_check_save_flags=$CFLAGS
3790 CFLAGS="$CFLAGS -Wextra"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main (void)
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"
3803 then :
3804 ax_cv_check_cflags___Wextra=yes
3805 else case e in #(
3806 e) ax_cv_check_cflags___Wextra=no ;;
3807 esac
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3810 CFLAGS=$ax_check_save_flags ;;
3811 esac
3812 fi
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
3814 printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
3815 if test "x$ax_cv_check_cflags___Wextra" = xyes
3816 then :
3817 CFLAGS="$CFLAGS -Wextra"
3818 else case e in #(
3819 e) : ;;
3820 esac
3821 fi
3822
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat=2" >&5
3824 printf %s "checking whether C compiler accepts -Wformat=2... " >&6; }
3825 if test ${ax_cv_check_cflags___Wformat_2+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e)
3830 ax_check_save_flags=$CFLAGS
3831 CFLAGS="$CFLAGS -Wformat=2"
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834
3835 int
3836 main (void)
3837 {
3838
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_compile "$LINENO"
3844 then :
3845 ax_cv_check_cflags___Wformat_2=yes
3846 else case e in #(
3847 e) ax_cv_check_cflags___Wformat_2=no ;;
3848 esac
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3851 CFLAGS=$ax_check_save_flags ;;
3852 esac
3853 fi
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_2" >&5
3855 printf "%s\n" "$ax_cv_check_cflags___Wformat_2" >&6; }
3856 if test "x$ax_cv_check_cflags___Wformat_2" = xyes
3857 then :
3858 CFLAGS="$CFLAGS -Wformat=2"
3859 else case e in #(
3860 e) : ;;
3861 esac
3862 fi
3863
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
3865 printf %s "checking whether C compiler accepts -std=gnu99... " >&6; }
3866 if test ${ax_cv_check_cflags___std_gnu99+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e)
3871 ax_check_save_flags=$CFLAGS
3872 CFLAGS="$CFLAGS -std=gnu99"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main (void)
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"
3885 then :
3886 ax_cv_check_cflags___std_gnu99=yes
3887 else case e in #(
3888 e) ax_cv_check_cflags___std_gnu99=no ;;
3889 esac
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3892 CFLAGS=$ax_check_save_flags ;;
3893 esac
3894 fi
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
3896 printf "%s\n" "$ax_cv_check_cflags___std_gnu99" >&6; }
3897 if test "x$ax_cv_check_cflags___std_gnu99" = xyes
3898 then :
3899 CFLAGS="$CFLAGS -std=gnu99"
3900 else case e in #(
3901 e)
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5
3903 printf %s "checking whether C compiler accepts -std=c99... " >&6; }
3904 if test ${ax_cv_check_cflags___std_c99+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else case e in #(
3908 e)
3909 ax_check_save_flags=$CFLAGS
3910 CFLAGS="$CFLAGS -std=c99"
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 int
3915 main (void)
3916 {
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"
3923 then :
3924 ax_cv_check_cflags___std_c99=yes
3925 else case e in #(
3926 e) ax_cv_check_cflags___std_c99=no ;;
3927 esac
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3930 CFLAGS=$ax_check_save_flags ;;
3931 esac
3932 fi
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c99" >&5
3934 printf "%s\n" "$ax_cv_check_cflags___std_c99" >&6; }
3935 if test "x$ax_cv_check_cflags___std_c99" = xyes
3936 then :
3937 CFLAGS="$CFLAGS -std=c99"
3938 else case e in #(
3939 e) : ;;
3940 esac
3941 fi
3942
3943 ;;
3944 esac
3945 fi
3946
3947 ac_config_headers="$ac_config_headers libpkgconf/config.h"
3948
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3950 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3951 if test ${ac_cv_c_undeclared_builtin_options+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else case e in #(
3955 e) ac_save_CFLAGS=$CFLAGS
3956 ac_cv_c_undeclared_builtin_options='cannot detect'
3957 for ac_arg in '' -fno-builtin; do
3958 CFLAGS="$ac_save_CFLAGS $ac_arg"
3959 # This test program should *not* compile successfully.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962
3963 int
3964 main (void)
3965 {
3966 (void) strchr;
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"
3972 then :
3973
3974 else case e in #(
3975 e) # This test program should compile successfully.
3976 # No library function is consistently available on
3977 # freestanding implementations, so test against a dummy
3978 # declaration. Include always-available headers on the
3979 # off chance that they somehow elicit warnings.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #include <float.h>
3983 #include <limits.h>
3984 #include <stdarg.h>
3985 #include <stddef.h>
3986 extern void ac_decl (int, char *);
3987
3988 int
3989 main (void)
3990 {
3991 (void) ac_decl (0, (char *) 0);
3992 (void) ac_decl;
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"
3999 then :
4000 if test x"$ac_arg" = x
4001 then :
4002 ac_cv_c_undeclared_builtin_options='none needed'
4003 else case e in #(
4004 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4005 esac
4006 fi
4007 break
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4010 esac
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4013 done
4014 CFLAGS=$ac_save_CFLAGS
4015 ;;
4016 esac
4017 fi
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4019 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4020 case $ac_cv_c_undeclared_builtin_options in #(
4021 'cannot detect') :
4022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4023 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4024 as_fn_error $? "cannot make $CC report undeclared builtins
4025 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4026 'none needed') :
4027 ac_c_undeclared_builtin_options='' ;; #(
4028 *) :
4029 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4030 esac
4031
4032 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "#include <string.h>
4033 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4034 if test "x$ac_cv_have_decl_strlcpy" = xyes
4035 then :
4036 ac_have_decl=1
4037 else case e in #(
4038 e) ac_have_decl=0 ;;
4039 esac
4040 fi
4041 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
4042 ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "#include <string.h>
4043 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4044 if test "x$ac_cv_have_decl_strlcat" = xyes
4045 then :
4046 ac_have_decl=1
4047 else case e in #(
4048 e) ac_have_decl=0 ;;
4049 esac
4050 fi
4051 printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
4052 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "#include <string.h>
4053 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4054 if test "x$ac_cv_have_decl_strndup" = xyes
4055 then :
4056 ac_have_decl=1
4057 else case e in #(
4058 e) ac_have_decl=0 ;;
4059 esac
4060 fi
4061 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
4062
4063 ac_fn_check_decl "$LINENO" "pledge" "ac_cv_have_decl_pledge" "#include <unistd.h>
4064 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4065 if test "x$ac_cv_have_decl_pledge" = xyes
4066 then :
4067 ac_have_decl=1
4068 else case e in #(
4069 e) ac_have_decl=0 ;;
4070 esac
4071 fi
4072 printf "%s\n" "#define HAVE_DECL_PLEDGE $ac_have_decl" >>confdefs.h
4073 ac_fn_check_decl "$LINENO" "unveil" "ac_cv_have_decl_unveil" "#include <unistd.h>
4074 " "$ac_c_undeclared_builtin_options" "CFLAGS"
4075 if test "x$ac_cv_have_decl_unveil" = xyes
4076 then :
4077 ac_have_decl=1
4078 else case e in #(
4079 e) ac_have_decl=0 ;;
4080 esac
4081 fi
4082 printf "%s\n" "#define HAVE_DECL_UNVEIL $ac_have_decl" >>confdefs.h
4083
4084 ac_header= ac_cache=
4085 for ac_item in $ac_header_c_list
4086 do
4087 if test $ac_cache; then
4088 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4089 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4090 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4091 fi
4092 ac_header= ac_cache=
4093 elif test $ac_header; then
4094 ac_cache=$ac_item
4095 else
4096 ac_header=$ac_item
4097 fi
4098 done
4099
4100
4101
4102
4103
4104
4105
4106
4107 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4108 then :
4109
4110 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4111
4112 fi
4113 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4114 if test "x$ac_cv_have_decl_reallocarray" = xyes
4115 then :
4116 ac_have_decl=1
4117 else case e in #(
4118 e) ac_have_decl=0 ;;
4119 esac
4120 fi
4121 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
4122
4123 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4124 if test "x$ac_cv_header_sys_stat_h" = xyes
4125 then :
4126 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4127
4128 fi
4129
4130 am__api_version='1.17'
4131
4132
4133 # Find a good install program. We prefer a C program (faster),
4134 # so one script is as good as another. But avoid the broken or
4135 # incompatible versions:
4136 # SysV /etc/install, /usr/sbin/install
4137 # SunOS /usr/etc/install
4138 # IRIX /sbin/install
4139 # AIX /bin/install
4140 # AmigaOS /C/install, which installs bootblocks on floppy discs
4141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4144 # OS/2's system install, which has a completely different semantic
4145 # ./install, which can be erroneously created by make from ./install.sh.
4146 # Reject install programs that cannot install multiple files.
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4148 printf %s "checking for a BSD-compatible install... " >&6; }
4149 if test -z "$INSTALL"; then
4150 if test ${ac_cv_path_install+y}
4151 then :
4152 printf %s "(cached) " >&6
4153 else case e in #(
4154 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157 IFS=$as_save_IFS
4158 case $as_dir in #(((
4159 '') as_dir=./ ;;
4160 */) ;;
4161 *) as_dir=$as_dir/ ;;
4162 esac
4163 # Account for fact that we put trailing slashes in our PATH walk.
4164 case $as_dir in #((
4165 ./ | /[cC]/* | \
4166 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4167 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4168 /usr/ucb/* ) ;;
4169 *)
4170 # OSF1 and SCO ODT 3.0 have their own names for install.
4171 # Don't use installbsd from OSF since it installs stuff as root
4172 # by default.
4173 for ac_prog in ginstall scoinst install; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4176 if test $ac_prog = install &&
4177 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4178 # AIX install. It has an incompatible calling convention.
4179 :
4180 elif test $ac_prog = install &&
4181 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4182 # program-specific install script used by HP pwplus--don't use.
4183 :
4184 else
4185 rm -rf conftest.one conftest.two conftest.dir
4186 echo one > conftest.one
4187 echo two > conftest.two
4188 mkdir conftest.dir
4189 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4190 test -s conftest.one && test -s conftest.two &&
4191 test -s conftest.dir/conftest.one &&
4192 test -s conftest.dir/conftest.two
4193 then
4194 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4195 break 3
4196 fi
4197 fi
4198 fi
4199 done
4200 done
4201 ;;
4202 esac
4203
4204 done
4205 IFS=$as_save_IFS
4206
4207 rm -rf conftest.one conftest.two conftest.dir
4208 ;;
4209 esac
4210 fi
4211 if test ${ac_cv_path_install+y}; then
4212 INSTALL=$ac_cv_path_install
4213 else
4214 # As a last resort, use the slow shell script. Don't cache a
4215 # value for INSTALL within a source directory, because that will
4216 # break other packages using the cache if that directory is
4217 # removed, or if the value is a relative name.
4218 INSTALL=$ac_install_sh
4219 fi
4220 fi
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4222 printf "%s\n" "$INSTALL" >&6; }
4223
4224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4225 # It thinks the first close brace ends the variable substitution.
4226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4227
4228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4229
4230 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4231
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4233 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4234 if test ${am_cv_sleep_fractional_seconds+y}
4235 then :
4236 printf %s "(cached) " >&6
4237 else case e in #(
4238 e) if sleep 0.001 2>/dev/null
4239 then :
4240 am_cv_sleep_fractional_seconds=yes
4241 else case e in #(
4242 e) am_cv_sleep_fractional_seconds=no ;;
4243 esac
4244 fi
4245 ;;
4246 esac
4247 fi
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4249 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4250
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4252 printf %s "checking filesystem timestamp resolution... " >&6; }
4253 if test ${am_cv_filesystem_timestamp_resolution+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else case e in #(
4257 e) # Default to the worst case.
4258 am_cv_filesystem_timestamp_resolution=2
4259
4260 # Only try to go finer than 1 sec if sleep can do it.
4261 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4262 # - 1 sec is not much of a win compared to 2 sec, and
4263 # - it takes 2 seconds to perform the test whether 1 sec works.
4264 #
4265 # Instead, just use the default 2s on platforms that have 1s resolution,
4266 # accept the extra 1s delay when using $sleep in the Automake tests, in
4267 # exchange for not incurring the 2s delay for running the test for all
4268 # packages.
4269 #
4270 am_try_resolutions=
4271 if test "$am_cv_sleep_fractional_seconds" = yes; then
4272 # Even a millisecond often causes a bunch of false positives,
4273 # so just try a hundredth of a second. The time saved between .001 and
4274 # .01 is not terribly consequential.
4275 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4276 fi
4277
4278 # In order to catch current-generation FAT out, we must *modify* files
4279 # that already exist; the *creation* timestamp is finer. Use names
4280 # that make ls -t sort them differently when they have equal
4281 # timestamps than when they have distinct timestamps, keeping
4282 # in mind that ls -t prints the *newest* file first.
4283 rm -f conftest.ts?
4284 : > conftest.ts1
4285 : > conftest.ts2
4286 : > conftest.ts3
4287
4288 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4289 # clobber the current shell's arguments. (Outer-level square brackets
4290 # are removed by m4; they're present so that m4 does not expand
4291 # <dollar><star>; be careful, easy to get confused.)
4292 if (
4293 set X `ls -t conftest.ts[12]` &&
4294 {
4295 test "$*" != "X conftest.ts1 conftest.ts2" ||
4296 test "$*" != "X conftest.ts2 conftest.ts1";
4297 }
4298 ); then :; else
4299 # If neither matched, then we have a broken ls. This can happen
4300 # if, for instance, CONFIG_SHELL is bash and it inherits a
4301 # broken ls alias from the environment. This has actually
4302 # happened. Such a system could not be considered "sane".
4303 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4305 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4306 as_fn_error $? "ls -t produces unexpected output.
4307 Make sure there is not a broken ls alias in your environment.
4308 See 'config.log' for more details" "$LINENO" 5; }
4309 fi
4310
4311 for am_try_res in $am_try_resolutions; do
4312 # Any one fine-grained sleep might happen to cross the boundary
4313 # between two values of a coarser actual resolution, but if we do
4314 # two fine-grained sleeps in a row, at least one of them will fall
4315 # entirely within a coarse interval.
4316 echo alpha > conftest.ts1
4317 sleep $am_try_res
4318 echo beta > conftest.ts2
4319 sleep $am_try_res
4320 echo gamma > conftest.ts3
4321
4322 # We assume that 'ls -t' will make use of high-resolution
4323 # timestamps if the operating system supports them at all.
4324 if (set X `ls -t conftest.ts?` &&
4325 test "$2" = conftest.ts3 &&
4326 test "$3" = conftest.ts2 &&
4327 test "$4" = conftest.ts1); then
4328 #
4329 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4330 # because we don't need to test make.
4331 make_ok=true
4332 if test $am_try_res != 1; then
4333 # But if we've succeeded so far with a subsecond resolution, we
4334 # have one more thing to check: make. It can happen that
4335 # everything else supports the subsecond mtimes, but make doesn't;
4336 # notably on macOS, which ships make 3.81 from 2006 (the last one
4337 # released under GPLv2). https://bugs.gnu.org/68808
4338 #
4339 # We test $MAKE if it is defined in the environment, else "make".
4340 # It might get overridden later, but our hope is that in practice
4341 # it does not matter: it is the system "make" which is (by far)
4342 # the most likely to be broken, whereas if the user overrides it,
4343 # probably they did so with a better, or at least not worse, make.
4344 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4345 #
4346 # Create a Makefile (real tab character here):
4347 rm -f conftest.mk
4348 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4349 echo ' touch conftest.ts2' >>conftest.mk
4350 #
4351 # Now, running
4352 # touch conftest.ts1; touch conftest.ts2; make
4353 # should touch ts1 because ts2 is newer. This could happen by luck,
4354 # but most often, it will fail if make's support is insufficient. So
4355 # test for several consecutive successes.
4356 #
4357 # (We reuse conftest.ts[12] because we still want to modify existing
4358 # files, not create new ones, per above.)
4359 n=0
4360 make=${MAKE-make}
4361 until test $n -eq 3; do
4362 echo one > conftest.ts1
4363 sleep $am_try_res
4364 echo two > conftest.ts2 # ts2 should now be newer than ts1
4365 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4366 make_ok=false
4367 break # out of $n loop
4368 fi
4369 n=`expr $n + 1`
4370 done
4371 fi
4372 #
4373 if $make_ok; then
4374 # Everything we know to check worked out, so call this resolution good.
4375 am_cv_filesystem_timestamp_resolution=$am_try_res
4376 break # out of $am_try_res loop
4377 fi
4378 # Otherwise, we'll go on to check the next resolution.
4379 fi
4380 done
4381 rm -f conftest.ts?
4382 # (end _am_filesystem_timestamp_resolution)
4383 ;;
4384 esac
4385 fi
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4387 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4388
4389 # This check should not be cached, as it may vary across builds of
4390 # different projects.
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4392 printf %s "checking whether build environment is sane... " >&6; }
4393 # Reject unsafe characters in $srcdir or the absolute working directory
4394 # name. Accept space and tab only in the latter.
4395 am_lf='
4396 '
4397 case `pwd` in
4398 *[\\\"\#\$\&\'\`$am_lf]*)
4399 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4400 esac
4401 case $srcdir in
4402 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4403 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4404 esac
4405
4406 # Do 'set' in a subshell so we don't clobber the current shell's
4407 # arguments. Must try -L first in case configure is actually a
4408 # symlink; some systems play weird games with the mod time of symlinks
4409 # (eg FreeBSD returns the mod time of the symlink's containing
4410 # directory).
4411 am_build_env_is_sane=no
4412 am_has_slept=no
4413 rm -f conftest.file
4414 for am_try in 1 2; do
4415 echo "timestamp, slept: $am_has_slept" > conftest.file
4416 if (
4417 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4418 if test "$*" = "X"; then
4419 # -L didn't work.
4420 set X `ls -t "$srcdir/configure" conftest.file`
4421 fi
4422 test "$2" = conftest.file
4423 ); then
4424 am_build_env_is_sane=yes
4425 break
4426 fi
4427 # Just in case.
4428 sleep "$am_cv_filesystem_timestamp_resolution"
4429 am_has_slept=yes
4430 done
4431
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4433 printf "%s\n" "$am_build_env_is_sane" >&6; }
4434 if test "$am_build_env_is_sane" = no; then
4435 as_fn_error $? "newly created file is older than distributed files!
4436 Check your system clock" "$LINENO" 5
4437 fi
4438
4439 # If we didn't sleep, we still need to ensure time stamps of config.status and
4440 # generated files are strictly newer.
4441 am_sleep_pid=
4442 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4443 then :
4444
4445 else case e in #(
4446 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4447 am_sleep_pid=$!
4448 ;;
4449 esac
4450 fi
4451
4452 rm -f conftest.file
4453
4454 test "$program_prefix" != NONE &&
4455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4456 # Use a double $ so make ignores it.
4457 test "$program_suffix" != NONE &&
4458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4459 # Double any \ or $.
4460 # By default was 's,x,x', remove it if useless.
4461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4462 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4463
4464
4465 if test x"${MISSING+set}" != xset; then
4466 MISSING="\${SHELL} '$am_aux_dir/missing'"
4467 fi
4468 # Use eval to expand $SHELL
4469 if eval "$MISSING --is-lightweight"; then
4470 am_missing_run="$MISSING "
4471 else
4472 am_missing_run=
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4474 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4475 fi
4476
4477 if test x"${install_sh+set}" != xset; then
4478 case $am_aux_dir in
4479 *\ * | *\ *)
4480 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4481 *)
4482 install_sh="\${SHELL} $am_aux_dir/install-sh"
4483 esac
4484 fi
4485
4486 # Installed binaries are usually stripped using 'strip' when the user
4487 # run "make install-strip". However 'strip' might not be the right
4488 # tool to use in cross-compilation environments, therefore Automake
4489 # will honor the 'STRIP' environment variable to overrule this program.
4490 if test "$cross_compiling" != no; then
4491 if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4493 set dummy ${ac_tool_prefix}strip; ac_word=$2
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 printf %s "checking for $ac_word... " >&6; }
4496 if test ${ac_cv_prog_STRIP+y}
4497 then :
4498 printf %s "(cached) " >&6
4499 else case e in #(
4500 e) if test -n "$STRIP"; then
4501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 case $as_dir in #(((
4508 '') as_dir=./ ;;
4509 */) ;;
4510 *) as_dir=$as_dir/ ;;
4511 esac
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518 done
4519 done
4520 IFS=$as_save_IFS
4521
4522 fi ;;
4523 esac
4524 fi
4525 STRIP=$ac_cv_prog_STRIP
4526 if test -n "$STRIP"; then
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4528 printf "%s\n" "$STRIP" >&6; }
4529 else
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 printf "%s\n" "no" >&6; }
4532 fi
4533
4534
4535 fi
4536 if test -z "$ac_cv_prog_STRIP"; then
4537 ac_ct_STRIP=$STRIP
4538 # Extract the first word of "strip", so it can be a program name with args.
4539 set dummy strip; ac_word=$2
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 printf %s "checking for $ac_word... " >&6; }
4542 if test ${ac_cv_prog_ac_ct_STRIP+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else case e in #(
4546 e) if test -n "$ac_ct_STRIP"; then
4547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 case $as_dir in #(((
4554 '') as_dir=./ ;;
4555 */) ;;
4556 *) as_dir=$as_dir/ ;;
4557 esac
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_ac_ct_STRIP="strip"
4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi ;;
4569 esac
4570 fi
4571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4572 if test -n "$ac_ct_STRIP"; then
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4574 printf "%s\n" "$ac_ct_STRIP" >&6; }
4575 else
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 printf "%s\n" "no" >&6; }
4578 fi
4579
4580 if test "x$ac_ct_STRIP" = x; then
4581 STRIP=":"
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 STRIP=$ac_ct_STRIP
4590 fi
4591 else
4592 STRIP="$ac_cv_prog_STRIP"
4593 fi
4594
4595 fi
4596 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4597
4598
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4600 printf %s "checking for a race-free mkdir -p... " >&6; }
4601 if test -z "$MKDIR_P"; then
4602 if test ${ac_cv_path_mkdir+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else case e in #(
4606 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4608 do
4609 IFS=$as_save_IFS
4610 case $as_dir in #(((
4611 '') as_dir=./ ;;
4612 */) ;;
4613 *) as_dir=$as_dir/ ;;
4614 esac
4615 for ac_prog in mkdir gmkdir; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4618 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4619 'mkdir ('*'coreutils) '* | \
4620 *'BusyBox '* | \
4621 'mkdir (fileutils) '4.1*)
4622 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4623 break 3;;
4624 esac
4625 done
4626 done
4627 done
4628 IFS=$as_save_IFS
4629 ;;
4630 esac
4631 fi
4632
4633 test -d ./--version && rmdir ./--version
4634 if test ${ac_cv_path_mkdir+y}; then
4635 MKDIR_P="$ac_cv_path_mkdir -p"
4636 else
4637 # As a last resort, use plain mkdir -p,
4638 # in the hope it doesn't have the bugs of ancient mkdir.
4639 MKDIR_P='mkdir -p'
4640 fi
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4643 printf "%s\n" "$MKDIR_P" >&6; }
4644
4645 for ac_prog in gawk mawk nawk awk
4646 do
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648 set dummy $ac_prog; ac_word=$2
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 printf %s "checking for $ac_word... " >&6; }
4651 if test ${ac_cv_prog_AWK+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else case e in #(
4655 e) if test -n "$AWK"; then
4656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 case $as_dir in #(((
4663 '') as_dir=./ ;;
4664 */) ;;
4665 *) as_dir=$as_dir/ ;;
4666 esac
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_AWK="$ac_prog"
4670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi ;;
4678 esac
4679 fi
4680 AWK=$ac_cv_prog_AWK
4681 if test -n "$AWK"; then
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4683 printf "%s\n" "$AWK" >&6; }
4684 else
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 printf "%s\n" "no" >&6; }
4687 fi
4688
4689
4690 test -n "$AWK" && break
4691 done
4692
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4694 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4695 set x ${MAKE-make}
4696 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4697 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4698 then :
4699 printf %s "(cached) " >&6
4700 else case e in #(
4701 e) cat >conftest.make <<\_ACEOF
4702 SHELL = /bin/sh
4703 all:
4704 @echo '@@@%%%=$(MAKE)=@@@%%%'
4705 _ACEOF
4706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4707 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4708 *@@@%%%=?*=@@@%%%*)
4709 eval ac_cv_prog_make_${ac_make}_set=yes;;
4710 *)
4711 eval ac_cv_prog_make_${ac_make}_set=no;;
4712 esac
4713 rm -f conftest.make ;;
4714 esac
4715 fi
4716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718 printf "%s\n" "yes" >&6; }
4719 SET_MAKE=
4720 else
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 printf "%s\n" "no" >&6; }
4723 SET_MAKE="MAKE=${MAKE-make}"
4724 fi
4725
4726 rm -rf .tst 2>/dev/null
4727 mkdir .tst 2>/dev/null
4728 if test -d .tst; then
4729 am__leading_dot=.
4730 else
4731 am__leading_dot=_
4732 fi
4733 rmdir .tst 2>/dev/null
4734
4735 DEPDIR="${am__leading_dot}deps"
4736
4737 ac_config_commands="$ac_config_commands depfiles"
4738
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4740 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4741 cat > confinc.mk << 'END'
4742 am__doit:
4743 @echo this is the am__doit target >confinc.out
4744 .PHONY: am__doit
4745 END
4746 am__include="#"
4747 am__quote=
4748 # BSD make does it like this.
4749 echo '.include "confinc.mk" # ignored' > confmf.BSD
4750 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4751 echo 'include confinc.mk # ignored' > confmf.GNU
4752 _am_result=no
4753 for s in GNU BSD; do
4754 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4755 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }
4759 case $?:`cat confinc.out 2>/dev/null` in #(
4760 '0:this is the am__doit target') :
4761 case $s in #(
4762 BSD) :
4763 am__include='.include' am__quote='"' ;; #(
4764 *) :
4765 am__include='include' am__quote='' ;;
4766 esac ;; #(
4767 *) :
4768 ;;
4769 esac
4770 if test "$am__include" != "#"; then
4771 _am_result="yes ($s style)"
4772 break
4773 fi
4774 done
4775 rm -f confinc.* confmf.*
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4777 printf "%s\n" "${_am_result}" >&6; }
4778
4779 # Check whether --enable-dependency-tracking was given.
4780 if test ${enable_dependency_tracking+y}
4781 then :
4782 enableval=$enable_dependency_tracking;
4783 fi
4784
4785 if test "x$enable_dependency_tracking" != xno; then
4786 am_depcomp="$ac_aux_dir/depcomp"
4787 AMDEPBACKSLASH='\'
4788 am__nodep='_no'
4789 fi
4790 if test "x$enable_dependency_tracking" != xno; then
4791 AMDEP_TRUE=
4792 AMDEP_FALSE='#'
4793 else
4794 AMDEP_TRUE='#'
4795 AMDEP_FALSE=
4796 fi
4797
4798
4799 AM_DEFAULT_VERBOSITY=1
4800 # Check whether --enable-silent-rules was given.
4801 if test ${enable_silent_rules+y}
4802 then :
4803 enableval=$enable_silent_rules;
4804 fi
4805
4806 am_make=${MAKE-make}
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4808 printf %s "checking whether $am_make supports nested variables... " >&6; }
4809 if test ${am_cv_make_support_nested_variables+y}
4810 then :
4811 printf %s "(cached) " >&6
4812 else case e in #(
4813 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4814 BAR0=false
4815 BAR1=true
4816 V=1
4817 am__doit:
4818 @$(TRUE)
4819 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4820 am_cv_make_support_nested_variables=yes
4821 else
4822 am_cv_make_support_nested_variables=no
4823 fi ;;
4824 esac
4825 fi
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4827 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4828 AM_BACKSLASH='\'
4829
4830 am__rm_f_notfound=
4831 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4832 then :
4833
4834 else case e in #(
4835 e) am__rm_f_notfound='""' ;;
4836 esac
4837 fi
4838
4839
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4841 printf %s "checking xargs -n works... " >&6; }
4842 if test ${am_cv_xargs_n_works+y}
4843 then :
4844 printf %s "(cached) " >&6
4845 else case e in #(
4846 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4847 3"
4848 then :
4849 am_cv_xargs_n_works=yes
4850 else case e in #(
4851 e) am_cv_xargs_n_works=no ;;
4852 esac
4853 fi ;;
4854 esac
4855 fi
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4857 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4858 if test "$am_cv_xargs_n_works" = yes
4859 then :
4860 am__xargs_n='xargs -n'
4861 else case e in #(
4862 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4863 ;;
4864 esac
4865 fi
4866
4867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4869 # is not polluted with repeated "-I."
4870 am__isrc=' -I$(srcdir)'
4871 # test to see if srcdir already configured
4872 if test -f $srcdir/config.status; then
4873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4874 fi
4875 fi
4876
4877 # test whether we have cygpath
4878 if test -z "$CYGPATH_W"; then
4879 if (cygpath --version) >/dev/null 2>/dev/null; then
4880 CYGPATH_W='cygpath -w'
4881 else
4882 CYGPATH_W=echo
4883 fi
4884 fi
4885
4886
4887 # Define the identity of the package.
4888 PACKAGE='pkgconf'
4889 VERSION='2.5.1'
4890
4891
4892 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4893
4894
4895 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4896
4897 # Some tools Automake needs.
4898
4899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4900
4901
4902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4903
4904
4905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4906
4907
4908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4909
4910
4911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4912
4913 # For better backward compatibility. To be removed once Automake 1.9.x
4914 # dies out for good. For more background, see:
4915 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4916 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4917 mkdir_p='$(MKDIR_P)'
4918
4919 # We need awk for the "check" target (and possibly the TAP driver). The
4920 # system "awk" is bad on some platforms.
4921 # Always define AMTAR for backward compatibility. Yes, it's still used
4922 # in the wild :-( We should find a proper way to deprecate it ...
4923 AMTAR='$${TAR-tar}'
4924
4925
4926 # We'll loop over all known methods to create a tar archive until one works.
4927 _am_tools='gnutar pax cpio none'
4928
4929 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4930
4931
4932
4933
4934
4935 depcc="$CC" am_compiler_list=
4936
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4938 printf %s "checking dependency style of $depcc... " >&6; }
4939 if test ${am_cv_CC_dependencies_compiler_type+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else case e in #(
4943 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named 'D' -- because '-MD' means "put the output
4948 # in D".
4949 rm -rf conftest.dir
4950 mkdir conftest.dir
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4954 cd conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4960 # directory.
4961 mkdir sub
4962
4963 am_cv_CC_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966 fi
4967 am__universal=false
4968 case " $depcc " in #(
4969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4970 esac
4971
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4976 #
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4980 : > sub/conftest.c
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984 # Solaris 10 /bin/sh.
4985 echo '/* dummy */' > sub/conftst$i.h
4986 done
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle '-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs.
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4995 case $depmode in
4996 gcc)
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
4999 ;;
5000 nosideeffect)
5001 # After this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested.
5003 if test "x$enable_dependency_tracking" = xyes; then
5004 continue
5005 else
5006 break
5007 fi
5008 ;;
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok '-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5014 am__minus_obj=
5015 ;;
5016 none) break ;;
5017 esac
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thus:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036 am_cv_CC_dependencies_compiler_type=$depmode
5037 break
5038 fi
5039 fi
5040 done
5041
5042 cd ..
5043 rm -rf conftest.dir
5044 else
5045 am_cv_CC_dependencies_compiler_type=none
5046 fi
5047 ;;
5048 esac
5049 fi
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5051 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5053
5054 if
5055 test "x$enable_dependency_tracking" != xno \
5056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057 am__fastdepCC_TRUE=
5058 am__fastdepCC_FALSE='#'
5059 else
5060 am__fastdepCC_TRUE='#'
5061 am__fastdepCC_FALSE=
5062 fi
5063
5064
5065 # Variables for tags utilities; see am/tags.am
5066 if test -z "$CTAGS"; then
5067 CTAGS=ctags
5068 fi
5069
5070 if test -z "$ETAGS"; then
5071 ETAGS=etags
5072 fi
5073
5074 if test -z "$CSCOPE"; then
5075 CSCOPE=cscope
5076 fi
5077
5078
5079
5080
5081
5082
5083
5084
5085 AM_DEFAULT_VERBOSITY=0
5086 case `pwd` in
5087 *\ * | *\ *)
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5089 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5090 esac
5091
5092
5093
5094 macro_version='2.5.4'
5095 macro_revision='2.5.4'
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 ltmain=$ac_aux_dir/ltmain.sh
5111
5112
5113
5114 # Make sure we can run config.sub.
5115 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5116 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5117
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5119 printf %s "checking build system type... " >&6; }
5120 if test ${ac_cv_build+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else case e in #(
5124 e) ac_build_alias=$build_alias
5125 test "x$ac_build_alias" = x &&
5126 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5127 test "x$ac_build_alias" = x &&
5128 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5129 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5130 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5131 ;;
5132 esac
5133 fi
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5135 printf "%s\n" "$ac_cv_build" >&6; }
5136 case $ac_cv_build in
5137 *-*-*) ;;
5138 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5139 esac
5140 build=$ac_cv_build
5141 ac_save_IFS=$IFS; IFS='-'
5142 set x $ac_cv_build
5143 shift
5144 build_cpu=$1
5145 build_vendor=$2
5146 shift; shift
5147 # Remember, the first character of IFS is used to create $*,
5148 # except with old shells:
5149 build_os=$*
5150 IFS=$ac_save_IFS
5151 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5152
5153
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5155 printf %s "checking host system type... " >&6; }
5156 if test ${ac_cv_host+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else case e in #(
5160 e) if test "x$host_alias" = x; then
5161 ac_cv_host=$ac_cv_build
5162 else
5163 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5164 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5165 fi
5166 ;;
5167 esac
5168 fi
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5170 printf "%s\n" "$ac_cv_host" >&6; }
5171 case $ac_cv_host in
5172 *-*-*) ;;
5173 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5174 esac
5175 host=$ac_cv_host
5176 ac_save_IFS=$IFS; IFS='-'
5177 set x $ac_cv_host
5178 shift
5179 host_cpu=$1
5180 host_vendor=$2
5181 shift; shift
5182 # Remember, the first character of IFS is used to create $*,
5183 # except with old shells:
5184 host_os=$*
5185 IFS=$ac_save_IFS
5186 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5187
5188
5189 # Backslashify metacharacters that are still active within
5190 # double-quoted strings.
5191 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5192
5193 # Same as above, but do not quote variable references.
5194 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5195
5196 # Sed substitution to delay expansion of an escaped shell variable in a
5197 # double_quote_subst'ed string.
5198 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5199
5200 # Sed substitution to delay expansion of an escaped single quote.
5201 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5202
5203 # Sed substitution to avoid accidental globbing in evaled expressions
5204 no_glob_subst='s/\*/\\\*/g'
5205
5206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5207 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5208 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5209
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5211 printf %s "checking how to print strings... " >&6; }
5212 # Test print first, because it will be a builtin if present.
5213 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5214 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5215 ECHO='print -r --'
5216 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5217 ECHO='printf %s\n'
5218 else
5219 # Use this function as a fallback that always works.
5220 func_fallback_echo ()
5221 {
5222 eval 'cat <<_LTECHO_EOF
5223 $1
5224 _LTECHO_EOF'
5225 }
5226 ECHO='func_fallback_echo'
5227 fi
5228
5229 # func_echo_all arg...
5230 # Invoke $ECHO with all args, space-separated.
5231 func_echo_all ()
5232 {
5233 $ECHO ""
5234 }
5235
5236 case $ECHO in
5237 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5238 printf "%s\n" "printf" >&6; } ;;
5239 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5240 printf "%s\n" "print -r" >&6; } ;;
5241 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5242 printf "%s\n" "cat" >&6; } ;;
5243 esac
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5259 printf %s "checking for a sed that does not truncate output... " >&6; }
5260 if test ${ac_cv_path_SED+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5265 for ac_i in 1 2 3 4 5 6 7; do
5266 ac_script="$ac_script$as_nl$ac_script"
5267 done
5268 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5269 { ac_script=; unset ac_script;}
5270 if test -z "$SED"; then
5271 ac_path_SED_found=false
5272 # Loop through the user's path and test for each of PROGNAME-LIST
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 case $as_dir in #(((
5278 '') as_dir=./ ;;
5279 */) ;;
5280 *) as_dir=$as_dir/ ;;
5281 esac
5282 for ac_prog in sed gsed
5283 do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5286 as_fn_executable_p "$ac_path_SED" || continue
5287 # Check for GNU ac_path_SED and select it if it is found.
5288 # Check for GNU $ac_path_SED
5289 case `"$ac_path_SED" --version 2>&1` in #(
5290 *GNU*)
5291 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5292 #(
5293 *)
5294 ac_count=0
5295 printf %s 0123456789 >"conftest.in"
5296 while :
5297 do
5298 cat "conftest.in" "conftest.in" >"conftest.tmp"
5299 mv "conftest.tmp" "conftest.in"
5300 cp "conftest.in" "conftest.nl"
5301 printf "%s\n" '' >> "conftest.nl"
5302 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304 as_fn_arith $ac_count + 1 && ac_count=$as_val
5305 if test $ac_count -gt ${ac_path_SED_max-0}; then
5306 # Best one so far, save it but keep looking for a better one
5307 ac_cv_path_SED="$ac_path_SED"
5308 ac_path_SED_max=$ac_count
5309 fi
5310 # 10*(2^10) chars as input seems more than enough
5311 test $ac_count -gt 10 && break
5312 done
5313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 esac
5315
5316 $ac_path_SED_found && break 3
5317 done
5318 done
5319 done
5320 IFS=$as_save_IFS
5321 if test -z "$ac_cv_path_SED"; then
5322 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5323 fi
5324 else
5325 ac_cv_path_SED=$SED
5326 fi
5327 ;;
5328 esac
5329 fi
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5331 printf "%s\n" "$ac_cv_path_SED" >&6; }
5332 SED="$ac_cv_path_SED"
5333 rm -f conftest.sed
5334
5335 test -z "$SED" && SED=sed
5336 Xsed="$SED -e 1s/^X//"
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5349 printf %s "checking for grep that handles long lines and -e... " >&6; }
5350 if test ${ac_cv_path_GREP+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else case e in #(
5354 e) if test -z "$GREP"; then
5355 ac_path_GREP_found=false
5356 # Loop through the user's path and test for each of PROGNAME-LIST
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5359 do
5360 IFS=$as_save_IFS
5361 case $as_dir in #(((
5362 '') as_dir=./ ;;
5363 */) ;;
5364 *) as_dir=$as_dir/ ;;
5365 esac
5366 for ac_prog in grep ggrep
5367 do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5370 as_fn_executable_p "$ac_path_GREP" || continue
5371 # Check for GNU ac_path_GREP and select it if it is found.
5372 # Check for GNU $ac_path_GREP
5373 case `"$ac_path_GREP" --version 2>&1` in #(
5374 *GNU*)
5375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5376 #(
5377 *)
5378 ac_count=0
5379 printf %s 0123456789 >"conftest.in"
5380 while :
5381 do
5382 cat "conftest.in" "conftest.in" >"conftest.tmp"
5383 mv "conftest.tmp" "conftest.in"
5384 cp "conftest.in" "conftest.nl"
5385 printf "%s\n" 'GREP' >> "conftest.nl"
5386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388 as_fn_arith $ac_count + 1 && ac_count=$as_val
5389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5390 # Best one so far, save it but keep looking for a better one
5391 ac_cv_path_GREP="$ac_path_GREP"
5392 ac_path_GREP_max=$ac_count
5393 fi
5394 # 10*(2^10) chars as input seems more than enough
5395 test $ac_count -gt 10 && break
5396 done
5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398 esac
5399
5400 $ac_path_GREP_found && break 3
5401 done
5402 done
5403 done
5404 IFS=$as_save_IFS
5405 if test -z "$ac_cv_path_GREP"; then
5406 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407 fi
5408 else
5409 ac_cv_path_GREP=$GREP
5410 fi
5411 ;;
5412 esac
5413 fi
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5415 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5416 GREP="$ac_cv_path_GREP"
5417
5418
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5420 printf %s "checking for egrep... " >&6; }
5421 if test ${ac_cv_path_EGREP+y}
5422 then :
5423 printf %s "(cached) " >&6
5424 else case e in #(
5425 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5426 then ac_cv_path_EGREP="$GREP -E"
5427 else
5428 if test -z "$EGREP"; then
5429 ac_path_EGREP_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433 do
5434 IFS=$as_save_IFS
5435 case $as_dir in #(((
5436 '') as_dir=./ ;;
5437 */) ;;
5438 *) as_dir=$as_dir/ ;;
5439 esac
5440 for ac_prog in egrep
5441 do
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5444 as_fn_executable_p "$ac_path_EGREP" || continue
5445 # Check for GNU ac_path_EGREP and select it if it is found.
5446 # Check for GNU $ac_path_EGREP
5447 case `"$ac_path_EGREP" --version 2>&1` in #(
5448 *GNU*)
5449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5450 #(
5451 *)
5452 ac_count=0
5453 printf %s 0123456789 >"conftest.in"
5454 while :
5455 do
5456 cat "conftest.in" "conftest.in" >"conftest.tmp"
5457 mv "conftest.tmp" "conftest.in"
5458 cp "conftest.in" "conftest.nl"
5459 printf "%s\n" 'EGREP' >> "conftest.nl"
5460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5462 as_fn_arith $ac_count + 1 && ac_count=$as_val
5463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5464 # Best one so far, save it but keep looking for a better one
5465 ac_cv_path_EGREP="$ac_path_EGREP"
5466 ac_path_EGREP_max=$ac_count
5467 fi
5468 # 10*(2^10) chars as input seems more than enough
5469 test $ac_count -gt 10 && break
5470 done
5471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5472 esac
5473
5474 $ac_path_EGREP_found && break 3
5475 done
5476 done
5477 done
5478 IFS=$as_save_IFS
5479 if test -z "$ac_cv_path_EGREP"; then
5480 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5481 fi
5482 else
5483 ac_cv_path_EGREP=$EGREP
5484 fi
5485
5486 fi ;;
5487 esac
5488 fi
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5490 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5491 EGREP="$ac_cv_path_EGREP"
5492
5493 EGREP_TRADITIONAL=$EGREP
5494 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5495
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5497 printf %s "checking for fgrep... " >&6; }
5498 if test ${ac_cv_path_FGREP+y}
5499 then :
5500 printf %s "(cached) " >&6
5501 else case e in #(
5502 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5503 then ac_cv_path_FGREP="$GREP -F"
5504 else
5505 if test -z "$FGREP"; then
5506 ac_path_FGREP_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5510 do
5511 IFS=$as_save_IFS
5512 case $as_dir in #(((
5513 '') as_dir=./ ;;
5514 */) ;;
5515 *) as_dir=$as_dir/ ;;
5516 esac
5517 for ac_prog in fgrep
5518 do
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5521 as_fn_executable_p "$ac_path_FGREP" || continue
5522 # Check for GNU ac_path_FGREP and select it if it is found.
5523 # Check for GNU $ac_path_FGREP
5524 case `"$ac_path_FGREP" --version 2>&1` in #(
5525 *GNU*)
5526 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5527 #(
5528 *)
5529 ac_count=0
5530 printf %s 0123456789 >"conftest.in"
5531 while :
5532 do
5533 cat "conftest.in" "conftest.in" >"conftest.tmp"
5534 mv "conftest.tmp" "conftest.in"
5535 cp "conftest.in" "conftest.nl"
5536 printf "%s\n" 'FGREP' >> "conftest.nl"
5537 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539 as_fn_arith $ac_count + 1 && ac_count=$as_val
5540 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5541 # Best one so far, save it but keep looking for a better one
5542 ac_cv_path_FGREP="$ac_path_FGREP"
5543 ac_path_FGREP_max=$ac_count
5544 fi
5545 # 10*(2^10) chars as input seems more than enough
5546 test $ac_count -gt 10 && break
5547 done
5548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 esac
5550
5551 $ac_path_FGREP_found && break 3
5552 done
5553 done
5554 done
5555 IFS=$as_save_IFS
5556 if test -z "$ac_cv_path_FGREP"; then
5557 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5558 fi
5559 else
5560 ac_cv_path_FGREP=$FGREP
5561 fi
5562
5563 fi ;;
5564 esac
5565 fi
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5567 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5568 FGREP="$ac_cv_path_FGREP"
5569
5570
5571 test -z "$GREP" && GREP=grep
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 # Check whether --with-gnu-ld was given.
5592 if test ${with_gnu_ld+y}
5593 then :
5594 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5595 else case e in #(
5596 e) with_gnu_ld=no ;;
5597 esac
5598 fi
5599
5600 ac_prog=ld
5601 if test yes = "$GCC"; then
5602 # Check if gcc -print-prog-name=ld gives a path.
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5604 printf %s "checking for ld used by $CC... " >&6; }
5605 case $host in
5606 *-*-mingw* | *-*-windows*)
5607 # gcc leaves a trailing carriage return, which upsets mingw
5608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5609 *)
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5611 esac
5612 case $ac_prog in
5613 # Accept absolute paths.
5614 [\\/]* | ?:[\\/]*)
5615 re_direlt='/[^/][^/]*/\.\./'
5616 # Canonicalize the pathname of ld
5617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5620 done
5621 test -z "$LD" && LD=$ac_prog
5622 ;;
5623 "")
5624 # If it fails, then pretend we aren't using GCC.
5625 ac_prog=ld
5626 ;;
5627 *)
5628 # If it is relative, then search for the first ld in PATH.
5629 with_gnu_ld=unknown
5630 ;;
5631 esac
5632 elif test yes = "$with_gnu_ld"; then
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5634 printf %s "checking for GNU ld... " >&6; }
5635 else
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5637 printf %s "checking for non-GNU ld... " >&6; }
5638 fi
5639 if test ${lt_cv_path_LD+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else case e in #(
5643 e) if test -z "$LD"; then
5644 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5645 for ac_dir in $PATH; do
5646 IFS=$lt_save_ifs
5647 test -z "$ac_dir" && ac_dir=.
5648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5649 lt_cv_path_LD=$ac_dir/$ac_prog
5650 # Check to see if the program is GNU ld. I'd rather use --version,
5651 # but apparently some variants of GNU ld only accept -v.
5652 # Break only if it was the GNU/non-GNU ld that we prefer.
5653 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5654 *GNU* | *'with BFD'*)
5655 test no != "$with_gnu_ld" && break
5656 ;;
5657 *)
5658 test yes != "$with_gnu_ld" && break
5659 ;;
5660 esac
5661 fi
5662 done
5663 IFS=$lt_save_ifs
5664 else
5665 lt_cv_path_LD=$LD # Let the user override the test with a path.
5666 fi ;;
5667 esac
5668 fi
5669
5670 LD=$lt_cv_path_LD
5671 if test -n "$LD"; then
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5673 printf "%s\n" "$LD" >&6; }
5674 else
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 printf "%s\n" "no" >&6; }
5677 fi
5678 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5680 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5681 if test ${lt_cv_prog_gnu_ld+y}
5682 then :
5683 printf %s "(cached) " >&6
5684 else case e in #(
5685 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5686 case `$LD -v 2>&1 </dev/null` in
5687 *GNU* | *'with BFD'*)
5688 lt_cv_prog_gnu_ld=yes
5689 ;;
5690 *)
5691 lt_cv_prog_gnu_ld=no
5692 ;;
5693 esac ;;
5694 esac
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5697 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5698 with_gnu_ld=$lt_cv_prog_gnu_ld
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5709 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5710 if test ${lt_cv_path_NM+y}
5711 then :
5712 printf %s "(cached) " >&6
5713 else case e in #(
5714 e) if test -n "$NM"; then
5715 # Let the user override the test.
5716 lt_cv_path_NM=$NM
5717 else
5718 lt_nm_to_check=${ac_tool_prefix}nm
5719 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5720 lt_nm_to_check="$lt_nm_to_check nm"
5721 fi
5722 for lt_tmp_nm in $lt_nm_to_check; do
5723 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5724 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5725 IFS=$lt_save_ifs
5726 test -z "$ac_dir" && ac_dir=.
5727 tmp_nm=$ac_dir/$lt_tmp_nm
5728 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5729 # Check to see if the nm accepts a BSD-compat flag.
5730 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5731 # nm: unknown option "B" ignored
5732 # Tru64's nm complains that /dev/null is an invalid object file
5733 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5734 case $build_os in
5735 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5736 *) lt_bad_file=/dev/null ;;
5737 esac
5738 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5739 *$lt_bad_file* | *'Invalid file or object type'*)
5740 lt_cv_path_NM="$tmp_nm -B"
5741 break 2
5742 ;;
5743 *)
5744 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5745 */dev/null*)
5746 lt_cv_path_NM="$tmp_nm -p"
5747 break 2
5748 ;;
5749 *)
5750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5751 continue # so that we can try to find one that supports BSD flags
5752 ;;
5753 esac
5754 ;;
5755 esac
5756 fi
5757 done
5758 IFS=$lt_save_ifs
5759 done
5760 : ${lt_cv_path_NM=no}
5761 fi ;;
5762 esac
5763 fi
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5765 printf "%s\n" "$lt_cv_path_NM" >&6; }
5766 if test no != "$lt_cv_path_NM"; then
5767 NM=$lt_cv_path_NM
5768 else
5769 # Didn't find any BSD compatible name lister, look for dumpbin.
5770 if test -n "$DUMPBIN"; then :
5771 # Let the user override the test.
5772 else
5773 if test -n "$ac_tool_prefix"; then
5774 for ac_prog in dumpbin "link -dump"
5775 do
5776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 printf %s "checking for $ac_word... " >&6; }
5780 if test ${ac_cv_prog_DUMPBIN+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else case e in #(
5784 e) if test -n "$DUMPBIN"; then
5785 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790 IFS=$as_save_IFS
5791 case $as_dir in #(((
5792 '') as_dir=./ ;;
5793 */) ;;
5794 *) as_dir=$as_dir/ ;;
5795 esac
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802 done
5803 done
5804 IFS=$as_save_IFS
5805
5806 fi ;;
5807 esac
5808 fi
5809 DUMPBIN=$ac_cv_prog_DUMPBIN
5810 if test -n "$DUMPBIN"; then
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5812 printf "%s\n" "$DUMPBIN" >&6; }
5813 else
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 printf "%s\n" "no" >&6; }
5816 fi
5817
5818
5819 test -n "$DUMPBIN" && break
5820 done
5821 fi
5822 if test -z "$DUMPBIN"; then
5823 ac_ct_DUMPBIN=$DUMPBIN
5824 for ac_prog in dumpbin "link -dump"
5825 do
5826 # Extract the first word of "$ac_prog", so it can be a program name with args.
5827 set dummy $ac_prog; ac_word=$2
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 printf %s "checking for $ac_word... " >&6; }
5830 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) if test -n "$ac_ct_DUMPBIN"; then
5835 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840 IFS=$as_save_IFS
5841 case $as_dir in #(((
5842 '') as_dir=./ ;;
5843 */) ;;
5844 *) as_dir=$as_dir/ ;;
5845 esac
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi ;;
5857 esac
5858 fi
5859 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5860 if test -n "$ac_ct_DUMPBIN"; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5862 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5863 else
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 printf "%s\n" "no" >&6; }
5866 fi
5867
5868
5869 test -n "$ac_ct_DUMPBIN" && break
5870 done
5871
5872 if test "x$ac_ct_DUMPBIN" = x; then
5873 DUMPBIN=":"
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881 DUMPBIN=$ac_ct_DUMPBIN
5882 fi
5883 fi
5884
5885 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5886 *COFF*)
5887 DUMPBIN="$DUMPBIN -symbols -headers"
5888 ;;
5889 *)
5890 DUMPBIN=:
5891 ;;
5892 esac
5893 fi
5894
5895 if test : != "$DUMPBIN"; then
5896 NM=$DUMPBIN
5897 fi
5898 fi
5899 test -z "$NM" && NM=nm
5900
5901
5902
5903
5904
5905
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5907 printf %s "checking the name lister ($NM) interface... " >&6; }
5908 if test ${lt_cv_nm_interface+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else case e in #(
5912 e) lt_cv_nm_interface="BSD nm"
5913 echo "int some_variable = 0;" > conftest.$ac_ext
5914 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5915 (eval "$ac_compile" 2>conftest.err)
5916 cat conftest.err >&5
5917 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5918 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5921 cat conftest.out >&5
5922 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5923 lt_cv_nm_interface="MS dumpbin"
5924 fi
5925 rm -f conftest* ;;
5926 esac
5927 fi
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5929 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5930
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5932 printf %s "checking whether ln -s works... " >&6; }
5933 LN_S=$as_ln_s
5934 if test "$LN_S" = "ln -s"; then
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 printf "%s\n" "yes" >&6; }
5937 else
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5939 printf "%s\n" "no, using $LN_S" >&6; }
5940 fi
5941
5942 # find the maximum length of command line arguments
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5944 printf %s "checking the maximum length of command line arguments... " >&6; }
5945 if test ${lt_cv_sys_max_cmd_len+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else case e in #(
5949 e) i=0
5950 teststring=ABCD
5951
5952 case $build_os in
5953 msdosdjgpp*)
5954 # On DJGPP, this test can blow up pretty badly due to problems in libc
5955 # (any single argument exceeding 2000 bytes causes a buffer overrun
5956 # during glob expansion). Even if it were fixed, the result of this
5957 # check would be larger than it should be.
5958 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5959 ;;
5960
5961 gnu* | ironclad*)
5962 # Under GNU Hurd and Ironclad, this test is not required because there
5963 # is no limit to the length of command line arguments.
5964 # Libtool will interpret -1 as no limit whatsoever
5965 lt_cv_sys_max_cmd_len=-1;
5966 ;;
5967
5968 cygwin* | mingw* | windows* | cegcc*)
5969 # On Win9x/ME, this test blows up -- it succeeds, but takes
5970 # about 5 minutes as the teststring grows exponentially.
5971 # Worse, since 9x/ME are not pre-emptively multitasking,
5972 # you end up with a "frozen" computer, even though with patience
5973 # the test eventually succeeds (with a max line length of 256k).
5974 # Instead, let's just punt: use the minimum linelength reported by
5975 # all of the supported platforms: 8192 (on NT/2K/XP).
5976 lt_cv_sys_max_cmd_len=8192;
5977 ;;
5978
5979 mint*)
5980 # On MiNT this can take a long time and run out of memory.
5981 lt_cv_sys_max_cmd_len=8192;
5982 ;;
5983
5984 amigaos*)
5985 # On AmigaOS with pdksh, this test takes hours, literally.
5986 # So we just punt and use a minimum line length of 8192.
5987 lt_cv_sys_max_cmd_len=8192;
5988 ;;
5989
5990 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5991 # This has been around since 386BSD, at least. Likely further.
5992 if test -x /sbin/sysctl; then
5993 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5994 elif test -x /usr/sbin/sysctl; then
5995 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5996 else
5997 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5998 fi
5999 # And add a safety zone
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6002 ;;
6003
6004 interix*)
6005 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6006 lt_cv_sys_max_cmd_len=196608
6007 ;;
6008
6009 os2*)
6010 # The test takes a long time on OS/2.
6011 lt_cv_sys_max_cmd_len=8192
6012 ;;
6013
6014 osf*)
6015 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6016 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6017 # nice to cause kernel panics so lets avoid the loop below.
6018 # First set a reasonable default.
6019 lt_cv_sys_max_cmd_len=16384
6020 #
6021 if test -x /sbin/sysconfig; then
6022 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6023 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6024 esac
6025 fi
6026 ;;
6027 sco3.2v5*)
6028 lt_cv_sys_max_cmd_len=102400
6029 ;;
6030 sysv5* | sco5v6* | sysv4.2uw2*)
6031 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6032 if test -n "$kargmax"; then
6033 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6034 else
6035 lt_cv_sys_max_cmd_len=32768
6036 fi
6037 ;;
6038 *)
6039 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6040 if test -n "$lt_cv_sys_max_cmd_len" && \
6041 test undefined != "$lt_cv_sys_max_cmd_len"; then
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044 else
6045 # Make teststring a little bigger before we do anything with it.
6046 # a 1K string should be a reasonable start.
6047 for i in 1 2 3 4 5 6 7 8; do
6048 teststring=$teststring$teststring
6049 done
6050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6051 # If test is not a shell built-in, we'll probably end up computing a
6052 # maximum length that is only half of the actual maximum length, but
6053 # we can't tell.
6054 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6055 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6056 test 17 != "$i" # 1/2 MB should be enough
6057 do
6058 i=`expr $i + 1`
6059 teststring=$teststring$teststring
6060 done
6061 # Only check the string length outside the loop.
6062 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6063 teststring=
6064 # Add a significant safety factor because C++ compilers can tack on
6065 # massive amounts of additional arguments before passing them to the
6066 # linker. It appears as though 1/2 is a usable value.
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6068 fi
6069 ;;
6070 esac
6071 ;;
6072 esac
6073 fi
6074
6075 if test -n "$lt_cv_sys_max_cmd_len"; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6077 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6078 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6080 printf "%s\n" "none" >&6; }
6081 fi
6082 max_cmd_len=$lt_cv_sys_max_cmd_len
6083
6084
6085
6086
6087
6088
6089 : ${CP="cp -f"}
6090 : ${MV="mv -f"}
6091 : ${RM="rm -f"}
6092
6093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6094 lt_unset=unset
6095 else
6096 lt_unset=false
6097 fi
6098
6099
6100
6101
6102
6103 # test EBCDIC or ASCII
6104 case `echo X|tr X '\101'` in
6105 A) # ASCII based system
6106 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6107 lt_SP2NL='tr \040 \012'
6108 lt_NL2SP='tr \015\012 \040\040'
6109 ;;
6110 *) # EBCDIC based system
6111 lt_SP2NL='tr \100 \n'
6112 lt_NL2SP='tr \r\n \100\100'
6113 ;;
6114 esac
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6125 printf %s "checking how to convert $build file names to $host format... " >&6; }
6126 if test ${lt_cv_to_host_file_cmd+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else case e in #(
6130 e) case $host in
6131 *-*-mingw* )
6132 case $build in
6133 *-*-mingw* | *-*-windows* ) # actually msys
6134 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6135 ;;
6136 *-*-cygwin* )
6137 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6138 ;;
6139 * ) # otherwise, assume *nix
6140 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6141 ;;
6142 esac
6143 ;;
6144 *-*-cygwin* )
6145 case $build in
6146 *-*-mingw* | *-*-windows* ) # actually msys
6147 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6148 ;;
6149 *-*-cygwin* )
6150 lt_cv_to_host_file_cmd=func_convert_file_noop
6151 ;;
6152 * ) # otherwise, assume *nix
6153 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6154 ;;
6155 esac
6156 ;;
6157 * ) # unhandled hosts (and "normal" native builds)
6158 lt_cv_to_host_file_cmd=func_convert_file_noop
6159 ;;
6160 esac
6161 ;;
6162 esac
6163 fi
6164
6165 to_host_file_cmd=$lt_cv_to_host_file_cmd
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6167 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6168
6169
6170
6171
6172
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6174 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6175 if test ${lt_cv_to_tool_file_cmd+y}
6176 then :
6177 printf %s "(cached) " >&6
6178 else case e in #(
6179 e) #assume ordinary cross tools, or native build.
6180 lt_cv_to_tool_file_cmd=func_convert_file_noop
6181 case $host in
6182 *-*-mingw* | *-*-windows* )
6183 case $build in
6184 *-*-mingw* | *-*-windows* ) # actually msys
6185 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6186 ;;
6187 esac
6188 ;;
6189 esac
6190 ;;
6191 esac
6192 fi
6193
6194 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6196 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6197
6198
6199
6200
6201
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6203 printf %s "checking for $LD option to reload object files... " >&6; }
6204 if test ${lt_cv_ld_reload_flag+y}
6205 then :
6206 printf %s "(cached) " >&6
6207 else case e in #(
6208 e) lt_cv_ld_reload_flag='-r' ;;
6209 esac
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6212 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6213 reload_flag=$lt_cv_ld_reload_flag
6214 case $reload_flag in
6215 "" | " "*) ;;
6216 *) reload_flag=" $reload_flag" ;;
6217 esac
6218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6219 case $host_os in
6220 cygwin* | mingw* | windows* | pw32* | cegcc*)
6221 if test yes != "$GCC"; then
6222 reload_cmds=false
6223 fi
6224 ;;
6225 darwin*)
6226 if test yes = "$GCC"; then
6227 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6228 else
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 fi
6231 ;;
6232 esac
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 # Extract the first word of "file", so it can be a program name with args.
6243 set dummy file; ac_word=$2
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 printf %s "checking for $ac_word... " >&6; }
6246 if test ${ac_cv_prog_FILECMD+y}
6247 then :
6248 printf %s "(cached) " >&6
6249 else case e in #(
6250 e) if test -n "$FILECMD"; then
6251 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 case $as_dir in #(((
6258 '') as_dir=./ ;;
6259 */) ;;
6260 *) as_dir=$as_dir/ ;;
6261 esac
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_FILECMD="file"
6265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6273 fi ;;
6274 esac
6275 fi
6276 FILECMD=$ac_cv_prog_FILECMD
6277 if test -n "$FILECMD"; then
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6279 printf "%s\n" "$FILECMD" >&6; }
6280 else
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 printf "%s\n" "no" >&6; }
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 printf %s "checking for $ac_word... " >&6; }
6297 if test ${ac_cv_prog_OBJDUMP+y}
6298 then :
6299 printf %s "(cached) " >&6
6300 else case e in #(
6301 e) if test -n "$OBJDUMP"; then
6302 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 case $as_dir in #(((
6309 '') as_dir=./ ;;
6310 */) ;;
6311 *) as_dir=$as_dir/ ;;
6312 esac
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi ;;
6324 esac
6325 fi
6326 OBJDUMP=$ac_cv_prog_OBJDUMP
6327 if test -n "$OBJDUMP"; then
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6329 printf "%s\n" "$OBJDUMP" >&6; }
6330 else
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 printf "%s\n" "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_OBJDUMP"; then
6338 ac_ct_OBJDUMP=$OBJDUMP
6339 # Extract the first word of "objdump", so it can be a program name with args.
6340 set dummy objdump; ac_word=$2
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 printf %s "checking for $ac_word... " >&6; }
6343 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6344 then :
6345 printf %s "(cached) " >&6
6346 else case e in #(
6347 e) if test -n "$ac_ct_OBJDUMP"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 case $as_dir in #(((
6355 '') as_dir=./ ;;
6356 */) ;;
6357 *) as_dir=$as_dir/ ;;
6358 esac
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi ;;
6370 esac
6371 fi
6372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6373 if test -n "$ac_ct_OBJDUMP"; then
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6375 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6376 else
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 printf "%s\n" "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_OBJDUMP" = x; then
6382 OBJDUMP="false"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 OBJDUMP=$ac_ct_OBJDUMP
6391 fi
6392 else
6393 OBJDUMP="$ac_cv_prog_OBJDUMP"
6394 fi
6395
6396 test -z "$OBJDUMP" && OBJDUMP=objdump
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6407 printf %s "checking how to recognize dependent libraries... " >&6; }
6408 if test ${lt_cv_deplibs_check_method+y}
6409 then :
6410 printf %s "(cached) " >&6
6411 else case e in #(
6412 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6413 lt_cv_file_magic_test_file=
6414 lt_cv_deplibs_check_method='unknown'
6415 # Need to set the preceding variable on all platforms that support
6416 # interlibrary dependencies.
6417 # 'none' -- dependencies not supported.
6418 # 'unknown' -- same as none, but documents that we really don't know.
6419 # 'pass_all' -- all dependencies passed with no checks.
6420 # 'file_magic [[regex]]' -- check by looking for files in library path
6421 # that responds to the $file_magic_cmd with a given extended regex.
6422 # If you have 'file' or equivalent on your system and you're not sure
6423 # whether 'pass_all' will *always* work, you probably want this one.
6424
6425 case $host_os in
6426 aix[4-9]*)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429
6430 beos*)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
6433
6434 bsdi[45]*)
6435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6436 lt_cv_file_magic_cmd='$FILECMD -L'
6437 lt_cv_file_magic_test_file=/shlib/libc.so
6438 ;;
6439
6440 cygwin*)
6441 # func_win32_libid is a shell function defined in ltmain.sh
6442 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6443 lt_cv_file_magic_cmd='func_win32_libid'
6444 ;;
6445
6446 mingw* | windows* | pw32*)
6447 # Base MSYS/MinGW do not provide the 'file' command needed by
6448 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6449 # unless we find 'file', for example because we are cross-compiling.
6450 if ( file / ) >/dev/null 2>&1; then
6451 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6452 lt_cv_file_magic_cmd='func_win32_libid'
6453 else
6454 # Keep this pattern in sync with the one in func_win32_libid.
6455 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6456 lt_cv_file_magic_cmd='$OBJDUMP -f'
6457 fi
6458 ;;
6459
6460 cegcc*)
6461 # use the weaker test based on 'objdump'. See mingw*.
6462 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6463 lt_cv_file_magic_cmd='$OBJDUMP -f'
6464 ;;
6465
6466 darwin* | rhapsody*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 freebsd* | dragonfly* | midnightbsd*)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472 case $host_cpu in
6473 i*86 )
6474 # Not sure whether the presence of OpenBSD here was a mistake.
6475 # Let's accept both of them until this is cleared up.
6476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6477 lt_cv_file_magic_cmd=$FILECMD
6478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6479 ;;
6480 esac
6481 else
6482 lt_cv_deplibs_check_method=pass_all
6483 fi
6484 ;;
6485
6486 haiku*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 hpux10.20* | hpux11*)
6491 lt_cv_file_magic_cmd=$FILECMD
6492 case $host_cpu in
6493 ia64*)
6494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6495 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6496 ;;
6497 hppa*64*)
6498 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]'
6499 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6500 ;;
6501 *)
6502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6504 ;;
6505 esac
6506 ;;
6507
6508 interix[3-9]*)
6509 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6511 ;;
6512
6513 irix5* | irix6* | nonstopux*)
6514 case $LD in
6515 *-32|*"-32 ") libmagic=32-bit;;
6516 *-n32|*"-n32 ") libmagic=N32;;
6517 *-64|*"-64 ") libmagic=64-bit;;
6518 *) libmagic=never-match;;
6519 esac
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 # This must be glibc/ELF.
6524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 *-mlibc)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 netbsd* | netbsdelf*-gnu)
6533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6535 else
6536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6537 fi
6538 ;;
6539
6540 newos6*)
6541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6542 lt_cv_file_magic_cmd=$FILECMD
6543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6544 ;;
6545
6546 *nto* | *qnx*)
6547 lt_cv_deplibs_check_method=pass_all
6548 ;;
6549
6550 openbsd*)
6551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6553 else
6554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6555 fi
6556 ;;
6557
6558 osf3* | osf4* | osf5*)
6559 lt_cv_deplibs_check_method=pass_all
6560 ;;
6561
6562 rdos*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565
6566 serenity*)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569
6570 solaris*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573
6574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578 sysv4 | sysv4.3*)
6579 case $host_vendor in
6580 motorola)
6581 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]'
6582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6583 ;;
6584 ncr)
6585 lt_cv_deplibs_check_method=pass_all
6586 ;;
6587 sequent)
6588 lt_cv_file_magic_cmd='/bin/file'
6589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6590 ;;
6591 sni)
6592 lt_cv_file_magic_cmd='/bin/file'
6593 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6594 lt_cv_file_magic_test_file=/lib/libc.so
6595 ;;
6596 siemens)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599 pc)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602 esac
6603 ;;
6604
6605 tpf*)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608 os2*)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611 esac
6612 ;;
6613 esac
6614 fi
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6616 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6617
6618 file_magic_glob=
6619 want_nocaseglob=no
6620 if test "$build" = "$host"; then
6621 case $host_os in
6622 mingw* | windows* | pw32*)
6623 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6624 want_nocaseglob=yes
6625 else
6626 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6627 fi
6628 ;;
6629 esac
6630 fi
6631
6632 file_magic_cmd=$lt_cv_file_magic_cmd
6633 deplibs_check_method=$lt_cv_deplibs_check_method
6634 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_DLLTOOL+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) if test -n "$DLLTOOL"; then
6667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi ;;
6689 esac
6690 fi
6691 DLLTOOL=$ac_cv_prog_DLLTOOL
6692 if test -n "$DLLTOOL"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6694 printf "%s\n" "$DLLTOOL" >&6; }
6695 else
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_DLLTOOL"; then
6703 ac_ct_DLLTOOL=$DLLTOOL
6704 # Extract the first word of "dlltool", so it can be a program name with args.
6705 set dummy dlltool; ac_word=$2
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 printf %s "checking for $ac_word... " >&6; }
6708 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6709 then :
6710 printf %s "(cached) " >&6
6711 else case e in #(
6712 e) if test -n "$ac_ct_DLLTOOL"; then
6713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 case $as_dir in #(((
6720 '') as_dir=./ ;;
6721 */) ;;
6722 *) as_dir=$as_dir/ ;;
6723 esac
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6728 break 2
6729 fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734 fi ;;
6735 esac
6736 fi
6737 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6738 if test -n "$ac_ct_DLLTOOL"; then
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6740 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6741 else
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 printf "%s\n" "no" >&6; }
6744 fi
6745
6746 if test "x$ac_ct_DLLTOOL" = x; then
6747 DLLTOOL="false"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755 DLLTOOL=$ac_ct_DLLTOOL
6756 fi
6757 else
6758 DLLTOOL="$ac_cv_prog_DLLTOOL"
6759 fi
6760
6761 test -z "$DLLTOOL" && DLLTOOL=dlltool
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6773 printf %s "checking how to associate runtime and link libraries... " >&6; }
6774 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else case e in #(
6778 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6779
6780 case $host_os in
6781 cygwin* | mingw* | windows* | pw32* | cegcc*)
6782 # two different shell functions defined in ltmain.sh;
6783 # decide which one to use based on capabilities of $DLLTOOL
6784 case `$DLLTOOL --help 2>&1` in
6785 *--identify-strict*)
6786 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6787 ;;
6788 *)
6789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6790 ;;
6791 esac
6792 ;;
6793 *)
6794 # fallback: assume linklib IS sharedlib
6795 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6796 ;;
6797 esac
6798 ;;
6799 esac
6800 fi
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6802 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6803 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6804 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6805
6806
6807
6808
6809
6810
6811
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 printf %s "checking for $ac_word... " >&6; }
6817 if test ${ac_cv_prog_RANLIB+y}
6818 then :
6819 printf %s "(cached) " >&6
6820 else case e in #(
6821 e) if test -n "$RANLIB"; then
6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 case $as_dir in #(((
6829 '') as_dir=./ ;;
6830 */) ;;
6831 *) as_dir=$as_dir/ ;;
6832 esac
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi ;;
6844 esac
6845 fi
6846 RANLIB=$ac_cv_prog_RANLIB
6847 if test -n "$RANLIB"; then
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6849 printf "%s\n" "$RANLIB" >&6; }
6850 else
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 printf "%s\n" "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_RANLIB"; then
6858 ac_ct_RANLIB=$RANLIB
6859 # Extract the first word of "ranlib", so it can be a program name with args.
6860 set dummy ranlib; ac_word=$2
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 printf %s "checking for $ac_word... " >&6; }
6863 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else case e in #(
6867 e) if test -n "$ac_ct_RANLIB"; then
6868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873 IFS=$as_save_IFS
6874 case $as_dir in #(((
6875 '') as_dir=./ ;;
6876 */) ;;
6877 *) as_dir=$as_dir/ ;;
6878 esac
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_ac_ct_RANLIB="ranlib"
6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi ;;
6890 esac
6891 fi
6892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6893 if test -n "$ac_ct_RANLIB"; then
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6895 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6896 else
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 printf "%s\n" "no" >&6; }
6899 fi
6900
6901 if test "x$ac_ct_RANLIB" = x; then
6902 RANLIB=":"
6903 else
6904 case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 RANLIB=$ac_ct_RANLIB
6911 fi
6912 else
6913 RANLIB="$ac_cv_prog_RANLIB"
6914 fi
6915
6916 if test -n "$ac_tool_prefix"; then
6917 for ac_prog in ar
6918 do
6919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 printf %s "checking for $ac_word... " >&6; }
6923 if test ${ac_cv_prog_AR+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) if test -n "$AR"; then
6928 ac_cv_prog_AR="$AR" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 case $as_dir in #(((
6935 '') as_dir=./ ;;
6936 */) ;;
6937 *) as_dir=$as_dir/ ;;
6938 esac
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi ;;
6950 esac
6951 fi
6952 AR=$ac_cv_prog_AR
6953 if test -n "$AR"; then
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6955 printf "%s\n" "$AR" >&6; }
6956 else
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 printf "%s\n" "no" >&6; }
6959 fi
6960
6961
6962 test -n "$AR" && break
6963 done
6964 fi
6965 if test -z "$AR"; then
6966 ac_ct_AR=$AR
6967 for ac_prog in ar
6968 do
6969 # Extract the first word of "$ac_prog", so it can be a program name with args.
6970 set dummy $ac_prog; ac_word=$2
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 printf %s "checking for $ac_word... " >&6; }
6973 if test ${ac_cv_prog_ac_ct_AR+y}
6974 then :
6975 printf %s "(cached) " >&6
6976 else case e in #(
6977 e) if test -n "$ac_ct_AR"; then
6978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983 IFS=$as_save_IFS
6984 case $as_dir in #(((
6985 '') as_dir=./ ;;
6986 */) ;;
6987 *) as_dir=$as_dir/ ;;
6988 esac
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_ac_ct_AR="$ac_prog"
6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 fi ;;
7000 esac
7001 fi
7002 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7003 if test -n "$ac_ct_AR"; then
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7005 printf "%s\n" "$ac_ct_AR" >&6; }
7006 else
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 printf "%s\n" "no" >&6; }
7009 fi
7010
7011
7012 test -n "$ac_ct_AR" && break
7013 done
7014
7015 if test "x$ac_ct_AR" = x; then
7016 AR="false"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 AR=$ac_ct_AR
7025 fi
7026 fi
7027
7028 : ${AR=ar}
7029
7030
7031
7032
7033
7034
7035 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7036 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7037 # higher priority because that's what people were doing historically (setting
7038 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7039 # variable obsoleted/removed.
7040
7041 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7042 lt_ar_flags=$AR_FLAGS
7043
7044
7045
7046
7047
7048
7049 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7050 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7051
7052
7053
7054
7055
7056
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7058 printf %s "checking for archiver @FILE support... " >&6; }
7059 if test ${lt_cv_ar_at_file+y}
7060 then :
7061 printf %s "(cached) " >&6
7062 else case e in #(
7063 e) lt_cv_ar_at_file=no
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066
7067 int
7068 main (void)
7069 {
7070
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"
7076 then :
7077 echo conftest.$ac_objext > conftest.lst
7078 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7080 (eval $lt_ar_try) 2>&5
7081 ac_status=$?
7082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }
7084 if test 0 -eq "$ac_status"; then
7085 # Ensure the archiver fails upon bogus file names.
7086 rm -f conftest.$ac_objext libconftest.a
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7089 ac_status=$?
7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test 0 -ne "$ac_status"; then
7093 lt_cv_ar_at_file=@
7094 fi
7095 fi
7096 rm -f conftest.* libconftest.a
7097
7098 fi
7099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7100 ;;
7101 esac
7102 fi
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7104 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7105
7106 if test no = "$lt_cv_ar_at_file"; then
7107 archiver_list_spec=
7108 else
7109 archiver_list_spec=$lt_cv_ar_at_file
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}strip; ac_word=$2
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 printf %s "checking for $ac_word... " >&6; }
7123 if test ${ac_cv_prog_STRIP+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else case e in #(
7127 e) if test -n "$STRIP"; then
7128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 case $as_dir in #(((
7135 '') as_dir=./ ;;
7136 */) ;;
7137 *) as_dir=$as_dir/ ;;
7138 esac
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi ;;
7150 esac
7151 fi
7152 STRIP=$ac_cv_prog_STRIP
7153 if test -n "$STRIP"; then
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7155 printf "%s\n" "$STRIP" >&6; }
7156 else
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 printf "%s\n" "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_STRIP"; then
7164 ac_ct_STRIP=$STRIP
7165 # Extract the first word of "strip", so it can be a program name with args.
7166 set dummy strip; ac_word=$2
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 printf %s "checking for $ac_word... " >&6; }
7169 if test ${ac_cv_prog_ac_ct_STRIP+y}
7170 then :
7171 printf %s "(cached) " >&6
7172 else case e in #(
7173 e) if test -n "$ac_ct_STRIP"; then
7174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 case $as_dir in #(((
7181 '') as_dir=./ ;;
7182 */) ;;
7183 *) as_dir=$as_dir/ ;;
7184 esac
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_STRIP="strip"
7188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi ;;
7196 esac
7197 fi
7198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7199 if test -n "$ac_ct_STRIP"; then
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7201 printf "%s\n" "$ac_ct_STRIP" >&6; }
7202 else
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 printf "%s\n" "no" >&6; }
7205 fi
7206
7207 if test "x$ac_ct_STRIP" = x; then
7208 STRIP=":"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 STRIP=$ac_ct_STRIP
7217 fi
7218 else
7219 STRIP="$ac_cv_prog_STRIP"
7220 fi
7221
7222 test -z "$STRIP" && STRIP=:
7223
7224
7225
7226
7227
7228
7229
7230 test -z "$RANLIB" && RANLIB=:
7231
7232
7233
7234
7235
7236
7237 # Determine commands to create old-style static archives.
7238 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7239 old_postinstall_cmds='chmod 644 $oldlib'
7240 old_postuninstall_cmds=
7241
7242 if test -n "$RANLIB"; then
7243 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7245 fi
7246
7247 case $host_os in
7248 darwin*)
7249 lock_old_archive_extraction=yes ;;
7250 *)
7251 lock_old_archive_extraction=no ;;
7252 esac
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292 # If no C compiler was specified, use CC.
7293 LTCC=${LTCC-"$CC"}
7294
7295 # If no C compiler flags were specified, use CFLAGS.
7296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7297
7298 # Allow CC to be a program name with arguments.
7299 compiler=$CC
7300
7301
7302 # Check for command to grab the raw symbol name followed by C symbol from nm.
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7304 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7305 if test ${lt_cv_sys_global_symbol_pipe+y}
7306 then :
7307 printf %s "(cached) " >&6
7308 else case e in #(
7309 e)
7310 # These are sane defaults that work on at least a few old systems.
7311 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7312
7313 # Character class describing NM global symbol codes.
7314 symcode='[BCDEGRST]'
7315
7316 # Regexp to match symbols that can be accessed directly from C.
7317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7318
7319 # Define system-specific variables.
7320 case $host_os in
7321 aix*)
7322 symcode='[BCDT]'
7323 ;;
7324 cygwin* | mingw* | windows* | pw32* | cegcc*)
7325 symcode='[ABCDGISTW]'
7326 ;;
7327 hpux*)
7328 if test ia64 = "$host_cpu"; then
7329 symcode='[ABCDEGRST]'
7330 fi
7331 ;;
7332 irix* | nonstopux*)
7333 symcode='[BCDEGRST]'
7334 ;;
7335 osf*)
7336 symcode='[BCDEGQRST]'
7337 ;;
7338 solaris*)
7339 symcode='[BCDRT]'
7340 ;;
7341 sco3.2v5*)
7342 symcode='[DT]'
7343 ;;
7344 sysv4.2uw2*)
7345 symcode='[DT]'
7346 ;;
7347 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7348 symcode='[ABDT]'
7349 ;;
7350 sysv4)
7351 symcode='[DFNSTU]'
7352 ;;
7353 esac
7354
7355 # If we're using GNU nm, then use its standard symbol codes.
7356 case `$NM -V 2>&1` in
7357 *GNU* | *'with BFD'*)
7358 symcode='[ABCDGIRSTW]' ;;
7359 esac
7360
7361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7362 # Gets list of data symbols to import.
7363 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7364 # Adjust the below global symbol transforms to fixup imported variables.
7365 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7366 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7367 lt_c_name_lib_hook="\
7368 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7369 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7370 else
7371 # Disable hooks by default.
7372 lt_cv_sys_global_symbol_to_import=
7373 lt_cdecl_hook=
7374 lt_c_name_hook=
7375 lt_c_name_lib_hook=
7376 fi
7377
7378 # Transform an extracted symbol line into a proper C declaration.
7379 # Some systems (esp. on ia64) link data and code symbols differently,
7380 # so use this general approach.
7381 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7382 $lt_cdecl_hook\
7383 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7384 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7385
7386 # Transform an extracted symbol line into symbol name and symbol address
7387 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7388 $lt_c_name_hook\
7389 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7390 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7391
7392 # Transform an extracted symbol line into symbol name with lib prefix and
7393 # symbol address.
7394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7395 $lt_c_name_lib_hook\
7396 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7397 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7398 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7399
7400 # Handle CRLF in mingw tool chain
7401 opt_cr=
7402 case $build_os in
7403 mingw* | windows*)
7404 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7405 ;;
7406 esac
7407
7408 # Try without a prefix underscore, then with it.
7409 for ac_symprfx in "" "_"; do
7410
7411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7412 symxfrm="\\1 $ac_symprfx\\2 \\2"
7413
7414 # Write the raw and C identifiers.
7415 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7416 # Fake it for dumpbin and say T for any non-static function,
7417 # D for any global variable and I for any imported variable.
7418 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7419 # which start with @ or ?.
7420 lt_cv_sys_global_symbol_pipe="$AWK '"\
7421 " {last_section=section; section=\$ 3};"\
7422 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7423 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7424 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7425 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7426 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7427 " \$ 0!~/External *\|/{next};"\
7428 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7429 " {if(hide[section]) next};"\
7430 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7431 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7432 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7433 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7434 " ' prfx=^$ac_symprfx"
7435 else
7436 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7437 fi
7438 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7439
7440 # Check to see that the pipe works correctly.
7441 pipe_works=no
7442
7443 rm -f conftest*
7444 cat > conftest.$ac_ext <<_LT_EOF
7445 #ifdef __cplusplus
7446 extern "C" {
7447 #endif
7448 char nm_test_var;
7449 void nm_test_func(void);
7450 void nm_test_func(void){}
7451 #ifdef __cplusplus
7452 }
7453 #endif
7454 int main(void){nm_test_var='a';nm_test_func();return(0);}
7455 _LT_EOF
7456
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458 (eval $ac_compile) 2>&5
7459 ac_status=$?
7460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 # Now try to grab the symbols.
7463 nlist=conftest.nm
7464 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7465 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7466 # Try sorting and uniquifying the output.
7467 if sort "$nlist" | uniq > "$nlist"T; then
7468 mv -f "$nlist"T "$nlist"
7469 else
7470 rm -f "$nlist"T
7471 fi
7472
7473 # Make sure that we snagged all the symbols we need.
7474 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7475 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7476 cat <<_LT_EOF > conftest.$ac_ext
7477 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7478 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7479 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7480 relocations are performed -- see ld's documentation on pseudo-relocs. */
7481 # define LT_DLSYM_CONST
7482 #elif defined __osf__
7483 /* This system does not cope well with relocations in const data. */
7484 # define LT_DLSYM_CONST
7485 #else
7486 # define LT_DLSYM_CONST const
7487 #endif
7488
7489 #ifdef __cplusplus
7490 extern "C" {
7491 #endif
7492
7493 _LT_EOF
7494 # Now generate the symbol file.
7495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7496
7497 cat <<_LT_EOF >> conftest.$ac_ext
7498
7499 /* The mapping between symbol names and symbols. */
7500 LT_DLSYM_CONST struct {
7501 const char *name;
7502 void *address;
7503 }
7504 lt__PROGRAM__LTX_preloaded_symbols[] =
7505 {
7506 { "@PROGRAM@", (void *) 0 },
7507 _LT_EOF
7508 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7509 cat <<\_LT_EOF >> conftest.$ac_ext
7510 {0, (void *) 0}
7511 };
7512
7513 /* This works around a problem in FreeBSD linker */
7514 #ifdef FREEBSD_WORKAROUND
7515 static const void *lt_preloaded_setup() {
7516 return lt__PROGRAM__LTX_preloaded_symbols;
7517 }
7518 #endif
7519
7520 #ifdef __cplusplus
7521 }
7522 #endif
7523 _LT_EOF
7524 # Now try linking the two files.
7525 mv conftest.$ac_objext conftstm.$ac_objext
7526 lt_globsym_save_LIBS=$LIBS
7527 lt_globsym_save_CFLAGS=$CFLAGS
7528 LIBS=conftstm.$ac_objext
7529 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7531 (eval $ac_link) 2>&5
7532 ac_status=$?
7533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7535 pipe_works=yes
7536 fi
7537 LIBS=$lt_globsym_save_LIBS
7538 CFLAGS=$lt_globsym_save_CFLAGS
7539 else
7540 echo "cannot find nm_test_func in $nlist" >&5
7541 fi
7542 else
7543 echo "cannot find nm_test_var in $nlist" >&5
7544 fi
7545 else
7546 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7547 fi
7548 else
7549 echo "$progname: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 fi
7552 rm -rf conftest* conftst*
7553
7554 # Do not use the global_symbol_pipe unless it works.
7555 if test yes = "$pipe_works"; then
7556 break
7557 else
7558 lt_cv_sys_global_symbol_pipe=
7559 fi
7560 done
7561 ;;
7562 esac
7563 fi
7564
7565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7566 lt_cv_sys_global_symbol_to_cdecl=
7567 fi
7568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7570 printf "%s\n" "failed" >&6; }
7571 else
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7573 printf "%s\n" "ok" >&6; }
7574 fi
7575
7576 # Response file support.
7577 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7578 nm_file_list_spec='@'
7579 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7580 nm_file_list_spec='@'
7581 fi
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7620 printf %s "checking for sysroot... " >&6; }
7621
7622 # Check whether --with-sysroot was given.
7623 if test ${with_sysroot+y}
7624 then :
7625 withval=$with_sysroot;
7626 else case e in #(
7627 e) with_sysroot=no ;;
7628 esac
7629 fi
7630
7631
7632 lt_sysroot=
7633 case $with_sysroot in #(
7634 yes)
7635 if test yes = "$GCC"; then
7636 # Trim trailing / since we'll always append absolute paths and we want
7637 # to avoid //, if only for less confusing output for the user.
7638 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7639 fi
7640 ;; #(
7641 /*)
7642 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7643 ;; #(
7644 no|'')
7645 ;; #(
7646 *)
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7648 printf "%s\n" "$with_sysroot" >&6; }
7649 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7650 ;;
7651 esac
7652
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7654 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7655
7656
7657
7658
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7661 printf %s "checking for a working dd... " >&6; }
7662 if test ${ac_cv_path_lt_DD+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else case e in #(
7666 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7667 cat conftest.i conftest.i >conftest2.i
7668 : ${lt_DD:=$DD}
7669 if test -z "$lt_DD"; then
7670 ac_path_lt_DD_found=false
7671 # Loop through the user's path and test for each of PROGNAME-LIST
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 case $as_dir in #(((
7677 '') as_dir=./ ;;
7678 */) ;;
7679 *) as_dir=$as_dir/ ;;
7680 esac
7681 for ac_prog in dd
7682 do
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7685 as_fn_executable_p "$ac_path_lt_DD" || continue
7686 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7687 cmp -s conftest.i conftest.out \
7688 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7689 fi
7690 $ac_path_lt_DD_found && break 3
7691 done
7692 done
7693 done
7694 IFS=$as_save_IFS
7695 if test -z "$ac_cv_path_lt_DD"; then
7696 :
7697 fi
7698 else
7699 ac_cv_path_lt_DD=$lt_DD
7700 fi
7701
7702 rm -f conftest.i conftest2.i conftest.out ;;
7703 esac
7704 fi
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7706 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7707
7708
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7710 printf %s "checking how to truncate binary pipes... " >&6; }
7711 if test ${lt_cv_truncate_bin+y}
7712 then :
7713 printf %s "(cached) " >&6
7714 else case e in #(
7715 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7716 cat conftest.i conftest.i >conftest2.i
7717 lt_cv_truncate_bin=
7718 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7719 cmp -s conftest.i conftest.out \
7720 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7721 fi
7722 rm -f conftest.i conftest2.i conftest.out
7723 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7724 esac
7725 fi
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7727 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7728
7729
7730
7731
7732
7733
7734
7735 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7736 func_cc_basename ()
7737 {
7738 for cc_temp in $*""; do
7739 case $cc_temp in
7740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7742 \-*) ;;
7743 *) break;;
7744 esac
7745 done
7746 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7747 }
7748
7749 # Check whether --enable-libtool-lock was given.
7750 if test ${enable_libtool_lock+y}
7751 then :
7752 enableval=$enable_libtool_lock;
7753 fi
7754
7755 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7756
7757 # Some flags need to be propagated to the compiler or linker for good
7758 # libtool support.
7759 case $host in
7760 ia64-*-hpux*)
7761 # Find out what ABI is being produced by ac_compile, and set mode
7762 # options accordingly.
7763 echo 'int i;' > conftest.$ac_ext
7764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7765 (eval $ac_compile) 2>&5
7766 ac_status=$?
7767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; }; then
7769 case `$FILECMD conftest.$ac_objext` in
7770 *ELF-32*)
7771 HPUX_IA64_MODE=32
7772 ;;
7773 *ELF-64*)
7774 HPUX_IA64_MODE=64
7775 ;;
7776 esac
7777 fi
7778 rm -rf conftest*
7779 ;;
7780 *-*-irix6*)
7781 # Find out what ABI is being produced by ac_compile, and set linker
7782 # options accordingly.
7783 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7785 (eval $ac_compile) 2>&5
7786 ac_status=$?
7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7788 test $ac_status = 0; }; then
7789 if test yes = "$lt_cv_prog_gnu_ld"; then
7790 case `$FILECMD conftest.$ac_objext` in
7791 *32-bit*)
7792 LD="${LD-ld} -melf32bsmip"
7793 ;;
7794 *N32*)
7795 LD="${LD-ld} -melf32bmipn32"
7796 ;;
7797 *64-bit*)
7798 LD="${LD-ld} -melf64bmip"
7799 ;;
7800 esac
7801 else
7802 case `$FILECMD conftest.$ac_objext` in
7803 *32-bit*)
7804 LD="${LD-ld} -32"
7805 ;;
7806 *N32*)
7807 LD="${LD-ld} -n32"
7808 ;;
7809 *64-bit*)
7810 LD="${LD-ld} -64"
7811 ;;
7812 esac
7813 fi
7814 fi
7815 rm -rf conftest*
7816 ;;
7817
7818 mips64*-*linux*)
7819 # Find out what ABI is being produced by ac_compile, and set linker
7820 # options accordingly.
7821 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 emul=elf
7828 case `$FILECMD conftest.$ac_objext` in
7829 *32-bit*)
7830 emul="${emul}32"
7831 ;;
7832 *64-bit*)
7833 emul="${emul}64"
7834 ;;
7835 esac
7836 case `$FILECMD conftest.$ac_objext` in
7837 *MSB*)
7838 emul="${emul}btsmip"
7839 ;;
7840 *LSB*)
7841 emul="${emul}ltsmip"
7842 ;;
7843 esac
7844 case `$FILECMD conftest.$ac_objext` in
7845 *N32*)
7846 emul="${emul}n32"
7847 ;;
7848 esac
7849 LD="${LD-ld} -m $emul"
7850 fi
7851 rm -rf conftest*
7852 ;;
7853
7854 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7855 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7856 # Find out what ABI is being produced by ac_compile, and set linker
7857 # options accordingly. Note that the listed cases only cover the
7858 # situations where additional linker options are needed (such as when
7859 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7860 # vice versa); the common cases where no linker options are needed do
7861 # not appear in the list.
7862 echo 'int i;' > conftest.$ac_ext
7863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7864 (eval $ac_compile) 2>&5
7865 ac_status=$?
7866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; }; then
7868 case `$FILECMD conftest.o` in
7869 *32-bit*)
7870 case $host in
7871 x86_64-*kfreebsd*-gnu)
7872 LD="${LD-ld} -m elf_i386_fbsd"
7873 ;;
7874 x86_64-*linux*|x86_64-gnu*)
7875 case `$FILECMD conftest.o` in
7876 *x86-64*)
7877 LD="${LD-ld} -m elf32_x86_64"
7878 ;;
7879 *)
7880 LD="${LD-ld} -m elf_i386"
7881 ;;
7882 esac
7883 ;;
7884 powerpc64le-*linux*)
7885 LD="${LD-ld} -m elf32lppclinux"
7886 ;;
7887 powerpc64-*linux*)
7888 LD="${LD-ld} -m elf32ppclinux"
7889 ;;
7890 s390x-*linux*)
7891 LD="${LD-ld} -m elf_s390"
7892 ;;
7893 sparc64-*linux*)
7894 LD="${LD-ld} -m elf32_sparc"
7895 ;;
7896 esac
7897 ;;
7898 *64-bit*)
7899 case $host in
7900 x86_64-*kfreebsd*-gnu)
7901 LD="${LD-ld} -m elf_x86_64_fbsd"
7902 ;;
7903 x86_64-*linux*|x86_64-gnu*)
7904 LD="${LD-ld} -m elf_x86_64"
7905 ;;
7906 powerpcle-*linux*)
7907 LD="${LD-ld} -m elf64lppc"
7908 ;;
7909 powerpc-*linux*)
7910 LD="${LD-ld} -m elf64ppc"
7911 ;;
7912 s390*-*linux*|s390*-*tpf*)
7913 LD="${LD-ld} -m elf64_s390"
7914 ;;
7915 sparc*-*linux*)
7916 LD="${LD-ld} -m elf64_sparc"
7917 ;;
7918 esac
7919 ;;
7920 esac
7921 fi
7922 rm -rf conftest*
7923 ;;
7924
7925 *-*-sco3.2v5*)
7926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7927 SAVE_CFLAGS=$CFLAGS
7928 CFLAGS="$CFLAGS -belf"
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7930 printf %s "checking whether the C compiler needs -belf... " >&6; }
7931 if test ${lt_cv_cc_needs_belf+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else case e in #(
7935 e) ac_ext=c
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943
7944 int
7945 main (void)
7946 {
7947
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"
7953 then :
7954 lt_cv_cc_needs_belf=yes
7955 else case e in #(
7956 e) lt_cv_cc_needs_belf=no ;;
7957 esac
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7960 conftest$ac_exeext conftest.$ac_ext
7961 ac_ext=c
7962 ac_cpp='$CPP $CPPFLAGS'
7963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966 ;;
7967 esac
7968 fi
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7970 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7971 if test yes != "$lt_cv_cc_needs_belf"; then
7972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7973 CFLAGS=$SAVE_CFLAGS
7974 fi
7975 ;;
7976 *-*solaris*)
7977 # Find out what ABI is being produced by ac_compile, and set linker
7978 # options accordingly.
7979 echo 'int i;' > conftest.$ac_ext
7980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7981 (eval $ac_compile) 2>&5
7982 ac_status=$?
7983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; }; then
7985 case `$FILECMD conftest.o` in
7986 *64-bit*)
7987 case $lt_cv_prog_gnu_ld in
7988 yes*)
7989 case $host in
7990 i?86-*-solaris*|x86_64-*-solaris*)
7991 LD="${LD-ld} -m elf_x86_64"
7992 ;;
7993 sparc*-*-solaris*)
7994 LD="${LD-ld} -m elf64_sparc"
7995 ;;
7996 esac
7997 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7998 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7999 LD=${LD-ld}_sol2
8000 fi
8001 ;;
8002 *)
8003 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8004 LD="${LD-ld} -64"
8005 fi
8006 ;;
8007 esac
8008 ;;
8009 esac
8010 fi
8011 rm -rf conftest*
8012 ;;
8013 esac
8014
8015 need_locks=$enable_libtool_lock
8016
8017 if test -n "$ac_tool_prefix"; then
8018 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}mt; ac_word=$2
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 printf %s "checking for $ac_word... " >&6; }
8022 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8023 then :
8024 printf %s "(cached) " >&6
8025 else case e in #(
8026 e) if test -n "$MANIFEST_TOOL"; then
8027 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 case $as_dir in #(((
8034 '') as_dir=./ ;;
8035 */) ;;
8036 *) as_dir=$as_dir/ ;;
8037 esac
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048 fi ;;
8049 esac
8050 fi
8051 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8052 if test -n "$MANIFEST_TOOL"; then
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8054 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8055 else
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 printf "%s\n" "no" >&6; }
8058 fi
8059
8060
8061 fi
8062 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8064 # Extract the first word of "mt", so it can be a program name with args.
8065 set dummy mt; ac_word=$2
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 printf %s "checking for $ac_word... " >&6; }
8068 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8069 then :
8070 printf %s "(cached) " >&6
8071 else case e in #(
8072 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8073 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 case $as_dir in #(((
8080 '') as_dir=./ ;;
8081 */) ;;
8082 *) as_dir=$as_dir/ ;;
8083 esac
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094 fi ;;
8095 esac
8096 fi
8097 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8098 if test -n "$ac_ct_MANIFEST_TOOL"; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8100 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8101 else
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 printf "%s\n" "no" >&6; }
8104 fi
8105
8106 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8107 MANIFEST_TOOL=":"
8108 else
8109 case $cross_compiling:$ac_tool_warned in
8110 yes:)
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8113 ac_tool_warned=yes ;;
8114 esac
8115 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8116 fi
8117 else
8118 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8119 fi
8120
8121 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8123 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8124 if test ${lt_cv_path_manifest_tool+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else case e in #(
8128 e) lt_cv_path_manifest_tool=no
8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8131 cat conftest.err >&5
8132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8133 lt_cv_path_manifest_tool=yes
8134 fi
8135 rm -f conftest* ;;
8136 esac
8137 fi
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8139 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8140 if test yes != "$lt_cv_path_manifest_tool"; then
8141 MANIFEST_TOOL=:
8142 fi
8143
8144
8145
8146
8147
8148
8149 case $host_os in
8150 rhapsody* | darwin*)
8151 if test -n "$ac_tool_prefix"; then
8152 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8153 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 printf %s "checking for $ac_word... " >&6; }
8156 if test ${ac_cv_prog_DSYMUTIL+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else case e in #(
8160 e) if test -n "$DSYMUTIL"; then
8161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 case $as_dir in #(((
8168 '') as_dir=./ ;;
8169 */) ;;
8170 *) as_dir=$as_dir/ ;;
8171 esac
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi ;;
8183 esac
8184 fi
8185 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8186 if test -n "$DSYMUTIL"; then
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8188 printf "%s\n" "$DSYMUTIL" >&6; }
8189 else
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 printf "%s\n" "no" >&6; }
8192 fi
8193
8194
8195 fi
8196 if test -z "$ac_cv_prog_DSYMUTIL"; then
8197 ac_ct_DSYMUTIL=$DSYMUTIL
8198 # Extract the first word of "dsymutil", so it can be a program name with args.
8199 set dummy dsymutil; ac_word=$2
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 printf %s "checking for $ac_word... " >&6; }
8202 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8203 then :
8204 printf %s "(cached) " >&6
8205 else case e in #(
8206 e) if test -n "$ac_ct_DSYMUTIL"; then
8207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 case $as_dir in #(((
8214 '') as_dir=./ ;;
8215 */) ;;
8216 *) as_dir=$as_dir/ ;;
8217 esac
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8222 break 2
8223 fi
8224 done
8225 done
8226 IFS=$as_save_IFS
8227
8228 fi ;;
8229 esac
8230 fi
8231 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8232 if test -n "$ac_ct_DSYMUTIL"; then
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8234 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8235 else
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 printf "%s\n" "no" >&6; }
8238 fi
8239
8240 if test "x$ac_ct_DSYMUTIL" = x; then
8241 DSYMUTIL=":"
8242 else
8243 case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249 DSYMUTIL=$ac_ct_DSYMUTIL
8250 fi
8251 else
8252 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8253 fi
8254
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_prog_NMEDIT+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) if test -n "$NMEDIT"; then
8265 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 case $as_dir in #(((
8272 '') as_dir=./ ;;
8273 */) ;;
8274 *) as_dir=$as_dir/ ;;
8275 esac
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi ;;
8287 esac
8288 fi
8289 NMEDIT=$ac_cv_prog_NMEDIT
8290 if test -n "$NMEDIT"; then
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8292 printf "%s\n" "$NMEDIT" >&6; }
8293 else
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 printf "%s\n" "no" >&6; }
8296 fi
8297
8298
8299 fi
8300 if test -z "$ac_cv_prog_NMEDIT"; then
8301 ac_ct_NMEDIT=$NMEDIT
8302 # Extract the first word of "nmedit", so it can be a program name with args.
8303 set dummy nmedit; ac_word=$2
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 printf %s "checking for $ac_word... " >&6; }
8306 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else case e in #(
8310 e) if test -n "$ac_ct_NMEDIT"; then
8311 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 case $as_dir in #(((
8318 '') as_dir=./ ;;
8319 */) ;;
8320 *) as_dir=$as_dir/ ;;
8321 esac
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 fi ;;
8333 esac
8334 fi
8335 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8336 if test -n "$ac_ct_NMEDIT"; then
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8338 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8339 else
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 printf "%s\n" "no" >&6; }
8342 fi
8343
8344 if test "x$ac_ct_NMEDIT" = x; then
8345 NMEDIT=":"
8346 else
8347 case $cross_compiling:$ac_tool_warned in
8348 yes:)
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8352 esac
8353 NMEDIT=$ac_ct_NMEDIT
8354 fi
8355 else
8356 NMEDIT="$ac_cv_prog_NMEDIT"
8357 fi
8358
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_LIPO+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else case e in #(
8368 e) if test -n "$LIPO"; then
8369 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi ;;
8391 esac
8392 fi
8393 LIPO=$ac_cv_prog_LIPO
8394 if test -n "$LIPO"; then
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8396 printf "%s\n" "$LIPO" >&6; }
8397 else
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 printf "%s\n" "no" >&6; }
8400 fi
8401
8402
8403 fi
8404 if test -z "$ac_cv_prog_LIPO"; then
8405 ac_ct_LIPO=$LIPO
8406 # Extract the first word of "lipo", so it can be a program name with args.
8407 set dummy lipo; ac_word=$2
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 printf %s "checking for $ac_word... " >&6; }
8410 if test ${ac_cv_prog_ac_ct_LIPO+y}
8411 then :
8412 printf %s "(cached) " >&6
8413 else case e in #(
8414 e) if test -n "$ac_ct_LIPO"; then
8415 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420 IFS=$as_save_IFS
8421 case $as_dir in #(((
8422 '') as_dir=./ ;;
8423 */) ;;
8424 *) as_dir=$as_dir/ ;;
8425 esac
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_ac_ct_LIPO="lipo"
8429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432 done
8433 done
8434 IFS=$as_save_IFS
8435
8436 fi ;;
8437 esac
8438 fi
8439 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8440 if test -n "$ac_ct_LIPO"; then
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8442 printf "%s\n" "$ac_ct_LIPO" >&6; }
8443 else
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 printf "%s\n" "no" >&6; }
8446 fi
8447
8448 if test "x$ac_ct_LIPO" = x; then
8449 LIPO=":"
8450 else
8451 case $cross_compiling:$ac_tool_warned in
8452 yes:)
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8456 esac
8457 LIPO=$ac_ct_LIPO
8458 fi
8459 else
8460 LIPO="$ac_cv_prog_LIPO"
8461 fi
8462
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}otool; ac_word=$2
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 printf %s "checking for $ac_word... " >&6; }
8468 if test ${ac_cv_prog_OTOOL+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else case e in #(
8472 e) if test -n "$OTOOL"; then
8473 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 case $as_dir in #(((
8480 '') as_dir=./ ;;
8481 */) ;;
8482 *) as_dir=$as_dir/ ;;
8483 esac
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi ;;
8495 esac
8496 fi
8497 OTOOL=$ac_cv_prog_OTOOL
8498 if test -n "$OTOOL"; then
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8500 printf "%s\n" "$OTOOL" >&6; }
8501 else
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 printf "%s\n" "no" >&6; }
8504 fi
8505
8506
8507 fi
8508 if test -z "$ac_cv_prog_OTOOL"; then
8509 ac_ct_OTOOL=$OTOOL
8510 # Extract the first word of "otool", so it can be a program name with args.
8511 set dummy otool; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8515 then :
8516 printf %s "(cached) " >&6
8517 else case e in #(
8518 e) if test -n "$ac_ct_OTOOL"; then
8519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 case $as_dir in #(((
8526 '') as_dir=./ ;;
8527 */) ;;
8528 *) as_dir=$as_dir/ ;;
8529 esac
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ac_ct_OTOOL="otool"
8533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi ;;
8541 esac
8542 fi
8543 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8544 if test -n "$ac_ct_OTOOL"; then
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8546 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8547 else
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 printf "%s\n" "no" >&6; }
8550 fi
8551
8552 if test "x$ac_ct_OTOOL" = x; then
8553 OTOOL=":"
8554 else
8555 case $cross_compiling:$ac_tool_warned in
8556 yes:)
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8558 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8559 ac_tool_warned=yes ;;
8560 esac
8561 OTOOL=$ac_ct_OTOOL
8562 fi
8563 else
8564 OTOOL="$ac_cv_prog_OTOOL"
8565 fi
8566
8567 if test -n "$ac_tool_prefix"; then
8568 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8569 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 printf %s "checking for $ac_word... " >&6; }
8572 if test ${ac_cv_prog_OTOOL64+y}
8573 then :
8574 printf %s "(cached) " >&6
8575 else case e in #(
8576 e) if test -n "$OTOOL64"; then
8577 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582 IFS=$as_save_IFS
8583 case $as_dir in #(((
8584 '') as_dir=./ ;;
8585 */) ;;
8586 *) as_dir=$as_dir/ ;;
8587 esac
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594 done
8595 done
8596 IFS=$as_save_IFS
8597
8598 fi ;;
8599 esac
8600 fi
8601 OTOOL64=$ac_cv_prog_OTOOL64
8602 if test -n "$OTOOL64"; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8604 printf "%s\n" "$OTOOL64" >&6; }
8605 else
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 printf "%s\n" "no" >&6; }
8608 fi
8609
8610
8611 fi
8612 if test -z "$ac_cv_prog_OTOOL64"; then
8613 ac_ct_OTOOL64=$OTOOL64
8614 # Extract the first word of "otool64", so it can be a program name with args.
8615 set dummy otool64; ac_word=$2
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 printf %s "checking for $ac_word... " >&6; }
8618 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else case e in #(
8622 e) if test -n "$ac_ct_OTOOL64"; then
8623 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628 IFS=$as_save_IFS
8629 case $as_dir in #(((
8630 '') as_dir=./ ;;
8631 */) ;;
8632 *) as_dir=$as_dir/ ;;
8633 esac
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_ac_ct_OTOOL64="otool64"
8637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8638 break 2
8639 fi
8640 done
8641 done
8642 IFS=$as_save_IFS
8643
8644 fi ;;
8645 esac
8646 fi
8647 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8648 if test -n "$ac_ct_OTOOL64"; then
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8650 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8651 else
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 printf "%s\n" "no" >&6; }
8654 fi
8655
8656 if test "x$ac_ct_OTOOL64" = x; then
8657 OTOOL64=":"
8658 else
8659 case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665 OTOOL64=$ac_ct_OTOOL64
8666 fi
8667 else
8668 OTOOL64="$ac_cv_prog_OTOOL64"
8669 fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8698 printf %s "checking for -single_module linker flag... " >&6; }
8699 if test ${lt_cv_apple_cc_single_mod+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) lt_cv_apple_cc_single_mod=no
8704 if test -z "$LT_MULTI_MODULE"; then
8705 # By default we will add the -single_module flag. You can override
8706 # by either setting the environment variable LT_MULTI_MODULE
8707 # non-empty at configure time, or by adding -multi_module to the
8708 # link flags.
8709 rm -rf libconftest.dylib*
8710 echo "int foo(void){return 1;}" > conftest.c
8711 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8712 -dynamiclib -Wl,-single_module conftest.c" >&5
8713 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8714 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8715 _lt_result=$?
8716 # If there is a non-empty error log, and "single_module"
8717 # appears in it, assume the flag caused a linker warning
8718 if test -s conftest.err && $GREP single_module conftest.err; then
8719 cat conftest.err >&5
8720 # Otherwise, if the output was created with a 0 exit code from
8721 # the compiler, it worked.
8722 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8723 lt_cv_apple_cc_single_mod=yes
8724 else
8725 cat conftest.err >&5
8726 fi
8727 rm -rf libconftest.dylib*
8728 rm -f conftest.*
8729 fi ;;
8730 esac
8731 fi
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8733 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8734
8735 # Feature test to disable chained fixups since it is not
8736 # compatible with '-undefined dynamic_lookup'
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8738 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8739 if test ${lt_cv_support_no_fixup_chains+y}
8740 then :
8741 printf %s "(cached) " >&6
8742 else case e in #(
8743 e) save_LDFLAGS=$LDFLAGS
8744 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747
8748 int
8749 main (void)
8750 {
8751
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"
8757 then :
8758 lt_cv_support_no_fixup_chains=yes
8759 else case e in #(
8760 e) lt_cv_support_no_fixup_chains=no
8761 ;;
8762 esac
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LDFLAGS=$save_LDFLAGS
8767
8768 ;;
8769 esac
8770 fi
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8772 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8773
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8775 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8776 if test ${lt_cv_ld_exported_symbols_list+y}
8777 then :
8778 printf %s "(cached) " >&6
8779 else case e in #(
8780 e) lt_cv_ld_exported_symbols_list=no
8781 save_LDFLAGS=$LDFLAGS
8782 echo "_main" > conftest.sym
8783 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786
8787 int
8788 main (void)
8789 {
8790
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"
8796 then :
8797 lt_cv_ld_exported_symbols_list=yes
8798 else case e in #(
8799 e) lt_cv_ld_exported_symbols_list=no ;;
8800 esac
8801 fi
8802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8803 conftest$ac_exeext conftest.$ac_ext
8804 LDFLAGS=$save_LDFLAGS
8805 ;;
8806 esac
8807 fi
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8809 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8810
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8812 printf %s "checking for -force_load linker flag... " >&6; }
8813 if test ${lt_cv_ld_force_load+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else case e in #(
8817 e) lt_cv_ld_force_load=no
8818 cat > conftest.c << _LT_EOF
8819 int forced_loaded() { return 2;}
8820 _LT_EOF
8821 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8822 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8823 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8824 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8825 echo "$RANLIB libconftest.a" >&5
8826 $RANLIB libconftest.a 2>&5
8827 cat > conftest.c << _LT_EOF
8828 int main(void) { return 0;}
8829 _LT_EOF
8830 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8831 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8832 _lt_result=$?
8833 if test -s conftest.err && $GREP force_load conftest.err; then
8834 cat conftest.err >&5
8835 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8836 lt_cv_ld_force_load=yes
8837 else
8838 cat conftest.err >&5
8839 fi
8840 rm -f conftest.err libconftest.a conftest conftest.c
8841 rm -rf conftest.dSYM
8842 ;;
8843 esac
8844 fi
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8846 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8847 case $host_os in
8848 rhapsody* | darwin1.[012])
8849 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8850 darwin1.*)
8851 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8852 darwin*)
8853 case $MACOSX_DEPLOYMENT_TARGET,$host in
8854 10.[012],*|,*powerpc*-darwin[5-8]*)
8855 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8856 *)
8857 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8858 if test yes = "$lt_cv_support_no_fixup_chains"; then
8859 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8860 fi
8861 ;;
8862 esac
8863 ;;
8864 esac
8865 if test yes = "$lt_cv_apple_cc_single_mod"; then
8866 _lt_dar_single_mod='$single_module'
8867 fi
8868 _lt_dar_needs_single_mod=no
8869 case $host_os in
8870 rhapsody* | darwin1.*)
8871 _lt_dar_needs_single_mod=yes ;;
8872 darwin*)
8873 # When targeting Mac OS X 10.4 (darwin 8) or later,
8874 # -single_module is the default and -multi_module is unsupported.
8875 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8876 # target any OS version that needs -single_module.
8877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8878 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8879 _lt_dar_needs_single_mod=yes ;;
8880 esac
8881 ;;
8882 esac
8883 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8884 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8885 else
8886 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8887 fi
8888 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8889 _lt_dsymutil='~$DSYMUTIL $lib || :'
8890 else
8891 _lt_dsymutil=
8892 fi
8893 ;;
8894 esac
8895
8896 # func_munge_path_list VARIABLE PATH
8897 # -----------------------------------
8898 # VARIABLE is name of variable containing _space_ separated list of
8899 # directories to be munged by the contents of PATH, which is string
8900 # having a format:
8901 # "DIR[:DIR]:"
8902 # string "DIR[ DIR]" will be prepended to VARIABLE
8903 # ":DIR[:DIR]"
8904 # string "DIR[ DIR]" will be appended to VARIABLE
8905 # "DIRP[:DIRP]::[DIRA:]DIRA"
8906 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8907 # "DIRA[ DIRA]" will be appended to VARIABLE
8908 # "DIR[:DIR]"
8909 # VARIABLE will be replaced by "DIR[ DIR]"
8910 func_munge_path_list ()
8911 {
8912 case x$2 in
8913 x)
8914 ;;
8915 *:)
8916 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8917 ;;
8918 x:*)
8919 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8920 ;;
8921 *::*)
8922 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8923 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8924 ;;
8925 *)
8926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8927 ;;
8928 esac
8929 }
8930
8931 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8932 "
8933 if test "x$ac_cv_header_dlfcn_h" = xyes
8934 then :
8935 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8936
8937 fi
8938
8939
8940
8941
8942
8943 # Set options
8944
8945
8946
8947 enable_dlopen=no
8948
8949
8950 enable_win32_dll=no
8951
8952
8953 # Check whether --enable-shared was given.
8954 if test ${enable_shared+y}
8955 then :
8956 enableval=$enable_shared; p=${PACKAGE-default}
8957 case $enableval in
8958 yes) enable_shared=yes ;;
8959 no) enable_shared=no ;;
8960 *)
8961 enable_shared=no
8962 # Look at the argument we got. We use all the common list separators.
8963 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8964 for pkg in $enableval; do
8965 IFS=$lt_save_ifs
8966 if test "X$pkg" = "X$p"; then
8967 enable_shared=yes
8968 fi
8969 done
8970 IFS=$lt_save_ifs
8971 ;;
8972 esac
8973 else case e in #(
8974 e) enable_shared=yes ;;
8975 esac
8976 fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986 # Check whether --enable-static was given.
8987 if test ${enable_static+y}
8988 then :
8989 enableval=$enable_static; p=${PACKAGE-default}
8990 case $enableval in
8991 yes) enable_static=yes ;;
8992 no) enable_static=no ;;
8993 *)
8994 enable_static=no
8995 # Look at the argument we got. We use all the common list separators.
8996 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8997 for pkg in $enableval; do
8998 IFS=$lt_save_ifs
8999 if test "X$pkg" = "X$p"; then
9000 enable_static=yes
9001 fi
9002 done
9003 IFS=$lt_save_ifs
9004 ;;
9005 esac
9006 else case e in #(
9007 e) enable_static=yes ;;
9008 esac
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 # Check whether --enable-pic was given.
9020 if test ${enable_pic+y}
9021 then :
9022 enableval=$enable_pic; lt_p=${PACKAGE-default}
9023 case $enableval in
9024 yes|no) pic_mode=$enableval ;;
9025 *)
9026 pic_mode=default
9027 # Look at the argument we got. We use all the common list separators.
9028 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9029 for lt_pkg in $enableval; do
9030 IFS=$lt_save_ifs
9031 if test "X$lt_pkg" = "X$lt_p"; then
9032 pic_mode=yes
9033 fi
9034 done
9035 IFS=$lt_save_ifs
9036 ;;
9037 esac
9038 else case e in #(
9039 e) # Check whether --with-pic was given.
9040 if test ${with_pic+y}
9041 then :
9042 withval=$with_pic; lt_p=${PACKAGE-default}
9043 case $withval in
9044 yes|no) pic_mode=$withval ;;
9045 *)
9046 pic_mode=default
9047 # Look at the argument we got. We use all the common list separators.
9048 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9049 for lt_pkg in $withval; do
9050 IFS=$lt_save_ifs
9051 if test "X$lt_pkg" = "X$lt_p"; then
9052 pic_mode=yes
9053 fi
9054 done
9055 IFS=$lt_save_ifs
9056 ;;
9057 esac
9058 else case e in #(
9059 e) pic_mode=default ;;
9060 esac
9061 fi
9062
9063 ;;
9064 esac
9065 fi
9066
9067
9068
9069
9070
9071
9072
9073
9074 # Check whether --enable-fast-install was given.
9075 if test ${enable_fast_install+y}
9076 then :
9077 enableval=$enable_fast_install; p=${PACKAGE-default}
9078 case $enableval in
9079 yes) enable_fast_install=yes ;;
9080 no) enable_fast_install=no ;;
9081 *)
9082 enable_fast_install=no
9083 # Look at the argument we got. We use all the common list separators.
9084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9085 for pkg in $enableval; do
9086 IFS=$lt_save_ifs
9087 if test "X$pkg" = "X$p"; then
9088 enable_fast_install=yes
9089 fi
9090 done
9091 IFS=$lt_save_ifs
9092 ;;
9093 esac
9094 else case e in #(
9095 e) enable_fast_install=yes ;;
9096 esac
9097 fi
9098
9099
9100
9101
9102
9103
9104
9105
9106 shared_archive_member_spec=
9107 case $host,$enable_shared in
9108 power*-*-aix[5-9]*,yes)
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9110 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9111 # Check whether --enable-aix-soname was given.
9112 if test ${enable_aix_soname+y}
9113 then :
9114 enableval=$enable_aix_soname; case $enableval in
9115 aix|svr4|both)
9116 ;;
9117 *)
9118 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9119 ;;
9120 esac
9121 lt_cv_with_aix_soname=$enable_aix_soname
9122 else case e in #(
9123 e) # Check whether --with-aix-soname was given.
9124 if test ${with_aix_soname+y}
9125 then :
9126 withval=$with_aix_soname; case $withval in
9127 aix|svr4|both)
9128 ;;
9129 *)
9130 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9131 ;;
9132 esac
9133 lt_cv_with_aix_soname=$with_aix_soname
9134 else case e in #(
9135 e) if test ${lt_cv_with_aix_soname+y}
9136 then :
9137 printf %s "(cached) " >&6
9138 else case e in #(
9139 e) lt_cv_with_aix_soname=aix ;;
9140 esac
9141 fi
9142 ;;
9143 esac
9144 fi
9145
9146 enable_aix_soname=$lt_cv_with_aix_soname ;;
9147 esac
9148 fi
9149
9150 with_aix_soname=$enable_aix_soname
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9152 printf "%s\n" "$with_aix_soname" >&6; }
9153 if test aix != "$with_aix_soname"; then
9154 # For the AIX way of multilib, we name the shared archive member
9155 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9156 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9157 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9158 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9159 if test 64 = "${OBJECT_MODE-32}"; then
9160 shared_archive_member_spec=shr_64
9161 else
9162 shared_archive_member_spec=shr
9163 fi
9164 fi
9165 ;;
9166 *)
9167 with_aix_soname=aix
9168 ;;
9169 esac
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 # This can be used to rebuild libtool when needed
9181 LIBTOOL_DEPS=$ltmain
9182
9183 # Always use our own libtool.
9184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 test -z "$LN_S" && LN_S="ln -s"
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 if test -n "${ZSH_VERSION+set}"; then
9231 setopt NO_GLOB_SUBST
9232 fi
9233
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9235 printf %s "checking for objdir... " >&6; }
9236 if test ${lt_cv_objdir+y}
9237 then :
9238 printf %s "(cached) " >&6
9239 else case e in #(
9240 e) rm -f .libs 2>/dev/null
9241 mkdir .libs 2>/dev/null
9242 if test -d .libs; then
9243 lt_cv_objdir=.libs
9244 else
9245 # MS-DOS does not allow filenames that begin with a dot.
9246 lt_cv_objdir=_libs
9247 fi
9248 rmdir .libs 2>/dev/null ;;
9249 esac
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9252 printf "%s\n" "$lt_cv_objdir" >&6; }
9253 objdir=$lt_cv_objdir
9254
9255
9256
9257
9258
9259 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9260
9261
9262
9263
9264 case $host_os in
9265 aix3*)
9266 # AIX sometimes has problems with the GCC collect2 program. For some
9267 # reason, if we set the COLLECT_NAMES environment variable, the problems
9268 # vanish in a puff of smoke.
9269 if test set != "${COLLECT_NAMES+set}"; then
9270 COLLECT_NAMES=
9271 export COLLECT_NAMES
9272 fi
9273 ;;
9274 esac
9275
9276 # Global variables:
9277 ofile=libtool
9278 can_build_shared=yes
9279
9280 # All known linkers require a '.a' archive for static linking (except MSVC and
9281 # ICC, which need '.lib').
9282 libext=a
9283
9284 with_gnu_ld=$lt_cv_prog_gnu_ld
9285
9286 old_CC=$CC
9287 old_CFLAGS=$CFLAGS
9288
9289 # Set sane defaults for various variables
9290 test -z "$CC" && CC=cc
9291 test -z "$LTCC" && LTCC=$CC
9292 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9293 test -z "$LD" && LD=ld
9294 test -z "$ac_objext" && ac_objext=o
9295
9296 func_cc_basename $compiler
9297 cc_basename=$func_cc_basename_result
9298
9299
9300 # Only perform the check for file, if the check method requires it
9301 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9302 case $deplibs_check_method in
9303 file_magic*)
9304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9306 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9307 if test ${lt_cv_path_MAGIC_CMD+y}
9308 then :
9309 printf %s "(cached) " >&6
9310 else case e in #(
9311 e) case $MAGIC_CMD in
9312 [\\/*] | ?:[\\/]*)
9313 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9314 ;;
9315 *)
9316 lt_save_MAGIC_CMD=$MAGIC_CMD
9317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9319 for ac_dir in $ac_dummy; do
9320 IFS=$lt_save_ifs
9321 test -z "$ac_dir" && ac_dir=.
9322 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9323 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9324 if test -n "$file_magic_test_file"; then
9325 case $deplibs_check_method in
9326 "file_magic "*)
9327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9328 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9330 $EGREP "$file_magic_regex" > /dev/null; then
9331 :
9332 else
9333 cat <<_LT_EOF 1>&2
9334
9335 *** Warning: the command libtool uses to detect shared libraries,
9336 *** $file_magic_cmd, produces output that libtool cannot recognize.
9337 *** The result is that libtool may fail to recognize shared libraries
9338 *** as such. This will affect the creation of libtool libraries that
9339 *** depend on shared libraries, but programs linked with such libtool
9340 *** libraries will work regardless of this problem. Nevertheless, you
9341 *** may want to report the problem to your system manager and/or to
9342 *** [email protected]
9343
9344 _LT_EOF
9345 fi ;;
9346 esac
9347 fi
9348 break
9349 fi
9350 done
9351 IFS=$lt_save_ifs
9352 MAGIC_CMD=$lt_save_MAGIC_CMD
9353 ;;
9354 esac ;;
9355 esac
9356 fi
9357
9358 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9359 if test -n "$MAGIC_CMD"; then
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9361 printf "%s\n" "$MAGIC_CMD" >&6; }
9362 else
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 printf "%s\n" "no" >&6; }
9365 fi
9366
9367
9368
9369
9370
9371 if test -z "$lt_cv_path_MAGIC_CMD"; then
9372 if test -n "$ac_tool_prefix"; then
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9374 printf %s "checking for file... " >&6; }
9375 if test ${lt_cv_path_MAGIC_CMD+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else case e in #(
9379 e) case $MAGIC_CMD in
9380 [\\/*] | ?:[\\/]*)
9381 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9382 ;;
9383 *)
9384 lt_save_MAGIC_CMD=$MAGIC_CMD
9385 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9387 for ac_dir in $ac_dummy; do
9388 IFS=$lt_save_ifs
9389 test -z "$ac_dir" && ac_dir=.
9390 if test -f "$ac_dir/file"; then
9391 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9392 if test -n "$file_magic_test_file"; then
9393 case $deplibs_check_method in
9394 "file_magic "*)
9395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9398 $EGREP "$file_magic_regex" > /dev/null; then
9399 :
9400 else
9401 cat <<_LT_EOF 1>&2
9402
9403 *** Warning: the command libtool uses to detect shared libraries,
9404 *** $file_magic_cmd, produces output that libtool cannot recognize.
9405 *** The result is that libtool may fail to recognize shared libraries
9406 *** as such. This will affect the creation of libtool libraries that
9407 *** depend on shared libraries, but programs linked with such libtool
9408 *** libraries will work regardless of this problem. Nevertheless, you
9409 *** may want to report the problem to your system manager and/or to
9410 *** [email protected]
9411
9412 _LT_EOF
9413 fi ;;
9414 esac
9415 fi
9416 break
9417 fi
9418 done
9419 IFS=$lt_save_ifs
9420 MAGIC_CMD=$lt_save_MAGIC_CMD
9421 ;;
9422 esac ;;
9423 esac
9424 fi
9425
9426 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9427 if test -n "$MAGIC_CMD"; then
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9429 printf "%s\n" "$MAGIC_CMD" >&6; }
9430 else
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 printf "%s\n" "no" >&6; }
9433 fi
9434
9435
9436 else
9437 MAGIC_CMD=:
9438 fi
9439 fi
9440
9441 fi
9442 ;;
9443 esac
9444
9445 # Use C for the default configuration in the libtool script
9446
9447 lt_save_CC=$CC
9448 ac_ext=c
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453
9454
9455 # Source file extension for C test sources.
9456 ac_ext=c
9457
9458 # Object file extension for compiled C test sources.
9459 objext=o
9460 objext=$objext
9461
9462 # Code to be used in simple compile tests
9463 lt_simple_compile_test_code="int some_variable = 0;"
9464
9465 # Code to be used in simple link tests
9466 lt_simple_link_test_code='int main(void){return(0);}'
9467
9468
9469
9470
9471
9472
9473
9474 # If no C compiler was specified, use CC.
9475 LTCC=${LTCC-"$CC"}
9476
9477 # If no C compiler flags were specified, use CFLAGS.
9478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9479
9480 # Allow CC to be a program name with arguments.
9481 compiler=$CC
9482
9483 # Save the default compiler, since it gets overwritten when the other
9484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9485 compiler_DEFAULT=$CC
9486
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9492 $RM conftest*
9493
9494 ac_outfile=conftest.$ac_objext
9495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9498 $RM -r conftest*
9499
9500
9501 if test -n "$compiler"; then
9502
9503 lt_prog_compiler_no_builtin_flag=
9504
9505 if test yes = "$GCC"; then
9506 case $cc_basename in
9507 nvcc*)
9508 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9509 *)
9510 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9511 esac
9512
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9514 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9515 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9516 then :
9517 printf %s "(cached) " >&6
9518 else case e in #(
9519 e) lt_cv_prog_compiler_rtti_exceptions=no
9520 ac_outfile=conftest.$ac_objext
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9523 # Insert the option either (1) after the last *FLAGS variable, or
9524 # (2) before a word containing "conftest.", or (3) at the end.
9525 # Note that $ac_compile itself does not contain backslashes and begins
9526 # with a dollar sign (not a hyphen), so the echo should work correctly.
9527 # The option is referenced via a variable to avoid confusing sed.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9533 (eval "$lt_compile" 2>conftest.err)
9534 ac_status=$?
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 if (exit $ac_status) && test -s "$ac_outfile"; then
9538 # The compiler can only warn and ignore the option if not recognized
9539 # So say no if there are warnings other than the usual output.
9540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9543 lt_cv_prog_compiler_rtti_exceptions=yes
9544 fi
9545 fi
9546 $RM conftest*
9547 ;;
9548 esac
9549 fi
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9551 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9552
9553 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9554 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9555 else
9556 :
9557 fi
9558
9559 fi
9560
9561
9562
9563
9564
9565
9566 lt_prog_compiler_wl=
9567 lt_prog_compiler_pic=
9568 lt_prog_compiler_static=
9569
9570
9571 if test yes = "$GCC"; then
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_static='-static'
9574
9575 case $host_os in
9576 aix*)
9577 # All AIX code is PIC.
9578 if test ia64 = "$host_cpu"; then
9579 # AIX 5 now supports IA64 processor
9580 lt_prog_compiler_static='-Bstatic'
9581 fi
9582 lt_prog_compiler_pic='-fPIC'
9583 ;;
9584
9585 amigaos*)
9586 case $host_cpu in
9587 powerpc)
9588 # see comment about AmigaOS4 .so support
9589 lt_prog_compiler_pic='-fPIC'
9590 ;;
9591 m68k)
9592 # FIXME: we need at least 68020 code to build shared libraries, but
9593 # adding the '-m68020' flag to GCC prevents building anything better,
9594 # like '-m68040'.
9595 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9596 ;;
9597 esac
9598 ;;
9599
9600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9601 # PIC is the default for these OSes.
9602 ;;
9603
9604 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9605 # This hack is so that the source file can tell whether it is being
9606 # built for inclusion in a dll (and should export symbols for example).
9607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9608 # (--disable-auto-import) libraries
9609 lt_prog_compiler_pic='-DDLL_EXPORT'
9610 case $host_os in
9611 os2*)
9612 lt_prog_compiler_static='$wl-static'
9613 ;;
9614 esac
9615 ;;
9616
9617 darwin* | rhapsody*)
9618 # PIC is the default on this platform
9619 # Common symbols not allowed in MH_DYLIB files
9620 lt_prog_compiler_pic='-fno-common'
9621 ;;
9622
9623 haiku*)
9624 # PIC is the default for Haiku.
9625 # The "-static" flag exists, but is broken.
9626 lt_prog_compiler_static=
9627 ;;
9628
9629 hpux*)
9630 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9631 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9632 # sets the default TLS model and affects inlining.
9633 case $host_cpu in
9634 hppa*64*)
9635 # +Z the default
9636 ;;
9637 *)
9638 lt_prog_compiler_pic='-fPIC'
9639 ;;
9640 esac
9641 ;;
9642
9643 interix[3-9]*)
9644 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9645 # Instead, we relocate shared libraries at runtime.
9646 ;;
9647
9648 msdosdjgpp*)
9649 # Just because we use GCC doesn't mean we suddenly get shared libraries
9650 # on systems that don't support them.
9651 lt_prog_compiler_can_build_shared=no
9652 enable_shared=no
9653 ;;
9654
9655 *nto* | *qnx*)
9656 # QNX uses GNU C++, but need to define -shared option too, otherwise
9657 # it will coredump.
9658 lt_prog_compiler_pic='-fPIC -shared'
9659 ;;
9660
9661 sysv4*MP*)
9662 if test -d /usr/nec; then
9663 lt_prog_compiler_pic=-Kconform_pic
9664 fi
9665 ;;
9666
9667 *)
9668 lt_prog_compiler_pic='-fPIC'
9669 ;;
9670 esac
9671
9672 case $cc_basename in
9673 nvcc*) # Cuda Compiler Driver 2.2
9674 lt_prog_compiler_wl='-Xlinker '
9675 if test -n "$lt_prog_compiler_pic"; then
9676 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9677 fi
9678 ;;
9679 esac
9680 else
9681 # PORTME Check for flag to pass linker flags through the system compiler.
9682 case $host_os in
9683 aix*)
9684 lt_prog_compiler_wl='-Wl,'
9685 if test ia64 = "$host_cpu"; then
9686 # AIX 5 now supports IA64 processor
9687 lt_prog_compiler_static='-Bstatic'
9688 else
9689 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9690 fi
9691 ;;
9692
9693 darwin* | rhapsody*)
9694 # PIC is the default on this platform
9695 # Common symbols not allowed in MH_DYLIB files
9696 lt_prog_compiler_pic='-fno-common'
9697 case $cc_basename in
9698 nagfor*)
9699 # NAG Fortran compiler
9700 lt_prog_compiler_wl='-Wl,-Wl,,'
9701 lt_prog_compiler_pic='-PIC'
9702 lt_prog_compiler_static='-Bstatic'
9703 ;;
9704 esac
9705 ;;
9706
9707 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9708 # This hack is so that the source file can tell whether it is being
9709 # built for inclusion in a dll (and should export symbols for example).
9710 lt_prog_compiler_pic='-DDLL_EXPORT'
9711 case $host_os in
9712 os2*)
9713 lt_prog_compiler_static='$wl-static'
9714 ;;
9715 esac
9716 ;;
9717
9718 hpux9* | hpux10* | hpux11*)
9719 lt_prog_compiler_wl='-Wl,'
9720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9721 # not for PA HP-UX.
9722 case $host_cpu in
9723 hppa*64*|ia64*)
9724 # +Z the default
9725 ;;
9726 *)
9727 lt_prog_compiler_pic='+Z'
9728 ;;
9729 esac
9730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9731 lt_prog_compiler_static='$wl-a ${wl}archive'
9732 ;;
9733
9734 irix5* | irix6* | nonstopux*)
9735 lt_prog_compiler_wl='-Wl,'
9736 # PIC (with -KPIC) is the default.
9737 lt_prog_compiler_static='-non_shared'
9738 ;;
9739
9740 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9741 case $cc_basename in
9742 # old Intel for x86_64, which still supported -KPIC.
9743 ecc*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-KPIC'
9746 lt_prog_compiler_static='-static'
9747 ;;
9748 *flang* | ftn | f18* | f95*)
9749 # Flang compiler.
9750 lt_prog_compiler_wl='-Wl,'
9751 lt_prog_compiler_pic='-fPIC'
9752 lt_prog_compiler_static='-static'
9753 ;;
9754 # icc used to be incompatible with GCC.
9755 # ICC 10 doesn't accept -KPIC any more.
9756 icc* | ifort*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-fPIC'
9759 lt_prog_compiler_static='-static'
9760 ;;
9761 # Lahey Fortran 8.1.
9762 lf95*)
9763 lt_prog_compiler_wl='-Wl,'
9764 lt_prog_compiler_pic='--shared'
9765 lt_prog_compiler_static='--static'
9766 ;;
9767 nagfor*)
9768 # NAG Fortran compiler
9769 lt_prog_compiler_wl='-Wl,-Wl,,'
9770 lt_prog_compiler_pic='-PIC'
9771 lt_prog_compiler_static='-Bstatic'
9772 ;;
9773 tcc*)
9774 # Fabrice Bellard et al's Tiny C Compiler
9775 lt_prog_compiler_wl='-Wl,'
9776 lt_prog_compiler_pic='-fPIC'
9777 lt_prog_compiler_static='-static'
9778 ;;
9779 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9780 # Portland Group compilers (*not* the Pentium gcc compiler,
9781 # which looks to be a dead project)
9782 lt_prog_compiler_wl='-Wl,'
9783 lt_prog_compiler_pic='-fpic'
9784 lt_prog_compiler_static='-Bstatic'
9785 ;;
9786 ccc*)
9787 lt_prog_compiler_wl='-Wl,'
9788 # All Alpha code is PIC.
9789 lt_prog_compiler_static='-non_shared'
9790 ;;
9791 xl* | bgxl* | bgf* | mpixl*)
9792 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_pic='-qpic'
9795 lt_prog_compiler_static='-qstaticlink'
9796 ;;
9797 *)
9798 case `$CC -V 2>&1 | $SED 5q` in
9799 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9800 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9803 lt_prog_compiler_wl=''
9804 ;;
9805 *Sun\ F* | *Sun*Fortran*)
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-Bstatic'
9808 lt_prog_compiler_wl='-Qoption ld '
9809 ;;
9810 *Sun\ C*)
9811 # Sun C 5.9
9812 lt_prog_compiler_pic='-KPIC'
9813 lt_prog_compiler_static='-Bstatic'
9814 lt_prog_compiler_wl='-Wl,'
9815 ;;
9816 *Intel*\ [CF]*Compiler*)
9817 lt_prog_compiler_wl='-Wl,'
9818 lt_prog_compiler_pic='-fPIC'
9819 lt_prog_compiler_static='-static'
9820 ;;
9821 *Portland\ Group*)
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='-fpic'
9824 lt_prog_compiler_static='-Bstatic'
9825 ;;
9826 esac
9827 ;;
9828 esac
9829 ;;
9830
9831 newsos6)
9832 lt_prog_compiler_pic='-KPIC'
9833 lt_prog_compiler_static='-Bstatic'
9834 ;;
9835
9836 *-mlibc)
9837 lt_prog_compiler_wl='-Wl,'
9838 lt_prog_compiler_pic='-fPIC'
9839 lt_prog_compiler_static='-static'
9840 ;;
9841
9842 *nto* | *qnx*)
9843 # QNX uses GNU C++, but need to define -shared option too, otherwise
9844 # it will coredump.
9845 lt_prog_compiler_pic='-fPIC -shared'
9846 ;;
9847
9848 osf3* | osf4* | osf5*)
9849 lt_prog_compiler_wl='-Wl,'
9850 # All OSF/1 code is PIC.
9851 lt_prog_compiler_static='-non_shared'
9852 ;;
9853
9854 rdos*)
9855 lt_prog_compiler_static='-non_shared'
9856 ;;
9857
9858 serenity*)
9859 ;;
9860
9861 solaris*)
9862 lt_prog_compiler_pic='-KPIC'
9863 lt_prog_compiler_static='-Bstatic'
9864 case $cc_basename in
9865 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9866 lt_prog_compiler_wl='-Qoption ld ';;
9867 *)
9868 lt_prog_compiler_wl='-Wl,';;
9869 esac
9870 ;;
9871
9872 sunos4*)
9873 lt_prog_compiler_wl='-Qoption ld '
9874 lt_prog_compiler_pic='-PIC'
9875 lt_prog_compiler_static='-Bstatic'
9876 ;;
9877
9878 sysv4 | sysv4.2uw2* | sysv4.3*)
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-Bstatic'
9882 ;;
9883
9884 sysv4*MP*)
9885 if test -d /usr/nec; then
9886 lt_prog_compiler_pic='-Kconform_pic'
9887 lt_prog_compiler_static='-Bstatic'
9888 fi
9889 ;;
9890
9891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='-KPIC'
9894 lt_prog_compiler_static='-Bstatic'
9895 ;;
9896
9897 unicos*)
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_can_build_shared=no
9900 ;;
9901
9902 uts4*)
9903 lt_prog_compiler_pic='-pic'
9904 lt_prog_compiler_static='-Bstatic'
9905 ;;
9906
9907 *)
9908 lt_prog_compiler_can_build_shared=no
9909 ;;
9910 esac
9911 fi
9912
9913 case $host_os in
9914 # For platforms that do not support PIC, -DPIC is meaningless:
9915 *djgpp*)
9916 lt_prog_compiler_pic=
9917 ;;
9918 *)
9919 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9920 ;;
9921 esac
9922
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9924 printf %s "checking for $compiler option to produce PIC... " >&6; }
9925 if test ${lt_cv_prog_compiler_pic+y}
9926 then :
9927 printf %s "(cached) " >&6
9928 else case e in #(
9929 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9930 esac
9931 fi
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9933 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9934 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9935
9936 #
9937 # Check to make sure the PIC flag actually works.
9938 #
9939 if test -n "$lt_prog_compiler_pic"; then
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9941 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9942 if test ${lt_cv_prog_compiler_pic_works+y}
9943 then :
9944 printf %s "(cached) " >&6
9945 else case e in #(
9946 e) lt_cv_prog_compiler_pic_works=no
9947 ac_outfile=conftest.$ac_objext
9948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9949 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9950 # Insert the option either (1) after the last *FLAGS variable, or
9951 # (2) before a word containing "conftest.", or (3) at the end.
9952 # Note that $ac_compile itself does not contain backslashes and begins
9953 # with a dollar sign (not a hyphen), so the echo should work correctly.
9954 # The option is referenced via a variable to avoid confusing sed.
9955 lt_compile=`echo "$ac_compile" | $SED \
9956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9958 -e 's:$: $lt_compiler_flag:'`
9959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9960 (eval "$lt_compile" 2>conftest.err)
9961 ac_status=$?
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 if (exit $ac_status) && test -s "$ac_outfile"; then
9965 # The compiler can only warn and ignore the option if not recognized
9966 # So say no if there are warnings other than the usual output.
9967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9970 lt_cv_prog_compiler_pic_works=yes
9971 fi
9972 fi
9973 $RM conftest*
9974 ;;
9975 esac
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9978 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9979
9980 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9981 case $lt_prog_compiler_pic in
9982 "" | " "*) ;;
9983 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9984 esac
9985 else
9986 lt_prog_compiler_pic=
9987 lt_prog_compiler_can_build_shared=no
9988 fi
9989
9990 fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 #
10003 # Check to make sure the static flag actually works.
10004 #
10005 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10007 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10008 if test ${lt_cv_prog_compiler_static_works+y}
10009 then :
10010 printf %s "(cached) " >&6
10011 else case e in #(
10012 e) lt_cv_prog_compiler_static_works=no
10013 save_LDFLAGS=$LDFLAGS
10014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10017 # The linker can only warn and ignore the option if not recognized
10018 # So say no if there are warnings
10019 if test -s conftest.err; then
10020 # Append any errors to the config.log.
10021 cat conftest.err 1>&5
10022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10024 if diff conftest.exp conftest.er2 >/dev/null; then
10025 lt_cv_prog_compiler_static_works=yes
10026 fi
10027 else
10028 lt_cv_prog_compiler_static_works=yes
10029 fi
10030 fi
10031 $RM -r conftest*
10032 LDFLAGS=$save_LDFLAGS
10033 ;;
10034 esac
10035 fi
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10037 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10038
10039 if test yes = "$lt_cv_prog_compiler_static_works"; then
10040 :
10041 else
10042 lt_prog_compiler_static=
10043 fi
10044
10045
10046
10047
10048
10049
10050
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10052 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10053 if test ${lt_cv_prog_compiler_c_o+y}
10054 then :
10055 printf %s "(cached) " >&6
10056 else case e in #(
10057 e) lt_cv_prog_compiler_c_o=no
10058 $RM -r conftest 2>/dev/null
10059 mkdir conftest
10060 cd conftest
10061 mkdir out
10062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10063
10064 lt_compiler_flag="-o out/conftest2.$ac_objext"
10065 # Insert the option either (1) after the last *FLAGS variable, or
10066 # (2) before a word containing "conftest.", or (3) at the end.
10067 # Note that $ac_compile itself does not contain backslashes and begins
10068 # with a dollar sign (not a hyphen), so the echo should work correctly.
10069 lt_compile=`echo "$ac_compile" | $SED \
10070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10072 -e 's:$: $lt_compiler_flag:'`
10073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10074 (eval "$lt_compile" 2>out/conftest.err)
10075 ac_status=$?
10076 cat out/conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10079 then
10080 # The compiler can only warn and ignore the option if not recognized
10081 # So say no if there are warnings
10082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10085 lt_cv_prog_compiler_c_o=yes
10086 fi
10087 fi
10088 chmod u+w . 2>&5
10089 $RM conftest*
10090 # SGI C++ compiler will create directory out/ii_files/ for
10091 # template instantiation
10092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10093 $RM out/* && rmdir out
10094 cd ..
10095 $RM -r conftest
10096 $RM conftest*
10097 ;;
10098 esac
10099 fi
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10101 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10102
10103
10104
10105
10106
10107
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10109 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10110 if test ${lt_cv_prog_compiler_c_o+y}
10111 then :
10112 printf %s "(cached) " >&6
10113 else case e in #(
10114 e) lt_cv_prog_compiler_c_o=no
10115 $RM -r conftest 2>/dev/null
10116 mkdir conftest
10117 cd conftest
10118 mkdir out
10119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10120
10121 lt_compiler_flag="-o out/conftest2.$ac_objext"
10122 # Insert the option either (1) after the last *FLAGS variable, or
10123 # (2) before a word containing "conftest.", or (3) at the end.
10124 # Note that $ac_compile itself does not contain backslashes and begins
10125 # with a dollar sign (not a hyphen), so the echo should work correctly.
10126 lt_compile=`echo "$ac_compile" | $SED \
10127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10129 -e 's:$: $lt_compiler_flag:'`
10130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10131 (eval "$lt_compile" 2>out/conftest.err)
10132 ac_status=$?
10133 cat out/conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10136 then
10137 # The compiler can only warn and ignore the option if not recognized
10138 # So say no if there are warnings
10139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10142 lt_cv_prog_compiler_c_o=yes
10143 fi
10144 fi
10145 chmod u+w . 2>&5
10146 $RM conftest*
10147 # SGI C++ compiler will create directory out/ii_files/ for
10148 # template instantiation
10149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10150 $RM out/* && rmdir out
10151 cd ..
10152 $RM -r conftest
10153 $RM conftest*
10154 ;;
10155 esac
10156 fi
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10158 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10159
10160
10161
10162
10163 hard_links=nottested
10164 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10165 # do not overwrite the value of need_locks provided by the user
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10167 printf %s "checking if we can lock with hard links... " >&6; }
10168 hard_links=yes
10169 $RM conftest*
10170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10171 touch conftest.a
10172 ln conftest.a conftest.b 2>&5 || hard_links=no
10173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10175 printf "%s\n" "$hard_links" >&6; }
10176 if test no = "$hard_links"; then
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10178 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10179 need_locks=warn
10180 fi
10181 else
10182 need_locks=no
10183 fi
10184
10185
10186
10187
10188
10189
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10191 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10192
10193 runpath_var=
10194 allow_undefined_flag=
10195 always_export_symbols=no
10196 archive_cmds=
10197 archive_expsym_cmds=
10198 compiler_needs_object=no
10199 enable_shared_with_static_runtimes=no
10200 export_dynamic_flag_spec=
10201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10202 hardcode_automatic=no
10203 hardcode_direct=no
10204 hardcode_direct_absolute=no
10205 hardcode_libdir_flag_spec=
10206 hardcode_libdir_separator=
10207 hardcode_minus_L=no
10208 hardcode_shlibpath_var=unsupported
10209 inherit_rpath=no
10210 link_all_deplibs=unknown
10211 module_cmds=
10212 module_expsym_cmds=
10213 old_archive_from_new_cmds=
10214 old_archive_from_expsyms_cmds=
10215 thread_safe_flag_spec=
10216 whole_archive_flag_spec=
10217 # include_expsyms should be a list of space-separated symbols to be *always*
10218 # included in the symbol list
10219 include_expsyms=
10220 # exclude_expsyms can be an extended regexp of symbols to exclude
10221 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10222 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10223 # as well as any symbol that contains 'd'.
10224 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10225 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10226 # platforms (ab)use it in PIC code, but their linkers get confused if
10227 # the symbol is explicitly referenced. Since portable code cannot
10228 # rely on this symbol name, it's probably fine to never include it in
10229 # preloaded symbol tables.
10230 # Exclude shared library initialization/finalization symbols.
10231 extract_expsyms_cmds=
10232
10233 case $host_os in
10234 cygwin* | mingw* | windows* | pw32* | cegcc*)
10235 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10236 # When not using gcc, we currently assume that we are using
10237 # Microsoft Visual C++ or Intel C++ Compiler.
10238 if test yes != "$GCC"; then
10239 with_gnu_ld=no
10240 fi
10241 ;;
10242 interix*)
10243 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10244 with_gnu_ld=yes
10245 ;;
10246 esac
10247
10248 ld_shlibs=yes
10249
10250 # On some targets, GNU ld is compatible enough with the native linker
10251 # that we're better off using the native interface for both.
10252 lt_use_gnu_ld_interface=no
10253 if test yes = "$with_gnu_ld"; then
10254 case $host_os in
10255 aix*)
10256 # The AIX port of GNU ld has always aspired to compatibility
10257 # with the native linker. However, as the warning in the GNU ld
10258 # block says, versions before 2.19.5* couldn't really create working
10259 # shared libraries, regardless of the interface used.
10260 case `$LD -v 2>&1` in
10261 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10262 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10263 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10264 *)
10265 lt_use_gnu_ld_interface=yes
10266 ;;
10267 esac
10268 ;;
10269 *)
10270 lt_use_gnu_ld_interface=yes
10271 ;;
10272 esac
10273 fi
10274
10275 if test yes = "$lt_use_gnu_ld_interface"; then
10276 # If archive_cmds runs LD, not CC, wlarc should be empty
10277 wlarc='$wl'
10278
10279 # Set some defaults for GNU ld with shared library support. These
10280 # are reset later if shared libraries are not supported. Putting them
10281 # here allows them to be overridden if necessary.
10282 runpath_var=LD_RUN_PATH
10283 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10284 export_dynamic_flag_spec='$wl--export-dynamic'
10285 # ancient GNU ld didn't support --whole-archive et. al.
10286 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10287 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10288 else
10289 whole_archive_flag_spec=
10290 fi
10291 supports_anon_versioning=no
10292 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10293 *GNU\ gold*) supports_anon_versioning=yes ;;
10294 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10295 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10296 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10297 *\ 2.11.*) ;; # other 2.11 versions
10298 *) supports_anon_versioning=yes ;;
10299 esac
10300
10301 # See if GNU ld supports shared libraries.
10302 case $host_os in
10303 aix[3-9]*)
10304 # On AIX/PPC, the GNU linker is very broken
10305 if test ia64 != "$host_cpu"; then
10306 ld_shlibs=no
10307 cat <<_LT_EOF 1>&2
10308
10309 *** Warning: the GNU linker, at least up to release 2.19, is reported
10310 *** to be unable to reliably create shared libraries on AIX.
10311 *** Therefore, libtool is disabling shared libraries support. If you
10312 *** really care for shared libraries, you may want to install binutils
10313 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10314 *** You will then need to restart the configuration process.
10315
10316 _LT_EOF
10317 fi
10318 ;;
10319
10320 amigaos*)
10321 case $host_cpu in
10322 powerpc)
10323 # see comment about AmigaOS4 .so support
10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10325 archive_expsym_cmds=''
10326 ;;
10327 m68k)
10328 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)'
10329 hardcode_libdir_flag_spec='-L$libdir'
10330 hardcode_minus_L=yes
10331 ;;
10332 esac
10333 ;;
10334
10335 beos*)
10336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10337 allow_undefined_flag=unsupported
10338 # Joseph Beckenbach <[email protected]> says some releases of gcc
10339 # support --undefined. This deserves some investigation. FIXME
10340 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10341 else
10342 ld_shlibs=no
10343 fi
10344 ;;
10345
10346 cygwin* | mingw* | windows* | pw32* | cegcc*)
10347 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10348 # as there is no search path for DLLs.
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 export_dynamic_flag_spec='$wl--export-all-symbols'
10351 allow_undefined_flag=unsupported
10352 always_export_symbols=no
10353 enable_shared_with_static_runtimes=yes
10354 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'
10355 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10356 file_list_spec='@'
10357
10358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10360 # If the export-symbols file already is a .def file, use it as
10361 # is; otherwise, prepend EXPORTS...
10362 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10363 cp $export_symbols $output_objdir/$soname.def;
10364 else
10365 echo EXPORTS > $output_objdir/$soname.def;
10366 cat $export_symbols >> $output_objdir/$soname.def;
10367 fi~
10368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369 else
10370 ld_shlibs=no
10371 fi
10372 ;;
10373
10374 haiku*)
10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376 link_all_deplibs=no
10377 ;;
10378
10379 os2*)
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_minus_L=yes
10382 allow_undefined_flag=unsupported
10383 shrext_cmds=.dll
10384 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10385 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10386 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10387 $ECHO EXPORTS >> $output_objdir/$libname.def~
10388 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10390 emximp -o $lib $output_objdir/$libname.def'
10391 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10394 $ECHO EXPORTS >> $output_objdir/$libname.def~
10395 prefix_cmds="$SED"~
10396 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10397 prefix_cmds="$prefix_cmds -e 1d";
10398 fi~
10399 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10400 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10402 emximp -o $lib $output_objdir/$libname.def'
10403 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10404 enable_shared_with_static_runtimes=yes
10405 file_list_spec='@'
10406 ;;
10407
10408 interix[3-9]*)
10409 hardcode_direct=no
10410 hardcode_shlibpath_var=no
10411 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10412 export_dynamic_flag_spec='$wl-E'
10413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10414 # Instead, shared libraries are loaded at an image base (0x10000000 by
10415 # default) and relocated if they conflict, which is a slow very memory
10416 # consuming and fragmenting process. To avoid this, we pick a random,
10417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10420 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'
10421 ;;
10422
10423 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10424 tmp_diet=no
10425 if test linux-dietlibc = "$host_os"; then
10426 case $cc_basename in
10427 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10428 esac
10429 fi
10430 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10431 && test no = "$tmp_diet"
10432 then
10433 tmp_addflag=' $pic_flag'
10434 tmp_sharedflag='-shared'
10435 case $cc_basename,$host_cpu in
10436 pgcc*) # Portland Group C compiler
10437 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'
10438 tmp_addflag=' $pic_flag'
10439 ;;
10440 pgf77* | pgf90* | pgf95* | pgfortran*)
10441 # Portland Group f77 and f90 compilers
10442 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'
10443 tmp_addflag=' $pic_flag -Mnomain' ;;
10444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10445 tmp_addflag=' -i_dynamic' ;;
10446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10447 tmp_addflag=' -i_dynamic -nofor_main' ;;
10448 ifc* | ifort*) # Intel Fortran compiler
10449 tmp_addflag=' -nofor_main' ;;
10450 lf95*) # Lahey Fortran 8.1
10451 whole_archive_flag_spec=
10452 tmp_sharedflag='--shared' ;;
10453 nagfor*) # NAGFOR 5.3
10454 tmp_sharedflag='-Wl,-shared' ;;
10455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10456 tmp_sharedflag='-qmkshrobj'
10457 tmp_addflag= ;;
10458 nvcc*) # Cuda Compiler Driver 2.2
10459 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'
10460 compiler_needs_object=yes
10461 ;;
10462 esac
10463 case `$CC -V 2>&1 | $SED 5q` in
10464 *Sun\ C*) # Sun C 5.9
10465 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'
10466 compiler_needs_object=yes
10467 tmp_sharedflag='-G' ;;
10468 *Sun\ F*) # Sun Fortran 8.3
10469 tmp_sharedflag='-G' ;;
10470 esac
10471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10472
10473 if test yes = "$supports_anon_versioning"; then
10474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10475 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10476 echo "local: *; };" >> $output_objdir/$libname.ver~
10477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10478 fi
10479
10480 case $cc_basename in
10481 tcc*)
10482 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10483 export_dynamic_flag_spec='-rdynamic'
10484 ;;
10485 xlf* | bgf* | bgxlf* | mpixlf*)
10486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10487 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10489 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10490 if test yes = "$supports_anon_versioning"; then
10491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10492 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10493 echo "local: *; };" >> $output_objdir/$libname.ver~
10494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10495 fi
10496 ;;
10497 esac
10498 else
10499 ld_shlibs=no
10500 fi
10501 ;;
10502
10503 *-mlibc)
10504 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10505 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10506 ;;
10507
10508 netbsd* | netbsdelf*-gnu)
10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10511 wlarc=
10512 else
10513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10514 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10515 fi
10516 ;;
10517
10518 solaris*)
10519 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10520 ld_shlibs=no
10521 cat <<_LT_EOF 1>&2
10522
10523 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10524 *** create shared libraries on Solaris systems. Therefore, libtool
10525 *** is disabling shared libraries support. We urge you to upgrade GNU
10526 *** binutils to release 2.9.1 or newer. Another option is to modify
10527 *** your PATH or compiler configuration so that the native linker is
10528 *** used, and then restart.
10529
10530 _LT_EOF
10531 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10534 else
10535 ld_shlibs=no
10536 fi
10537 ;;
10538
10539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10540 case `$LD -v 2>&1` in
10541 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10542 ld_shlibs=no
10543 cat <<_LT_EOF 1>&2
10544
10545 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10546 *** reliably create shared libraries on SCO systems. Therefore, libtool
10547 *** is disabling shared libraries support. We urge you to upgrade GNU
10548 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10549 *** your PATH or compiler configuration so that the native linker is
10550 *** used, and then restart.
10551
10552 _LT_EOF
10553 ;;
10554 *)
10555 # For security reasons, it is highly recommended that you always
10556 # use absolute paths for naming shared libraries, and exclude the
10557 # DT_RUNPATH tag from executables and libraries. But doing so
10558 # requires that you compile everything twice, which is a pain.
10559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10563 else
10564 ld_shlibs=no
10565 fi
10566 ;;
10567 esac
10568 ;;
10569
10570 sunos4*)
10571 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10572 wlarc=
10573 hardcode_direct=yes
10574 hardcode_shlibpath_var=no
10575 ;;
10576
10577 *)
10578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10580 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10581 else
10582 ld_shlibs=no
10583 fi
10584 ;;
10585 esac
10586
10587 if test no = "$ld_shlibs"; then
10588 runpath_var=
10589 hardcode_libdir_flag_spec=
10590 export_dynamic_flag_spec=
10591 whole_archive_flag_spec=
10592 fi
10593 else
10594 # PORTME fill in a description of your system's linker (not GNU ld)
10595 case $host_os in
10596 aix3*)
10597 allow_undefined_flag=unsupported
10598 always_export_symbols=yes
10599 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'
10600 # Note: this linker hardcodes the directories in LIBPATH if there
10601 # are no directories specified by -L.
10602 hardcode_minus_L=yes
10603 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10604 # Neither direct hardcoding nor static linking is supported with a
10605 # broken collect2.
10606 hardcode_direct=unsupported
10607 fi
10608 ;;
10609
10610 aix[4-9]*)
10611 if test ia64 = "$host_cpu"; then
10612 # On IA64, the linker does run time linking by default, so we don't
10613 # have to do anything special.
10614 aix_use_runtimelinking=no
10615 exp_sym_flag='-Bexport'
10616 no_entry_flag=
10617 else
10618 # If we're using GNU nm, then we don't want the "-C" option.
10619 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10620 # Without the "-l" option, or with the "-B" option, AIX nm treats
10621 # weak defined symbols like other global defined symbols, whereas
10622 # GNU nm marks them as "W".
10623 # While the 'weak' keyword is ignored in the Export File, we need
10624 # it in the Import File for the 'aix-soname' feature, so we have
10625 # to replace the "-B" option with "-P" for AIX nm.
10626 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10627 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'
10628 else
10629 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'
10630 fi
10631 aix_use_runtimelinking=no
10632
10633 # Test if we are trying to use run time linking or normal
10634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10635 # have runtime linking enabled, and use it for executables.
10636 # For shared libraries, we enable/disable runtime linking
10637 # depending on the kind of the shared library created -
10638 # when "with_aix_soname,aix_use_runtimelinking" is:
10639 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10640 # "aix,yes" lib.so shared, rtl:yes, for executables
10641 # lib.a static archive
10642 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10643 # lib.a(lib.so.V) shared, rtl:no, for executables
10644 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10645 # lib.a(lib.so.V) shared, rtl:no
10646 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10647 # lib.a static archive
10648 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10649 for ld_flag in $LDFLAGS; do
10650 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10651 aix_use_runtimelinking=yes
10652 break
10653 fi
10654 done
10655 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10656 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10657 # so we don't have lib.a shared libs to link our executables.
10658 # We have to force runtime linking in this case.
10659 aix_use_runtimelinking=yes
10660 LDFLAGS="$LDFLAGS -Wl,-brtl"
10661 fi
10662 ;;
10663 esac
10664
10665 exp_sym_flag='-bexport'
10666 no_entry_flag='-bnoentry'
10667 fi
10668
10669 # When large executables or shared objects are built, AIX ld can
10670 # have problems creating the table of contents. If linking a library
10671 # or program results in "error TOC overflow" add -mminimal-toc to
10672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10674
10675 archive_cmds=''
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 hardcode_libdir_separator=':'
10679 link_all_deplibs=yes
10680 file_list_spec='$wl-f,'
10681 case $with_aix_soname,$aix_use_runtimelinking in
10682 aix,*) ;; # traditional, no import file
10683 svr4,* | *,yes) # use import file
10684 # The Import File defines what to hardcode.
10685 hardcode_direct=no
10686 hardcode_direct_absolute=no
10687 ;;
10688 esac
10689
10690 if test yes = "$GCC"; then
10691 case $host_os in aix4.[012]|aix4.[012].*)
10692 # We only want to do this on AIX 4.2 and lower, the check
10693 # below for broken collect2 doesn't work under 4.3+
10694 collect2name=`$CC -print-prog-name=collect2`
10695 if test -f "$collect2name" &&
10696 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10697 then
10698 # We have reworked collect2
10699 :
10700 else
10701 # We have old collect2
10702 hardcode_direct=unsupported
10703 # It fails to find uninstalled libraries when the uninstalled
10704 # path is not listed in the libpath. Setting hardcode_minus_L
10705 # to unsupported forces relinking
10706 hardcode_minus_L=yes
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 hardcode_libdir_separator=
10709 fi
10710 ;;
10711 esac
10712 shared_flag='-shared'
10713 if test yes = "$aix_use_runtimelinking"; then
10714 shared_flag="$shared_flag "'$wl-G'
10715 fi
10716 # Need to ensure runtime linking is disabled for the traditional
10717 # shared library, or the linker may eventually find shared libraries
10718 # /with/ Import File - we do not want to mix them.
10719 shared_flag_aix='-shared'
10720 shared_flag_svr4='-shared $wl-G'
10721 else
10722 # not using gcc
10723 if test ia64 = "$host_cpu"; then
10724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10725 # chokes on -Wl,-G. The following line is correct:
10726 shared_flag='-G'
10727 else
10728 if test yes = "$aix_use_runtimelinking"; then
10729 shared_flag='$wl-G'
10730 else
10731 shared_flag='$wl-bM:SRE'
10732 fi
10733 shared_flag_aix='$wl-bM:SRE'
10734 shared_flag_svr4='$wl-G'
10735 fi
10736 fi
10737
10738 export_dynamic_flag_spec='$wl-bexpall'
10739 # It seems that -bexpall does not export symbols beginning with
10740 # underscore (_), so it is better to generate a list of symbols to export.
10741 always_export_symbols=yes
10742 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10743 # Warning - without using the other runtime loading flags (-brtl),
10744 # -berok will link without error, but may produce a broken library.
10745 allow_undefined_flag='-berok'
10746 # Determine the default libpath from the value encoded in an
10747 # empty executable.
10748 if test set = "${lt_cv_aix_libpath+set}"; then
10749 aix_libpath=$lt_cv_aix_libpath
10750 else
10751 if test ${lt_cv_aix_libpath_+y}
10752 then :
10753 printf %s "(cached) " >&6
10754 else case e in #(
10755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757
10758 int
10759 main (void)
10760 {
10761
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_link "$LINENO"
10767 then :
10768
10769 lt_aix_libpath_sed='
10770 /Import File Strings/,/^$/ {
10771 /^0/ {
10772 s/^0 *\([^ ]*\) *$/\1/
10773 p
10774 }
10775 }'
10776 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10777 # Check for a 64-bit object if we didn't find anything.
10778 if test -z "$lt_cv_aix_libpath_"; then
10779 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780 fi
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10783 conftest$ac_exeext conftest.$ac_ext
10784 if test -z "$lt_cv_aix_libpath_"; then
10785 lt_cv_aix_libpath_=/usr/lib:/lib
10786 fi
10787 ;;
10788 esac
10789 fi
10790
10791 aix_libpath=$lt_cv_aix_libpath_
10792 fi
10793
10794 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10795 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
10796 else
10797 if test ia64 = "$host_cpu"; then
10798 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10799 allow_undefined_flag="-z nodefs"
10800 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"
10801 else
10802 # Determine the default libpath from the value encoded in an
10803 # empty executable.
10804 if test set = "${lt_cv_aix_libpath+set}"; then
10805 aix_libpath=$lt_cv_aix_libpath
10806 else
10807 if test ${lt_cv_aix_libpath_+y}
10808 then :
10809 printf %s "(cached) " >&6
10810 else case e in #(
10811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813
10814 int
10815 main (void)
10816 {
10817
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"
10823 then :
10824
10825 lt_aix_libpath_sed='
10826 /Import File Strings/,/^$/ {
10827 /^0/ {
10828 s/^0 *\([^ ]*\) *$/\1/
10829 p
10830 }
10831 }'
10832 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836 fi
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10839 conftest$ac_exeext conftest.$ac_ext
10840 if test -z "$lt_cv_aix_libpath_"; then
10841 lt_cv_aix_libpath_=/usr/lib:/lib
10842 fi
10843 ;;
10844 esac
10845 fi
10846
10847 aix_libpath=$lt_cv_aix_libpath_
10848 fi
10849
10850 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10851 # Warning - without using the other run time loading flags,
10852 # -berok will link without error, but may produce a broken library.
10853 no_undefined_flag=' $wl-bernotok'
10854 allow_undefined_flag=' $wl-berok'
10855 if test yes = "$with_gnu_ld"; then
10856 # We only use this code for GNU lds that support --whole-archive.
10857 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10858 else
10859 # Exported symbols can be pulled into shared objects from archives
10860 whole_archive_flag_spec='$convenience'
10861 fi
10862 archive_cmds_need_lc=yes
10863 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10864 # -brtl affects multiple linker settings, -berok does not and is overridden later
10865 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10866 if test svr4 != "$with_aix_soname"; then
10867 # This is similar to how AIX traditionally builds its shared libraries.
10868 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'
10869 fi
10870 if test aix != "$with_aix_soname"; then
10871 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'
10872 else
10873 # used by -dlpreopen to get the symbols
10874 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10875 fi
10876 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10877 fi
10878 fi
10879 ;;
10880
10881 amigaos*)
10882 case $host_cpu in
10883 powerpc)
10884 # see comment about AmigaOS4 .so support
10885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886 archive_expsym_cmds=''
10887 ;;
10888 m68k)
10889 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)'
10890 hardcode_libdir_flag_spec='-L$libdir'
10891 hardcode_minus_L=yes
10892 ;;
10893 esac
10894 ;;
10895
10896 bsdi[45]*)
10897 export_dynamic_flag_spec=-rdynamic
10898 ;;
10899
10900 cygwin* | mingw* | windows* | pw32* | cegcc*)
10901 # When not using gcc, we currently assume that we are using
10902 # Microsoft Visual C++ or Intel C++ Compiler.
10903 # hardcode_libdir_flag_spec is actually meaningless, as there is
10904 # no search path for DLLs.
10905 case $cc_basename in
10906 cl* | icl*)
10907 # Native MSVC or ICC
10908 hardcode_libdir_flag_spec=' '
10909 allow_undefined_flag=unsupported
10910 always_export_symbols=yes
10911 file_list_spec='@'
10912 # Tell ltmain to make .lib files, not .a files.
10913 libext=lib
10914 # Tell ltmain to make .dll files, not .so files.
10915 shrext_cmds=.dll
10916 # FIXME: Setting linknames here is a bad hack.
10917 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10918 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10919 cp "$export_symbols" "$output_objdir/$soname.def";
10920 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10921 else
10922 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10923 fi~
10924 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10925 linknames='
10926 # The linker will not automatically build a static lib if we build a DLL.
10927 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10928 enable_shared_with_static_runtimes=yes
10929 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10931 # Don't use ranlib
10932 old_postinstall_cmds='chmod 644 $oldlib'
10933 postlink_cmds='lt_outputfile="@OUTPUT@"~
10934 lt_tool_outputfile="@TOOL_OUTPUT@"~
10935 case $lt_outputfile in
10936 *.exe|*.EXE) ;;
10937 *)
10938 lt_outputfile=$lt_outputfile.exe
10939 lt_tool_outputfile=$lt_tool_outputfile.exe
10940 ;;
10941 esac~
10942 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10943 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10944 $RM "$lt_outputfile.manifest";
10945 fi'
10946 ;;
10947 *)
10948 # Assume MSVC and ICC wrapper
10949 hardcode_libdir_flag_spec=' '
10950 allow_undefined_flag=unsupported
10951 # Tell ltmain to make .lib files, not .a files.
10952 libext=lib
10953 # Tell ltmain to make .dll files, not .so files.
10954 shrext_cmds=.dll
10955 # FIXME: Setting linknames here is a bad hack.
10956 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10957 # The linker will automatically build a .lib file if we build a DLL.
10958 old_archive_from_new_cmds='true'
10959 # FIXME: Should let the user specify the lib program.
10960 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10961 enable_shared_with_static_runtimes=yes
10962 ;;
10963 esac
10964 ;;
10965
10966 darwin* | rhapsody*)
10967
10968
10969 archive_cmds_need_lc=no
10970 hardcode_direct=no
10971 hardcode_automatic=yes
10972 hardcode_shlibpath_var=unsupported
10973 if test yes = "$lt_cv_ld_force_load"; then
10974 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\"`'
10975
10976 else
10977 whole_archive_flag_spec=''
10978 fi
10979 link_all_deplibs=yes
10980 allow_undefined_flag=$_lt_dar_allow_undefined
10981 case $cc_basename in
10982 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10983 *) _lt_dar_can_shared=$GCC ;;
10984 esac
10985 if test yes = "$_lt_dar_can_shared"; then
10986 output_verbose_link_cmd=func_echo_all
10987 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10988 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10989 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"
10990 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"
10991
10992 else
10993 ld_shlibs=no
10994 fi
10995
10996 ;;
10997
10998 dgux*)
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_libdir_flag_spec='-L$libdir'
11001 hardcode_shlibpath_var=no
11002 ;;
11003
11004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11005 # support. Future versions do this automatically, but an explicit c++rt0.o
11006 # does not break anything, and helps significantly (at the cost of a little
11007 # extra space).
11008 freebsd2.2*)
11009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 hardcode_direct=yes
11012 hardcode_shlibpath_var=no
11013 ;;
11014
11015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11016 freebsd2.*)
11017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_direct=yes
11019 hardcode_minus_L=yes
11020 hardcode_shlibpath_var=no
11021 ;;
11022
11023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11024 freebsd* | dragonfly* | midnightbsd*)
11025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11026 hardcode_libdir_flag_spec='-R$libdir'
11027 hardcode_direct=yes
11028 hardcode_shlibpath_var=no
11029 ;;
11030
11031 hpux9*)
11032 if test yes = "$GCC"; then
11033 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'
11034 else
11035 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'
11036 fi
11037 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11038 hardcode_libdir_separator=:
11039 hardcode_direct=yes
11040
11041 # hardcode_minus_L: Not really in the search PATH,
11042 # but as the default location of the library.
11043 hardcode_minus_L=yes
11044 export_dynamic_flag_spec='$wl-E'
11045 ;;
11046
11047 hpux10*)
11048 if test yes,no = "$GCC,$with_gnu_ld"; then
11049 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11050 else
11051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11052 fi
11053 if test no = "$with_gnu_ld"; then
11054 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11055 hardcode_libdir_separator=:
11056 hardcode_direct=yes
11057 hardcode_direct_absolute=yes
11058 export_dynamic_flag_spec='$wl-E'
11059 # hardcode_minus_L: Not really in the search PATH,
11060 # but as the default location of the library.
11061 hardcode_minus_L=yes
11062 fi
11063 ;;
11064
11065 hpux11*)
11066 if test yes,no = "$GCC,$with_gnu_ld"; then
11067 case $host_cpu in
11068 hppa*64*)
11069 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 ;;
11071 ia64*)
11072 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11073 ;;
11074 *)
11075 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11076 ;;
11077 esac
11078 else
11079 case $host_cpu in
11080 hppa*64*)
11081 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 ;;
11083 ia64*)
11084 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11085 ;;
11086 *)
11087
11088 # Older versions of the 11.00 compiler do not understand -b yet
11089 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11091 printf %s "checking if $CC understands -b... " >&6; }
11092 if test ${lt_cv_prog_compiler__b+y}
11093 then :
11094 printf %s "(cached) " >&6
11095 else case e in #(
11096 e) lt_cv_prog_compiler__b=no
11097 save_LDFLAGS=$LDFLAGS
11098 LDFLAGS="$LDFLAGS -b"
11099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11101 # The linker can only warn and ignore the option if not recognized
11102 # So say no if there are warnings
11103 if test -s conftest.err; then
11104 # Append any errors to the config.log.
11105 cat conftest.err 1>&5
11106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11108 if diff conftest.exp conftest.er2 >/dev/null; then
11109 lt_cv_prog_compiler__b=yes
11110 fi
11111 else
11112 lt_cv_prog_compiler__b=yes
11113 fi
11114 fi
11115 $RM -r conftest*
11116 LDFLAGS=$save_LDFLAGS
11117 ;;
11118 esac
11119 fi
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11121 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11122
11123 if test yes = "$lt_cv_prog_compiler__b"; then
11124 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125 else
11126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11127 fi
11128
11129 ;;
11130 esac
11131 fi
11132 if test no = "$with_gnu_ld"; then
11133 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11134 hardcode_libdir_separator=:
11135
11136 case $host_cpu in
11137 hppa*64*|ia64*)
11138 hardcode_direct=no
11139 hardcode_shlibpath_var=no
11140 ;;
11141 *)
11142 hardcode_direct=yes
11143 hardcode_direct_absolute=yes
11144 export_dynamic_flag_spec='$wl-E'
11145
11146 # hardcode_minus_L: Not really in the search PATH,
11147 # but as the default location of the library.
11148 hardcode_minus_L=yes
11149 ;;
11150 esac
11151 fi
11152 ;;
11153
11154 irix5* | irix6* | nonstopux*)
11155 if test yes = "$GCC"; then
11156 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'
11157 # Try to use the -exported_symbol ld option, if it does not
11158 # work, assume that -exports_file does not work either and
11159 # implicitly export all symbols.
11160 # This should be the same for all languages, so no per-tag cache variable.
11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11162 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11163 if test ${lt_cv_irix_exported_symbol+y}
11164 then :
11165 printf %s "(cached) " >&6
11166 else case e in #(
11167 e) save_LDFLAGS=$LDFLAGS
11168 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 int foo (void) { return 0; }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"
11174 then :
11175 lt_cv_irix_exported_symbol=yes
11176 else case e in #(
11177 e) lt_cv_irix_exported_symbol=no ;;
11178 esac
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LDFLAGS=$save_LDFLAGS ;;
11183 esac
11184 fi
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11186 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11187 if test yes = "$lt_cv_irix_exported_symbol"; then
11188 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'
11189 fi
11190 else
11191 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'
11192 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'
11193 fi
11194 archive_cmds_need_lc='no'
11195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11196 hardcode_libdir_separator=:
11197 inherit_rpath=yes
11198 link_all_deplibs=yes
11199 ;;
11200
11201 linux*)
11202 case $cc_basename in
11203 tcc*)
11204 # Fabrice Bellard et al's Tiny C Compiler
11205 ld_shlibs=yes
11206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11208 ;;
11209 esac
11210 ;;
11211
11212 *-mlibc)
11213 ;;
11214
11215 netbsd* | netbsdelf*-gnu)
11216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11218 else
11219 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11220 fi
11221 hardcode_libdir_flag_spec='-R$libdir'
11222 hardcode_direct=yes
11223 hardcode_shlibpath_var=no
11224 ;;
11225
11226 newsos6)
11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228 hardcode_direct=yes
11229 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11230 hardcode_libdir_separator=:
11231 hardcode_shlibpath_var=no
11232 ;;
11233
11234 *nto* | *qnx*)
11235 ;;
11236
11237 openbsd*)
11238 if test -f /usr/libexec/ld.so; then
11239 hardcode_direct=yes
11240 hardcode_shlibpath_var=no
11241 hardcode_direct_absolute=yes
11242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11243 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11244 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11245 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11246 export_dynamic_flag_spec='$wl-E'
11247 else
11248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11249 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11250 fi
11251 else
11252 ld_shlibs=no
11253 fi
11254 ;;
11255
11256 os2*)
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_minus_L=yes
11259 allow_undefined_flag=unsupported
11260 shrext_cmds=.dll
11261 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11262 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11263 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11264 $ECHO EXPORTS >> $output_objdir/$libname.def~
11265 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11267 emximp -o $lib $output_objdir/$libname.def'
11268 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11271 $ECHO EXPORTS >> $output_objdir/$libname.def~
11272 prefix_cmds="$SED"~
11273 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11274 prefix_cmds="$prefix_cmds -e 1d";
11275 fi~
11276 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11277 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11278 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11279 emximp -o $lib $output_objdir/$libname.def'
11280 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11281 enable_shared_with_static_runtimes=yes
11282 file_list_spec='@'
11283 ;;
11284
11285 osf3*)
11286 if test yes = "$GCC"; then
11287 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11288 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'
11289 else
11290 allow_undefined_flag=' -expect_unresolved \*'
11291 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'
11292 fi
11293 archive_cmds_need_lc='no'
11294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11295 hardcode_libdir_separator=:
11296 ;;
11297
11298 osf4* | osf5*) # as osf3* with the addition of -msym flag
11299 if test yes = "$GCC"; then
11300 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11301 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'
11302 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11303 else
11304 allow_undefined_flag=' -expect_unresolved \*'
11305 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'
11306 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~
11307 $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'
11308
11309 # Both c and cxx compiler support -rpath directly
11310 hardcode_libdir_flag_spec='-rpath $libdir'
11311 fi
11312 archive_cmds_need_lc='no'
11313 hardcode_libdir_separator=:
11314 ;;
11315
11316 serenity*)
11317 ;;
11318
11319 solaris*)
11320 no_undefined_flag=' -z defs'
11321 if test yes = "$GCC"; then
11322 wlarc='$wl'
11323 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11325 $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'
11326 else
11327 case `$CC -V 2>&1` in
11328 *"Compilers 5.0"*)
11329 wlarc=''
11330 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11332 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11333 ;;
11334 *)
11335 wlarc='$wl'
11336 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11338 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11339 ;;
11340 esac
11341 fi
11342 hardcode_libdir_flag_spec='-R$libdir'
11343 hardcode_shlibpath_var=no
11344 case $host_os in
11345 solaris2.[0-5] | solaris2.[0-5].*) ;;
11346 *)
11347 # The compiler driver will combine and reorder linker options,
11348 # but understands '-z linker_flag'. GCC discards it without '$wl',
11349 # but is careful enough not to reorder.
11350 # Supported since Solaris 2.6 (maybe 2.5.1?)
11351 if test yes = "$GCC"; then
11352 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11353 else
11354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11355 fi
11356 ;;
11357 esac
11358 link_all_deplibs=yes
11359 ;;
11360
11361 sunos4*)
11362 if test sequent = "$host_vendor"; then
11363 # Use $CC to link under sequent, because it throws in some extra .o
11364 # files that make .init and .fini sections work.
11365 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11366 else
11367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11368 fi
11369 hardcode_libdir_flag_spec='-L$libdir'
11370 hardcode_direct=yes
11371 hardcode_minus_L=yes
11372 hardcode_shlibpath_var=no
11373 ;;
11374
11375 sysv4)
11376 case $host_vendor in
11377 sni)
11378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379 hardcode_direct=yes # is this really true???
11380 ;;
11381 siemens)
11382 ## LD is ld it makes a PLAMLIB
11383 ## CC just makes a GrossModule.
11384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11385 reload_cmds='$CC -r -o $output$reload_objs'
11386 hardcode_direct=no
11387 ;;
11388 motorola)
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11391 ;;
11392 esac
11393 runpath_var='LD_RUN_PATH'
11394 hardcode_shlibpath_var=no
11395 ;;
11396
11397 sysv4.3*)
11398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11399 hardcode_shlibpath_var=no
11400 export_dynamic_flag_spec='-Bexport'
11401 ;;
11402
11403 sysv4*MP*)
11404 if test -d /usr/nec; then
11405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406 hardcode_shlibpath_var=no
11407 runpath_var=LD_RUN_PATH
11408 hardcode_runpath_var=yes
11409 ld_shlibs=yes
11410 fi
11411 ;;
11412
11413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11414 no_undefined_flag='$wl-z,text'
11415 archive_cmds_need_lc=no
11416 hardcode_shlibpath_var=no
11417 runpath_var='LD_RUN_PATH'
11418
11419 if test yes = "$GCC"; then
11420 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11422 else
11423 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425 fi
11426 ;;
11427
11428 sysv5* | sco3.2v5* | sco5v6*)
11429 # Note: We CANNOT use -z defs as we might desire, because we do not
11430 # link with -lc, and that would cause any symbols used from libc to
11431 # always be unresolved, which means just about no library would
11432 # ever link correctly. If we're not using GNU ld we use -z text
11433 # though, which does catch some bad symbols but isn't as heavy-handed
11434 # as -z defs.
11435 no_undefined_flag='$wl-z,text'
11436 allow_undefined_flag='$wl-z,nodefs'
11437 archive_cmds_need_lc=no
11438 hardcode_shlibpath_var=no
11439 hardcode_libdir_flag_spec='$wl-R,$libdir'
11440 hardcode_libdir_separator=':'
11441 link_all_deplibs=yes
11442 export_dynamic_flag_spec='$wl-Bexport'
11443 runpath_var='LD_RUN_PATH'
11444
11445 if test yes = "$GCC"; then
11446 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11447 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11448 else
11449 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11450 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11451 fi
11452 ;;
11453
11454 uts4*)
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_libdir_flag_spec='-L$libdir'
11457 hardcode_shlibpath_var=no
11458 ;;
11459
11460 *)
11461 ld_shlibs=no
11462 ;;
11463 esac
11464
11465 if test sni = "$host_vendor"; then
11466 case $host in
11467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11468 export_dynamic_flag_spec='$wl-Blargedynsym'
11469 ;;
11470 esac
11471 fi
11472 fi
11473
11474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11475 printf "%s\n" "$ld_shlibs" >&6; }
11476 test no = "$ld_shlibs" && can_build_shared=no
11477
11478 with_gnu_ld=$with_gnu_ld
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494 #
11495 # Do we need to explicitly link libc?
11496 #
11497 case "x$archive_cmds_need_lc" in
11498 x|xyes)
11499 # Assume -lc should be added
11500 archive_cmds_need_lc=yes
11501
11502 if test yes,yes = "$GCC,$enable_shared"; then
11503 case $archive_cmds in
11504 *'~'*)
11505 # FIXME: we may have to deal with multi-command sequences.
11506 ;;
11507 '$CC '*)
11508 # Test whether the compiler implicitly links with -lc since on some
11509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11510 # to ld, don't add -lc before -lgcc.
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11512 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11513 if test ${lt_cv_archive_cmds_need_lc+y}
11514 then :
11515 printf %s "(cached) " >&6
11516 else case e in #(
11517 e) $RM conftest*
11518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11519
11520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11521 (eval $ac_compile) 2>&5
11522 ac_status=$?
11523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11524 test $ac_status = 0; } 2>conftest.err; then
11525 soname=conftest
11526 lib=conftest
11527 libobjs=conftest.$ac_objext
11528 deplibs=
11529 wl=$lt_prog_compiler_wl
11530 pic_flag=$lt_prog_compiler_pic
11531 compiler_flags=-v
11532 linker_flags=-v
11533 verstring=
11534 output_objdir=.
11535 libname=conftest
11536 lt_save_allow_undefined_flag=$allow_undefined_flag
11537 allow_undefined_flag=
11538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11539 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11540 ac_status=$?
11541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11542 test $ac_status = 0; }
11543 then
11544 lt_cv_archive_cmds_need_lc=no
11545 else
11546 lt_cv_archive_cmds_need_lc=yes
11547 fi
11548 allow_undefined_flag=$lt_save_allow_undefined_flag
11549 else
11550 cat conftest.err 1>&5
11551 fi
11552 $RM conftest*
11553 ;;
11554 esac
11555 fi
11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11557 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11558 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11559 ;;
11560 esac
11561 fi
11562 ;;
11563 esac
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11717 printf %s "checking dynamic linker characteristics... " >&6; }
11718
11719 if test yes = "$GCC"; then
11720 case $host_os in
11721 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11722 *) lt_awk_arg='/^libraries:/' ;;
11723 esac
11724 case $host_os in
11725 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11726 *) lt_sed_strip_eq='s|=/|/|g' ;;
11727 esac
11728 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11729 case $lt_search_path_spec in
11730 *\;*)
11731 # if the path contains ";" then we assume it to be the separator
11732 # otherwise default to the standard path separator (i.e. ":") - it is
11733 # assumed that no part of a normal pathname contains ";" but that should
11734 # okay in the real world where ";" in dirpaths is itself problematic.
11735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11736 ;;
11737 *)
11738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11739 ;;
11740 esac
11741 # Ok, now we have the path, separated by spaces, we can step through it
11742 # and add multilib dir if necessary...
11743 lt_tmp_lt_search_path_spec=
11744 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11745 # ...but if some path component already ends with the multilib dir we assume
11746 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11747 case "$lt_multi_os_dir; $lt_search_path_spec " in
11748 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11749 lt_multi_os_dir=
11750 ;;
11751 esac
11752 for lt_sys_path in $lt_search_path_spec; do
11753 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11755 elif test -n "$lt_multi_os_dir"; then
11756 test -d "$lt_sys_path" && \
11757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11758 fi
11759 done
11760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11761 BEGIN {RS = " "; FS = "/|\n";} {
11762 lt_foo = "";
11763 lt_count = 0;
11764 for (lt_i = NF; lt_i > 0; lt_i--) {
11765 if ($lt_i != "" && $lt_i != ".") {
11766 if ($lt_i == "..") {
11767 lt_count++;
11768 } else {
11769 if (lt_count == 0) {
11770 lt_foo = "/" $lt_i lt_foo;
11771 } else {
11772 lt_count--;
11773 }
11774 }
11775 }
11776 }
11777 if (lt_foo != "") { lt_freq[lt_foo]++; }
11778 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11779 }'`
11780 # AWK program above erroneously prepends '/' to C:/dos/paths
11781 # for these hosts.
11782 case $host_os in
11783 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11784 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11785 esac
11786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11787 else
11788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11789 fi
11790 library_names_spec=
11791 libname_spec='lib$name'
11792 soname_spec=
11793 shrext_cmds=.so
11794 postinstall_cmds=
11795 postuninstall_cmds=
11796 finish_cmds=
11797 finish_eval=
11798 shlibpath_var=
11799 shlibpath_overrides_runpath=unknown
11800 version_type=none
11801 dynamic_linker="$host_os ld.so"
11802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11803 need_lib_prefix=unknown
11804 hardcode_into_libs=no
11805
11806 # when you set need_version to no, make sure it does not cause -set_version
11807 # flags to be left without arguments
11808 need_version=unknown
11809
11810
11811
11812 case $host_os in
11813 aix3*)
11814 version_type=linux # correct to gnu/linux during the next big refactor
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11816 shlibpath_var=LIBPATH
11817
11818 # AIX 3 has no versioning support, so we append a major version to the name.
11819 soname_spec='$libname$release$shared_ext$major'
11820 ;;
11821
11822 aix[4-9]*)
11823 version_type=linux # correct to gnu/linux during the next big refactor
11824 need_lib_prefix=no
11825 need_version=no
11826 hardcode_into_libs=yes
11827 if test ia64 = "$host_cpu"; then
11828 # AIX 5 supports IA64
11829 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 else
11832 # With GCC up to 2.95.x, collect2 would create an import file
11833 # for dependence libraries. The import file would start with
11834 # the line '#! .'. This would cause the generated library to
11835 # depend on '.', always an invalid library. This was fixed in
11836 # development snapshots of GCC prior to 3.0.
11837 case $host_os in
11838 aix4 | aix4.[01] | aix4.[01].*)
11839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11840 echo ' yes '
11841 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11842 :
11843 else
11844 can_build_shared=no
11845 fi
11846 ;;
11847 esac
11848 # Using Import Files as archive members, it is possible to support
11849 # filename-based versioning of shared library archives on AIX. While
11850 # this would work for both with and without runtime linking, it will
11851 # prevent static linking of such archives. So we do filename-based
11852 # shared library versioning with .so extension only, which is used
11853 # when both runtime linking and shared linking is enabled.
11854 # Unfortunately, runtime linking may impact performance, so we do
11855 # not want this to be the default eventually. Also, we use the
11856 # versioned .so libs for executables only if there is the -brtl
11857 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11858 # To allow for filename-based versioning support, we need to create
11859 # libNAME.so.V as an archive file, containing:
11860 # *) an Import File, referring to the versioned filename of the
11861 # archive as well as the shared archive member, telling the
11862 # bitwidth (32 or 64) of that shared object, and providing the
11863 # list of exported symbols of that shared object, eventually
11864 # decorated with the 'weak' keyword
11865 # *) the shared object with the F_LOADONLY flag set, to really avoid
11866 # it being seen by the linker.
11867 # At run time we better use the real file rather than another symlink,
11868 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11869
11870 case $with_aix_soname,$aix_use_runtimelinking in
11871 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11872 # soname into executable. Probably we can add versioning support to
11873 # collect2, so additional links can be useful in future.
11874 aix,yes) # traditional libtool
11875 dynamic_linker='AIX unversionable lib.so'
11876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11877 # instead of lib<name>.a to let people know that these are not
11878 # typical AIX shared libraries.
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 ;;
11881 aix,no) # traditional AIX only
11882 dynamic_linker='AIX lib.a(lib.so.V)'
11883 # We preserve .a as extension for shared libraries through AIX4.2
11884 # and later when we are not doing run time linking.
11885 library_names_spec='$libname$release.a $libname.a'
11886 soname_spec='$libname$release$shared_ext$major'
11887 ;;
11888 svr4,*) # full svr4 only
11889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11891 # We do not specify a path in Import Files, so LIBPATH fires.
11892 shlibpath_overrides_runpath=yes
11893 ;;
11894 *,yes) # both, prefer svr4
11895 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11896 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11897 # unpreferred sharedlib libNAME.a needs extra handling
11898 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"'
11899 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"'
11900 # We do not specify a path in Import Files, so LIBPATH fires.
11901 shlibpath_overrides_runpath=yes
11902 ;;
11903 *,no) # both, prefer aix
11904 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11905 library_names_spec='$libname$release.a $libname.a'
11906 soname_spec='$libname$release$shared_ext$major'
11907 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11908 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)'
11909 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"'
11910 ;;
11911 esac
11912 shlibpath_var=LIBPATH
11913 fi
11914 ;;
11915
11916 amigaos*)
11917 case $host_cpu in
11918 powerpc)
11919 # Since July 2007 AmigaOS4 officially supports .so libraries.
11920 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922 ;;
11923 m68k)
11924 library_names_spec='$libname.ixlibrary $libname.a'
11925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11926 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'
11927 ;;
11928 esac
11929 ;;
11930
11931 beos*)
11932 library_names_spec='$libname$shared_ext'
11933 dynamic_linker="$host_os ld.so"
11934 shlibpath_var=LIBRARY_PATH
11935 ;;
11936
11937 bsdi[45]*)
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 need_version=no
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941 soname_spec='$libname$release$shared_ext$major'
11942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11946 # the default ld.so.conf also contains /usr/contrib/lib and
11947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11948 # libtool to hard-code these into programs
11949 ;;
11950
11951 cygwin* | mingw* | windows* | pw32* | cegcc*)
11952 version_type=windows
11953 shrext_cmds=.dll
11954 need_version=no
11955 need_lib_prefix=no
11956
11957 case $GCC,$cc_basename in
11958 yes,*)
11959 # gcc
11960 library_names_spec='$libname.dll.a'
11961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11962 # If user builds GCC with multilib enabled,
11963 # it should just install on $(libdir)
11964 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11965 if test xyes = x"$multilib"; then
11966 postinstall_cmds='base_file=`basename \$file`~
11967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11968 dldir=$destdir/`dirname \$dlpath`~
11969 $install_prog $dir/$dlname $destdir/$dlname~
11970 chmod a+x $destdir/$dlname~
11971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11972 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11973 fi'
11974 else
11975 postinstall_cmds='base_file=`basename \$file`~
11976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11977 dldir=$destdir/`dirname \$dlpath`~
11978 test -d \$dldir || mkdir -p \$dldir~
11979 $install_prog $dir/$dlname \$dldir/$dlname~
11980 chmod a+x \$dldir/$dlname~
11981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11983 fi'
11984 fi
11985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11986 dlpath=$dir/\$dldll~
11987 $RM \$dlpath'
11988 shlibpath_overrides_runpath=yes
11989
11990 case $host_os in
11991 cygwin*)
11992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11993 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11994
11995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11996 ;;
11997 mingw* | windows* | cegcc*)
11998 # MinGW DLLs use traditional 'lib' prefix
11999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12000 ;;
12001 pw32*)
12002 # pw32 DLLs use 'pw' prefix rather than 'lib'
12003 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12004 ;;
12005 esac
12006 dynamic_linker='Win32 ld.exe'
12007 ;;
12008
12009 *,cl* | *,icl*)
12010 # Native MSVC or ICC
12011 libname_spec='$name'
12012 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12013 library_names_spec='$libname.dll.lib'
12014
12015 case $build_os in
12016 mingw* | windows*)
12017 sys_lib_search_path_spec=
12018 lt_save_ifs=$IFS
12019 IFS=';'
12020 for lt_path in $LIB
12021 do
12022 IFS=$lt_save_ifs
12023 # Let DOS variable expansion print the short 8.3 style file name.
12024 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12025 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12026 done
12027 IFS=$lt_save_ifs
12028 # Convert to MSYS style.
12029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12030 ;;
12031 cygwin*)
12032 # Convert to unix form, then to dos form, then back to unix form
12033 # but this time dos style (no spaces!) so that the unix form looks
12034 # like /cygdrive/c/PROGRA~1:/cygdr...
12035 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12036 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12037 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12038 ;;
12039 *)
12040 sys_lib_search_path_spec=$LIB
12041 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12042 # It is most probably a Windows format PATH.
12043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12044 else
12045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12046 fi
12047 # FIXME: find the short name or the path components, as spaces are
12048 # common. (e.g. "Program Files" -> "PROGRA~1")
12049 ;;
12050 esac
12051
12052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12053 postinstall_cmds='base_file=`basename \$file`~
12054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12055 dldir=$destdir/`dirname \$dlpath`~
12056 test -d \$dldir || mkdir -p \$dldir~
12057 $install_prog $dir/$dlname \$dldir/$dlname'
12058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12059 dlpath=$dir/\$dldll~
12060 $RM \$dlpath'
12061 shlibpath_overrides_runpath=yes
12062 dynamic_linker='Win32 link.exe'
12063 ;;
12064
12065 *)
12066 # Assume MSVC and ICC wrapper
12067 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12068 dynamic_linker='Win32 ld.exe'
12069 ;;
12070 esac
12071 # FIXME: first we should search . and the directory the executable is in
12072 shlibpath_var=PATH
12073 ;;
12074
12075 darwin* | rhapsody*)
12076 dynamic_linker="$host_os dyld"
12077 version_type=darwin
12078 need_lib_prefix=no
12079 need_version=no
12080 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12081 soname_spec='$libname$release$major$shared_ext'
12082 shlibpath_overrides_runpath=yes
12083 shlibpath_var=DYLD_LIBRARY_PATH
12084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12085
12086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12088 ;;
12089
12090 dgux*)
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095 soname_spec='$libname$release$shared_ext$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 ;;
12098
12099 freebsd* | dragonfly* | midnightbsd*)
12100 # DragonFly does not have aout. When/if they implement a new
12101 # versioning mechanism, adjust this.
12102 if test -x /usr/bin/objformat; then
12103 objformat=`/usr/bin/objformat`
12104 else
12105 case $host_os in
12106 freebsd[23].*) objformat=aout ;;
12107 *) objformat=elf ;;
12108 esac
12109 fi
12110 version_type=freebsd-$objformat
12111 case $version_type in
12112 freebsd-elf*)
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114 soname_spec='$libname$release$shared_ext$major'
12115 need_version=no
12116 need_lib_prefix=no
12117 ;;
12118 freebsd-*)
12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12120 need_version=yes
12121 ;;
12122 esac
12123 case $host_cpu in
12124 powerpc64)
12125 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12126 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129 int test_pointer_size[sizeof (void *) - 5];
12130
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"
12133 then :
12134 shlibpath_var=LD_LIBRARY_PATH
12135 else case e in #(
12136 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12137 esac
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12140 ;;
12141 *)
12142 shlibpath_var=LD_LIBRARY_PATH
12143 ;;
12144 esac
12145 case $host_os in
12146 freebsd2.*)
12147 shlibpath_overrides_runpath=yes
12148 ;;
12149 freebsd3.[01]* | freebsdelf3.[01]*)
12150 shlibpath_overrides_runpath=yes
12151 hardcode_into_libs=yes
12152 ;;
12153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12157 ;;
12158 *) # from 4.6 on, and DragonFly
12159 shlibpath_overrides_runpath=yes
12160 hardcode_into_libs=yes
12161 ;;
12162 esac
12163 ;;
12164
12165 haiku*)
12166 version_type=linux # correct to gnu/linux during the next big refactor
12167 need_lib_prefix=no
12168 need_version=no
12169 dynamic_linker="$host_os runtime_loader"
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12171 soname_spec='$libname$release$shared_ext$major'
12172 shlibpath_var=LIBRARY_PATH
12173 shlibpath_overrides_runpath=no
12174 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12175 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12176 hardcode_into_libs=no
12177 ;;
12178
12179 hpux9* | hpux10* | hpux11*)
12180 # Give a soname corresponding to the major version so that dld.sl refuses to
12181 # link against other versions.
12182 version_type=sunos
12183 need_lib_prefix=no
12184 need_version=no
12185 case $host_cpu in
12186 ia64*)
12187 shrext_cmds='.so'
12188 hardcode_into_libs=yes
12189 dynamic_linker="$host_os dld.so"
12190 shlibpath_var=LD_LIBRARY_PATH
12191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 soname_spec='$libname$release$shared_ext$major'
12194 if test 32 = "$HPUX_IA64_MODE"; then
12195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12196 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12197 else
12198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12199 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12200 fi
12201 ;;
12202 hppa*64*)
12203 shrext_cmds='.sl'
12204 hardcode_into_libs=yes
12205 dynamic_linker="$host_os dld.sl"
12206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12209 soname_spec='$libname$release$shared_ext$major'
12210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12212 ;;
12213 *)
12214 shrext_cmds='.sl'
12215 dynamic_linker="$host_os dld.sl"
12216 shlibpath_var=SHLIB_PATH
12217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12219 soname_spec='$libname$release$shared_ext$major'
12220 ;;
12221 esac
12222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12223 postinstall_cmds='chmod 555 $lib'
12224 # or fails outright, so override atomically:
12225 install_override_mode=555
12226 ;;
12227
12228 interix[3-9]*)
12229 version_type=linux # correct to gnu/linux during the next big refactor
12230 need_lib_prefix=no
12231 need_version=no
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233 soname_spec='$libname$release$shared_ext$major'
12234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=no
12237 hardcode_into_libs=yes
12238 ;;
12239
12240 irix5* | irix6* | nonstopux*)
12241 case $host_os in
12242 nonstopux*) version_type=nonstopux ;;
12243 *)
12244 if test yes = "$lt_cv_prog_gnu_ld"; then
12245 version_type=linux # correct to gnu/linux during the next big refactor
12246 else
12247 version_type=irix
12248 fi ;;
12249 esac
12250 need_lib_prefix=no
12251 need_version=no
12252 soname_spec='$libname$release$shared_ext$major'
12253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12254 case $host_os in
12255 irix5* | nonstopux*)
12256 libsuff= shlibsuff=
12257 ;;
12258 *)
12259 case $LD in # libtool.m4 will add one of these switches to LD
12260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12261 libsuff= shlibsuff= libmagic=32-bit;;
12262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12263 libsuff=32 shlibsuff=N32 libmagic=N32;;
12264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12266 *) libsuff= shlibsuff= libmagic=never-match;;
12267 esac
12268 ;;
12269 esac
12270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12271 shlibpath_overrides_runpath=no
12272 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12273 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12274 hardcode_into_libs=yes
12275 ;;
12276
12277 # No shared lib support for Linux oldld, aout, or coff.
12278 linux*oldld* | linux*aout* | linux*coff*)
12279 dynamic_linker=no
12280 ;;
12281
12282 linux*android*)
12283 version_type=none # Android doesn't support versioned libraries.
12284 need_lib_prefix=no
12285 need_version=no
12286 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12287 soname_spec='$libname$release$shared_ext'
12288 finish_cmds=
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes
12291
12292 # This implies no fast_install, which is unacceptable.
12293 # Some rework will be needed to allow for fast_install
12294 # before this can be enabled.
12295 hardcode_into_libs=yes
12296
12297 dynamic_linker='Android linker'
12298 # -rpath works at least for libraries that are not overridden by
12299 # libraries installed in system locations.
12300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12301 ;;
12302
12303 # This must be glibc/ELF.
12304 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12305 version_type=linux # correct to gnu/linux during the next big refactor
12306 need_lib_prefix=no
12307 need_version=no
12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12309 soname_spec='$libname$release$shared_ext$major'
12310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 shlibpath_overrides_runpath=no
12313
12314 # Some binutils ld are patched to set DT_RUNPATH
12315 if test ${lt_cv_shlibpath_overrides_runpath+y}
12316 then :
12317 printf %s "(cached) " >&6
12318 else case e in #(
12319 e) lt_cv_shlibpath_overrides_runpath=no
12320 save_LDFLAGS=$LDFLAGS
12321 save_libdir=$libdir
12322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326
12327 int
12328 main (void)
12329 {
12330
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"
12336 then :
12337 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12338 then :
12339 lt_cv_shlibpath_overrides_runpath=yes
12340 fi
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LDFLAGS=$save_LDFLAGS
12345 libdir=$save_libdir
12346 ;;
12347 esac
12348 fi
12349
12350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12351
12352 # This implies no fast_install, which is unacceptable.
12353 # Some rework will be needed to allow for fast_install
12354 # before this can be enabled.
12355 hardcode_into_libs=yes
12356
12357 # Ideally, we could use ldconfig to report *all* directories which are
12358 # searched for libraries, however this is still not possible. Aside from not
12359 # being certain /sbin/ldconfig is available, command
12360 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12361 # even though it is searched at run-time. Try to do the best guess by
12362 # appending ld.so.conf contents (and includes) to the search path.
12363 if test -f /etc/ld.so.conf; then
12364 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' ' '`
12365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12366 fi
12367
12368 # We used to test for /lib/ld.so.1 and disable shared libraries on
12369 # powerpc, because MkLinux only supported shared libraries with the
12370 # GNU dynamic linker. Since this was broken with cross compilers,
12371 # most powerpc-linux boxes support dynamic linking these days and
12372 # people can always --disable-shared, the test was removed, and we
12373 # assume the GNU/Linux dynamic linker is in use.
12374 dynamic_linker='GNU/Linux ld.so'
12375 ;;
12376
12377 netbsdelf*-gnu)
12378 version_type=linux
12379 need_lib_prefix=no
12380 need_version=no
12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382 soname_spec='$libname$release$shared_ext$major'
12383 shlibpath_var=LD_LIBRARY_PATH
12384 shlibpath_overrides_runpath=no
12385 hardcode_into_libs=yes
12386 dynamic_linker='NetBSD ld.elf_so'
12387 ;;
12388
12389 netbsd*)
12390 version_type=sunos
12391 need_lib_prefix=no
12392 need_version=no
12393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12394 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12396 dynamic_linker='NetBSD (a.out) ld.so'
12397 else
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12399 soname_spec='$libname$release$shared_ext$major'
12400 dynamic_linker='NetBSD ld.elf_so'
12401 fi
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=yes
12404 hardcode_into_libs=yes
12405 ;;
12406
12407 *-mlibc)
12408 version_type=linux # correct to gnu/linux during the next big refactor
12409 need_lib_prefix=no
12410 need_version=no
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 soname_spec='$libname$release$shared_ext$major'
12413 dynamic_linker='mlibc ld.so'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=no
12416 hardcode_into_libs=yes
12417 ;;
12418
12419 newsos6)
12420 version_type=linux # correct to gnu/linux during the next big refactor
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=yes
12424 ;;
12425
12426 *nto* | *qnx*)
12427 version_type=qnx
12428 need_lib_prefix=no
12429 need_version=no
12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431 soname_spec='$libname$release$shared_ext$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434 hardcode_into_libs=yes
12435 dynamic_linker='ldqnx.so'
12436 ;;
12437
12438 openbsd*)
12439 version_type=sunos
12440 sys_lib_dlsearch_path_spec=/usr/lib
12441 need_lib_prefix=no
12442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12443 need_version=no
12444 else
12445 need_version=yes
12446 fi
12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=yes
12451 ;;
12452
12453 os2*)
12454 libname_spec='$name'
12455 version_type=windows
12456 shrext_cmds=.dll
12457 need_version=no
12458 need_lib_prefix=no
12459 # OS/2 can only load a DLL with a base name of 8 characters or less.
12460 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12461 v=$($ECHO $release$versuffix | tr -d .-);
12462 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12463 $ECHO $n$v`$shared_ext'
12464 library_names_spec='${libname}_dll.$libext'
12465 dynamic_linker='OS/2 ld.exe'
12466 shlibpath_var=BEGINLIBPATH
12467 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469 postinstall_cmds='base_file=`basename \$file`~
12470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12471 dldir=$destdir/`dirname \$dlpath`~
12472 test -d \$dldir || mkdir -p \$dldir~
12473 $install_prog $dir/$dlname \$dldir/$dlname~
12474 chmod a+x \$dldir/$dlname~
12475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12477 fi'
12478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12479 dlpath=$dir/\$dldll~
12480 $RM \$dlpath'
12481 ;;
12482
12483 osf3* | osf4* | osf5*)
12484 version_type=osf
12485 need_lib_prefix=no
12486 need_version=no
12487 soname_spec='$libname$release$shared_ext$major'
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 shlibpath_var=LD_LIBRARY_PATH
12490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12492 ;;
12493
12494 rdos*)
12495 dynamic_linker=no
12496 ;;
12497
12498 serenity*)
12499 version_type=linux # correct to gnu/linux during the next big refactor
12500 need_lib_prefix=no
12501 need_version=no
12502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12503 soname_spec='$libname$release$shared_ext$major'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=no
12506 dynamic_linker='SerenityOS LibELF'
12507 ;;
12508
12509 solaris*)
12510 version_type=linux # correct to gnu/linux during the next big refactor
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=yes
12517 hardcode_into_libs=yes
12518 # ldd complains unless libraries are executable
12519 postinstall_cmds='chmod +x $lib'
12520 ;;
12521
12522 sunos4*)
12523 version_type=sunos
12524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 shlibpath_overrides_runpath=yes
12528 if test yes = "$with_gnu_ld"; then
12529 need_lib_prefix=no
12530 fi
12531 need_version=yes
12532 ;;
12533
12534 sysv4 | sysv4.3*)
12535 version_type=linux # correct to gnu/linux during the next big refactor
12536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12537 soname_spec='$libname$release$shared_ext$major'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 case $host_vendor in
12540 sni)
12541 shlibpath_overrides_runpath=no
12542 need_lib_prefix=no
12543 runpath_var=LD_RUN_PATH
12544 ;;
12545 siemens)
12546 need_lib_prefix=no
12547 ;;
12548 motorola)
12549 need_lib_prefix=no
12550 need_version=no
12551 shlibpath_overrides_runpath=no
12552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12553 ;;
12554 esac
12555 ;;
12556
12557 sysv4*MP*)
12558 if test -d /usr/nec; then
12559 version_type=linux # correct to gnu/linux during the next big refactor
12560 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12561 soname_spec='$libname$shared_ext.$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 fi
12564 ;;
12565
12566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12567 version_type=sco
12568 need_lib_prefix=no
12569 need_version=no
12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12571 soname_spec='$libname$release$shared_ext$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 shlibpath_overrides_runpath=yes
12574 hardcode_into_libs=yes
12575 if test yes = "$with_gnu_ld"; then
12576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12577 else
12578 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12579 case $host_os in
12580 sco3.2v5*)
12581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12582 ;;
12583 esac
12584 fi
12585 sys_lib_dlsearch_path_spec='/usr/lib'
12586 ;;
12587
12588 tpf*)
12589 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12590 version_type=linux # correct to gnu/linux during the next big refactor
12591 need_lib_prefix=no
12592 need_version=no
12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 shlibpath_overrides_runpath=no
12596 hardcode_into_libs=yes
12597 ;;
12598
12599 uts4*)
12600 version_type=linux # correct to gnu/linux during the next big refactor
12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12602 soname_spec='$libname$release$shared_ext$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 ;;
12605
12606 emscripten*)
12607 version_type=none
12608 need_lib_prefix=no
12609 need_version=no
12610 library_names_spec='$libname$release$shared_ext'
12611 soname_spec='$libname$release$shared_ext'
12612 finish_cmds=
12613 dynamic_linker="Emscripten linker"
12614 lt_prog_compiler_wl=
12615 lt_prog_compiler_pic=
12616 lt_prog_compiler_static=
12617
12618
12619 if test yes = "$GCC"; then
12620 lt_prog_compiler_wl='-Wl,'
12621 lt_prog_compiler_static='-static'
12622
12623 case $host_os in
12624 aix*)
12625 # All AIX code is PIC.
12626 if test ia64 = "$host_cpu"; then
12627 # AIX 5 now supports IA64 processor
12628 lt_prog_compiler_static='-Bstatic'
12629 fi
12630 lt_prog_compiler_pic='-fPIC'
12631 ;;
12632
12633 amigaos*)
12634 case $host_cpu in
12635 powerpc)
12636 # see comment about AmigaOS4 .so support
12637 lt_prog_compiler_pic='-fPIC'
12638 ;;
12639 m68k)
12640 # FIXME: we need at least 68020 code to build shared libraries, but
12641 # adding the '-m68020' flag to GCC prevents building anything better,
12642 # like '-m68040'.
12643 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12644 ;;
12645 esac
12646 ;;
12647
12648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12649 # PIC is the default for these OSes.
12650 ;;
12651
12652 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12653 # This hack is so that the source file can tell whether it is being
12654 # built for inclusion in a dll (and should export symbols for example).
12655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12656 # (--disable-auto-import) libraries
12657 lt_prog_compiler_pic='-DDLL_EXPORT'
12658 case $host_os in
12659 os2*)
12660 lt_prog_compiler_static='$wl-static'
12661 ;;
12662 esac
12663 ;;
12664
12665 darwin* | rhapsody*)
12666 # PIC is the default on this platform
12667 # Common symbols not allowed in MH_DYLIB files
12668 lt_prog_compiler_pic='-fno-common'
12669 ;;
12670
12671 haiku*)
12672 # PIC is the default for Haiku.
12673 # The "-static" flag exists, but is broken.
12674 lt_prog_compiler_static=
12675 ;;
12676
12677 hpux*)
12678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12680 # sets the default TLS model and affects inlining.
12681 case $host_cpu in
12682 hppa*64*)
12683 # +Z the default
12684 ;;
12685 *)
12686 lt_prog_compiler_pic='-fPIC'
12687 ;;
12688 esac
12689 ;;
12690
12691 interix[3-9]*)
12692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12693 # Instead, we relocate shared libraries at runtime.
12694 ;;
12695
12696 msdosdjgpp*)
12697 # Just because we use GCC doesn't mean we suddenly get shared libraries
12698 # on systems that don't support them.
12699 lt_prog_compiler_can_build_shared=no
12700 enable_shared=no
12701 ;;
12702
12703 *nto* | *qnx*)
12704 # QNX uses GNU C++, but need to define -shared option too, otherwise
12705 # it will coredump.
12706 lt_prog_compiler_pic='-fPIC -shared'
12707 ;;
12708
12709 sysv4*MP*)
12710 if test -d /usr/nec; then
12711 lt_prog_compiler_pic=-Kconform_pic
12712 fi
12713 ;;
12714
12715 *)
12716 lt_prog_compiler_pic='-fPIC'
12717 ;;
12718 esac
12719
12720 case $cc_basename in
12721 nvcc*) # Cuda Compiler Driver 2.2
12722 lt_prog_compiler_wl='-Xlinker '
12723 if test -n "$lt_prog_compiler_pic"; then
12724 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12725 fi
12726 ;;
12727 esac
12728 else
12729 # PORTME Check for flag to pass linker flags through the system compiler.
12730 case $host_os in
12731 aix*)
12732 lt_prog_compiler_wl='-Wl,'
12733 if test ia64 = "$host_cpu"; then
12734 # AIX 5 now supports IA64 processor
12735 lt_prog_compiler_static='-Bstatic'
12736 else
12737 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12738 fi
12739 ;;
12740
12741 darwin* | rhapsody*)
12742 # PIC is the default on this platform
12743 # Common symbols not allowed in MH_DYLIB files
12744 lt_prog_compiler_pic='-fno-common'
12745 case $cc_basename in
12746 nagfor*)
12747 # NAG Fortran compiler
12748 lt_prog_compiler_wl='-Wl,-Wl,,'
12749 lt_prog_compiler_pic='-PIC'
12750 lt_prog_compiler_static='-Bstatic'
12751 ;;
12752 esac
12753 ;;
12754
12755 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12756 # This hack is so that the source file can tell whether it is being
12757 # built for inclusion in a dll (and should export symbols for example).
12758 lt_prog_compiler_pic='-DDLL_EXPORT'
12759 case $host_os in
12760 os2*)
12761 lt_prog_compiler_static='$wl-static'
12762 ;;
12763 esac
12764 ;;
12765
12766 hpux9* | hpux10* | hpux11*)
12767 lt_prog_compiler_wl='-Wl,'
12768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12769 # not for PA HP-UX.
12770 case $host_cpu in
12771 hppa*64*|ia64*)
12772 # +Z the default
12773 ;;
12774 *)
12775 lt_prog_compiler_pic='+Z'
12776 ;;
12777 esac
12778 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12779 lt_prog_compiler_static='$wl-a ${wl}archive'
12780 ;;
12781
12782 irix5* | irix6* | nonstopux*)
12783 lt_prog_compiler_wl='-Wl,'
12784 # PIC (with -KPIC) is the default.
12785 lt_prog_compiler_static='-non_shared'
12786 ;;
12787
12788 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12789 case $cc_basename in
12790 # old Intel for x86_64, which still supported -KPIC.
12791 ecc*)
12792 lt_prog_compiler_wl='-Wl,'
12793 lt_prog_compiler_pic='-KPIC'
12794 lt_prog_compiler_static='-static'
12795 ;;
12796 *flang* | ftn | f18* | f95*)
12797 # Flang compiler.
12798 lt_prog_compiler_wl='-Wl,'
12799 lt_prog_compiler_pic='-fPIC'
12800 lt_prog_compiler_static='-static'
12801 ;;
12802 # icc used to be incompatible with GCC.
12803 # ICC 10 doesn't accept -KPIC any more.
12804 icc* | ifort*)
12805 lt_prog_compiler_wl='-Wl,'
12806 lt_prog_compiler_pic='-fPIC'
12807 lt_prog_compiler_static='-static'
12808 ;;
12809 # Lahey Fortran 8.1.
12810 lf95*)
12811 lt_prog_compiler_wl='-Wl,'
12812 lt_prog_compiler_pic='--shared'
12813 lt_prog_compiler_static='--static'
12814 ;;
12815 nagfor*)
12816 # NAG Fortran compiler
12817 lt_prog_compiler_wl='-Wl,-Wl,,'
12818 lt_prog_compiler_pic='-PIC'
12819 lt_prog_compiler_static='-Bstatic'
12820 ;;
12821 tcc*)
12822 # Fabrice Bellard et al's Tiny C Compiler
12823 lt_prog_compiler_wl='-Wl,'
12824 lt_prog_compiler_pic='-fPIC'
12825 lt_prog_compiler_static='-static'
12826 ;;
12827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12828 # Portland Group compilers (*not* the Pentium gcc compiler,
12829 # which looks to be a dead project)
12830 lt_prog_compiler_wl='-Wl,'
12831 lt_prog_compiler_pic='-fpic'
12832 lt_prog_compiler_static='-Bstatic'
12833 ;;
12834 ccc*)
12835 lt_prog_compiler_wl='-Wl,'
12836 # All Alpha code is PIC.
12837 lt_prog_compiler_static='-non_shared'
12838 ;;
12839 xl* | bgxl* | bgf* | mpixl*)
12840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12841 lt_prog_compiler_wl='-Wl,'
12842 lt_prog_compiler_pic='-qpic'
12843 lt_prog_compiler_static='-qstaticlink'
12844 ;;
12845 *)
12846 case `$CC -V 2>&1 | $SED 5q` in
12847 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12848 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12849 lt_prog_compiler_pic='-KPIC'
12850 lt_prog_compiler_static='-Bstatic'
12851 lt_prog_compiler_wl=''
12852 ;;
12853 *Sun\ F* | *Sun*Fortran*)
12854 lt_prog_compiler_pic='-KPIC'
12855 lt_prog_compiler_static='-Bstatic'
12856 lt_prog_compiler_wl='-Qoption ld '
12857 ;;
12858 *Sun\ C*)
12859 # Sun C 5.9
12860 lt_prog_compiler_pic='-KPIC'
12861 lt_prog_compiler_static='-Bstatic'
12862 lt_prog_compiler_wl='-Wl,'
12863 ;;
12864 *Intel*\ [CF]*Compiler*)
12865 lt_prog_compiler_wl='-Wl,'
12866 lt_prog_compiler_pic='-fPIC'
12867 lt_prog_compiler_static='-static'
12868 ;;
12869 *Portland\ Group*)
12870 lt_prog_compiler_wl='-Wl,'
12871 lt_prog_compiler_pic='-fpic'
12872 lt_prog_compiler_static='-Bstatic'
12873 ;;
12874 esac
12875 ;;
12876 esac
12877 ;;
12878
12879 newsos6)
12880 lt_prog_compiler_pic='-KPIC'
12881 lt_prog_compiler_static='-Bstatic'
12882 ;;
12883
12884 *-mlibc)
12885 lt_prog_compiler_wl='-Wl,'
12886 lt_prog_compiler_pic='-fPIC'
12887 lt_prog_compiler_static='-static'
12888 ;;
12889
12890 *nto* | *qnx*)
12891 # QNX uses GNU C++, but need to define -shared option too, otherwise
12892 # it will coredump.
12893 lt_prog_compiler_pic='-fPIC -shared'
12894 ;;
12895
12896 osf3* | osf4* | osf5*)
12897 lt_prog_compiler_wl='-Wl,'
12898 # All OSF/1 code is PIC.
12899 lt_prog_compiler_static='-non_shared'
12900 ;;
12901
12902 rdos*)
12903 lt_prog_compiler_static='-non_shared'
12904 ;;
12905
12906 serenity*)
12907 ;;
12908
12909 solaris*)
12910 lt_prog_compiler_pic='-KPIC'
12911 lt_prog_compiler_static='-Bstatic'
12912 case $cc_basename in
12913 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12914 lt_prog_compiler_wl='-Qoption ld ';;
12915 *)
12916 lt_prog_compiler_wl='-Wl,';;
12917 esac
12918 ;;
12919
12920 sunos4*)
12921 lt_prog_compiler_wl='-Qoption ld '
12922 lt_prog_compiler_pic='-PIC'
12923 lt_prog_compiler_static='-Bstatic'
12924 ;;
12925
12926 sysv4 | sysv4.2uw2* | sysv4.3*)
12927 lt_prog_compiler_wl='-Wl,'
12928 lt_prog_compiler_pic='-KPIC'
12929 lt_prog_compiler_static='-Bstatic'
12930 ;;
12931
12932 sysv4*MP*)
12933 if test -d /usr/nec; then
12934 lt_prog_compiler_pic='-Kconform_pic'
12935 lt_prog_compiler_static='-Bstatic'
12936 fi
12937 ;;
12938
12939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12940 lt_prog_compiler_wl='-Wl,'
12941 lt_prog_compiler_pic='-KPIC'
12942 lt_prog_compiler_static='-Bstatic'
12943 ;;
12944
12945 unicos*)
12946 lt_prog_compiler_wl='-Wl,'
12947 lt_prog_compiler_can_build_shared=no
12948 ;;
12949
12950 uts4*)
12951 lt_prog_compiler_pic='-pic'
12952 lt_prog_compiler_static='-Bstatic'
12953 ;;
12954
12955 *)
12956 lt_prog_compiler_can_build_shared=no
12957 ;;
12958 esac
12959 fi
12960
12961 case $host_os in
12962 # For platforms that do not support PIC, -DPIC is meaningless:
12963 *djgpp*)
12964 lt_prog_compiler_pic=
12965 ;;
12966 *)
12967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12968 ;;
12969 esac
12970
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12972 printf %s "checking for $compiler option to produce PIC... " >&6; }
12973 if test ${lt_cv_prog_compiler_pic+y}
12974 then :
12975 printf %s "(cached) " >&6
12976 else case e in #(
12977 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12978 esac
12979 fi
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12981 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12982 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12983
12984 #
12985 # Check to make sure the PIC flag actually works.
12986 #
12987 if test -n "$lt_prog_compiler_pic"; then
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12989 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12990 if test ${lt_cv_prog_compiler_pic_works+y}
12991 then :
12992 printf %s "(cached) " >&6
12993 else case e in #(
12994 e) lt_cv_prog_compiler_pic_works=no
12995 ac_outfile=conftest.$ac_objext
12996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12997 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12998 # Insert the option either (1) after the last *FLAGS variable, or
12999 # (2) before a word containing "conftest.", or (3) at the end.
13000 # Note that $ac_compile itself does not contain backslashes and begins
13001 # with a dollar sign (not a hyphen), so the echo should work correctly.
13002 # The option is referenced via a variable to avoid confusing sed.
13003 lt_compile=`echo "$ac_compile" | $SED \
13004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13006 -e 's:$: $lt_compiler_flag:'`
13007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13008 (eval "$lt_compile" 2>conftest.err)
13009 ac_status=$?
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 if (exit $ac_status) && test -s "$ac_outfile"; then
13013 # The compiler can only warn and ignore the option if not recognized
13014 # So say no if there are warnings other than the usual output.
13015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13018 lt_cv_prog_compiler_pic_works=yes
13019 fi
13020 fi
13021 $RM conftest*
13022 ;;
13023 esac
13024 fi
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13026 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13027
13028 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13029 case $lt_prog_compiler_pic in
13030 "" | " "*) ;;
13031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13032 esac
13033 else
13034 lt_prog_compiler_pic=
13035 lt_prog_compiler_can_build_shared=no
13036 fi
13037
13038 fi
13039
13040
13041
13042
13043
13044 #
13045 # Check to make sure the static flag actually works.
13046 #
13047 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13049 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13050 if test ${lt_cv_prog_compiler_static_works+y}
13051 then :
13052 printf %s "(cached) " >&6
13053 else case e in #(
13054 e) lt_cv_prog_compiler_static_works=no
13055 save_LDFLAGS=$LDFLAGS
13056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13059 # The linker can only warn and ignore the option if not recognized
13060 # So say no if there are warnings
13061 if test -s conftest.err; then
13062 # Append any errors to the config.log.
13063 cat conftest.err 1>&5
13064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13066 if diff conftest.exp conftest.er2 >/dev/null; then
13067 lt_cv_prog_compiler_static_works=yes
13068 fi
13069 else
13070 lt_cv_prog_compiler_static_works=yes
13071 fi
13072 fi
13073 $RM -r conftest*
13074 LDFLAGS=$save_LDFLAGS
13075 ;;
13076 esac
13077 fi
13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13079 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13080
13081 if test yes = "$lt_cv_prog_compiler_static_works"; then
13082 :
13083 else
13084 lt_prog_compiler_static=
13085 fi
13086
13087
13088
13089 ='-fPIC'
13090 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13091 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'
13092 archive_cmds_need_lc=no
13093 no_undefined_flag=
13094 ;;
13095
13096 *)
13097 dynamic_linker=no
13098 ;;
13099 esac
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13101 printf "%s\n" "$dynamic_linker" >&6; }
13102 test no = "$dynamic_linker" && can_build_shared=no
13103
13104 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13105 if test yes = "$GCC"; then
13106 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13107 fi
13108
13109 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13110 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13111 fi
13112
13113 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13114 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13115 fi
13116
13117 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13118 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13119
13120 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13121 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13122
13123 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13124 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13223 printf %s "checking how to hardcode library paths into programs... " >&6; }
13224 hardcode_action=
13225 if test -n "$hardcode_libdir_flag_spec" ||
13226 test -n "$runpath_var" ||
13227 test yes = "$hardcode_automatic"; then
13228
13229 # We can hardcode non-existent directories.
13230 if test no != "$hardcode_direct" &&
13231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13232 # have to relink, otherwise we might link with an installed library
13233 # when we should be linking with a yet-to-be-installed one
13234 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13235 test no != "$hardcode_minus_L"; then
13236 # Linking always hardcodes the temporary library directory.
13237 hardcode_action=relink
13238 else
13239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13240 hardcode_action=immediate
13241 fi
13242 else
13243 # We cannot hardcode anything, or else we can only hardcode existing
13244 # directories.
13245 hardcode_action=unsupported
13246 fi
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13248 printf "%s\n" "$hardcode_action" >&6; }
13249
13250 if test relink = "$hardcode_action" ||
13251 test yes = "$inherit_rpath"; then
13252 # Fast installation is not supported
13253 enable_fast_install=no
13254 elif test yes = "$shlibpath_overrides_runpath" ||
13255 test no = "$enable_shared"; then
13256 # Fast installation is not necessary
13257 enable_fast_install=needless
13258 fi
13259
13260
13261
13262
13263
13264
13265 if test yes != "$enable_dlopen"; then
13266 enable_dlopen=unknown
13267 enable_dlopen_self=unknown
13268 enable_dlopen_self_static=unknown
13269 else
13270 lt_cv_dlopen=no
13271 lt_cv_dlopen_libs=
13272
13273 case $host_os in
13274 beos*)
13275 lt_cv_dlopen=load_add_on
13276 lt_cv_dlopen_libs=
13277 lt_cv_dlopen_self=yes
13278 ;;
13279
13280 mingw* | windows* | pw32* | cegcc*)
13281 lt_cv_dlopen=LoadLibrary
13282 lt_cv_dlopen_libs=
13283 ;;
13284
13285 cygwin*)
13286 lt_cv_dlopen=dlopen
13287 lt_cv_dlopen_libs=
13288 ;;
13289
13290 darwin*)
13291 # if libdl is installed we need to link against it
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13293 printf %s "checking for dlopen in -ldl... " >&6; }
13294 if test ${ac_cv_lib_dl_dlopen+y}
13295 then :
13296 printf %s "(cached) " >&6
13297 else case e in #(
13298 e) ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-ldl $LIBS"
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply.
13306 The 'extern "C"' is for builds by C++ compilers;
13307 although this is not generally supported in C code supporting it here
13308 has little cost and some practical benefit (sr 110532). */
13309 #ifdef __cplusplus
13310 extern "C"
13311 #endif
13312 char dlopen (void);
13313 int
13314 main (void)
13315 {
13316 return dlopen ();
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"
13322 then :
13323 ac_cv_lib_dl_dlopen=yes
13324 else case e in #(
13325 e) ac_cv_lib_dl_dlopen=no ;;
13326 esac
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS ;;
13331 esac
13332 fi
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13334 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13335 if test "x$ac_cv_lib_dl_dlopen" = xyes
13336 then :
13337 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13338 else case e in #(
13339 e)
13340 lt_cv_dlopen=dyld
13341 lt_cv_dlopen_libs=
13342 lt_cv_dlopen_self=yes
13343 ;;
13344 esac
13345 fi
13346
13347 ;;
13348
13349 tpf*)
13350 # Don't try to run any link tests for TPF. We know it's impossible
13351 # because TPF is a cross-compiler, and we know how we open DSOs.
13352 lt_cv_dlopen=dlopen
13353 lt_cv_dlopen_libs=
13354 lt_cv_dlopen_self=no
13355 ;;
13356
13357 *)
13358 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13359 if test "x$ac_cv_func_shl_load" = xyes
13360 then :
13361 lt_cv_dlopen=shl_load
13362 else case e in #(
13363 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13364 printf %s "checking for shl_load in -ldld... " >&6; }
13365 if test ${ac_cv_lib_dld_shl_load+y}
13366 then :
13367 printf %s "(cached) " >&6
13368 else case e in #(
13369 e) ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-ldld $LIBS"
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373
13374 /* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply.
13377 The 'extern "C"' is for builds by C++ compilers;
13378 although this is not generally supported in C code supporting it here
13379 has little cost and some practical benefit (sr 110532). */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char shl_load (void);
13384 int
13385 main (void)
13386 {
13387 return shl_load ();
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"
13393 then :
13394 ac_cv_lib_dld_shl_load=yes
13395 else case e in #(
13396 e) ac_cv_lib_dld_shl_load=no ;;
13397 esac
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS ;;
13402 esac
13403 fi
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13405 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13406 if test "x$ac_cv_lib_dld_shl_load" = xyes
13407 then :
13408 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13409 else case e in #(
13410 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13411 if test "x$ac_cv_func_dlopen" = xyes
13412 then :
13413 lt_cv_dlopen=dlopen
13414 else case e in #(
13415 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13416 printf %s "checking for dlopen in -ldl... " >&6; }
13417 if test ${ac_cv_lib_dl_dlopen+y}
13418 then :
13419 printf %s "(cached) " >&6
13420 else case e in #(
13421 e) ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-ldl $LIBS"
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply.
13429 The 'extern "C"' is for builds by C++ compilers;
13430 although this is not generally supported in C code supporting it here
13431 has little cost and some practical benefit (sr 110532). */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char dlopen (void);
13436 int
13437 main (void)
13438 {
13439 return dlopen ();
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"
13445 then :
13446 ac_cv_lib_dl_dlopen=yes
13447 else case e in #(
13448 e) ac_cv_lib_dl_dlopen=no ;;
13449 esac
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13452 conftest$ac_exeext conftest.$ac_ext
13453 LIBS=$ac_check_lib_save_LIBS ;;
13454 esac
13455 fi
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13457 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13458 if test "x$ac_cv_lib_dl_dlopen" = xyes
13459 then :
13460 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13461 else case e in #(
13462 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13463 printf %s "checking for dlopen in -lsvld... " >&6; }
13464 if test ${ac_cv_lib_svld_dlopen+y}
13465 then :
13466 printf %s "(cached) " >&6
13467 else case e in #(
13468 e) ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lsvld $LIBS"
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply.
13476 The 'extern "C"' is for builds by C++ compilers;
13477 although this is not generally supported in C code supporting it here
13478 has little cost and some practical benefit (sr 110532). */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 char dlopen (void);
13483 int
13484 main (void)
13485 {
13486 return dlopen ();
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"
13492 then :
13493 ac_cv_lib_svld_dlopen=yes
13494 else case e in #(
13495 e) ac_cv_lib_svld_dlopen=no ;;
13496 esac
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS ;;
13501 esac
13502 fi
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13504 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13505 if test "x$ac_cv_lib_svld_dlopen" = xyes
13506 then :
13507 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13508 else case e in #(
13509 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13510 printf %s "checking for dld_link in -ldld... " >&6; }
13511 if test ${ac_cv_lib_dld_dld_link+y}
13512 then :
13513 printf %s "(cached) " >&6
13514 else case e in #(
13515 e) ac_check_lib_save_LIBS=$LIBS
13516 LIBS="-ldld $LIBS"
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply.
13523 The 'extern "C"' is for builds by C++ compilers;
13524 although this is not generally supported in C code supporting it here
13525 has little cost and some practical benefit (sr 110532). */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char dld_link (void);
13530 int
13531 main (void)
13532 {
13533 return dld_link ();
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 if ac_fn_c_try_link "$LINENO"
13539 then :
13540 ac_cv_lib_dld_dld_link=yes
13541 else case e in #(
13542 e) ac_cv_lib_dld_dld_link=no ;;
13543 esac
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS ;;
13548 esac
13549 fi
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13551 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13552 if test "x$ac_cv_lib_dld_dld_link" = xyes
13553 then :
13554 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13555 fi
13556
13557 ;;
13558 esac
13559 fi
13560
13561 ;;
13562 esac
13563 fi
13564
13565 ;;
13566 esac
13567 fi
13568
13569 ;;
13570 esac
13571 fi
13572
13573 ;;
13574 esac
13575 fi
13576
13577 ;;
13578 esac
13579
13580 if test no = "$lt_cv_dlopen"; then
13581 enable_dlopen=no
13582 else
13583 enable_dlopen=yes
13584 fi
13585
13586 case $lt_cv_dlopen in
13587 dlopen)
13588 save_CPPFLAGS=$CPPFLAGS
13589 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13590
13591 save_LDFLAGS=$LDFLAGS
13592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13593
13594 save_LIBS=$LIBS
13595 LIBS="$lt_cv_dlopen_libs $LIBS"
13596
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13598 printf %s "checking whether a program can dlopen itself... " >&6; }
13599 if test ${lt_cv_dlopen_self+y}
13600 then :
13601 printf %s "(cached) " >&6
13602 else case e in #(
13603 e) if test yes = "$cross_compiling"; then :
13604 lt_cv_dlopen_self=cross
13605 else
13606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13607 lt_status=$lt_dlunknown
13608 cat > conftest.$ac_ext <<_LT_EOF
13609 #line $LINENO "configure"
13610 #include "confdefs.h"
13611
13612 #if HAVE_DLFCN_H
13613 #include <dlfcn.h>
13614 #endif
13615
13616 #include <stdio.h>
13617
13618 #ifdef RTLD_GLOBAL
13619 # define LT_DLGLOBAL RTLD_GLOBAL
13620 #else
13621 # ifdef DL_GLOBAL
13622 # define LT_DLGLOBAL DL_GLOBAL
13623 # else
13624 # define LT_DLGLOBAL 0
13625 # endif
13626 #endif
13627
13628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13629 find out it does not work in some platform. */
13630 #ifndef LT_DLLAZY_OR_NOW
13631 # ifdef RTLD_LAZY
13632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13633 # else
13634 # ifdef DL_LAZY
13635 # define LT_DLLAZY_OR_NOW DL_LAZY
13636 # else
13637 # ifdef RTLD_NOW
13638 # define LT_DLLAZY_OR_NOW RTLD_NOW
13639 # else
13640 # ifdef DL_NOW
13641 # define LT_DLLAZY_OR_NOW DL_NOW
13642 # else
13643 # define LT_DLLAZY_OR_NOW 0
13644 # endif
13645 # endif
13646 # endif
13647 # endif
13648 #endif
13649
13650 /* When -fvisibility=hidden is used, assume the code has been annotated
13651 correspondingly for the symbols needed. */
13652 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13653 int fnord (void) __attribute__((visibility("default")));
13654 #endif
13655
13656 int fnord (void) { return 42; }
13657 int main (void)
13658 {
13659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13660 int status = $lt_dlunknown;
13661
13662 if (self)
13663 {
13664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13665 else
13666 {
13667 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13668 else puts (dlerror ());
13669 }
13670 /* dlclose (self); */
13671 }
13672 else
13673 puts (dlerror ());
13674
13675 return status;
13676 }
13677 _LT_EOF
13678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13679 (eval $ac_link) 2>&5
13680 ac_status=$?
13681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13683 (./conftest; exit; ) >&5 2>/dev/null
13684 lt_status=$?
13685 case x$lt_status in
13686 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13687 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13688 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13689 esac
13690 else :
13691 # compilation failed
13692 lt_cv_dlopen_self=no
13693 fi
13694 fi
13695 rm -fr conftest*
13696
13697 ;;
13698 esac
13699 fi
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13701 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13702
13703 if test yes = "$lt_cv_dlopen_self"; then
13704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13706 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13707 if test ${lt_cv_dlopen_self_static+y}
13708 then :
13709 printf %s "(cached) " >&6
13710 else case e in #(
13711 e) if test yes = "$cross_compiling"; then :
13712 lt_cv_dlopen_self_static=cross
13713 else
13714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13715 lt_status=$lt_dlunknown
13716 cat > conftest.$ac_ext <<_LT_EOF
13717 #line $LINENO "configure"
13718 #include "confdefs.h"
13719
13720 #if HAVE_DLFCN_H
13721 #include <dlfcn.h>
13722 #endif
13723
13724 #include <stdio.h>
13725
13726 #ifdef RTLD_GLOBAL
13727 # define LT_DLGLOBAL RTLD_GLOBAL
13728 #else
13729 # ifdef DL_GLOBAL
13730 # define LT_DLGLOBAL DL_GLOBAL
13731 # else
13732 # define LT_DLGLOBAL 0
13733 # endif
13734 #endif
13735
13736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13737 find out it does not work in some platform. */
13738 #ifndef LT_DLLAZY_OR_NOW
13739 # ifdef RTLD_LAZY
13740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13741 # else
13742 # ifdef DL_LAZY
13743 # define LT_DLLAZY_OR_NOW DL_LAZY
13744 # else
13745 # ifdef RTLD_NOW
13746 # define LT_DLLAZY_OR_NOW RTLD_NOW
13747 # else
13748 # ifdef DL_NOW
13749 # define LT_DLLAZY_OR_NOW DL_NOW
13750 # else
13751 # define LT_DLLAZY_OR_NOW 0
13752 # endif
13753 # endif
13754 # endif
13755 # endif
13756 #endif
13757
13758 /* When -fvisibility=hidden is used, assume the code has been annotated
13759 correspondingly for the symbols needed. */
13760 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13761 int fnord (void) __attribute__((visibility("default")));
13762 #endif
13763
13764 int fnord (void) { return 42; }
13765 int main (void)
13766 {
13767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13768 int status = $lt_dlunknown;
13769
13770 if (self)
13771 {
13772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13773 else
13774 {
13775 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13776 else puts (dlerror ());
13777 }
13778 /* dlclose (self); */
13779 }
13780 else
13781 puts (dlerror ());
13782
13783 return status;
13784 }
13785 _LT_EOF
13786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13787 (eval $ac_link) 2>&5
13788 ac_status=$?
13789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13790 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13791 (./conftest; exit; ) >&5 2>/dev/null
13792 lt_status=$?
13793 case x$lt_status in
13794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13797 esac
13798 else :
13799 # compilation failed
13800 lt_cv_dlopen_self_static=no
13801 fi
13802 fi
13803 rm -fr conftest*
13804
13805 ;;
13806 esac
13807 fi
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13809 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13810 fi
13811
13812 CPPFLAGS=$save_CPPFLAGS
13813 LDFLAGS=$save_LDFLAGS
13814 LIBS=$save_LIBS
13815 ;;
13816 esac
13817
13818 case $lt_cv_dlopen_self in
13819 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13820 *) enable_dlopen_self=unknown ;;
13821 esac
13822
13823 case $lt_cv_dlopen_self_static in
13824 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13825 *) enable_dlopen_self_static=unknown ;;
13826 esac
13827 fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845 striplib=
13846 old_striplib=
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13848 printf %s "checking whether stripping libraries is possible... " >&6; }
13849 if test -z "$STRIP"; then
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 printf "%s\n" "no" >&6; }
13852 else
13853 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13854 old_striplib="$STRIP --strip-debug"
13855 striplib="$STRIP --strip-unneeded"
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13857 printf "%s\n" "yes" >&6; }
13858 else
13859 case $host_os in
13860 darwin*)
13861 # FIXME - insert some real tests, host_os isn't really good enough
13862 striplib="$STRIP -x"
13863 old_striplib="$STRIP -S"
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13865 printf "%s\n" "yes" >&6; }
13866 ;;
13867 freebsd*)
13868 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13869 old_striplib="$STRIP --strip-debug"
13870 striplib="$STRIP --strip-unneeded"
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13872 printf "%s\n" "yes" >&6; }
13873 else
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 printf "%s\n" "no" >&6; }
13876 fi
13877 ;;
13878 *)
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 printf "%s\n" "no" >&6; }
13881 ;;
13882 esac
13883 fi
13884 fi
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897 # Report what library types will actually be built
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13899 printf %s "checking if libtool supports shared libraries... " >&6; }
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13901 printf "%s\n" "$can_build_shared" >&6; }
13902
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13904 printf %s "checking whether to build shared libraries... " >&6; }
13905 test no = "$can_build_shared" && enable_shared=no
13906
13907 # On AIX, shared libraries and static libraries use the same namespace, and
13908 # are all built from PIC.
13909 case $host_os in
13910 aix3*)
13911 test yes = "$enable_shared" && enable_static=no
13912 if test -n "$RANLIB"; then
13913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13914 postinstall_cmds='$RANLIB $lib'
13915 fi
13916 ;;
13917
13918 aix[4-9]*)
13919 if test ia64 != "$host_cpu"; then
13920 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13921 yes,aix,yes) ;; # shared object as lib.so file only
13922 yes,svr4,*) ;; # shared object as lib.so archive member only
13923 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13924 esac
13925 fi
13926 ;;
13927 esac
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13929 printf "%s\n" "$enable_shared" >&6; }
13930
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13932 printf %s "checking whether to build static libraries... " >&6; }
13933 # Make sure either enable_shared or enable_static is yes.
13934 test yes = "$enable_shared" || enable_static=yes
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13936 printf "%s\n" "$enable_static" >&6; }
13937
13938
13939
13940
13941 fi
13942 ac_ext=c
13943 ac_cpp='$CPP $CPPFLAGS'
13944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13947
13948 CC=$lt_save_CC
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964 ac_config_commands="$ac_config_commands libtool"
13965
13966
13967
13968
13969 # Only expand once:
13970
13971
13972
13973 # Check whether --enable-largefile was given.
13974 if test ${enable_largefile+y}
13975 then :
13976 enableval=$enable_largefile;
13977 fi
13978 if test "$enable_largefile,$enable_year2038" != no,no
13979 then :
13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
13981 printf %s "checking for $CC option to enable large file support... " >&6; }
13982 if test ${ac_cv_sys_largefile_opts+y}
13983 then :
13984 printf %s "(cached) " >&6
13985 else case e in #(
13986 e) ac_save_CC="$CC"
13987 ac_opt_found=no
13988 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
13989 if test x"$ac_opt" != x"none needed"
13990 then :
13991 CC="$ac_save_CC $ac_opt"
13992 fi
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <sys/types.h>
13996 #ifndef FTYPE
13997 # define FTYPE off_t
13998 #endif
13999 /* Check that FTYPE can represent 2**63 - 1 correctly.
14000 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14001 since some C++ compilers masquerading as C compilers
14002 incorrectly reject 9223372036854775807. */
14003 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14004 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14005 && LARGE_FTYPE % 2147483647 == 1)
14006 ? 1 : -1];
14007 int
14008 main (void)
14009 {
14010
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"
14016 then :
14017 if test x"$ac_opt" = x"none needed"
14018 then :
14019 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14020 CC="$CC -DFTYPE=ino_t"
14021 if ac_fn_c_try_compile "$LINENO"
14022 then :
14023
14024 else case e in #(
14025 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14026 if ac_fn_c_try_compile "$LINENO"
14027 then :
14028 ac_opt='-D_FILE_OFFSET_BITS=64'
14029 fi
14030 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14031 esac
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.beam
14034 fi
14035 ac_cv_sys_largefile_opts=$ac_opt
14036 ac_opt_found=yes
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14039 test $ac_opt_found = no || break
14040 done
14041 CC="$ac_save_CC"
14042
14043 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14044 esac
14045 fi
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14047 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14048
14049 ac_have_largefile=yes
14050 case $ac_cv_sys_largefile_opts in #(
14051 "none needed") :
14052 ;; #(
14053 "supported through gnulib") :
14054 ;; #(
14055 "support not detected") :
14056 ac_have_largefile=no ;; #(
14057 "-D_FILE_OFFSET_BITS=64") :
14058
14059 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14060 ;; #(
14061 "-D_LARGE_FILES=1") :
14062
14063 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14064 ;; #(
14065 "-n32") :
14066 CC="$CC -n32" ;; #(
14067 *) :
14068 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14069 esac
14070
14071 if test "$enable_year2038" != no
14072 then :
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14074 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14075 if test ${ac_cv_sys_year2038_opts+y}
14076 then :
14077 printf %s "(cached) " >&6
14078 else case e in #(
14079 e) ac_save_CPPFLAGS="$CPPFLAGS"
14080 ac_opt_found=no
14081 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14082 if test x"$ac_opt" != x"none needed"
14083 then :
14084 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14085 fi
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088
14089 #include <time.h>
14090 /* Check that time_t can represent 2**32 - 1 correctly. */
14091 #define LARGE_TIME_T \\
14092 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14093 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14094 && LARGE_TIME_T % 65537 == 0)
14095 ? 1 : -1];
14096
14097 int
14098 main (void)
14099 {
14100
14101 ;
14102 return 0;
14103 }
14104 _ACEOF
14105 if ac_fn_c_try_compile "$LINENO"
14106 then :
14107 ac_cv_sys_year2038_opts="$ac_opt"
14108 ac_opt_found=yes
14109 fi
14110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14111 test $ac_opt_found = no || break
14112 done
14113 CPPFLAGS="$ac_save_CPPFLAGS"
14114 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
14115 esac
14116 fi
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
14118 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
14119
14120 ac_have_year2038=yes
14121 case $ac_cv_sys_year2038_opts in #(
14122 "none needed") :
14123 ;; #(
14124 "support not detected") :
14125 ac_have_year2038=no ;; #(
14126 "-D_TIME_BITS=64") :
14127
14128 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
14129 ;; #(
14130 "-D__MINGW_USE_VC2005_COMPAT") :
14131
14132 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
14133 ;; #(
14134 "-U_USE_32_BIT_TIME_T"*) :
14135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14136 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14137 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
14138 will stop working after mid-January 2038. Remove
14139 _USE_32BIT_TIME_T from the compiler flags.
14140 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14141 *) :
14142 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
14143 esac
14144
14145 fi
14146
14147 fi
14148
14149
14150 # Check whether --with-personality-dir was given.
14151 if test ${with_personality_dir+y}
14152 then :
14153 withval=$with_personality_dir; PERSONALITY_PATH="$withval"
14154 else case e in #(
14155 e) PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d" ;;
14156 esac
14157 fi
14158
14159
14160
14161
14162
14163 # Check whether --with-pkg-config-dir was given.
14164 if test ${with_pkg_config_dir+y}
14165 then :
14166 withval=$with_pkg_config_dir; PKG_DEFAULT_PATH="$withval"
14167 else case e in #(
14168 e) PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig" ;;
14169 esac
14170 fi
14171
14172
14173
14174
14175
14176 # Check whether --with-system-libdir was given.
14177 if test ${with_system_libdir+y}
14178 then :
14179 withval=$with_system_libdir; SYSTEM_LIBDIR="$withval"
14180 else case e in #(
14181 e) SYSTEM_LIBDIR="${libdir}" ;;
14182 esac
14183 fi
14184
14185
14186
14187
14188
14189 # Check whether --with-system-includedir was given.
14190 if test ${with_system_includedir+y}
14191 then :
14192 withval=$with_system_includedir; SYSTEM_INCLUDEDIR="$withval"
14193 else case e in #(
14194 e) SYSTEM_INCLUDEDIR="${includedir}" ;;
14195 esac
14196 fi
14197
14198
14199
14200
14201 ac_ext=c
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14207 printf %s "checking how to run the C preprocessor... " >&6; }
14208 # On Suns, sometimes $CPP names a directory.
14209 if test -n "$CPP" && test -d "$CPP"; then
14210 CPP=
14211 fi
14212 if test -z "$CPP"; then
14213 if test ${ac_cv_prog_CPP+y}
14214 then :
14215 printf %s "(cached) " >&6
14216 else case e in #(
14217 e) # Double quotes because $CC needs to be expanded
14218 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14219 do
14220 ac_preproc_ok=false
14221 for ac_c_preproc_warn_flag in '' yes
14222 do
14223 # Use a header file that comes with gcc, so configuring glibc
14224 # with a fresh cross-compiler works.
14225 # On the NeXT, cc -E runs the code through the compiler's parser,
14226 # not just through cpp. "Syntax error" is here to catch this case.
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 #include <limits.h>
14230 Syntax error
14231 _ACEOF
14232 if ac_fn_c_try_cpp "$LINENO"
14233 then :
14234
14235 else case e in #(
14236 e) # Broken: fails on valid input.
14237 continue ;;
14238 esac
14239 fi
14240 rm -f conftest.err conftest.i conftest.$ac_ext
14241
14242 # OK, works on sane cases. Now check whether nonexistent headers
14243 # can be detected and how.
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #include <ac_nonexistent.h>
14247 _ACEOF
14248 if ac_fn_c_try_cpp "$LINENO"
14249 then :
14250 # Broken: success on invalid input.
14251 continue
14252 else case e in #(
14253 e) # Passes both tests.
14254 ac_preproc_ok=:
14255 break ;;
14256 esac
14257 fi
14258 rm -f conftest.err conftest.i conftest.$ac_ext
14259
14260 done
14261 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14262 rm -f conftest.i conftest.err conftest.$ac_ext
14263 if $ac_preproc_ok
14264 then :
14265 break
14266 fi
14267
14268 done
14269 ac_cv_prog_CPP=$CPP
14270 ;;
14271 esac
14272 fi
14273 CPP=$ac_cv_prog_CPP
14274 else
14275 ac_cv_prog_CPP=$CPP
14276 fi
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14278 printf "%s\n" "$CPP" >&6; }
14279 ac_preproc_ok=false
14280 for ac_c_preproc_warn_flag in '' yes
14281 do
14282 # Use a header file that comes with gcc, so configuring glibc
14283 # with a fresh cross-compiler works.
14284 # On the NeXT, cc -E runs the code through the compiler's parser,
14285 # not just through cpp. "Syntax error" is here to catch this case.
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 #include <limits.h>
14289 Syntax error
14290 _ACEOF
14291 if ac_fn_c_try_cpp "$LINENO"
14292 then :
14293
14294 else case e in #(
14295 e) # Broken: fails on valid input.
14296 continue ;;
14297 esac
14298 fi
14299 rm -f conftest.err conftest.i conftest.$ac_ext
14300
14301 # OK, works on sane cases. Now check whether nonexistent headers
14302 # can be detected and how.
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #include <ac_nonexistent.h>
14306 _ACEOF
14307 if ac_fn_c_try_cpp "$LINENO"
14308 then :
14309 # Broken: success on invalid input.
14310 continue
14311 else case e in #(
14312 e) # Passes both tests.
14313 ac_preproc_ok=:
14314 break ;;
14315 esac
14316 fi
14317 rm -f conftest.err conftest.i conftest.$ac_ext
14318
14319 done
14320 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14321 rm -f conftest.i conftest.err conftest.$ac_ext
14322 if $ac_preproc_ok
14323 then :
14324
14325 else case e in #(
14326 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14327 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14328 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14329 See 'config.log' for more details" "$LINENO" 5; } ;;
14330 esac
14331 fi
14332
14333 ac_ext=c
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
14339 ac_ext=c
14340 ac_cpp='$CPP $CPPFLAGS'
14341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14344 if test -n "$ac_tool_prefix"; then
14345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 printf %s "checking for $ac_word... " >&6; }
14349 if test ${ac_cv_prog_CC+y}
14350 then :
14351 printf %s "(cached) " >&6
14352 else case e in #(
14353 e) if test -n "$CC"; then
14354 ac_cv_prog_CC="$CC" # Let the user override the test.
14355 else
14356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357 for as_dir in $PATH
14358 do
14359 IFS=$as_save_IFS
14360 case $as_dir in #(((
14361 '') as_dir=./ ;;
14362 */) ;;
14363 *) as_dir=$as_dir/ ;;
14364 esac
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14369 break 2
14370 fi
14371 done
14372 done
14373 IFS=$as_save_IFS
14374
14375 fi ;;
14376 esac
14377 fi
14378 CC=$ac_cv_prog_CC
14379 if test -n "$CC"; then
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14381 printf "%s\n" "$CC" >&6; }
14382 else
14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 printf "%s\n" "no" >&6; }
14385 fi
14386
14387
14388 fi
14389 if test -z "$ac_cv_prog_CC"; then
14390 ac_ct_CC=$CC
14391 # Extract the first word of "gcc", so it can be a program name with args.
14392 set dummy gcc; ac_word=$2
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394 printf %s "checking for $ac_word... " >&6; }
14395 if test ${ac_cv_prog_ac_ct_CC+y}
14396 then :
14397 printf %s "(cached) " >&6
14398 else case e in #(
14399 e) if test -n "$ac_ct_CC"; then
14400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14401 else
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14404 do
14405 IFS=$as_save_IFS
14406 case $as_dir in #(((
14407 '') as_dir=./ ;;
14408 */) ;;
14409 *) as_dir=$as_dir/ ;;
14410 esac
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_ac_ct_CC="gcc"
14414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14415 break 2
14416 fi
14417 done
14418 done
14419 IFS=$as_save_IFS
14420
14421 fi ;;
14422 esac
14423 fi
14424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14425 if test -n "$ac_ct_CC"; then
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14427 printf "%s\n" "$ac_ct_CC" >&6; }
14428 else
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 printf "%s\n" "no" >&6; }
14431 fi
14432
14433 if test "x$ac_ct_CC" = x; then
14434 CC=""
14435 else
14436 case $cross_compiling:$ac_tool_warned in
14437 yes:)
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14440 ac_tool_warned=yes ;;
14441 esac
14442 CC=$ac_ct_CC
14443 fi
14444 else
14445 CC="$ac_cv_prog_CC"
14446 fi
14447
14448 if test -z "$CC"; then
14449 if test -n "$ac_tool_prefix"; then
14450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14451 set dummy ${ac_tool_prefix}cc; ac_word=$2
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 printf %s "checking for $ac_word... " >&6; }
14454 if test ${ac_cv_prog_CC+y}
14455 then :
14456 printf %s "(cached) " >&6
14457 else case e in #(
14458 e) if test -n "$CC"; then
14459 ac_cv_prog_CC="$CC" # Let the user override the test.
14460 else
14461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14462 for as_dir in $PATH
14463 do
14464 IFS=$as_save_IFS
14465 case $as_dir in #(((
14466 '') as_dir=./ ;;
14467 */) ;;
14468 *) as_dir=$as_dir/ ;;
14469 esac
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14472 ac_cv_prog_CC="${ac_tool_prefix}cc"
14473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14474 break 2
14475 fi
14476 done
14477 done
14478 IFS=$as_save_IFS
14479
14480 fi ;;
14481 esac
14482 fi
14483 CC=$ac_cv_prog_CC
14484 if test -n "$CC"; then
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14486 printf "%s\n" "$CC" >&6; }
14487 else
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 printf "%s\n" "no" >&6; }
14490 fi
14491
14492
14493 fi
14494 fi
14495 if test -z "$CC"; then
14496 # Extract the first word of "cc", so it can be a program name with args.
14497 set dummy cc; ac_word=$2
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499 printf %s "checking for $ac_word... " >&6; }
14500 if test ${ac_cv_prog_CC+y}
14501 then :
14502 printf %s "(cached) " >&6
14503 else case e in #(
14504 e) if test -n "$CC"; then
14505 ac_cv_prog_CC="$CC" # Let the user override the test.
14506 else
14507 ac_prog_rejected=no
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14510 do
14511 IFS=$as_save_IFS
14512 case $as_dir in #(((
14513 '') as_dir=./ ;;
14514 */) ;;
14515 *) as_dir=$as_dir/ ;;
14516 esac
14517 for ac_exec_ext in '' $ac_executable_extensions; do
14518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14519 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14520 ac_prog_rejected=yes
14521 continue
14522 fi
14523 ac_cv_prog_CC="cc"
14524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14525 break 2
14526 fi
14527 done
14528 done
14529 IFS=$as_save_IFS
14530
14531 if test $ac_prog_rejected = yes; then
14532 # We found a bogon in the path, so make sure we never use it.
14533 set dummy $ac_cv_prog_CC
14534 shift
14535 if test $# != 0; then
14536 # We chose a different compiler from the bogus one.
14537 # However, it has the same basename, so the bogon will be chosen
14538 # first if we set CC to just the basename; use the full file name.
14539 shift
14540 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14541 fi
14542 fi
14543 fi ;;
14544 esac
14545 fi
14546 CC=$ac_cv_prog_CC
14547 if test -n "$CC"; then
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14549 printf "%s\n" "$CC" >&6; }
14550 else
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 printf "%s\n" "no" >&6; }
14553 fi
14554
14555
14556 fi
14557 if test -z "$CC"; then
14558 if test -n "$ac_tool_prefix"; then
14559 for ac_prog in cl.exe
14560 do
14561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 printf %s "checking for $ac_word... " >&6; }
14565 if test ${ac_cv_prog_CC+y}
14566 then :
14567 printf %s "(cached) " >&6
14568 else case e in #(
14569 e) if test -n "$CC"; then
14570 ac_cv_prog_CC="$CC" # Let the user override the test.
14571 else
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575 IFS=$as_save_IFS
14576 case $as_dir in #(((
14577 '') as_dir=./ ;;
14578 */) ;;
14579 *) as_dir=$as_dir/ ;;
14580 esac
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14585 break 2
14586 fi
14587 done
14588 done
14589 IFS=$as_save_IFS
14590
14591 fi ;;
14592 esac
14593 fi
14594 CC=$ac_cv_prog_CC
14595 if test -n "$CC"; then
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14597 printf "%s\n" "$CC" >&6; }
14598 else
14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 printf "%s\n" "no" >&6; }
14601 fi
14602
14603
14604 test -n "$CC" && break
14605 done
14606 fi
14607 if test -z "$CC"; then
14608 ac_ct_CC=$CC
14609 for ac_prog in cl.exe
14610 do
14611 # Extract the first word of "$ac_prog", so it can be a program name with args.
14612 set dummy $ac_prog; ac_word=$2
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 printf %s "checking for $ac_word... " >&6; }
14615 if test ${ac_cv_prog_ac_ct_CC+y}
14616 then :
14617 printf %s "(cached) " >&6
14618 else case e in #(
14619 e) if test -n "$ac_ct_CC"; then
14620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14621 else
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14624 do
14625 IFS=$as_save_IFS
14626 case $as_dir in #(((
14627 '') as_dir=./ ;;
14628 */) ;;
14629 *) as_dir=$as_dir/ ;;
14630 esac
14631 for ac_exec_ext in '' $ac_executable_extensions; do
14632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14633 ac_cv_prog_ac_ct_CC="$ac_prog"
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14635 break 2
14636 fi
14637 done
14638 done
14639 IFS=$as_save_IFS
14640
14641 fi ;;
14642 esac
14643 fi
14644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14645 if test -n "$ac_ct_CC"; then
14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14647 printf "%s\n" "$ac_ct_CC" >&6; }
14648 else
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14650 printf "%s\n" "no" >&6; }
14651 fi
14652
14653
14654 test -n "$ac_ct_CC" && break
14655 done
14656
14657 if test "x$ac_ct_CC" = x; then
14658 CC=""
14659 else
14660 case $cross_compiling:$ac_tool_warned in
14661 yes:)
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14664 ac_tool_warned=yes ;;
14665 esac
14666 CC=$ac_ct_CC
14667 fi
14668 fi
14669
14670 fi
14671 if test -z "$CC"; then
14672 if test -n "$ac_tool_prefix"; then
14673 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14674 set dummy ${ac_tool_prefix}clang; ac_word=$2
14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676 printf %s "checking for $ac_word... " >&6; }
14677 if test ${ac_cv_prog_CC+y}
14678 then :
14679 printf %s "(cached) " >&6
14680 else case e in #(
14681 e) if test -n "$CC"; then
14682 ac_cv_prog_CC="$CC" # Let the user override the test.
14683 else
14684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14685 for as_dir in $PATH
14686 do
14687 IFS=$as_save_IFS
14688 case $as_dir in #(((
14689 '') as_dir=./ ;;
14690 */) ;;
14691 *) as_dir=$as_dir/ ;;
14692 esac
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14695 ac_cv_prog_CC="${ac_tool_prefix}clang"
14696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14697 break 2
14698 fi
14699 done
14700 done
14701 IFS=$as_save_IFS
14702
14703 fi ;;
14704 esac
14705 fi
14706 CC=$ac_cv_prog_CC
14707 if test -n "$CC"; then
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14709 printf "%s\n" "$CC" >&6; }
14710 else
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 printf "%s\n" "no" >&6; }
14713 fi
14714
14715
14716 fi
14717 if test -z "$ac_cv_prog_CC"; then
14718 ac_ct_CC=$CC
14719 # Extract the first word of "clang", so it can be a program name with args.
14720 set dummy clang; ac_word=$2
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722 printf %s "checking for $ac_word... " >&6; }
14723 if test ${ac_cv_prog_ac_ct_CC+y}
14724 then :
14725 printf %s "(cached) " >&6
14726 else case e in #(
14727 e) if test -n "$ac_ct_CC"; then
14728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14729 else
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14732 do
14733 IFS=$as_save_IFS
14734 case $as_dir in #(((
14735 '') as_dir=./ ;;
14736 */) ;;
14737 *) as_dir=$as_dir/ ;;
14738 esac
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14741 ac_cv_prog_ac_ct_CC="clang"
14742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14743 break 2
14744 fi
14745 done
14746 done
14747 IFS=$as_save_IFS
14748
14749 fi ;;
14750 esac
14751 fi
14752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14753 if test -n "$ac_ct_CC"; then
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14755 printf "%s\n" "$ac_ct_CC" >&6; }
14756 else
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 printf "%s\n" "no" >&6; }
14759 fi
14760
14761 if test "x$ac_ct_CC" = x; then
14762 CC=""
14763 else
14764 case $cross_compiling:$ac_tool_warned in
14765 yes:)
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14768 ac_tool_warned=yes ;;
14769 esac
14770 CC=$ac_ct_CC
14771 fi
14772 else
14773 CC="$ac_cv_prog_CC"
14774 fi
14775
14776 fi
14777
14778
14779 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14780 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14781 as_fn_error $? "no acceptable C compiler found in \$PATH
14782 See 'config.log' for more details" "$LINENO" 5; }
14783
14784 # Provide some information about the compiler.
14785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14786 set X $ac_compile
14787 ac_compiler=$2
14788 for ac_option in --version -v -V -qversion -version; do
14789 { { ac_try="$ac_compiler $ac_option >&5"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14795 printf "%s\n" "$ac_try_echo"; } >&5
14796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14797 ac_status=$?
14798 if test -s conftest.err; then
14799 sed '10a\
14800 ... rest of stderr output deleted ...
14801 10q' conftest.err >conftest.er1
14802 cat conftest.er1 >&5
14803 fi
14804 rm -f conftest.er1 conftest.err
14805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }
14807 done
14808
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14810 printf %s "checking whether the compiler supports GNU C... " >&6; }
14811 if test ${ac_cv_c_compiler_gnu+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else case e in #(
14815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 int
14819 main (void)
14820 {
14821 #ifndef __GNUC__
14822 choke me
14823 #endif
14824
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 if ac_fn_c_try_compile "$LINENO"
14830 then :
14831 ac_compiler_gnu=yes
14832 else case e in #(
14833 e) ac_compiler_gnu=no ;;
14834 esac
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14838 ;;
14839 esac
14840 fi
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14842 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844
14845 if test $ac_compiler_gnu = yes; then
14846 GCC=yes
14847 else
14848 GCC=
14849 fi
14850 ac_test_CFLAGS=${CFLAGS+y}
14851 ac_save_CFLAGS=$CFLAGS
14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14853 printf %s "checking whether $CC accepts -g... " >&6; }
14854 if test ${ac_cv_prog_cc_g+y}
14855 then :
14856 printf %s "(cached) " >&6
14857 else case e in #(
14858 e) ac_save_c_werror_flag=$ac_c_werror_flag
14859 ac_c_werror_flag=yes
14860 ac_cv_prog_cc_g=no
14861 CFLAGS="-g"
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14864
14865 int
14866 main (void)
14867 {
14868
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_compile "$LINENO"
14874 then :
14875 ac_cv_prog_cc_g=yes
14876 else case e in #(
14877 e) CFLAGS=""
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880
14881 int
14882 main (void)
14883 {
14884
14885 ;
14886 return 0;
14887 }
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"
14890 then :
14891
14892 else case e in #(
14893 e) ac_c_werror_flag=$ac_save_c_werror_flag
14894 CFLAGS="-g"
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897
14898 int
14899 main (void)
14900 {
14901
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_compile "$LINENO"
14907 then :
14908 ac_cv_prog_cc_g=yes
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14911 esac
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14914 esac
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14917 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14918 esac
14919 fi
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14921 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14922 if test $ac_test_CFLAGS; then
14923 CFLAGS=$ac_save_CFLAGS
14924 elif test $ac_cv_prog_cc_g = yes; then
14925 if test "$GCC" = yes; then
14926 CFLAGS="-g -O2"
14927 else
14928 CFLAGS="-g"
14929 fi
14930 else
14931 if test "$GCC" = yes; then
14932 CFLAGS="-O2"
14933 else
14934 CFLAGS=
14935 fi
14936 fi
14937 ac_prog_cc_stdc=no
14938 if test x$ac_prog_cc_stdc = xno
14939 then :
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14941 printf %s "checking for $CC option to enable C11 features... " >&6; }
14942 if test ${ac_cv_prog_cc_c11+y}
14943 then :
14944 printf %s "(cached) " >&6
14945 else case e in #(
14946 e) ac_cv_prog_cc_c11=no
14947 ac_save_CC=$CC
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 $ac_c_conftest_c11_program
14951 _ACEOF
14952 for ac_arg in '' -std=gnu11
14953 do
14954 CC="$ac_save_CC $ac_arg"
14955 if ac_fn_c_try_compile "$LINENO"
14956 then :
14957 ac_cv_prog_cc_c11=$ac_arg
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext conftest.beam
14960 test "x$ac_cv_prog_cc_c11" != "xno" && break
14961 done
14962 rm -f conftest.$ac_ext
14963 CC=$ac_save_CC ;;
14964 esac
14965 fi
14966
14967 if test "x$ac_cv_prog_cc_c11" = xno
14968 then :
14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14970 printf "%s\n" "unsupported" >&6; }
14971 else case e in #(
14972 e) if test "x$ac_cv_prog_cc_c11" = x
14973 then :
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14975 printf "%s\n" "none needed" >&6; }
14976 else case e in #(
14977 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14978 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14979 CC="$CC $ac_cv_prog_cc_c11" ;;
14980 esac
14981 fi
14982 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14983 ac_prog_cc_stdc=c11 ;;
14984 esac
14985 fi
14986 fi
14987 if test x$ac_prog_cc_stdc = xno
14988 then :
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14990 printf %s "checking for $CC option to enable C99 features... " >&6; }
14991 if test ${ac_cv_prog_cc_c99+y}
14992 then :
14993 printf %s "(cached) " >&6
14994 else case e in #(
14995 e) ac_cv_prog_cc_c99=no
14996 ac_save_CC=$CC
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 $ac_c_conftest_c99_program
15000 _ACEOF
15001 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15002 do
15003 CC="$ac_save_CC $ac_arg"
15004 if ac_fn_c_try_compile "$LINENO"
15005 then :
15006 ac_cv_prog_cc_c99=$ac_arg
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext conftest.beam
15009 test "x$ac_cv_prog_cc_c99" != "xno" && break
15010 done
15011 rm -f conftest.$ac_ext
15012 CC=$ac_save_CC ;;
15013 esac
15014 fi
15015
15016 if test "x$ac_cv_prog_cc_c99" = xno
15017 then :
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15019 printf "%s\n" "unsupported" >&6; }
15020 else case e in #(
15021 e) if test "x$ac_cv_prog_cc_c99" = x
15022 then :
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15024 printf "%s\n" "none needed" >&6; }
15025 else case e in #(
15026 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15027 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15028 CC="$CC $ac_cv_prog_cc_c99" ;;
15029 esac
15030 fi
15031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15032 ac_prog_cc_stdc=c99 ;;
15033 esac
15034 fi
15035 fi
15036 if test x$ac_prog_cc_stdc = xno
15037 then :
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15039 printf %s "checking for $CC option to enable C89 features... " >&6; }
15040 if test ${ac_cv_prog_cc_c89+y}
15041 then :
15042 printf %s "(cached) " >&6
15043 else case e in #(
15044 e) ac_cv_prog_cc_c89=no
15045 ac_save_CC=$CC
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 $ac_c_conftest_c89_program
15049 _ACEOF
15050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15051 do
15052 CC="$ac_save_CC $ac_arg"
15053 if ac_fn_c_try_compile "$LINENO"
15054 then :
15055 ac_cv_prog_cc_c89=$ac_arg
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.beam
15058 test "x$ac_cv_prog_cc_c89" != "xno" && break
15059 done
15060 rm -f conftest.$ac_ext
15061 CC=$ac_save_CC ;;
15062 esac
15063 fi
15064
15065 if test "x$ac_cv_prog_cc_c89" = xno
15066 then :
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15068 printf "%s\n" "unsupported" >&6; }
15069 else case e in #(
15070 e) if test "x$ac_cv_prog_cc_c89" = x
15071 then :
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15073 printf "%s\n" "none needed" >&6; }
15074 else case e in #(
15075 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15076 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15077 CC="$CC $ac_cv_prog_cc_c89" ;;
15078 esac
15079 fi
15080 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15081 ac_prog_cc_stdc=c89 ;;
15082 esac
15083 fi
15084 fi
15085
15086 ac_ext=c
15087 ac_cpp='$CPP $CPPFLAGS'
15088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15091
15092
15093 ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15099 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15100 if test ${am_cv_prog_cc_c_o+y}
15101 then :
15102 printf %s "(cached) " >&6
15103 else case e in #(
15104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106
15107 int
15108 main (void)
15109 {
15110
15111 ;
15112 return 0;
15113 }
15114 _ACEOF
15115 # Make sure it works both with $CC and with simple cc.
15116 # Following AC_PROG_CC_C_O, we do the test twice because some
15117 # compilers refuse to overwrite an existing .o file with -o,
15118 # though they will create one.
15119 am_cv_prog_cc_c_o=yes
15120 for am_i in 1 2; do
15121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } \
15126 && test -f conftest2.$ac_objext; then
15127 : OK
15128 else
15129 am_cv_prog_cc_c_o=no
15130 break
15131 fi
15132 done
15133 rm -f core conftest*
15134 unset am_i ;;
15135 esac
15136 fi
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15138 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15139 if test "$am_cv_prog_cc_c_o" != yes; then
15140 # Losing compiler, so override with the script.
15141 # FIXME: It is wrong to rewrite CC.
15142 # But if we don't then we get into trouble of one sort or another.
15143 # A longer-term fix would be to have automake use am__CC in this case,
15144 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15145 CC="$am_aux_dir/compile $CC"
15146 fi
15147 ac_ext=c
15148 ac_cpp='$CPP $CPPFLAGS'
15149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152
15153
15154
15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15156 printf %s "checking whether ln -s works... " >&6; }
15157 LN_S=$as_ln_s
15158 if test "$LN_S" = "ln -s"; then
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15160 printf "%s\n" "yes" >&6; }
15161 else
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15163 printf "%s\n" "no, using $LN_S" >&6; }
15164 fi
15165
15166
15167 ac_config_files="$ac_config_files Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh"
15168
15169 cat >confcache <<\_ACEOF
15170 # This file is a shell script that caches the results of configure
15171 # tests run on this system so they can be shared between configure
15172 # scripts and configure runs, see configure's option --config-cache.
15173 # It is not useful on other systems. If it contains results you don't
15174 # want to keep, you may remove or edit it.
15175 #
15176 # config.status only pays attention to the cache file if you give it
15177 # the --recheck option to rerun configure.
15178 #
15179 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15180 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15181 # following values.
15182
15183 _ACEOF
15184
15185 # The following way of writing the cache mishandles newlines in values,
15186 # but we know of no workaround that is simple, portable, and efficient.
15187 # So, we kill variables containing newlines.
15188 # Ultrix sh set writes to stderr and can't be redirected directly,
15189 # and sets the high bit in the cache file unless we assign to the vars.
15190 (
15191 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15192 eval ac_val=\$$ac_var
15193 case $ac_val in #(
15194 *${as_nl}*)
15195 case $ac_var in #(
15196 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15197 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15198 esac
15199 case $ac_var in #(
15200 _ | IFS | as_nl) ;; #(
15201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15202 *) { eval $ac_var=; unset $ac_var;} ;;
15203 esac ;;
15204 esac
15205 done
15206
15207 (set) 2>&1 |
15208 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15209 *${as_nl}ac_space=\ *)
15210 # 'set' does not quote correctly, so add quotes: double-quote
15211 # substitution turns \\\\ into \\, and sed turns \\ into \.
15212 sed -n \
15213 "s/'/'\\\\''/g;
15214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15215 ;; #(
15216 *)
15217 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15219 ;;
15220 esac |
15221 sort
15222 ) |
15223 sed '
15224 /^ac_cv_env_/b end
15225 t clear
15226 :clear
15227 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15228 t end
15229 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15230 :end' >>confcache
15231 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15232 if test -w "$cache_file"; then
15233 if test "x$cache_file" != "x/dev/null"; then
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15235 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15236 if test ! -f "$cache_file" || test -h "$cache_file"; then
15237 cat confcache >"$cache_file"
15238 else
15239 case $cache_file in #(
15240 */* | ?:*)
15241 mv -f confcache "$cache_file"$$ &&
15242 mv -f "$cache_file"$$ "$cache_file" ;; #(
15243 *)
15244 mv -f confcache "$cache_file" ;;
15245 esac
15246 fi
15247 fi
15248 else
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15250 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15251 fi
15252 fi
15253 rm -f confcache
15254
15255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15256 # Let make expand exec_prefix.
15257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15258
15259 DEFS=-DHAVE_CONFIG_H
15260
15261 ac_libobjs=
15262 ac_ltlibobjs=
15263 U=
15264 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15265 # 1. Remove the extension, and $U if already installed.
15266 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15267 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15268 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15269 # will be set to the directory where LIBOBJS objects are built.
15270 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15271 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15272 done
15273 LIBOBJS=$ac_libobjs
15274
15275 LTLIBOBJS=$ac_ltlibobjs
15276
15277
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15279 printf %s "checking that generated files are newer than configure... " >&6; }
15280 if test -n "$am_sleep_pid"; then
15281 # Hide warnings about reused PIDs.
15282 wait $am_sleep_pid 2>/dev/null
15283 fi
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15285 printf "%s\n" "done" >&6; }
15286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15287 as_fn_error $? "conditional \"AMDEP\" was never defined.
15288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15289 fi
15290 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15291 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15293 fi
15294 case $enable_silent_rules in # (((
15295 yes) AM_DEFAULT_VERBOSITY=0;;
15296 no) AM_DEFAULT_VERBOSITY=1;;
15297 esac
15298 if test $am_cv_make_support_nested_variables = yes; then
15299 AM_V='$(V)'
15300 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15301 else
15302 AM_V=$AM_DEFAULT_VERBOSITY
15303 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15304 fi
15305
15306 if test -n "$EXEEXT"; then
15307 am__EXEEXT_TRUE=
15308 am__EXEEXT_FALSE='#'
15309 else
15310 am__EXEEXT_TRUE='#'
15311 am__EXEEXT_FALSE=
15312 fi
15313
15314 # Check whether --enable-year2038 was given.
15315 if test ${enable_year2038+y}
15316 then :
15317 enableval=$enable_year2038;
15318 fi
15319
15320
15321 : "${CONFIG_STATUS=./config.status}"
15322 ac_write_fail=0
15323 ac_clean_files_save=$ac_clean_files
15324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15326 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15327 as_write_fail=0
15328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15329 #! $SHELL
15330 # Generated by $as_me.
15331 # Run this file to recreate the current configuration.
15332 # Compiler output produced by configure, useful for debugging
15333 # configure, is in config.log if it exists.
15334
15335 debug=false
15336 ac_cs_recheck=false
15337 ac_cs_silent=false
15338
15339 SHELL=\${CONFIG_SHELL-$SHELL}
15340 export SHELL
15341 _ASEOF
15342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15343 ## -------------------- ##
15344 ## M4sh Initialization. ##
15345 ## -------------------- ##
15346
15347 # Be more Bourne compatible
15348 DUALCASE=1; export DUALCASE # for MKS sh
15349 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15350 then :
15351 emulate sh
15352 NULLCMD=:
15353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15354 # is contrary to our usage. Disable this feature.
15355 alias -g '${1+"$@"}'='"$@"'
15356 setopt NO_GLOB_SUBST
15357 else case e in #(
15358 e) case `(set -o) 2>/dev/null` in #(
15359 *posix*) :
15360 set -o posix ;; #(
15361 *) :
15362 ;;
15363 esac ;;
15364 esac
15365 fi
15366
15367
15368
15369 # Reset variables that may have inherited troublesome values from
15370 # the environment.
15371
15372 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15373 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15374 # side effect of setting IFS to empty, thus disabling word splitting.)
15375 # Quoting is to prevent editors from complaining about space-tab.
15376 as_nl='
15377 '
15378 export as_nl
15379 IFS=" "" $as_nl"
15380
15381 PS1='$ '
15382 PS2='> '
15383 PS4='+ '
15384
15385 # Ensure predictable behavior from utilities with locale-dependent output.
15386 LC_ALL=C
15387 export LC_ALL
15388 LANGUAGE=C
15389 export LANGUAGE
15390
15391 # We cannot yet rely on "unset" to work, but we need these variables
15392 # to be unset--not just set to an empty or harmless value--now, to
15393 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15394 # also avoids known problems related to "unset" and subshell syntax
15395 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15396 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15397 do eval test \${$as_var+y} \
15398 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15399 done
15400
15401 # Ensure that fds 0, 1, and 2 are open.
15402 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15403 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15404 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15405
15406 # The user is always right.
15407 if ${PATH_SEPARATOR+false} :; then
15408 PATH_SEPARATOR=:
15409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15411 PATH_SEPARATOR=';'
15412 }
15413 fi
15414
15415
15416 # Find who we are. Look in the path if we contain no directory separator.
15417 as_myself=
15418 case $0 in #((
15419 *[\\/]* ) as_myself=$0 ;;
15420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15422 do
15423 IFS=$as_save_IFS
15424 case $as_dir in #(((
15425 '') as_dir=./ ;;
15426 */) ;;
15427 *) as_dir=$as_dir/ ;;
15428 esac
15429 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15430 done
15431 IFS=$as_save_IFS
15432
15433 ;;
15434 esac
15435 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15436 # in which case we are not to be found in the path.
15437 if test "x$as_myself" = x; then
15438 as_myself=$0
15439 fi
15440 if test ! -f "$as_myself"; then
15441 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15442 exit 1
15443 fi
15444
15445
15446
15447 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15448 # ----------------------------------------
15449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15451 # script with STATUS, using 1 if that was 0.
15452 as_fn_error ()
15453 {
15454 as_status=$1; test $as_status -eq 0 && as_status=1
15455 if test "$4"; then
15456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15458 fi
15459 printf "%s\n" "$as_me: error: $2" >&2
15460 as_fn_exit $as_status
15461 } # as_fn_error
15462
15463
15464 # as_fn_set_status STATUS
15465 # -----------------------
15466 # Set $? to STATUS, without forking.
15467 as_fn_set_status ()
15468 {
15469 return $1
15470 } # as_fn_set_status
15471
15472 # as_fn_exit STATUS
15473 # -----------------
15474 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15475 as_fn_exit ()
15476 {
15477 set +e
15478 as_fn_set_status $1
15479 exit $1
15480 } # as_fn_exit
15481
15482 # as_fn_unset VAR
15483 # ---------------
15484 # Portably unset VAR.
15485 as_fn_unset ()
15486 {
15487 { eval $1=; unset $1;}
15488 }
15489 as_unset=as_fn_unset
15490
15491 # as_fn_append VAR VALUE
15492 # ----------------------
15493 # Append the text in VALUE to the end of the definition contained in VAR. Take
15494 # advantage of any shell optimizations that allow amortized linear growth over
15495 # repeated appends, instead of the typical quadratic growth present in naive
15496 # implementations.
15497 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15498 then :
15499 eval 'as_fn_append ()
15500 {
15501 eval $1+=\$2
15502 }'
15503 else case e in #(
15504 e) as_fn_append ()
15505 {
15506 eval $1=\$$1\$2
15507 } ;;
15508 esac
15509 fi # as_fn_append
15510
15511 # as_fn_arith ARG...
15512 # ------------------
15513 # Perform arithmetic evaluation on the ARGs, and store the result in the
15514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15515 # must be portable across $(()) and expr.
15516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15517 then :
15518 eval 'as_fn_arith ()
15519 {
15520 as_val=$(( $* ))
15521 }'
15522 else case e in #(
15523 e) as_fn_arith ()
15524 {
15525 as_val=`expr "$@" || test $? -eq 1`
15526 } ;;
15527 esac
15528 fi # as_fn_arith
15529
15530
15531 if expr a : '\(a\)' >/dev/null 2>&1 &&
15532 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15533 as_expr=expr
15534 else
15535 as_expr=false
15536 fi
15537
15538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15539 as_basename=basename
15540 else
15541 as_basename=false
15542 fi
15543
15544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15545 as_dirname=dirname
15546 else
15547 as_dirname=false
15548 fi
15549
15550 as_me=`$as_basename -- "$0" ||
15551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15552 X"$0" : 'X\(//\)$' \| \
15553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15554 printf "%s\n" X/"$0" |
15555 sed '/^.*\/\([^/][^/]*\)\/*$/{
15556 s//\1/
15557 q
15558 }
15559 /^X\/\(\/\/\)$/{
15560 s//\1/
15561 q
15562 }
15563 /^X\/\(\/\).*/{
15564 s//\1/
15565 q
15566 }
15567 s/.*/./; q'`
15568
15569 # Avoid depending upon Character Ranges.
15570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15573 as_cr_digits='0123456789'
15574 as_cr_alnum=$as_cr_Letters$as_cr_digits
15575
15576
15577 # Determine whether it's possible to make 'echo' print without a newline.
15578 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15579 # for compatibility with existing Makefiles.
15580 ECHO_C= ECHO_N= ECHO_T=
15581 case `echo -n x` in #(((((
15582 -n*)
15583 case `echo 'xy\c'` in
15584 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15585 xy) ECHO_C='\c';;
15586 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15587 ECHO_T=' ';;
15588 esac;;
15589 *)
15590 ECHO_N='-n';;
15591 esac
15592
15593 # For backward compatibility with old third-party macros, we provide
15594 # the shell variables $as_echo and $as_echo_n. New code should use
15595 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15596 as_echo='printf %s\n'
15597 as_echo_n='printf %s'
15598
15599 rm -f conf$$ conf$$.exe conf$$.file
15600 if test -d conf$$.dir; then
15601 rm -f conf$$.dir/conf$$.file
15602 else
15603 rm -f conf$$.dir
15604 mkdir conf$$.dir 2>/dev/null
15605 fi
15606 if (echo >conf$$.file) 2>/dev/null; then
15607 if ln -s conf$$.file conf$$ 2>/dev/null; then
15608 as_ln_s='ln -s'
15609 # ... but there are two gotchas:
15610 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15611 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15612 # In both cases, we have to default to 'cp -pR'.
15613 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15614 as_ln_s='cp -pR'
15615 elif ln conf$$.file conf$$ 2>/dev/null; then
15616 as_ln_s=ln
15617 else
15618 as_ln_s='cp -pR'
15619 fi
15620 else
15621 as_ln_s='cp -pR'
15622 fi
15623 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15624 rmdir conf$$.dir 2>/dev/null
15625
15626
15627 # as_fn_mkdir_p
15628 # -------------
15629 # Create "$as_dir" as a directory, including parents if necessary.
15630 as_fn_mkdir_p ()
15631 {
15632
15633 case $as_dir in #(
15634 -*) as_dir=./$as_dir;;
15635 esac
15636 test -d "$as_dir" || eval $as_mkdir_p || {
15637 as_dirs=
15638 while :; do
15639 case $as_dir in #(
15640 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15641 *) as_qdir=$as_dir;;
15642 esac
15643 as_dirs="'$as_qdir' $as_dirs"
15644 as_dir=`$as_dirname -- "$as_dir" ||
15645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15646 X"$as_dir" : 'X\(//\)[^/]' \| \
15647 X"$as_dir" : 'X\(//\)$' \| \
15648 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15649 printf "%s\n" X"$as_dir" |
15650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15651 s//\1/
15652 q
15653 }
15654 /^X\(\/\/\)[^/].*/{
15655 s//\1/
15656 q
15657 }
15658 /^X\(\/\/\)$/{
15659 s//\1/
15660 q
15661 }
15662 /^X\(\/\).*/{
15663 s//\1/
15664 q
15665 }
15666 s/.*/./; q'`
15667 test -d "$as_dir" && break
15668 done
15669 test -z "$as_dirs" || eval "mkdir $as_dirs"
15670 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15671
15672
15673 } # as_fn_mkdir_p
15674 if mkdir -p . 2>/dev/null; then
15675 as_mkdir_p='mkdir -p "$as_dir"'
15676 else
15677 test -d ./-p && rmdir ./-p
15678 as_mkdir_p=false
15679 fi
15680
15681
15682 # as_fn_executable_p FILE
15683 # -----------------------
15684 # Test if FILE is an executable regular file.
15685 as_fn_executable_p ()
15686 {
15687 test -f "$1" && test -x "$1"
15688 } # as_fn_executable_p
15689 as_test_x='test -x'
15690 as_executable_p=as_fn_executable_p
15691
15692 # Sed expression to map a string onto a valid CPP name.
15693 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15694 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15695
15696 # Sed expression to map a string onto a valid variable name.
15697 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15698 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15699
15700
15701 exec 6>&1
15702 ## ----------------------------------- ##
15703 ## Main body of $CONFIG_STATUS script. ##
15704 ## ----------------------------------- ##
15705 _ASEOF
15706 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15707
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 # Save the log message, to keep $0 and so on meaningful, and to
15710 # report actual input values of CONFIG_FILES etc. instead of their
15711 # values after options handling.
15712 ac_log="
15713 This file was extended by pkgconf $as_me 2.5.1, which was
15714 generated by GNU Autoconf 2.72. Invocation command line was
15715
15716 CONFIG_FILES = $CONFIG_FILES
15717 CONFIG_HEADERS = $CONFIG_HEADERS
15718 CONFIG_LINKS = $CONFIG_LINKS
15719 CONFIG_COMMANDS = $CONFIG_COMMANDS
15720 $ $0 $@
15721
15722 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15723 "
15724
15725 _ACEOF
15726
15727 case $ac_config_files in *"
15728 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15729 esac
15730
15731 case $ac_config_headers in *"
15732 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15733 esac
15734
15735
15736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15737 # Files that config.status was made for.
15738 config_files="$ac_config_files"
15739 config_headers="$ac_config_headers"
15740 config_commands="$ac_config_commands"
15741
15742 _ACEOF
15743
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 ac_cs_usage="\
15746 '$as_me' instantiates files and other configuration actions
15747 from templates according to the current configuration. Unless the files
15748 and actions are specified as TAGs, all are instantiated by default.
15749
15750 Usage: $0 [OPTION]... [TAG]...
15751
15752 -h, --help print this help, then exit
15753 -V, --version print version number and configuration settings, then exit
15754 --config print configuration, then exit
15755 -q, --quiet, --silent
15756 do not print progress messages
15757 -d, --debug don't remove temporary files
15758 --recheck update $as_me by reconfiguring in the same conditions
15759 --file=FILE[:TEMPLATE]
15760 instantiate the configuration file FILE
15761 --header=FILE[:TEMPLATE]
15762 instantiate the configuration header FILE
15763
15764 Configuration files:
15765 $config_files
15766
15767 Configuration headers:
15768 $config_headers
15769
15770 Configuration commands:
15771 $config_commands
15772
15773 Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>."
15774
15775 _ACEOF
15776 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15777 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15779 ac_cs_config='$ac_cs_config_escaped'
15780 ac_cs_version="\\
15781 pkgconf config.status 2.5.1
15782 configured by $0, generated by GNU Autoconf 2.72,
15783 with options \\"\$ac_cs_config\\"
15784
15785 Copyright (C) 2023 Free Software Foundation, Inc.
15786 This config.status script is free software; the Free Software Foundation
15787 gives unlimited permission to copy, distribute and modify it."
15788
15789 ac_pwd='$ac_pwd'
15790 srcdir='$srcdir'
15791 INSTALL='$INSTALL'
15792 MKDIR_P='$MKDIR_P'
15793 AWK='$AWK'
15794 test -n "\$AWK" || AWK=awk
15795 _ACEOF
15796
15797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798 # The default lists apply if the user does not specify any file.
15799 ac_need_defaults=:
15800 while test $# != 0
15801 do
15802 case $1 in
15803 --*=?*)
15804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15806 ac_shift=:
15807 ;;
15808 --*=)
15809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15810 ac_optarg=
15811 ac_shift=:
15812 ;;
15813 *)
15814 ac_option=$1
15815 ac_optarg=$2
15816 ac_shift=shift
15817 ;;
15818 esac
15819
15820 case $ac_option in
15821 # Handling of the options.
15822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15823 ac_cs_recheck=: ;;
15824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15825 printf "%s\n" "$ac_cs_version"; exit ;;
15826 --config | --confi | --conf | --con | --co | --c )
15827 printf "%s\n" "$ac_cs_config"; exit ;;
15828 --debug | --debu | --deb | --de | --d | -d )
15829 debug=: ;;
15830 --file | --fil | --fi | --f )
15831 $ac_shift
15832 case $ac_optarg in
15833 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15834 '') as_fn_error $? "missing file argument" ;;
15835 esac
15836 as_fn_append CONFIG_FILES " '$ac_optarg'"
15837 ac_need_defaults=false;;
15838 --header | --heade | --head | --hea )
15839 $ac_shift
15840 case $ac_optarg in
15841 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15842 esac
15843 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15844 ac_need_defaults=false;;
15845 --he | --h)
15846 # Conflict between --help and --header
15847 as_fn_error $? "ambiguous option: '$1'
15848 Try '$0 --help' for more information.";;
15849 --help | --hel | -h )
15850 printf "%s\n" "$ac_cs_usage"; exit ;;
15851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15853 ac_cs_silent=: ;;
15854
15855 # This is an error.
15856 -*) as_fn_error $? "unrecognized option: '$1'
15857 Try '$0 --help' for more information." ;;
15858
15859 *) as_fn_append ac_config_targets " $1"
15860 ac_need_defaults=false ;;
15861
15862 esac
15863 shift
15864 done
15865
15866 ac_configure_extra_args=
15867
15868 if $ac_cs_silent; then
15869 exec 6>/dev/null
15870 ac_configure_extra_args="$ac_configure_extra_args --silent"
15871 fi
15872
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 if \$ac_cs_recheck; then
15876 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15877 shift
15878 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15879 CONFIG_SHELL='$SHELL'
15880 export CONFIG_SHELL
15881 exec "\$@"
15882 fi
15883
15884 _ACEOF
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 exec 5>>config.log
15887 {
15888 echo
15889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890 ## Running $as_me. ##
15891 _ASBOX
15892 printf "%s\n" "$ac_log"
15893 } >&5
15894
15895 _ACEOF
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 #
15898 # INIT-COMMANDS
15899 #
15900 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15901
15902
15903 # The HP-UX ksh and POSIX shell print the target directory to stdout
15904 # if CDPATH is set.
15905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15906
15907 sed_quote_subst='$sed_quote_subst'
15908 double_quote_subst='$double_quote_subst'
15909 delay_variable_subst='$delay_variable_subst'
15910 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15911 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15912 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15913 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15914 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15915 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15916 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15919 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15920 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15921 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15922 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15923 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15924 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15925 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15926 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15927 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15928 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15929 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15930 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15931 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15932 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15933 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15934 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15935 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15936 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15937 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15938 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15939 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15940 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15941 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15942 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15943 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15944 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15945 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15946 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15947 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15948 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15949 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15950 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15951 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15953 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15954 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15955 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15956 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15957 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15958 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15959 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15960 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15961 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15962 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15963 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15964 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15965 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15966 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15967 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15968 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15969 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15970 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"`'
15971 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15972 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15973 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15974 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16039 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16040 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16041 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16043 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16044 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16045 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16046 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16047
16048 LTCC='$LTCC'
16049 LTCFLAGS='$LTCFLAGS'
16050 compiler='$compiler_DEFAULT'
16051
16052 # A function that is used when there is no print builtin or printf.
16053 func_fallback_echo ()
16054 {
16055 eval 'cat <<_LTECHO_EOF
16056 \$1
16057 _LTECHO_EOF'
16058 }
16059
16060 # Quote evaled strings.
16061 for var in SHELL \
16062 ECHO \
16063 PATH_SEPARATOR \
16064 SED \
16065 GREP \
16066 EGREP \
16067 FGREP \
16068 LD \
16069 NM \
16070 LN_S \
16071 lt_SP2NL \
16072 lt_NL2SP \
16073 reload_flag \
16074 FILECMD \
16075 OBJDUMP \
16076 deplibs_check_method \
16077 file_magic_cmd \
16078 file_magic_glob \
16079 want_nocaseglob \
16080 DLLTOOL \
16081 sharedlib_from_linklib_cmd \
16082 AR \
16083 archiver_list_spec \
16084 STRIP \
16085 RANLIB \
16086 CC \
16087 CFLAGS \
16088 compiler \
16089 lt_cv_sys_global_symbol_pipe \
16090 lt_cv_sys_global_symbol_to_cdecl \
16091 lt_cv_sys_global_symbol_to_import \
16092 lt_cv_sys_global_symbol_to_c_name_address \
16093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16094 lt_cv_nm_interface \
16095 nm_file_list_spec \
16096 lt_cv_truncate_bin \
16097 lt_prog_compiler_no_builtin_flag \
16098 lt_prog_compiler_pic \
16099 lt_prog_compiler_wl \
16100 lt_prog_compiler_static \
16101 lt_cv_prog_compiler_c_o \
16102 need_locks \
16103 MANIFEST_TOOL \
16104 DSYMUTIL \
16105 NMEDIT \
16106 LIPO \
16107 OTOOL \
16108 OTOOL64 \
16109 shrext_cmds \
16110 export_dynamic_flag_spec \
16111 whole_archive_flag_spec \
16112 compiler_needs_object \
16113 with_gnu_ld \
16114 allow_undefined_flag \
16115 no_undefined_flag \
16116 hardcode_libdir_flag_spec \
16117 hardcode_libdir_separator \
16118 exclude_expsyms \
16119 include_expsyms \
16120 file_list_spec \
16121 variables_saved_for_relink \
16122 libname_spec \
16123 library_names_spec \
16124 soname_spec \
16125 install_override_mode \
16126 finish_eval \
16127 old_striplib \
16128 striplib; do
16129 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16130 *[\\\\\\\`\\"\\\$]*)
16131 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16132 ;;
16133 *)
16134 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16135 ;;
16136 esac
16137 done
16138
16139 # Double-quote double-evaled strings.
16140 for var in reload_cmds \
16141 old_postinstall_cmds \
16142 old_postuninstall_cmds \
16143 old_archive_cmds \
16144 extract_expsyms_cmds \
16145 old_archive_from_new_cmds \
16146 old_archive_from_expsyms_cmds \
16147 archive_cmds \
16148 archive_expsym_cmds \
16149 module_cmds \
16150 module_expsym_cmds \
16151 export_symbols_cmds \
16152 prelink_cmds \
16153 postlink_cmds \
16154 postinstall_cmds \
16155 postuninstall_cmds \
16156 finish_cmds \
16157 sys_lib_search_path_spec \
16158 configure_time_dlsearch_path \
16159 configure_time_lt_sys_library_path; do
16160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16161 *[\\\\\\\`\\"\\\$]*)
16162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16163 ;;
16164 *)
16165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16166 ;;
16167 esac
16168 done
16169
16170 ac_aux_dir='$ac_aux_dir'
16171
16172 # See if we are running on zsh, and set the options that allow our
16173 # commands through without removal of \ escapes INIT.
16174 if test -n "\${ZSH_VERSION+set}"; then
16175 setopt NO_GLOB_SUBST
16176 fi
16177
16178
16179 PACKAGE='$PACKAGE'
16180 VERSION='$VERSION'
16181 RM='$RM'
16182 ofile='$ofile'
16183
16184
16185
16186
16187 _ACEOF
16188
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190
16191 # Handling of arguments.
16192 for ac_config_target in $ac_config_targets
16193 do
16194 case $ac_config_target in
16195 "libpkgconf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libpkgconf/config.h" ;;
16196 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16197 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16198 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16199 "Kyuafile") CONFIG_FILES="$CONFIG_FILES Kyuafile" ;;
16200 "libpkgconf.pc") CONFIG_FILES="$CONFIG_FILES libpkgconf.pc" ;;
16201 "tests/Kyuafile") CONFIG_FILES="$CONFIG_FILES tests/Kyuafile" ;;
16202 "tests/test_env.sh") CONFIG_FILES="$CONFIG_FILES tests/test_env.sh" ;;
16203
16204 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16205 esac
16206 done
16207
16208
16209 # If the user did not use the arguments to specify the items to instantiate,
16210 # then the envvar interface is used. Set only those that are not.
16211 # We use the long form for the default assignment because of an extremely
16212 # bizarre bug on SunOS 4.1.3.
16213 if $ac_need_defaults; then
16214 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16215 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16216 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16217 fi
16218
16219 # Have a temporary directory for convenience. Make it in the build tree
16220 # simply because there is no reason against having it here, and in addition,
16221 # creating and moving files from /tmp can sometimes cause problems.
16222 # Hook for its removal unless debugging.
16223 # Note that there is a small window in which the directory will not be cleaned:
16224 # after its creation but before its name has been assigned to '$tmp'.
16225 $debug ||
16226 {
16227 tmp= ac_tmp=
16228 trap 'exit_status=$?
16229 : "${ac_tmp:=$tmp}"
16230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16231 ' 0
16232 trap 'as_fn_exit 1' 1 2 13 15
16233 }
16234 # Create a (secure) tmp directory for tmp files.
16235
16236 {
16237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16238 test -d "$tmp"
16239 } ||
16240 {
16241 tmp=./conf$$-$RANDOM
16242 (umask 077 && mkdir "$tmp")
16243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16244 ac_tmp=$tmp
16245
16246 # Set up the scripts for CONFIG_FILES section.
16247 # No need to generate them if there are no CONFIG_FILES.
16248 # This happens for instance with './config.status config.h'.
16249 if test -n "$CONFIG_FILES"; then
16250
16251
16252 ac_cr=`echo X | tr X '\015'`
16253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16254 # But we know of no other shell where ac_cr would be empty at this
16255 # point, so we can use a bashism as a fallback.
16256 if test "x$ac_cr" = x; then
16257 eval ac_cr=\$\'\\r\'
16258 fi
16259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16261 ac_cs_awk_cr='\\r'
16262 else
16263 ac_cs_awk_cr=$ac_cr
16264 fi
16265
16266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16267 _ACEOF
16268
16269
16270 {
16271 echo "cat >conf$$subs.awk <<_ACEOF" &&
16272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16273 echo "_ACEOF"
16274 } >conf$$subs.sh ||
16275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16277 ac_delim='%!_!# '
16278 for ac_last_try in false false false false false :; do
16279 . ./conf$$subs.sh ||
16280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16281
16282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16283 if test $ac_delim_n = $ac_delim_num; then
16284 break
16285 elif $ac_last_try; then
16286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16287 else
16288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16289 fi
16290 done
16291 rm -f conf$$subs.sh
16292
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16295 _ACEOF
16296 sed -n '
16297 h
16298 s/^/S["/; s/!.*/"]=/
16299 p
16300 g
16301 s/^[^!]*!//
16302 :repl
16303 t repl
16304 s/'"$ac_delim"'$//
16305 t delim
16306 :nl
16307 h
16308 s/\(.\{148\}\)..*/\1/
16309 t more1
16310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16311 p
16312 n
16313 b repl
16314 :more1
16315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16316 p
16317 g
16318 s/.\{148\}//
16319 t nl
16320 :delim
16321 h
16322 s/\(.\{148\}\)..*/\1/
16323 t more2
16324 s/["\\]/\\&/g; s/^/"/; s/$/"/
16325 p
16326 b
16327 :more2
16328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16329 p
16330 g
16331 s/.\{148\}//
16332 t delim
16333 ' <conf$$subs.awk | sed '
16334 /^[^""]/{
16335 N
16336 s/\n//
16337 }
16338 ' >>$CONFIG_STATUS || ac_write_fail=1
16339 rm -f conf$$subs.awk
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 _ACAWK
16342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16343 for (key in S) S_is_set[key] = 1
16344 FS = ""
16345
16346 }
16347 {
16348 line = $ 0
16349 nfields = split(line, field, "@")
16350 substed = 0
16351 len = length(field[1])
16352 for (i = 2; i < nfields; i++) {
16353 key = field[i]
16354 keylen = length(key)
16355 if (S_is_set[key]) {
16356 value = S[key]
16357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16358 len += length(value) + length(field[++i])
16359 substed = 1
16360 } else
16361 len += 1 + keylen
16362 }
16363
16364 print line
16365 }
16366
16367 _ACAWK
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16372 else
16373 cat
16374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16376 _ACEOF
16377
16378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16380 # trailing colons and then remove the whole line if VPATH becomes empty
16381 # (actually we leave an empty line to preserve line numbers).
16382 if test "x$srcdir" = x.; then
16383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16384 h
16385 s///
16386 s/^/:/
16387 s/[ ]*$/:/
16388 s/:\$(srcdir):/:/g
16389 s/:\${srcdir}:/:/g
16390 s/:@srcdir@:/:/g
16391 s/^:*//
16392 s/:*$//
16393 x
16394 s/\(=[ ]*\).*/\1/
16395 G
16396 s/\n//
16397 s/^[^=]*=[ ]*$//
16398 }'
16399 fi
16400
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 fi # test -n "$CONFIG_FILES"
16403
16404 # Set up the scripts for CONFIG_HEADERS section.
16405 # No need to generate them if there are no CONFIG_HEADERS.
16406 # This happens for instance with './config.status Makefile'.
16407 if test -n "$CONFIG_HEADERS"; then
16408 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16409 BEGIN {
16410 _ACEOF
16411
16412 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16413 # here-document in config.status, that substitutes the proper values into
16414 # config.h.in to produce config.h.
16415
16416 # Create a delimiter string that does not exist in confdefs.h, to ease
16417 # handling of long lines.
16418 ac_delim='%!_!# '
16419 for ac_last_try in false false :; do
16420 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16421 if test -z "$ac_tt"; then
16422 break
16423 elif $ac_last_try; then
16424 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16425 else
16426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16427 fi
16428 done
16429
16430 # For the awk script, D is an array of macro values keyed by name,
16431 # likewise P contains macro parameters if any. Preserve backslash
16432 # newline sequences.
16433
16434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16435 sed -n '
16436 s/.\{148\}/&'"$ac_delim"'/g
16437 t rset
16438 :rset
16439 s/^[ ]*#[ ]*define[ ][ ]*/ /
16440 t def
16441 d
16442 :def
16443 s/\\$//
16444 t bsnl
16445 s/["\\]/\\&/g
16446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16447 D["\1"]=" \3"/p
16448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16449 d
16450 :bsnl
16451 s/["\\]/\\&/g
16452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16453 D["\1"]=" \3\\\\\\n"\\/p
16454 t cont
16455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16456 t cont
16457 d
16458 :cont
16459 n
16460 s/.\{148\}/&'"$ac_delim"'/g
16461 t clear
16462 :clear
16463 s/\\$//
16464 t bsnlc
16465 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16466 d
16467 :bsnlc
16468 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16469 b cont
16470 ' <confdefs.h | sed '
16471 s/'"$ac_delim"'/"\\\
16472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16473
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 for (key in D) D_is_set[key] = 1
16476 FS = ""
16477 }
16478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16479 line = \$ 0
16480 split(line, arg, " ")
16481 if (arg[1] == "#") {
16482 defundef = arg[2]
16483 mac1 = arg[3]
16484 } else {
16485 defundef = substr(arg[1], 2)
16486 mac1 = arg[2]
16487 }
16488 split(mac1, mac2, "(") #)
16489 macro = mac2[1]
16490 prefix = substr(line, 1, index(line, defundef) - 1)
16491 if (D_is_set[macro]) {
16492 # Preserve the white space surrounding the "#".
16493 print prefix "define", macro P[macro] D[macro]
16494 next
16495 } else {
16496 # Replace #undef with comments. This is necessary, for example,
16497 # in the case of _POSIX_SOURCE, which is predefined and required
16498 # on some systems where configure will not decide to define it.
16499 if (defundef == "undef") {
16500 print "/*", prefix defundef, macro, "*/"
16501 next
16502 }
16503 }
16504 }
16505 { print }
16506 _ACAWK
16507 _ACEOF
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16510 fi # test -n "$CONFIG_HEADERS"
16511
16512
16513 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16514 shift
16515 for ac_tag
16516 do
16517 case $ac_tag in
16518 :[FHLC]) ac_mode=$ac_tag; continue;;
16519 esac
16520 case $ac_mode$ac_tag in
16521 :[FHL]*:*);;
16522 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16523 :[FH]-) ac_tag=-:-;;
16524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16525 esac
16526 ac_save_IFS=$IFS
16527 IFS=:
16528 set x $ac_tag
16529 IFS=$ac_save_IFS
16530 shift
16531 ac_file=$1
16532 shift
16533
16534 case $ac_mode in
16535 :L) ac_source=$1;;
16536 :[FH])
16537 ac_file_inputs=
16538 for ac_f
16539 do
16540 case $ac_f in
16541 -) ac_f="$ac_tmp/stdin";;
16542 *) # Look for the file first in the build tree, then in the source tree
16543 # (if the path is not absolute). The absolute path cannot be DOS-style,
16544 # because $ac_f cannot contain ':'.
16545 test -f "$ac_f" ||
16546 case $ac_f in
16547 [\\/$]*) false;;
16548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16549 esac ||
16550 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16551 esac
16552 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16553 as_fn_append ac_file_inputs " '$ac_f'"
16554 done
16555
16556 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16557 # use $as_me), people would be surprised to read:
16558 # /* config.h. Generated by config.status. */
16559 configure_input='Generated from '`
16560 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16561 `' by configure.'
16562 if test x"$ac_file" != x-; then
16563 configure_input="$ac_file. $configure_input"
16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16565 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16566 fi
16567 # Neutralize special characters interpreted by sed in replacement strings.
16568 case $configure_input in #(
16569 *\&* | *\|* | *\\* )
16570 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16572 *) ac_sed_conf_input=$configure_input;;
16573 esac
16574
16575 case $ac_tag in
16576 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16578 esac
16579 ;;
16580 esac
16581
16582 ac_dir=`$as_dirname -- "$ac_file" ||
16583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584 X"$ac_file" : 'X\(//\)[^/]' \| \
16585 X"$ac_file" : 'X\(//\)$' \| \
16586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16587 printf "%s\n" X"$ac_file" |
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16589 s//\1/
16590 q
16591 }
16592 /^X\(\/\/\)[^/].*/{
16593 s//\1/
16594 q
16595 }
16596 /^X\(\/\/\)$/{
16597 s//\1/
16598 q
16599 }
16600 /^X\(\/\).*/{
16601 s//\1/
16602 q
16603 }
16604 s/.*/./; q'`
16605 as_dir="$ac_dir"; as_fn_mkdir_p
16606 ac_builddir=.
16607
16608 case "$ac_dir" in
16609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16610 *)
16611 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16612 # A ".." for each directory in $ac_dir_suffix.
16613 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16614 case $ac_top_builddir_sub in
16615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16617 esac ;;
16618 esac
16619 ac_abs_top_builddir=$ac_pwd
16620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16621 # for backward compatibility:
16622 ac_top_builddir=$ac_top_build_prefix
16623
16624 case $srcdir in
16625 .) # We are building in place.
16626 ac_srcdir=.
16627 ac_top_srcdir=$ac_top_builddir_sub
16628 ac_abs_top_srcdir=$ac_pwd ;;
16629 [\\/]* | ?:[\\/]* ) # Absolute name.
16630 ac_srcdir=$srcdir$ac_dir_suffix;
16631 ac_top_srcdir=$srcdir
16632 ac_abs_top_srcdir=$srcdir ;;
16633 *) # Relative name.
16634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16635 ac_top_srcdir=$ac_top_build_prefix$srcdir
16636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16637 esac
16638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16639
16640
16641 case $ac_mode in
16642 :F)
16643 #
16644 # CONFIG_FILE
16645 #
16646
16647 case $INSTALL in
16648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16650 esac
16651 ac_MKDIR_P=$MKDIR_P
16652 case $MKDIR_P in
16653 [\\/$]* | ?:[\\/]* ) ;;
16654 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16655 esac
16656 _ACEOF
16657
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16659 # If the template does not know about datarootdir, expand it.
16660 # FIXME: This hack should be removed a few years after 2.60.
16661 ac_datarootdir_hack=; ac_datarootdir_seen=
16662 ac_sed_dataroot='
16663 /datarootdir/ {
16664 p
16665 q
16666 }
16667 /@datadir@/p
16668 /@docdir@/p
16669 /@infodir@/p
16670 /@localedir@/p
16671 /@mandir@/p'
16672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16673 *datarootdir*) ac_datarootdir_seen=yes;;
16674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16676 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16677 _ACEOF
16678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679 ac_datarootdir_hack='
16680 s&@datadir@&$datadir&g
16681 s&@docdir@&$docdir&g
16682 s&@infodir@&$infodir&g
16683 s&@localedir@&$localedir&g
16684 s&@mandir@&$mandir&g
16685 s&\\\${datarootdir}&$datarootdir&g' ;;
16686 esac
16687 _ACEOF
16688
16689 # Neutralize VPATH when '$srcdir' = '.'.
16690 # Shell code in configure.ac might set extrasub.
16691 # FIXME: do we really want to maintain this feature?
16692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 ac_sed_extra="$ac_vpsub
16694 $extrasub
16695 _ACEOF
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 :t
16698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16699 s|@configure_input@|$ac_sed_conf_input|;t t
16700 s&@top_builddir@&$ac_top_builddir_sub&;t t
16701 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16702 s&@srcdir@&$ac_srcdir&;t t
16703 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16704 s&@top_srcdir@&$ac_top_srcdir&;t t
16705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16706 s&@builddir@&$ac_builddir&;t t
16707 s&@abs_builddir@&$ac_abs_builddir&;t t
16708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16709 s&@INSTALL@&$ac_INSTALL&;t t
16710 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16711 $ac_datarootdir_hack
16712 "
16713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16714 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16715
16716 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16717 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16718 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16719 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16721 which seems to be undefined. Please make sure it is defined" >&5
16722 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16723 which seems to be undefined. Please make sure it is defined" >&2;}
16724
16725 rm -f "$ac_tmp/stdin"
16726 case $ac_file in
16727 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16728 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16729 esac \
16730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16731 ;;
16732 :H)
16733 #
16734 # CONFIG_HEADER
16735 #
16736 if test x"$ac_file" != x-; then
16737 {
16738 printf "%s\n" "/* $configure_input */" >&1 \
16739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16740 } >"$ac_tmp/config.h" \
16741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16742 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16744 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16745 else
16746 rm -f "$ac_file"
16747 mv "$ac_tmp/config.h" "$ac_file" \
16748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16749 fi
16750 else
16751 printf "%s\n" "/* $configure_input */" >&1 \
16752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16753 || as_fn_error $? "could not create -" "$LINENO" 5
16754 fi
16755 # Compute "$ac_file"'s index in $config_headers.
16756 _am_arg="$ac_file"
16757 _am_stamp_count=1
16758 for _am_header in $config_headers :; do
16759 case $_am_header in
16760 $_am_arg | $_am_arg:* )
16761 break ;;
16762 * )
16763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16764 esac
16765 done
16766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768 X"$_am_arg" : 'X\(//\)[^/]' \| \
16769 X"$_am_arg" : 'X\(//\)$' \| \
16770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16771 printf "%s\n" X"$_am_arg" |
16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16773 s//\1/
16774 q
16775 }
16776 /^X\(\/\/\)[^/].*/{
16777 s//\1/
16778 q
16779 }
16780 /^X\(\/\/\)$/{
16781 s//\1/
16782 q
16783 }
16784 /^X\(\/\).*/{
16785 s//\1/
16786 q
16787 }
16788 s/.*/./; q'`/stamp-h$_am_stamp_count
16789 ;;
16790
16791 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16792 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16793 ;;
16794 esac
16795
16796
16797 case $ac_file$ac_mode in
16798 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16799 # Older Autoconf quotes --file arguments for eval, but not when files
16800 # are listed without --file. Let's play safe and only enable the eval
16801 # if we detect the quoting.
16802 # TODO: see whether this extra hack can be removed once we start
16803 # requiring Autoconf 2.70 or later.
16804 case $CONFIG_FILES in #(
16805 *\'*) :
16806 eval set x "$CONFIG_FILES" ;; #(
16807 *) :
16808 set x $CONFIG_FILES ;; #(
16809 *) :
16810 ;;
16811 esac
16812 shift
16813 # Used to flag and report bootstrapping failures.
16814 am_rc=0
16815 for am_mf
16816 do
16817 # Strip MF so we end up with the name of the file.
16818 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16819 # Check whether this is an Automake generated Makefile which includes
16820 # dependency-tracking related rules and includes.
16821 # Grep'ing the whole file directly is not great: AIX grep has a line
16822 # limit of 2048, but all sed's we know have understand at least 4000.
16823 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16824 || continue
16825 am_dirpart=`$as_dirname -- "$am_mf" ||
16826 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16827 X"$am_mf" : 'X\(//\)[^/]' \| \
16828 X"$am_mf" : 'X\(//\)$' \| \
16829 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16830 printf "%s\n" X"$am_mf" |
16831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16832 s//\1/
16833 q
16834 }
16835 /^X\(\/\/\)[^/].*/{
16836 s//\1/
16837 q
16838 }
16839 /^X\(\/\/\)$/{
16840 s//\1/
16841 q
16842 }
16843 /^X\(\/\).*/{
16844 s//\1/
16845 q
16846 }
16847 s/.*/./; q'`
16848 am_filepart=`$as_basename -- "$am_mf" ||
16849 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16850 X"$am_mf" : 'X\(//\)$' \| \
16851 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16852 printf "%s\n" X/"$am_mf" |
16853 sed '/^.*\/\([^/][^/]*\)\/*$/{
16854 s//\1/
16855 q
16856 }
16857 /^X\/\(\/\/\)$/{
16858 s//\1/
16859 q
16860 }
16861 /^X\/\(\/\).*/{
16862 s//\1/
16863 q
16864 }
16865 s/.*/./; q'`
16866 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16867 && sed -e '/# am--include-marker/d' "$am_filepart" \
16868 | $MAKE -f - am--depfiles" >&5
16869 (cd "$am_dirpart" \
16870 && sed -e '/# am--include-marker/d' "$am_filepart" \
16871 | $MAKE -f - am--depfiles) >&5 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } || am_rc=$?
16875 done
16876 if test $am_rc -ne 0; then
16877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16878 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16879 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16880 for automatic dependency tracking. If GNU make was not used, consider
16881 re-running the configure script with MAKE=\"gmake\" (or whatever is
16882 necessary). You can also try re-running configure with the
16883 '--disable-dependency-tracking' option to at least be able to build
16884 the package (albeit without support for automatic dependency tracking).
16885 See 'config.log' for more details" "$LINENO" 5; }
16886 fi
16887 { am_dirpart=; unset am_dirpart;}
16888 { am_filepart=; unset am_filepart;}
16889 { am_mf=; unset am_mf;}
16890 { am_rc=; unset am_rc;}
16891 rm -f conftest-deps.mk
16892 }
16893 ;;
16894 "libtool":C)
16895
16896 # See if we are running on zsh, and set the options that allow our
16897 # commands through without removal of \ escapes.
16898 if test -n "${ZSH_VERSION+set}"; then
16899 setopt NO_GLOB_SUBST
16900 fi
16901
16902 cfgfile=${ofile}T
16903 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16904 $RM "$cfgfile"
16905
16906 cat <<_LT_EOF >> "$cfgfile"
16907 #! $SHELL
16908 # Generated automatically by $as_me ($PACKAGE) $VERSION
16909 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16910
16911 # Provide generalized library-building support services.
16912 # Written by Gordon Matzigkeit, 1996
16913
16914 # Copyright (C) 2024 Free Software Foundation, Inc.
16915 # This is free software; see the source for copying conditions. There is NO
16916 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16917
16918 # GNU Libtool is free software; you can redistribute it and/or modify
16919 # it under the terms of the GNU General Public License as published by
16920 # the Free Software Foundation; either version 2 of the License, or
16921 # (at your option) any later version.
16922 #
16923 # As a special exception to the GNU General Public License, if you
16924 # distribute this file as part of a program or library that is built
16925 # using GNU Libtool, you may include this file under the same
16926 # distribution terms that you use for the rest of that program.
16927 #
16928 # GNU Libtool is distributed in the hope that it will be useful, but
16929 # WITHOUT ANY WARRANTY; without even the implied warranty of
16930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16931 # GNU General Public License for more details.
16932 #
16933 # You should have received a copy of the GNU General Public License
16934 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16935
16936
16937 # The names of the tagged configurations supported by this script.
16938 available_tags=''
16939
16940 # Configured defaults for sys_lib_dlsearch_path munging.
16941 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16942
16943 # ### BEGIN LIBTOOL CONFIG
16944
16945 # Which release of libtool.m4 was used?
16946 macro_version=$macro_version
16947 macro_revision=$macro_revision
16948
16949 # Whether or not to build shared libraries.
16950 build_libtool_libs=$enable_shared
16951
16952 # Whether or not to build static libraries.
16953 build_old_libs=$enable_static
16954
16955 # What type of objects to build.
16956 pic_mode=$pic_mode
16957
16958 # Whether or not to optimize for fast installation.
16959 fast_install=$enable_fast_install
16960
16961 # Shared archive member basename,for filename based shared library versioning on AIX.
16962 shared_archive_member_spec=$shared_archive_member_spec
16963
16964 # Shell to use when invoking shell scripts.
16965 SHELL=$lt_SHELL
16966
16967 # An echo program that protects backslashes.
16968 ECHO=$lt_ECHO
16969
16970 # The PATH separator for the build system.
16971 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16972
16973 # The host system.
16974 host_alias=$host_alias
16975 host=$host
16976 host_os=$host_os
16977
16978 # The build system.
16979 build_alias=$build_alias
16980 build=$build
16981 build_os=$build_os
16982
16983 # A sed program that does not truncate output.
16984 SED=$lt_SED
16985
16986 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16987 Xsed="\$SED -e 1s/^X//"
16988
16989 # A grep program that handles long lines.
16990 GREP=$lt_GREP
16991
16992 # An ERE matcher.
16993 EGREP=$lt_EGREP
16994
16995 # A literal string matcher.
16996 FGREP=$lt_FGREP
16997
16998 # A BSD- or MS-compatible name lister.
16999 NM=$lt_NM
17000
17001 # Whether we need soft or hard links.
17002 LN_S=$lt_LN_S
17003
17004 # What is the maximum length of a command?
17005 max_cmd_len=$max_cmd_len
17006
17007 # Object file suffix (normally "o").
17008 objext=$ac_objext
17009
17010 # Executable file suffix (normally "").
17011 exeext=$exeext
17012
17013 # whether the shell understands "unset".
17014 lt_unset=$lt_unset
17015
17016 # turn spaces into newlines.
17017 SP2NL=$lt_lt_SP2NL
17018
17019 # turn newlines into spaces.
17020 NL2SP=$lt_lt_NL2SP
17021
17022 # convert \$build file names to \$host format.
17023 to_host_file_cmd=$lt_cv_to_host_file_cmd
17024
17025 # convert \$build files to toolchain format.
17026 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17027
17028 # A file(cmd) program that detects file types.
17029 FILECMD=$lt_FILECMD
17030
17031 # An object symbol dumper.
17032 OBJDUMP=$lt_OBJDUMP
17033
17034 # Method to check whether dependent libraries are shared objects.
17035 deplibs_check_method=$lt_deplibs_check_method
17036
17037 # Command to use when deplibs_check_method = "file_magic".
17038 file_magic_cmd=$lt_file_magic_cmd
17039
17040 # How to find potential files when deplibs_check_method = "file_magic".
17041 file_magic_glob=$lt_file_magic_glob
17042
17043 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17044 want_nocaseglob=$lt_want_nocaseglob
17045
17046 # DLL creation program.
17047 DLLTOOL=$lt_DLLTOOL
17048
17049 # Command to associate shared and link libraries.
17050 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17051
17052 # The archiver.
17053 AR=$lt_AR
17054
17055 # Flags to create an archive (by configure).
17056 lt_ar_flags=$lt_ar_flags
17057
17058 # Flags to create an archive.
17059 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17060
17061 # How to feed a file listing to the archiver.
17062 archiver_list_spec=$lt_archiver_list_spec
17063
17064 # A symbol stripping program.
17065 STRIP=$lt_STRIP
17066
17067 # Commands used to install an old-style archive.
17068 RANLIB=$lt_RANLIB
17069 old_postinstall_cmds=$lt_old_postinstall_cmds
17070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17071
17072 # Whether to use a lock for old archive extraction.
17073 lock_old_archive_extraction=$lock_old_archive_extraction
17074
17075 # A C compiler.
17076 LTCC=$lt_CC
17077
17078 # LTCC compiler flags.
17079 LTCFLAGS=$lt_CFLAGS
17080
17081 # Take the output of nm and produce a listing of raw symbols and C names.
17082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17083
17084 # Transform the output of nm in a proper C declaration.
17085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17086
17087 # Transform the output of nm into a list of symbols to manually relocate.
17088 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17089
17090 # Transform the output of nm in a C name address pair.
17091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17092
17093 # Transform the output of nm in a C name address pair when lib prefix is needed.
17094 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17095
17096 # The name lister interface.
17097 nm_interface=$lt_lt_cv_nm_interface
17098
17099 # Specify filename containing input files for \$NM.
17100 nm_file_list_spec=$lt_nm_file_list_spec
17101
17102 # The root where to search for dependent libraries,and where our libraries should be installed.
17103 lt_sysroot=$lt_sysroot
17104
17105 # Command to truncate a binary pipe.
17106 lt_truncate_bin=$lt_lt_cv_truncate_bin
17107
17108 # The name of the directory that contains temporary libtool files.
17109 objdir=$objdir
17110
17111 # Used to examine libraries when file_magic_cmd begins with "file".
17112 MAGIC_CMD=$MAGIC_CMD
17113
17114 # Must we lock files when doing compilation?
17115 need_locks=$lt_need_locks
17116
17117 # Manifest tool.
17118 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17119
17120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17121 DSYMUTIL=$lt_DSYMUTIL
17122
17123 # Tool to change global to local symbols on Mac OS X.
17124 NMEDIT=$lt_NMEDIT
17125
17126 # Tool to manipulate fat objects and archives on Mac OS X.
17127 LIPO=$lt_LIPO
17128
17129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17130 OTOOL=$lt_OTOOL
17131
17132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17133 OTOOL64=$lt_OTOOL64
17134
17135 # Old archive suffix (normally "a").
17136 libext=$libext
17137
17138 # Shared library suffix (normally ".so").
17139 shrext_cmds=$lt_shrext_cmds
17140
17141 # The commands to extract the exported symbol list from a shared archive.
17142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17143
17144 # Variables whose values should be saved in libtool wrapper scripts and
17145 # restored at link time.
17146 variables_saved_for_relink=$lt_variables_saved_for_relink
17147
17148 # Do we need the "lib" prefix for modules?
17149 need_lib_prefix=$need_lib_prefix
17150
17151 # Do we need a version for libraries?
17152 need_version=$need_version
17153
17154 # Library versioning type.
17155 version_type=$version_type
17156
17157 # Shared library runtime path variable.
17158 runpath_var=$runpath_var
17159
17160 # Shared library path variable.
17161 shlibpath_var=$shlibpath_var
17162
17163 # Is shlibpath searched before the hard-coded library search path?
17164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17165
17166 # Format of library name prefix.
17167 libname_spec=$lt_libname_spec
17168
17169 # List of archive names. First name is the real one, the rest are links.
17170 # The last name is the one that the linker finds with -lNAME
17171 library_names_spec=$lt_library_names_spec
17172
17173 # The coded name of the library, if different from the real name.
17174 soname_spec=$lt_soname_spec
17175
17176 # Permission mode override for installation of shared libraries.
17177 install_override_mode=$lt_install_override_mode
17178
17179 # Command to use after installation of a shared archive.
17180 postinstall_cmds=$lt_postinstall_cmds
17181
17182 # Command to use after uninstallation of a shared archive.
17183 postuninstall_cmds=$lt_postuninstall_cmds
17184
17185 # Commands used to finish a libtool library installation in a directory.
17186 finish_cmds=$lt_finish_cmds
17187
17188 # As "finish_cmds", except a single script fragment to be evaled but
17189 # not shown.
17190 finish_eval=$lt_finish_eval
17191
17192 # Whether we should hardcode library paths into libraries.
17193 hardcode_into_libs=$hardcode_into_libs
17194
17195 # Compile-time system search path for libraries.
17196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17197
17198 # Detected run-time system search path for libraries.
17199 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17200
17201 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17202 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17203
17204 # Whether dlopen is supported.
17205 dlopen_support=$enable_dlopen
17206
17207 # Whether dlopen of programs is supported.
17208 dlopen_self=$enable_dlopen_self
17209
17210 # Whether dlopen of statically linked programs is supported.
17211 dlopen_self_static=$enable_dlopen_self_static
17212
17213 # Commands to strip libraries.
17214 old_striplib=$lt_old_striplib
17215 striplib=$lt_striplib
17216
17217
17218 # The linker used to build libraries.
17219 LD=$lt_LD
17220
17221 # How to create reloadable object files.
17222 reload_flag=$lt_reload_flag
17223 reload_cmds=$lt_reload_cmds
17224
17225 # Commands used to build an old-style archive.
17226 old_archive_cmds=$lt_old_archive_cmds
17227
17228 # A language specific compiler.
17229 CC=$lt_compiler
17230
17231 # Is the compiler the GNU compiler?
17232 with_gcc=$GCC
17233
17234 # Compiler flag to turn off builtin functions.
17235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17236
17237 # Additional compiler flags for building library objects.
17238 pic_flag=$lt_lt_prog_compiler_pic
17239
17240 # How to pass a linker flag through the compiler.
17241 wl=$lt_lt_prog_compiler_wl
17242
17243 # Compiler flag to prevent dynamic linking.
17244 link_static_flag=$lt_lt_prog_compiler_static
17245
17246 # Does compiler simultaneously support -c and -o options?
17247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17248
17249 # Whether or not to add -lc for building shared libraries.
17250 build_libtool_need_lc=$archive_cmds_need_lc
17251
17252 # Whether or not to disallow shared libs when runtime libs are static.
17253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17254
17255 # Compiler flag to allow reflexive dlopens.
17256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17257
17258 # Compiler flag to generate shared objects directly from archives.
17259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17260
17261 # Whether the compiler copes with passing no objects directly.
17262 compiler_needs_object=$lt_compiler_needs_object
17263
17264 # Create an old-style archive from a shared archive.
17265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17266
17267 # Create a temporary old-style archive to link instead of a shared archive.
17268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17269
17270 # Commands used to build a shared archive.
17271 archive_cmds=$lt_archive_cmds
17272 archive_expsym_cmds=$lt_archive_expsym_cmds
17273
17274 # Commands used to build a loadable module if different from building
17275 # a shared archive.
17276 module_cmds=$lt_module_cmds
17277 module_expsym_cmds=$lt_module_expsym_cmds
17278
17279 # Whether we are building with GNU ld or not.
17280 with_gnu_ld=$lt_with_gnu_ld
17281
17282 # Flag that allows shared libraries with undefined symbols to be built.
17283 allow_undefined_flag=$lt_allow_undefined_flag
17284
17285 # Flag that enforces no undefined symbols.
17286 no_undefined_flag=$lt_no_undefined_flag
17287
17288 # Flag to hardcode \$libdir into a binary during linking.
17289 # This must work even if \$libdir does not exist
17290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17291
17292 # Whether we need a single "-rpath" flag with a separated argument.
17293 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17294
17295 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17296 # DIR into the resulting binary.
17297 hardcode_direct=$hardcode_direct
17298
17299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17300 # DIR into the resulting binary and the resulting library dependency is
17301 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17302 # library is relocated.
17303 hardcode_direct_absolute=$hardcode_direct_absolute
17304
17305 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17306 # into the resulting binary.
17307 hardcode_minus_L=$hardcode_minus_L
17308
17309 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17310 # into the resulting binary.
17311 hardcode_shlibpath_var=$hardcode_shlibpath_var
17312
17313 # Set to "yes" if building a shared library automatically hardcodes DIR
17314 # into the library and all subsequent libraries and executables linked
17315 # against it.
17316 hardcode_automatic=$hardcode_automatic
17317
17318 # Set to yes if linker adds runtime paths of dependent libraries
17319 # to runtime path list.
17320 inherit_rpath=$inherit_rpath
17321
17322 # Whether libtool must link a program against all its dependency libraries.
17323 link_all_deplibs=$link_all_deplibs
17324
17325 # Set to "yes" if exported symbols are required.
17326 always_export_symbols=$always_export_symbols
17327
17328 # The commands to list exported symbols.
17329 export_symbols_cmds=$lt_export_symbols_cmds
17330
17331 # Symbols that should not be listed in the preloaded symbols.
17332 exclude_expsyms=$lt_exclude_expsyms
17333
17334 # Symbols that must always be exported.
17335 include_expsyms=$lt_include_expsyms
17336
17337 # Commands necessary for linking programs (against libraries) with templates.
17338 prelink_cmds=$lt_prelink_cmds
17339
17340 # Commands necessary for finishing linking programs.
17341 postlink_cmds=$lt_postlink_cmds
17342
17343 # Specify filename containing input files.
17344 file_list_spec=$lt_file_list_spec
17345
17346 # How to hardcode a shared library path into an executable.
17347 hardcode_action=$hardcode_action
17348
17349 # ### END LIBTOOL CONFIG
17350
17351 _LT_EOF
17352
17353 cat <<'_LT_EOF' >> "$cfgfile"
17354
17355 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17356
17357 # func_munge_path_list VARIABLE PATH
17358 # -----------------------------------
17359 # VARIABLE is name of variable containing _space_ separated list of
17360 # directories to be munged by the contents of PATH, which is string
17361 # having a format:
17362 # "DIR[:DIR]:"
17363 # string "DIR[ DIR]" will be prepended to VARIABLE
17364 # ":DIR[:DIR]"
17365 # string "DIR[ DIR]" will be appended to VARIABLE
17366 # "DIRP[:DIRP]::[DIRA:]DIRA"
17367 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17368 # "DIRA[ DIRA]" will be appended to VARIABLE
17369 # "DIR[:DIR]"
17370 # VARIABLE will be replaced by "DIR[ DIR]"
17371 func_munge_path_list ()
17372 {
17373 case x$2 in
17374 x)
17375 ;;
17376 *:)
17377 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17378 ;;
17379 x:*)
17380 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17381 ;;
17382 *::*)
17383 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17384 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17385 ;;
17386 *)
17387 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17388 ;;
17389 esac
17390 }
17391
17392
17393 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17394 func_cc_basename ()
17395 {
17396 for cc_temp in $*""; do
17397 case $cc_temp in
17398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17400 \-*) ;;
17401 *) break;;
17402 esac
17403 done
17404 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17405 }
17406
17407
17408 # ### END FUNCTIONS SHARED WITH CONFIGURE
17409
17410 _LT_EOF
17411
17412 case $host_os in
17413 aix3*)
17414 cat <<\_LT_EOF >> "$cfgfile"
17415 # AIX sometimes has problems with the GCC collect2 program. For some
17416 # reason, if we set the COLLECT_NAMES environment variable, the problems
17417 # vanish in a puff of smoke.
17418 if test set != "${COLLECT_NAMES+set}"; then
17419 COLLECT_NAMES=
17420 export COLLECT_NAMES
17421 fi
17422 _LT_EOF
17423 ;;
17424 esac
17425
17426
17427
17428 ltmain=$ac_aux_dir/ltmain.sh
17429
17430
17431 # We use sed instead of cat because bash on DJGPP gets confused if
17432 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17433 # text mode, it properly converts lines to CR/LF. This bash problem
17434 # is reportedly fixed, but why not run on old versions too?
17435 $SED '$q' "$ltmain" >> "$cfgfile" \
17436 || (rm -f "$cfgfile"; exit 1)
17437
17438 mv -f "$cfgfile" "$ofile" ||
17439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17440 chmod +x "$ofile"
17441
17442 ;;
17443
17444 esac
17445 done # for ac_tag
17446
17447
17448 as_fn_exit 0
17449 _ACEOF
17450 ac_clean_files=$ac_clean_files_save
17451
17452 test $ac_write_fail = 0 ||
17453 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17454
17455
17456 # configure is writing to config.log, and then calls config.status.
17457 # config.status does its own redirection, appending to config.log.
17458 # Unfortunately, on DOS this fails, as config.log is still kept open
17459 # by configure, so config.status won't be able to write to it; its
17460 # output is simply discarded. So we exec the FD to /dev/null,
17461 # effectively closing config.log, so it can be properly (re)opened and
17462 # appended to by config.status. When coming back to configure, we
17463 # need to make the FD available again.
17464 if test "$no_create" != yes; then
17465 ac_cs_success=:
17466 ac_config_status_args=
17467 test "$silent" = yes &&
17468 ac_config_status_args="$ac_config_status_args --quiet"
17469 exec 5>/dev/null
17470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17471 exec 5>>config.log
17472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17473 # would make configure fail if this is the last instruction.
17474 $ac_cs_success || as_fn_exit 1
17475 fi
17476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17478 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17479 fi
17480
17481