Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libdatrie 0.2.14.
4 #
5 # Report bugs to <https://github.com/tlwg/libdatrie/issues>.
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/tlwg/libdatrie/issues about your
283 $0: system, including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: 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 as_awk_strverscmp='
594 # Use only awk features that work with 7th edition Unix awk (1978).
595 # My, what an old awk you have, Mr. Solaris!
596 END {
597 while (length(v1) && length(v2)) {
598 # Set d1 to be the next thing to compare from v1, and likewise for d2.
599 # Normally this is a single character, but if v1 and v2 contain digits,
600 # compare them as integers and fractions as strverscmp does.
601 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
602 # Split v1 and v2 into their leading digit string components d1 and d2,
603 # and advance v1 and v2 past the leading digit strings.
604 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
605 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
606 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
607 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
608 if (d1 ~ /^0/) {
609 if (d2 ~ /^0/) {
610 # Compare two fractions.
611 while (d1 ~ /^0/ && d2 ~ /^0/) {
612 d1 = substr(d1, 2); len1--
613 d2 = substr(d2, 2); len2--
614 }
615 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
616 # The two components differ in length, and the common prefix
617 # contains only leading zeros. Consider the longer to be less.
618 d1 = -len1
619 d2 = -len2
620 } else {
621 # Otherwise, compare as strings.
622 d1 = "x" d1
623 d2 = "x" d2
624 }
625 } else {
626 # A fraction is less than an integer.
627 exit 1
628 }
629 } else {
630 if (d2 ~ /^0/) {
631 # An integer is greater than a fraction.
632 exit 2
633 } else {
634 # Compare two integers.
635 d1 += 0
636 d2 += 0
637 }
638 }
639 } else {
640 # The normal case, without worrying about digits.
641 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
642 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
643 }
644 if (d1 < d2) exit 1
645 if (d1 > d2) exit 2
646 }
647 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
648 # which mishandles some comparisons of empty strings to integers.
649 if (length(v2)) exit 1
650 if (length(v1)) exit 2
651 }
652 '
653
654 test -n "$DJDIR" || exec 7<&0 </dev/null
655 exec 6>&1
656
657 # Name of the host.
658 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
659 # so uname gets run too.
660 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
661
662 #
663 # Initializations.
664 #
665 ac_default_prefix=/usr/local
666 ac_clean_files=
667 ac_config_libobj_dir=.
668 LIBOBJS=
669 cross_compiling=no
670 subdirs=
671 MFLAGS=
672 MAKEFLAGS=
673
674 # Identity of this package.
675 PACKAGE_NAME='libdatrie'
676 PACKAGE_TARNAME='libdatrie'
677 PACKAGE_VERSION='0.2.14'
678 PACKAGE_STRING='libdatrie 0.2.14'
679 PACKAGE_BUGREPORT='https://github.com/tlwg/libdatrie/issues'
680 PACKAGE_URL=''
681
682 ac_unique_file="datrie/trie.h"
683 # Factoring default headers for most tests.
684 ac_includes_default="\
685 #include <stddef.h>
686 #ifdef HAVE_STDIO_H
687 # include <stdio.h>
688 #endif
689 #ifdef HAVE_STDLIB_H
690 # include <stdlib.h>
691 #endif
692 #ifdef HAVE_STRING_H
693 # include <string.h>
694 #endif
695 #ifdef HAVE_INTTYPES_H
696 # include <inttypes.h>
697 #endif
698 #ifdef HAVE_STDINT_H
699 # include <stdint.h>
700 #endif
701 #ifdef HAVE_STRINGS_H
702 # include <strings.h>
703 #endif
704 #ifdef HAVE_SYS_TYPES_H
705 # include <sys/types.h>
706 #endif
707 #ifdef HAVE_SYS_STAT_H
708 # include <sys/stat.h>
709 #endif
710 #ifdef HAVE_UNISTD_H
711 # include <unistd.h>
712 #endif"
713
714 ac_header_c_list=
715 ac_subst_vars='am__EXEEXT_FALSE
716 am__EXEEXT_TRUE
717 LTLIBOBJS
718 LIBOBJS
719 ENABLE_DOXYGEN_DOC_FALSE
720 ENABLE_DOXYGEN_DOC_TRUE
721 htmldocdir
722 DOXYGEN
723 ICONV_LIBS
724 LD_HAS_VERSION_SCRIPT_FALSE
725 LD_HAS_VERSION_SCRIPT_TRUE
726 LT_SYS_LIBRARY_PATH
727 OTOOL64
728 OTOOL
729 LIPO
730 NMEDIT
731 DSYMUTIL
732 MANIFEST_TOOL
733 RANLIB
734 ac_ct_AR
735 AR
736 DLLTOOL
737 OBJDUMP
738 FILECMD
739 NM
740 ac_ct_DUMPBIN
741 DUMPBIN
742 LD
743 FGREP
744 EGREP
745 GREP
746 SED
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 LIBTOOL
756 LN_S
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__include
765 DEPDIR
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
772 CC
773 LT_AGE
774 LT_REVISION
775 LT_CURRENT
776 am__xargs_n
777 am__rm_f_notfound
778 AM_BACKSLASH
779 AM_DEFAULT_VERBOSITY
780 AM_DEFAULT_V
781 AM_V
782 CSCOPE
783 ETAGS
784 CTAGS
785 am__untar
786 am__tar
787 AMTAR
788 am__leading_dot
789 SET_MAKE
790 AWK
791 mkdir_p
792 MKDIR_P
793 INSTALL_STRIP_PROGRAM
794 STRIP
795 install_sh
796 MAKEINFO
797 AUTOHEADER
798 AUTOMAKE
799 AUTOCONF
800 ACLOCAL
801 VERSION
802 PACKAGE
803 CYGPATH_W
804 am__isrc
805 INSTALL_DATA
806 INSTALL_SCRIPT
807 INSTALL_PROGRAM
808 target_alias
809 host_alias
810 build_alias
811 LIBS
812 ECHO_T
813 ECHO_N
814 ECHO_C
815 DEFS
816 mandir
817 localedir
818 libdir
819 psdir
820 pdfdir
821 dvidir
822 htmldir
823 infodir
824 docdir
825 oldincludedir
826 includedir
827 runstatedir
828 localstatedir
829 sharedstatedir
830 sysconfdir
831 datadir
832 datarootdir
833 libexecdir
834 sbindir
835 bindir
836 program_transform_name
837 prefix
838 exec_prefix
839 PACKAGE_URL
840 PACKAGE_BUGREPORT
841 PACKAGE_STRING
842 PACKAGE_VERSION
843 PACKAGE_TARNAME
844 PACKAGE_NAME
845 PATH_SEPARATOR
846 SHELL
847 am__quote'
848 ac_subst_files=''
849 ac_user_opts='
850 enable_option_checking
851 enable_silent_rules
852 enable_dependency_tracking
853 enable_shared
854 enable_static
855 enable_pic
856 with_pic
857 enable_fast_install
858 enable_aix_soname
859 with_aix_soname
860 with_gnu_ld
861 with_sysroot
862 enable_libtool_lock
863 enable_doxygen_doc
864 with_html_docdir
865 '
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 LT_SYS_LIBRARY_PATH'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 runstatedir='${localstatedir}/run'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
935 fi
936
937 case $ac_option in
938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *=) ac_optarg= ;;
940 *) ac_optarg=yes ;;
941 esac
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: '$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1004
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: '$ac_useropt'"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1040
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1045
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1075
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1092
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1113
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1149
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
1164 -runstatedir | --runstatedir | --runstatedi | --runstated \
1165 | --runstate | --runstat | --runsta | --runst | --runs \
1166 | --run | --ru | --r)
1167 ac_prev=runstatedir ;;
1168 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1169 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1170 | --run=* | --ru=* | --r=*)
1171 runstatedir=$ac_optarg ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: '$ac_useropt'"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1233
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: '$ac_useropt'"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1267
1268 -*) as_fn_error $? "unrecognized option: '$ac_option'
1269 Try '$0 --help' for more information"
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1278 esac
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1281
1282 *)
1283 # FIXME: should be removed in autoconf 3.0.
1284 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 ;;
1289
1290 esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir runstatedir
1311 do
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: '$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 printf "%s\n" X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1387 fi
1388 else
1389 ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 'configure' configures libdatrie 0.2.14 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print 'checking ...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for '--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or '..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, 'make install' will install all the files in
1450 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than '$ac_default_prefix' using '--prefix',
1452 for instance '--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libdatrie]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libdatrie 0.2.14:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-silent-rules less verbose build output (undo: "make V=1")
1503 --disable-silent-rules verbose build output (undo: "make V=0")
1504 --enable-dependency-tracking
1505 do not reject slow dependency extractors
1506 --disable-dependency-tracking
1507 speeds up one-time build
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-static[=PKGS] build static libraries [default=yes]
1510 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --enable-aix-soname=aix|svr4|both
1515 shared library versioning (aka "SONAME") variant to
1516 provide on AIX, [default=aix].
1517 --disable-libtool-lock avoid locking (might break parallel builds)
1518 --disable-doxygen-doc disable document generation with doxygen
1519
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526 --with-html-docdir=DIR where to install the doxyten-generated HTML doc
1527 [PREFIX/share/doc/datrie/html]
1528
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 LT_SYS_LIBRARY_PATH
1538 User-defined run-time library search path.
1539
1540 Use these variables to override the choices made by 'configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <https://github.com/tlwg/libdatrie/issues>.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for configure.gnu first; this name is used for a wrapper for
1590 # Metaconfig's "Configure" on case-insensitive file systems.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 libdatrie configure 0.2.14
1608 generated by GNU Autoconf 2.72
1609
1610 Copyright (C) 2023 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest.beam
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 printf "%s\n" "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext
1647 then :
1648 ac_retval=0
1649 else case e in #(
1650 e) printf "%s\n" "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1 ;;
1654 esac
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1689 }
1690 then :
1691 ac_retval=0
1692 else case e in #(
1693 e) printf "%s\n" "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1 ;;
1697 esac
1698 fi
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_link
1708
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s "checking for $2... " >&6; }
1718 if eval test \${$3+y}
1719 then :
1720 printf %s "(cached) " >&6
1721 else case e in #(
1722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"
1728 then :
1729 eval "$3=yes"
1730 else case e in #(
1731 e) eval "$3=no" ;;
1732 esac
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1735 esac
1736 fi
1737 eval ac_res=\$$3
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 printf "%s\n" "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_compile
1743
1744 # ac_fn_c_check_func LINENO FUNC VAR
1745 # ----------------------------------
1746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1747 ac_fn_c_check_func ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 printf %s "checking for $2... " >&6; }
1752 if eval test \${$3+y}
1753 then :
1754 printf %s "(cached) " >&6
1755 else case e in #(
1756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (void); below. */
1764
1765 #include <limits.h>
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 (void);
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main (void)
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"
1791 then :
1792 eval "$3=yes"
1793 else case e in #(
1794 e) eval "$3=no" ;;
1795 esac
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1798 conftest$ac_exeext conftest.$ac_ext ;;
1799 esac
1800 fi
1801 eval ac_res=\$$3
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 printf "%s\n" "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_func
1807
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819 printf %s "(cached) " >&6
1820 else case e in #(
1821 e) eval "$3=no"
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 int
1826 main (void)
1827 {
1828 if (sizeof ($2))
1829 return 0;
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"
1835 then :
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 int
1840 main (void)
1841 {
1842 if (sizeof (($2)))
1843 return 0;
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"
1849 then :
1850
1851 else case e in #(
1852 e) eval "$3=yes" ;;
1853 esac
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1858 esac
1859 fi
1860 eval ac_res=\$$3
1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 printf "%s\n" "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_type
1866 ac_configure_args_raw=
1867 for ac_arg
1868 do
1869 case $ac_arg in
1870 *\'*)
1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 esac
1873 as_fn_append ac_configure_args_raw " '$ac_arg'"
1874 done
1875
1876 case $ac_configure_args_raw in
1877 *$as_nl*)
1878 ac_safe_unquote= ;;
1879 *)
1880 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1881 ac_unsafe_a="$ac_unsafe_z#~"
1882 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1883 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1884 esac
1885
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by libdatrie $as_me 0.2.14, which was
1891 generated by GNU Autoconf 2.72. Invocation command line was
1892
1893 $ $0$ac_configure_args_raw
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 case $as_dir in #(((
1927 '') as_dir=./ ;;
1928 */) ;;
1929 *) as_dir=$as_dir/ ;;
1930 esac
1931 printf "%s\n" "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958 for ac_arg
1959 do
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 2)
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1983 ;;
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1986 fi
1987 as_fn_append ac_configure_args " '$ac_arg'"
1988 ;;
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Sanitize IFS.
2002 IFS=" "" $as_nl"
2003 # Save into config.log some information that might help in debugging.
2004 {
2005 echo
2006
2007 printf "%s\n" "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 printf "%s\n" "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046 echo
2047 for ac_var in $ac_subst_vars
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 printf "%s\n" "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056
2057 if test -n "$ac_subst_files"; then
2058 printf "%s\n" "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061 echo
2062 for ac_var in $ac_subst_files
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 printf "%s\n" "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071 fi
2072
2073 if test -s confdefs.h; then
2074 printf "%s\n" "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077 echo
2078 cat confdefs.h
2079 echo
2080 fi
2081 test "$ac_signal" != 0 &&
2082 printf "%s\n" "$as_me: caught signal $ac_signal"
2083 printf "%s\n" "$as_me: exit $exit_status"
2084 } >&5
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 printf "%s\n" "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2102
2103 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2108
2109 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2110
2111 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 if test -n "$CONFIG_SITE"; then
2117 ac_site_files="$CONFIG_SITE"
2118 elif test "x$prefix" != xNONE; then
2119 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2120 else
2121 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2122 fi
2123
2124 for ac_site_file in $ac_site_files
2125 do
2126 case $ac_site_file in #(
2127 */*) :
2128 ;; #(
2129 *) :
2130 ac_site_file=./$ac_site_file ;;
2131 esac
2132 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2139 as_fn_error $? "failed to load site script $ac_site_file
2140 See 'config.log' for more details" "$LINENO" 5; }
2141 fi
2142 done
2143
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155 else
2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159 fi
2160
2161 # Test code for whether the C compiler supports C89 (global declarations)
2162 ac_c_conftest_c89_globals='
2163 /* Does the compiler advertise C89 conformance?
2164 Do not test the value of __STDC__, because some compilers set it to 0
2165 while being otherwise adequately conformant. */
2166 #if !defined __STDC__
2167 # error "Compiler does not advertise C89 conformance"
2168 #endif
2169
2170 #include <stddef.h>
2171 #include <stdarg.h>
2172 struct stat;
2173 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2174 struct buf { int x; };
2175 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2176 static char *e (char **p, int i)
2177 {
2178 return p[i];
2179 }
2180 static char *f (char * (*g) (char **, int), char **p, ...)
2181 {
2182 char *s;
2183 va_list v;
2184 va_start (v,p);
2185 s = g (p, va_arg (v,int));
2186 va_end (v);
2187 return s;
2188 }
2189
2190 /* C89 style stringification. */
2191 #define noexpand_stringify(a) #a
2192 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2193
2194 /* C89 style token pasting. Exercises some of the corner cases that
2195 e.g. old MSVC gets wrong, but not very hard. */
2196 #define noexpand_concat(a,b) a##b
2197 #define expand_concat(a,b) noexpand_concat(a,b)
2198 extern int vA;
2199 extern int vbee;
2200 #define aye A
2201 #define bee B
2202 int *pvA = &expand_concat(v,aye);
2203 int *pvbee = &noexpand_concat(v,bee);
2204
2205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2206 function prototypes and stuff, but not \xHH hex character constants.
2207 These do not provoke an error unfortunately, instead are silently treated
2208 as an "x". The following induces an error, until -std is added to get
2209 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2210 array size at least. It is necessary to write \x00 == 0 to get something
2211 that is true only with -std. */
2212 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2213
2214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2215 inside strings and character constants. */
2216 #define FOO(x) '\''x'\''
2217 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2218
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2223 int, int);'
2224
2225 # Test code for whether the C compiler supports C89 (body of main).
2226 ac_c_conftest_c89_main='
2227 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2228 '
2229
2230 # Test code for whether the C compiler supports C99 (global declarations)
2231 ac_c_conftest_c99_globals='
2232 /* Does the compiler advertise C99 conformance? */
2233 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2234 # error "Compiler does not advertise C99 conformance"
2235 #endif
2236
2237 // See if C++-style comments work.
2238
2239 #include <stdbool.h>
2240 extern int puts (const char *);
2241 extern int printf (const char *, ...);
2242 extern int dprintf (int, const char *, ...);
2243 extern void *malloc (size_t);
2244 extern void free (void *);
2245
2246 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2247 // dprintf is used instead of fprintf to avoid needing to declare
2248 // FILE and stderr.
2249 #define debug(...) dprintf (2, __VA_ARGS__)
2250 #define showlist(...) puts (#__VA_ARGS__)
2251 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2252 static void
2253 test_varargs_macros (void)
2254 {
2255 int x = 1234;
2256 int y = 5678;
2257 debug ("Flag");
2258 debug ("X = %d\n", x);
2259 showlist (The first, second, and third items.);
2260 report (x>y, "x is %d but y is %d", x, y);
2261 }
2262
2263 // Check long long types.
2264 #define BIG64 18446744073709551615ull
2265 #define BIG32 4294967295ul
2266 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2267 #if !BIG_OK
2268 #error "your preprocessor is broken"
2269 #endif
2270 #if BIG_OK
2271 #else
2272 #error "your preprocessor is broken"
2273 #endif
2274 static long long int bignum = -9223372036854775807LL;
2275 static unsigned long long int ubignum = BIG64;
2276
2277 struct incomplete_array
2278 {
2279 int datasize;
2280 double data[];
2281 };
2282
2283 struct named_init {
2284 int number;
2285 const wchar_t *name;
2286 double average;
2287 };
2288
2289 typedef const char *ccp;
2290
2291 static inline int
2292 test_restrict (ccp restrict text)
2293 {
2294 // Iterate through items via the restricted pointer.
2295 // Also check for declarations in for loops.
2296 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2297 continue;
2298 return 0;
2299 }
2300
2301 // Check varargs and va_copy.
2302 static bool
2303 test_varargs (const char *format, ...)
2304 {
2305 va_list args;
2306 va_start (args, format);
2307 va_list args_copy;
2308 va_copy (args_copy, args);
2309
2310 const char *str = "";
2311 int number = 0;
2312 float fnumber = 0;
2313
2314 while (*format)
2315 {
2316 switch (*format++)
2317 {
2318 case '\''s'\'': // string
2319 str = va_arg (args_copy, const char *);
2320 break;
2321 case '\''d'\'': // int
2322 number = va_arg (args_copy, int);
2323 break;
2324 case '\''f'\'': // float
2325 fnumber = va_arg (args_copy, double);
2326 break;
2327 default:
2328 break;
2329 }
2330 }
2331 va_end (args_copy);
2332 va_end (args);
2333
2334 return *str && number && fnumber;
2335 }
2336 '
2337
2338 # Test code for whether the C compiler supports C99 (body of main).
2339 ac_c_conftest_c99_main='
2340 // Check bool.
2341 _Bool success = false;
2342 success |= (argc != 0);
2343
2344 // Check restrict.
2345 if (test_restrict ("String literal") == 0)
2346 success = true;
2347 char *restrict newvar = "Another string";
2348
2349 // Check varargs.
2350 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2351 test_varargs_macros ();
2352
2353 // Check flexible array members.
2354 struct incomplete_array *ia =
2355 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2356 ia->datasize = 10;
2357 for (int i = 0; i < ia->datasize; ++i)
2358 ia->data[i] = i * 1.234;
2359 // Work around memory leak warnings.
2360 free (ia);
2361
2362 // Check named initializers.
2363 struct named_init ni = {
2364 .number = 34,
2365 .name = L"Test wide string",
2366 .average = 543.34343,
2367 };
2368
2369 ni.number = 58;
2370
2371 int dynamic_array[ni.number];
2372 dynamic_array[0] = argv[0][0];
2373 dynamic_array[ni.number - 1] = 543;
2374
2375 // work around unused variable warnings
2376 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2377 || dynamic_array[ni.number - 1] != 543);
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (global declarations)
2381 ac_c_conftest_c11_globals='
2382 /* Does the compiler advertise C11 conformance? */
2383 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2384 # error "Compiler does not advertise C11 conformance"
2385 #endif
2386
2387 // Check _Alignas.
2388 char _Alignas (double) aligned_as_double;
2389 char _Alignas (0) no_special_alignment;
2390 extern char aligned_as_int;
2391 char _Alignas (0) _Alignas (int) aligned_as_int;
2392
2393 // Check _Alignof.
2394 enum
2395 {
2396 int_alignment = _Alignof (int),
2397 int_array_alignment = _Alignof (int[100]),
2398 char_alignment = _Alignof (char)
2399 };
2400 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2401
2402 // Check _Noreturn.
2403 int _Noreturn does_not_return (void) { for (;;) continue; }
2404
2405 // Check _Static_assert.
2406 struct test_static_assert
2407 {
2408 int x;
2409 _Static_assert (sizeof (int) <= sizeof (long int),
2410 "_Static_assert does not work in struct");
2411 long int y;
2412 };
2413
2414 // Check UTF-8 literals.
2415 #define u8 syntax error!
2416 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2417
2418 // Check duplicate typedefs.
2419 typedef long *long_ptr;
2420 typedef long int *long_ptr;
2421 typedef long_ptr long_ptr;
2422
2423 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2424 struct anonymous
2425 {
2426 union {
2427 struct { int i; int j; };
2428 struct { int k; long int l; } w;
2429 };
2430 int m;
2431 } v1;
2432 '
2433
2434 # Test code for whether the C compiler supports C11 (body of main).
2435 ac_c_conftest_c11_main='
2436 _Static_assert ((offsetof (struct anonymous, i)
2437 == offsetof (struct anonymous, w.k)),
2438 "Anonymous union alignment botch");
2439 v1.i = 2;
2440 v1.w.k = 5;
2441 ok |= v1.i != 5;
2442 '
2443
2444 # Test code for whether the C compiler supports C11 (complete).
2445 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2446 ${ac_c_conftest_c99_globals}
2447 ${ac_c_conftest_c11_globals}
2448
2449 int
2450 main (int argc, char **argv)
2451 {
2452 int ok = 0;
2453 ${ac_c_conftest_c89_main}
2454 ${ac_c_conftest_c99_main}
2455 ${ac_c_conftest_c11_main}
2456 return ok;
2457 }
2458 "
2459
2460 # Test code for whether the C compiler supports C99 (complete).
2461 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2462 ${ac_c_conftest_c99_globals}
2463
2464 int
2465 main (int argc, char **argv)
2466 {
2467 int ok = 0;
2468 ${ac_c_conftest_c89_main}
2469 ${ac_c_conftest_c99_main}
2470 return ok;
2471 }
2472 "
2473
2474 # Test code for whether the C compiler supports C89 (complete).
2475 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2476
2477 int
2478 main (int argc, char **argv)
2479 {
2480 int ok = 0;
2481 ${ac_c_conftest_c89_main}
2482 return ok;
2483 }
2484 "
2485
2486 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2487 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2488 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2489 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2490 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2491 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2492 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2493 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2494 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2495
2496 # Auxiliary files required by this configure script.
2497 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2498
2499 # Locations in which to look for auxiliary files.
2500 ac_aux_dir_candidates="${srcdir}/build-aux"
2501
2502 # Search for a directory containing all of the required auxiliary files,
2503 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2504 # If we don't find one directory that contains all the files we need,
2505 # we report the set of missing files from the *first* directory in
2506 # $ac_aux_dir_candidates and give up.
2507 ac_missing_aux_files=""
2508 ac_first_candidate=:
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 as_found=false
2512 for as_dir in $ac_aux_dir_candidates
2513 do
2514 IFS=$as_save_IFS
2515 case $as_dir in #(((
2516 '') as_dir=./ ;;
2517 */) ;;
2518 *) as_dir=$as_dir/ ;;
2519 esac
2520 as_found=:
2521
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2523 ac_aux_dir_found=yes
2524 ac_install_sh=
2525 for ac_aux in $ac_aux_files
2526 do
2527 # As a special case, if "install-sh" is required, that requirement
2528 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2529 # and $ac_install_sh is set appropriately for whichever one is found.
2530 if test x"$ac_aux" = x"install-sh"
2531 then
2532 if test -f "${as_dir}install-sh"; then
2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2534 ac_install_sh="${as_dir}install-sh -c"
2535 elif test -f "${as_dir}install.sh"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2537 ac_install_sh="${as_dir}install.sh -c"
2538 elif test -f "${as_dir}shtool"; then
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2540 ac_install_sh="${as_dir}shtool install -c"
2541 else
2542 ac_aux_dir_found=no
2543 if $ac_first_candidate; then
2544 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2545 else
2546 break
2547 fi
2548 fi
2549 else
2550 if test -f "${as_dir}${ac_aux}"; then
2551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2552 else
2553 ac_aux_dir_found=no
2554 if $ac_first_candidate; then
2555 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2556 else
2557 break
2558 fi
2559 fi
2560 fi
2561 done
2562 if test "$ac_aux_dir_found" = yes; then
2563 ac_aux_dir="$as_dir"
2564 break
2565 fi
2566 ac_first_candidate=false
2567
2568 as_found=false
2569 done
2570 IFS=$as_save_IFS
2571 if $as_found
2572 then :
2573
2574 else case e in #(
2575 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2576 esac
2577 fi
2578
2579
2580 # These three variables are undocumented and unsupported,
2581 # and are intended to be withdrawn in a future Autoconf release.
2582 # They can cause serious problems if a builder's source tree is in a directory
2583 # whose full name contains unusual characters.
2584 if test -f "${ac_aux_dir}config.guess"; then
2585 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2586 fi
2587 if test -f "${ac_aux_dir}config.sub"; then
2588 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2589 fi
2590 if test -f "$ac_aux_dir/configure"; then
2591 ac_configure="$SHELL ${ac_aux_dir}configure"
2592 fi
2593
2594 # Check that the precious variables saved in the cache have kept the same
2595 # value.
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2603 set,)
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2605 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,set)
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2609 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,);;
2612 *)
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2619 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2621 else
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2623 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2625 fi
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2627 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2629 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2630 fi;;
2631 esac
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2634 case $ac_new_val in
2635 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2637 esac
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 esac
2642 fi
2643 done
2644 if $ac_cache_corrupted; then
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2646 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2650 and start over" "$LINENO" 5
2651 fi
2652 ## -------------------- ##
2653 ## Main body of script. ##
2654 ## -------------------- ##
2655
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
2662
2663
2664 ac_config_headers="$ac_config_headers config.h"
2665
2666
2667
2668
2669 am__api_version='1.18'
2670
2671
2672
2673 # Find a good install program. We prefer a C program (faster),
2674 # so one script is as good as another. But avoid the broken or
2675 # incompatible versions:
2676 # SysV /etc/install, /usr/sbin/install
2677 # SunOS /usr/etc/install
2678 # IRIX /sbin/install
2679 # AIX /bin/install
2680 # AmigaOS /C/install, which installs bootblocks on floppy discs
2681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684 # OS/2's system install, which has a completely different semantic
2685 # ./install, which can be erroneously created by make from ./install.sh.
2686 # Reject install programs that cannot install multiple files.
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688 printf %s "checking for a BSD-compatible install... " >&6; }
2689 if test -z "$INSTALL"; then
2690 if test ${ac_cv_path_install+y}
2691 then :
2692 printf %s "(cached) " >&6
2693 else case e in #(
2694 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 case $as_dir in #(((
2699 '') as_dir=./ ;;
2700 */) ;;
2701 *) as_dir=$as_dir/ ;;
2702 esac
2703 # Account for fact that we put trailing slashes in our PATH walk.
2704 case $as_dir in #((
2705 ./ | /[cC]/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2719 :
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
2737 fi
2738 fi
2739 done
2740 done
2741 ;;
2742 esac
2743
2744 done
2745 IFS=$as_save_IFS
2746
2747 rm -rf conftest.one conftest.two conftest.dir
2748 ;;
2749 esac
2750 fi
2751 if test ${ac_cv_path_install+y}; then
2752 INSTALL=$ac_cv_path_install
2753 else
2754 # As a last resort, use the slow shell script. Don't cache a
2755 # value for INSTALL within a source directory, because that will
2756 # break other packages using the cache if that directory is
2757 # removed, or if the value is a relative name.
2758 INSTALL=$ac_install_sh
2759 fi
2760 fi
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2762 printf "%s\n" "$INSTALL" >&6; }
2763
2764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2765 # It thinks the first close brace ends the variable substitution.
2766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2767
2768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2769
2770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2771
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2773 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2774 if test ${am_cv_sleep_fractional_seconds+y}
2775 then :
2776 printf %s "(cached) " >&6
2777 else case e in #(
2778 e) if sleep 0.001 2>/dev/null
2779 then :
2780 am_cv_sleep_fractional_seconds=yes
2781 else case e in #(
2782 e) am_cv_sleep_fractional_seconds=no ;;
2783 esac
2784 fi
2785 ;;
2786 esac
2787 fi
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2789 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2790
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2792 printf %s "checking filesystem timestamp resolution... " >&6; }
2793 if test ${am_cv_filesystem_timestamp_resolution+y}
2794 then :
2795 printf %s "(cached) " >&6
2796 else case e in #(
2797 e) # Default to the worst case.
2798 am_cv_filesystem_timestamp_resolution=2
2799
2800 # Only try to go finer than 1 sec if sleep can do it.
2801 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2802 # - 1 sec is not much of a win compared to 2 sec, and
2803 # - it takes 2 seconds to perform the test whether 1 sec works.
2804 #
2805 # Instead, just use the default 2s on platforms that have 1s resolution,
2806 # accept the extra 1s delay when using $sleep in the Automake tests, in
2807 # exchange for not incurring the 2s delay for running the test for all
2808 # packages.
2809 #
2810 am_try_resolutions=
2811 if test "$am_cv_sleep_fractional_seconds" = yes; then
2812 # Even a millisecond often causes a bunch of false positives,
2813 # so just try a hundredth of a second. The time saved between .001 and
2814 # .01 is not terribly consequential.
2815 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2816 fi
2817
2818 # In order to catch current-generation FAT out, we must *modify* files
2819 # that already exist; the *creation* timestamp is finer. Use names
2820 # that make ls -t sort them differently when they have equal
2821 # timestamps than when they have distinct timestamps, keeping
2822 # in mind that ls -t prints the *newest* file first.
2823 rm -f conftest.ts?
2824 : > conftest.ts1
2825 : > conftest.ts2
2826 : > conftest.ts3
2827
2828 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2829 # clobber the current shell's arguments. (Outer-level square brackets
2830 # are removed by m4; they're present so that m4 does not expand
2831 # <dollar><star>; be careful, easy to get confused.)
2832 if (
2833 set X `ls -t conftest.ts[12]` &&
2834 {
2835 test "$*" != "X conftest.ts1 conftest.ts2" ||
2836 test "$*" != "X conftest.ts2 conftest.ts1";
2837 }
2838 ); then :; else
2839 # If neither matched, then we have a broken ls. This can happen
2840 # if, for instance, CONFIG_SHELL is bash and it inherits a
2841 # broken ls alias from the environment. This has actually
2842 # happened. Such a system could not be considered "sane".
2843 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2845 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2846 as_fn_error $? "ls -t produces unexpected output.
2847 Make sure there is not a broken ls alias in your environment.
2848 See 'config.log' for more details" "$LINENO" 5; }
2849 fi
2850
2851 for am_try_res in $am_try_resolutions; do
2852 # Any one fine-grained sleep might happen to cross the boundary
2853 # between two values of a coarser actual resolution, but if we do
2854 # two fine-grained sleeps in a row, at least one of them will fall
2855 # entirely within a coarse interval.
2856 echo alpha > conftest.ts1
2857 sleep $am_try_res
2858 echo beta > conftest.ts2
2859 sleep $am_try_res
2860 echo gamma > conftest.ts3
2861
2862 # We assume that 'ls -t' will make use of high-resolution
2863 # timestamps if the operating system supports them at all.
2864 if (set X `ls -t conftest.ts?` &&
2865 test "$2" = conftest.ts3 &&
2866 test "$3" = conftest.ts2 &&
2867 test "$4" = conftest.ts1); then
2868 #
2869 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2870 # because we don't need to test make.
2871 make_ok=true
2872 if test $am_try_res != 1; then
2873 # But if we've succeeded so far with a subsecond resolution, we
2874 # have one more thing to check: make. It can happen that
2875 # everything else supports the subsecond mtimes, but make doesn't;
2876 # notably on macOS, which ships make 3.81 from 2006 (the last one
2877 # released under GPLv2). https://bugs.gnu.org/68808
2878 #
2879 # We test $MAKE if it is defined in the environment, else "make".
2880 # It might get overridden later, but our hope is that in practice
2881 # it does not matter: it is the system "make" which is (by far)
2882 # the most likely to be broken, whereas if the user overrides it,
2883 # probably they did so with a better, or at least not worse, make.
2884 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2885 #
2886 # Create a Makefile (real tab character here):
2887 rm -f conftest.mk
2888 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2889 echo ' touch conftest.ts2' >>conftest.mk
2890 #
2891 # Now, running
2892 # touch conftest.ts1; touch conftest.ts2; make
2893 # should touch ts1 because ts2 is newer. This could happen by luck,
2894 # but most often, it will fail if make's support is insufficient. So
2895 # test for several consecutive successes.
2896 #
2897 # (We reuse conftest.ts[12] because we still want to modify existing
2898 # files, not create new ones, per above.)
2899 n=0
2900 make=${MAKE-make}
2901 until test $n -eq 3; do
2902 echo one > conftest.ts1
2903 sleep $am_try_res
2904 echo two > conftest.ts2 # ts2 should now be newer than ts1
2905 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2906 make_ok=false
2907 break # out of $n loop
2908 fi
2909 n=`expr $n + 1`
2910 done
2911 fi
2912 #
2913 if $make_ok; then
2914 # Everything we know to check worked out, so call this resolution good.
2915 am_cv_filesystem_timestamp_resolution=$am_try_res
2916 break # out of $am_try_res loop
2917 fi
2918 # Otherwise, we'll go on to check the next resolution.
2919 fi
2920 done
2921 rm -f conftest.ts?
2922 # (end _am_filesystem_timestamp_resolution)
2923 ;;
2924 esac
2925 fi
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2927 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2928
2929 # This check should not be cached, as it may vary across builds of
2930 # different projects.
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2932 printf %s "checking whether build environment is sane... " >&6; }
2933 # Reject unsafe characters in $srcdir or the absolute working directory
2934 # name. Accept space and tab only in the latter.
2935 am_lf='
2936 '
2937 case `pwd` in
2938 *[\\\"\#\$\&\'\`$am_lf]*)
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 printf "%s\n" "no" >&6; }
2941 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2942 esac
2943 case $srcdir in
2944 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 printf "%s\n" "no" >&6; }
2947 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2948 esac
2949
2950 # Do 'set' in a subshell so we don't clobber the current shell's
2951 # arguments. Must try -L first in case configure is actually a
2952 # symlink; some systems play weird games with the mod time of symlinks
2953 # (eg FreeBSD returns the mod time of the symlink's containing
2954 # directory).
2955 am_build_env_is_sane=no
2956 am_has_slept=no
2957 rm -f conftest.file
2958 for am_try in 1 2; do
2959 echo "timestamp, slept: $am_has_slept" > conftest.file
2960 if (
2961 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2962 if test "$*" = "X"; then
2963 # -L didn't work.
2964 set X `ls -t "$srcdir/configure" conftest.file`
2965 fi
2966 test "$2" = conftest.file
2967 ); then
2968 am_build_env_is_sane=yes
2969 break
2970 fi
2971 # Just in case.
2972 sleep "$am_cv_filesystem_timestamp_resolution"
2973 am_has_slept=yes
2974 done
2975
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2977 printf "%s\n" "$am_build_env_is_sane" >&6; }
2978 if test "$am_build_env_is_sane" = no; then
2979 as_fn_error $? "newly created file is older than distributed files!
2980 Check your system clock" "$LINENO" 5
2981 fi
2982
2983 # If we didn't sleep, we still need to ensure time stamps of config.status and
2984 # generated files are strictly newer.
2985 am_sleep_pid=
2986 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2987 then :
2988
2989 else case e in #(
2990 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2991 am_sleep_pid=$!
2992 ;;
2993 esac
2994 fi
2995
2996 rm -f conftest.file
2997
2998 test "$program_prefix" != NONE &&
2999 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3000 # Use a double $ so make ignores it.
3001 test "$program_suffix" != NONE &&
3002 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3003 # Double any \ or $.
3004 # By default was 's,x,x', remove it if useless.
3005 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3006 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3007
3008
3009 # Expand $ac_aux_dir to an absolute path.
3010 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3011
3012
3013 if test x"${MISSING+set}" != xset; then
3014 MISSING="\${SHELL} '$am_aux_dir/missing'"
3015 fi
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --is-lightweight"; then
3018 am_missing_run="$MISSING "
3019 else
3020 am_missing_run=
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3023 fi
3024
3025 if test x"${install_sh+set}" != xset; then
3026 case $am_aux_dir in
3027 *\ * | *\ *)
3028 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3029 *)
3030 install_sh="\${SHELL} $am_aux_dir/install-sh"
3031 esac
3032 fi
3033
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip". However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 printf %s "checking for $ac_word... " >&6; }
3044 if test ${ac_cv_prog_STRIP+y}
3045 then :
3046 printf %s "(cached) " >&6
3047 else case e in #(
3048 e) if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 case $as_dir in #(((
3056 '') as_dir=./ ;;
3057 */) ;;
3058 *) as_dir=$as_dir/ ;;
3059 esac
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi ;;
3071 esac
3072 fi
3073 STRIP=$ac_cv_prog_STRIP
3074 if test -n "$STRIP"; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3076 printf "%s\n" "$STRIP" >&6; }
3077 else
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 printf "%s\n" "no" >&6; }
3080 fi
3081
3082
3083 fi
3084 if test -z "$ac_cv_prog_STRIP"; then
3085 ac_ct_STRIP=$STRIP
3086 # Extract the first word of "strip", so it can be a program name with args.
3087 set dummy strip; ac_word=$2
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 printf %s "checking for $ac_word... " >&6; }
3090 if test ${ac_cv_prog_ac_ct_STRIP+y}
3091 then :
3092 printf %s "(cached) " >&6
3093 else case e in #(
3094 e) if test -n "$ac_ct_STRIP"; then
3095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 case $as_dir in #(((
3102 '') as_dir=./ ;;
3103 */) ;;
3104 *) as_dir=$as_dir/ ;;
3105 esac
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_STRIP="strip"
3109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi ;;
3117 esac
3118 fi
3119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3120 if test -n "$ac_ct_STRIP"; then
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3122 printf "%s\n" "$ac_ct_STRIP" >&6; }
3123 else
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 printf "%s\n" "no" >&6; }
3126 fi
3127
3128 if test "x$ac_ct_STRIP" = x; then
3129 STRIP=":"
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 STRIP=$ac_ct_STRIP
3138 fi
3139 else
3140 STRIP="$ac_cv_prog_STRIP"
3141 fi
3142
3143 fi
3144 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3145
3146
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3148 printf %s "checking for a race-free mkdir -p... " >&6; }
3149 if test -z "$MKDIR_P"; then
3150 if test ${ac_cv_path_mkdir+y}
3151 then :
3152 printf %s "(cached) " >&6
3153 else case e in #(
3154 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_prog in mkdir gmkdir; do
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3166 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3167 'mkdir ('*'coreutils) '* | \
3168 *'BusyBox '* | \
3169 'mkdir (fileutils) '4.1*)
3170 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3171 break 3;;
3172 esac
3173 done
3174 done
3175 done
3176 IFS=$as_save_IFS
3177 ;;
3178 esac
3179 fi
3180
3181 test -d ./--version && rmdir ./--version
3182 if test ${ac_cv_path_mkdir+y}; then
3183 MKDIR_P="$ac_cv_path_mkdir -p"
3184 else
3185 # As a last resort, use plain mkdir -p,
3186 # in the hope it doesn't have the bugs of ancient mkdir.
3187 MKDIR_P='mkdir -p'
3188 fi
3189 fi
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3191 printf "%s\n" "$MKDIR_P" >&6; }
3192
3193 for ac_prog in gawk mawk nawk awk
3194 do
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 printf %s "checking for $ac_word... " >&6; }
3199 if test ${ac_cv_prog_AWK+y}
3200 then :
3201 printf %s "(cached) " >&6
3202 else case e in #(
3203 e) if test -n "$AWK"; then
3204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 case $as_dir in #(((
3211 '') as_dir=./ ;;
3212 */) ;;
3213 *) as_dir=$as_dir/ ;;
3214 esac
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_AWK="$ac_prog"
3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi ;;
3226 esac
3227 fi
3228 AWK=$ac_cv_prog_AWK
3229 if test -n "$AWK"; then
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3231 printf "%s\n" "$AWK" >&6; }
3232 else
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 printf "%s\n" "no" >&6; }
3235 fi
3236
3237
3238 test -n "$AWK" && break
3239 done
3240
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3243 set x ${MAKE-make}
3244 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3245 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3246 then :
3247 printf %s "(cached) " >&6
3248 else case e in #(
3249 e) cat >conftest.make <<\_ACEOF
3250 SHELL = /bin/sh
3251 all:
3252 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 *@@@%%%=?*=@@@%%%*)
3257 eval ac_cv_prog_make_${ac_make}_set=yes;;
3258 *)
3259 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 esac
3261 rm -f conftest.make ;;
3262 esac
3263 fi
3264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 printf "%s\n" "yes" >&6; }
3267 SET_MAKE=
3268 else
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 printf "%s\n" "no" >&6; }
3271 SET_MAKE="MAKE=${MAKE-make}"
3272 fi
3273
3274 rm -rf .tst 2>/dev/null
3275 mkdir .tst 2>/dev/null
3276 if test -d .tst; then
3277 am__leading_dot=.
3278 else
3279 am__leading_dot=_
3280 fi
3281 rmdir .tst 2>/dev/null
3282
3283 AM_DEFAULT_VERBOSITY=1
3284 # Check whether --enable-silent-rules was given.
3285 if test ${enable_silent_rules+y}
3286 then :
3287 enableval=$enable_silent_rules;
3288 fi
3289
3290 am_make=${MAKE-make}
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3292 printf %s "checking whether $am_make supports nested variables... " >&6; }
3293 if test ${am_cv_make_support_nested_variables+y}
3294 then :
3295 printf %s "(cached) " >&6
3296 else case e in #(
3297 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3298 BAR0=false
3299 BAR1=true
3300 V=1
3301 am__doit:
3302 @$(TRUE)
3303 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3304 am_cv_make_support_nested_variables=yes
3305 else
3306 am_cv_make_support_nested_variables=no
3307 fi ;;
3308 esac
3309 fi
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3311 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3312 AM_BACKSLASH='\'
3313
3314 am__rm_f_notfound=
3315 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3316 then :
3317
3318 else case e in #(
3319 e) am__rm_f_notfound='""' ;;
3320 esac
3321 fi
3322
3323
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3325 printf %s "checking xargs -n works... " >&6; }
3326 if test ${am_cv_xargs_n_works+y}
3327 then :
3328 printf %s "(cached) " >&6
3329 else case e in #(
3330 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3331 3"
3332 then :
3333 am_cv_xargs_n_works=yes
3334 else case e in #(
3335 e) am_cv_xargs_n_works=no ;;
3336 esac
3337 fi ;;
3338 esac
3339 fi
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3341 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3342 if test "$am_cv_xargs_n_works" = yes
3343 then :
3344 am__xargs_n='xargs -n'
3345 else case e in #(
3346 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3347 ;;
3348 esac
3349 fi
3350
3351 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3352 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3353 # is not polluted with repeated "-I."
3354 am__isrc=' -I$(srcdir)'
3355 # test to see if srcdir already configured
3356 if test -f $srcdir/config.status; then
3357 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3358 fi
3359 fi
3360
3361 # test whether we have cygpath
3362 if test -z "$CYGPATH_W"; then
3363 if (cygpath --version) >/dev/null 2>/dev/null; then
3364 CYGPATH_W='cygpath -w'
3365 else
3366 CYGPATH_W=echo
3367 fi
3368 fi
3369
3370
3371 # Define the identity of the package.
3372 PACKAGE='libdatrie'
3373 VERSION='0.2.14'
3374
3375
3376 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3377
3378
3379 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3380
3381 # Some tools Automake needs.
3382
3383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384
3385
3386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387
3388
3389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390
3391
3392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393
3394
3395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396
3397 # For better backward compatibility. To be removed once Automake 1.9.x
3398 # dies out for good. For more background, see:
3399 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401 mkdir_p='$(MKDIR_P)'
3402
3403 # We need awk for the "check" target (and possibly the TAP driver). The
3404 # system "awk" is bad on some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3407 AMTAR='$${TAR-tar}'
3408
3409
3410 # We'll loop over all known methods to create a tar archive until one works.
3411 _am_tools='gnutar plaintar pax cpio none'
3412
3413 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3414 # There is notably a 21 bits limit for the UID and the GID. In fact,
3415 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3416 # and bug#13588).
3417 am_max_uid=2097151 # 2^21 - 1
3418 am_max_gid=$am_max_uid
3419 # The $UID and $GID variables are not portable, so we need to resort
3420 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3421 # below are definitely unexpected, so allow the users to see them
3422 # (that is, avoid stderr redirection).
3423 am_uid=`id -u || echo unknown`
3424 am_gid=`id -g || echo unknown`
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3426 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3427 if test x$am_uid = xunknown; then
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3429 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3430 elif test $am_uid -le $am_max_uid; then
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 printf "%s\n" "yes" >&6; }
3433 else
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 printf "%s\n" "no" >&6; }
3436 _am_tools=none
3437 fi
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3439 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3440 if test x$gm_gid = xunknown; then
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3442 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3443 elif test $am_gid -le $am_max_gid; then
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445 printf "%s\n" "yes" >&6; }
3446 else
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 printf "%s\n" "no" >&6; }
3449 _am_tools=none
3450 fi
3451
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3453 printf %s "checking how to create a ustar tar archive... " >&6; }
3454
3455 # Go ahead even if we have the value already cached. We do so because we
3456 # need to set the values for the 'am__tar' and 'am__untar' variables.
3457 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3458
3459 for _am_tool in $_am_tools; do
3460 case $_am_tool in
3461 gnutar)
3462 for _am_tar in tar gnutar gtar; do
3463 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3464 ($_am_tar --version) >&5 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && break
3468 done
3469 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3470 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3471 am__untar="$_am_tar -xf -"
3472 ;;
3473 plaintar)
3474 # Must skip GNU tar: if it does not support --format= it doesn't create
3475 # ustar tarball either.
3476 (tar --version) >/dev/null 2>&1 && continue
3477 am__tar='tar chf - "$$tardir"'
3478 am__tar_='tar chf - "$tardir"'
3479 am__untar='tar xf -'
3480 ;;
3481 pax)
3482 am__tar='pax -L -x ustar -w "$$tardir"'
3483 am__tar_='pax -L -x ustar -w "$tardir"'
3484 am__untar='pax -r'
3485 ;;
3486 cpio)
3487 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3488 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3489 am__untar='cpio -i -H ustar -d'
3490 ;;
3491 none)
3492 am__tar=false
3493 am__tar_=false
3494 am__untar=false
3495 ;;
3496 esac
3497
3498 # If the value was cached, stop now. We just wanted to have am__tar
3499 # and am__untar set.
3500 test -n "${am_cv_prog_tar_ustar}" && break
3501
3502 # tar/untar a dummy directory, and stop if the command works.
3503 rm -rf conftest.dir
3504 mkdir conftest.dir
3505 echo GrepMe > conftest.dir/file
3506 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3507 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511 rm -rf conftest.dir
3512 if test -s conftest.tar; then
3513 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3514 ($am__untar <conftest.tar) >&5 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3518 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3519 (cat conftest.dir/file) >&5 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3524 fi
3525 done
3526 rm -rf conftest.dir
3527
3528 if test ${am_cv_prog_tar_ustar+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else case e in #(
3532 e) am_cv_prog_tar_ustar=$_am_tool ;;
3533 esac
3534 fi
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3537 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3538
3539
3540
3541
3542
3543 # Variables for tags utilities; see am/tags.am
3544 if test -z "$CTAGS"; then
3545 CTAGS=ctags
3546 fi
3547
3548 if test -z "$ETAGS"; then
3549 ETAGS=etags
3550 fi
3551
3552 if test -z "$CSCOPE"; then
3553 CSCOPE=cscope
3554 fi
3555
3556
3557
3558
3559
3560
3561
3562
3563 # Library versioning
3564 # Library code modified: REVISION++
3565 # Interfaces added: CURRENT++ REVISION=0 AGE++
3566 # Interfaces changed/removed: CURRENT++ REVISION=0 AGE=0
3567 LT_CURRENT=5
3568 LT_REVISION=1
3569 LT_AGE=4
3570
3571
3572
3573
3574 DOXYGEN_REQ_VER=1.9.8
3575
3576 # Checks for programs.
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 printf %s "checking for $ac_word... " >&6; }
3596 if test ${ac_cv_prog_CC+y}
3597 then :
3598 printf %s "(cached) " >&6
3599 else case e in #(
3600 e) if test -n "$CC"; then
3601 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606 IFS=$as_save_IFS
3607 case $as_dir in #(((
3608 '') as_dir=./ ;;
3609 */) ;;
3610 *) as_dir=$as_dir/ ;;
3611 esac
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 fi ;;
3623 esac
3624 fi
3625 CC=$ac_cv_prog_CC
3626 if test -n "$CC"; then
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 printf "%s\n" "$CC" >&6; }
3629 else
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 printf "%s\n" "no" >&6; }
3632 fi
3633
3634
3635 fi
3636 if test -z "$ac_cv_prog_CC"; then
3637 ac_ct_CC=$CC
3638 # Extract the first word of "gcc", so it can be a program name with args.
3639 set dummy gcc; ac_word=$2
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 printf %s "checking for $ac_word... " >&6; }
3642 if test ${ac_cv_prog_ac_ct_CC+y}
3643 then :
3644 printf %s "(cached) " >&6
3645 else case e in #(
3646 e) if test -n "$ac_ct_CC"; then
3647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652 IFS=$as_save_IFS
3653 case $as_dir in #(((
3654 '') as_dir=./ ;;
3655 */) ;;
3656 *) as_dir=$as_dir/ ;;
3657 esac
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_CC="gcc"
3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664 done
3665 done
3666 IFS=$as_save_IFS
3667
3668 fi ;;
3669 esac
3670 fi
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 printf "%s\n" "$ac_ct_CC" >&6; }
3675 else
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 printf "%s\n" "no" >&6; }
3678 fi
3679
3680 if test "x$ac_ct_CC" = x; then
3681 CC=""
3682 else
3683 case $cross_compiling:$ac_tool_warned in
3684 yes:)
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687 ac_tool_warned=yes ;;
3688 esac
3689 CC=$ac_ct_CC
3690 fi
3691 else
3692 CC="$ac_cv_prog_CC"
3693 fi
3694
3695 if test -z "$CC"; then
3696 if test -n "$ac_tool_prefix"; then
3697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}cc; ac_word=$2
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 printf %s "checking for $ac_word... " >&6; }
3701 if test ${ac_cv_prog_CC+y}
3702 then :
3703 printf %s "(cached) " >&6
3704 else case e in #(
3705 e) if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 case $as_dir in #(((
3713 '') as_dir=./ ;;
3714 */) ;;
3715 *) as_dir=$as_dir/ ;;
3716 esac
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_CC="${ac_tool_prefix}cc"
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi ;;
3728 esac
3729 fi
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 printf "%s\n" "$CC" >&6; }
3734 else
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 printf "%s\n" "no" >&6; }
3737 fi
3738
3739
3740 fi
3741 fi
3742 if test -z "$CC"; then
3743 # Extract the first word of "cc", so it can be a program name with args.
3744 set dummy cc; ac_word=$2
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 printf %s "checking for $ac_word... " >&6; }
3747 if test ${ac_cv_prog_CC+y}
3748 then :
3749 printf %s "(cached) " >&6
3750 else case e in #(
3751 e) if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 ac_prog_rejected=no
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3767 ac_prog_rejected=yes
3768 continue
3769 fi
3770 ac_cv_prog_CC="cc"
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 if test $ac_prog_rejected = yes; then
3779 # We found a bogon in the path, so make sure we never use it.
3780 set dummy $ac_cv_prog_CC
3781 shift
3782 if test $# != 0; then
3783 # We chose a different compiler from the bogus one.
3784 # However, it has the same basename, so the bogon will be chosen
3785 # first if we set CC to just the basename; use the full file name.
3786 shift
3787 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3788 fi
3789 fi
3790 fi ;;
3791 esac
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 printf "%s\n" "$CC" >&6; }
3797 else
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 printf "%s\n" "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in cl.exe
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_CC+y}
3813 then :
3814 printf %s "(cached) " >&6
3815 else case e in #(
3816 e) if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 case $as_dir in #(((
3824 '') as_dir=./ ;;
3825 */) ;;
3826 *) as_dir=$as_dir/ ;;
3827 esac
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834 done
3835 done
3836 IFS=$as_save_IFS
3837
3838 fi ;;
3839 esac
3840 fi
3841 CC=$ac_cv_prog_CC
3842 if test -n "$CC"; then
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3844 printf "%s\n" "$CC" >&6; }
3845 else
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 printf "%s\n" "no" >&6; }
3848 fi
3849
3850
3851 test -n "$CC" && break
3852 done
3853 fi
3854 if test -z "$CC"; then
3855 ac_ct_CC=$CC
3856 for ac_prog in cl.exe
3857 do
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy $ac_prog; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_ac_ct_CC+y}
3863 then :
3864 printf %s "(cached) " >&6
3865 else case e in #(
3866 e) if test -n "$ac_ct_CC"; then
3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 case $as_dir in #(((
3874 '') as_dir=./ ;;
3875 */) ;;
3876 *) as_dir=$as_dir/ ;;
3877 esac
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_ac_ct_CC="$ac_prog"
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 fi ;;
3889 esac
3890 fi
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3894 printf "%s\n" "$ac_ct_CC" >&6; }
3895 else
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 fi
3899
3900
3901 test -n "$ac_ct_CC" && break
3902 done
3903
3904 if test "x$ac_ct_CC" = x; then
3905 CC=""
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908 yes:)
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911 ac_tool_warned=yes ;;
3912 esac
3913 CC=$ac_ct_CC
3914 fi
3915 fi
3916
3917 fi
3918 if test -z "$CC"; then
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}clang; ac_word=$2
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 printf %s "checking for $ac_word... " >&6; }
3924 if test ${ac_cv_prog_CC+y}
3925 then :
3926 printf %s "(cached) " >&6
3927 else case e in #(
3928 e) if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 case $as_dir in #(((
3936 '') as_dir=./ ;;
3937 */) ;;
3938 *) as_dir=$as_dir/ ;;
3939 esac
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_CC="${ac_tool_prefix}clang"
3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi ;;
3951 esac
3952 fi
3953 CC=$ac_cv_prog_CC
3954 if test -n "$CC"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 printf "%s\n" "$CC" >&6; }
3957 else
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963 fi
3964 if test -z "$ac_cv_prog_CC"; then
3965 ac_ct_CC=$CC
3966 # Extract the first word of "clang", so it can be a program name with args.
3967 set dummy clang; ac_word=$2
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 printf %s "checking for $ac_word... " >&6; }
3970 if test ${ac_cv_prog_ac_ct_CC+y}
3971 then :
3972 printf %s "(cached) " >&6
3973 else case e in #(
3974 e) if test -n "$ac_ct_CC"; then
3975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980 IFS=$as_save_IFS
3981 case $as_dir in #(((
3982 '') as_dir=./ ;;
3983 */) ;;
3984 *) as_dir=$as_dir/ ;;
3985 esac
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_ac_ct_CC="clang"
3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992 done
3993 done
3994 IFS=$as_save_IFS
3995
3996 fi ;;
3997 esac
3998 fi
3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4000 if test -n "$ac_ct_CC"; then
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4002 printf "%s\n" "$ac_ct_CC" >&6; }
4003 else
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 printf "%s\n" "no" >&6; }
4006 fi
4007
4008 if test "x$ac_ct_CC" = x; then
4009 CC=""
4010 else
4011 case $cross_compiling:$ac_tool_warned in
4012 yes:)
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015 ac_tool_warned=yes ;;
4016 esac
4017 CC=$ac_ct_CC
4018 fi
4019 else
4020 CC="$ac_cv_prog_CC"
4021 fi
4022
4023 fi
4024
4025
4026 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4027 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4028 as_fn_error $? "no acceptable C compiler found in \$PATH
4029 See 'config.log' for more details" "$LINENO" 5; }
4030
4031 # Provide some information about the compiler.
4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4033 set X $ac_compile
4034 ac_compiler=$2
4035 for ac_option in --version -v -V -qversion -version; do
4036 { { ac_try="$ac_compiler $ac_option >&5"
4037 case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 printf "%s\n" "$ac_try_echo"; } >&5
4043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4044 ac_status=$?
4045 if test -s conftest.err; then
4046 sed '10a\
4047 ... rest of stderr output deleted ...
4048 10q' conftest.err >conftest.er1
4049 cat conftest.er1 >&5
4050 fi
4051 rm -f conftest.er1 conftest.err
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 done
4055
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058
4059 int
4060 main (void)
4061 {
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 ac_clean_files_save=$ac_clean_files
4068 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4069 # Try to create an executable without -o first, disregard a.out.
4070 # It will help us diagnose broken compilers, and finding out an intuition
4071 # of exeext.
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4073 printf %s "checking whether the C compiler works... " >&6; }
4074 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4075
4076 # The possible output files:
4077 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4078
4079 ac_rmfiles=
4080 for ac_file in $ac_files
4081 do
4082 case $ac_file in
4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4084 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4085 esac
4086 done
4087 rm -f $ac_rmfiles
4088
4089 if { { ac_try="$ac_link_default"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 printf "%s\n" "$ac_try_echo"; } >&5
4096 (eval "$ac_link_default") 2>&5
4097 ac_status=$?
4098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }
4100 then :
4101 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4102 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4104 # so that the user can short-circuit this test for compilers unknown to
4105 # Autoconf.
4106 for ac_file in $ac_files ''
4107 do
4108 test -f "$ac_file" || continue
4109 case $ac_file in
4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4111 ;;
4112 [ab].out )
4113 # We found the default executable, but exeext='' is most
4114 # certainly right.
4115 break;;
4116 *.* )
4117 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4118 then :; else
4119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4120 fi
4121 # We set ac_cv_exeext here because the later test for it is not
4122 # safe: cross compilers may not add the suffix if given an '-o'
4123 # argument, so we may need to know it at that point already.
4124 # Even if this section looks crufty: it has the advantage of
4125 # actually working.
4126 break;;
4127 * )
4128 break;;
4129 esac
4130 done
4131 test "$ac_cv_exeext" = no && ac_cv_exeext=
4132
4133 else case e in #(
4134 e) ac_file='' ;;
4135 esac
4136 fi
4137 if test -z "$ac_file"
4138 then :
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 printf "%s\n" "no" >&6; }
4141 printf "%s\n" "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4145 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4146 as_fn_error 77 "C compiler cannot create executables
4147 See 'config.log' for more details" "$LINENO" 5; }
4148 else case e in #(
4149 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 printf "%s\n" "yes" >&6; } ;;
4151 esac
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4154 printf %s "checking for C compiler default output file name... " >&6; }
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 printf "%s\n" "$ac_file" >&6; }
4157 ac_exeext=$ac_cv_exeext
4158
4159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4160 ac_clean_files=$ac_clean_files_save
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4162 printf %s "checking for suffix of executables... " >&6; }
4163 if { { ac_try="$ac_link"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 printf "%s\n" "$ac_try_echo"; } >&5
4170 (eval "$ac_link") 2>&5
4171 ac_status=$?
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4174 then :
4175 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4176 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4177 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4178 # 'rm'.
4179 for ac_file in conftest.exe conftest conftest.*; do
4180 test -f "$ac_file" || continue
4181 case $ac_file in
4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4184 break;;
4185 * ) break;;
4186 esac
4187 done
4188 else case e in #(
4189 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4190 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4192 See 'config.log' for more details" "$LINENO" 5; } ;;
4193 esac
4194 fi
4195 rm -f conftest conftest$ac_cv_exeext
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4197 printf "%s\n" "$ac_cv_exeext" >&6; }
4198
4199 rm -f conftest.$ac_ext
4200 EXEEXT=$ac_cv_exeext
4201 ac_exeext=$EXEEXT
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdio.h>
4205 int
4206 main (void)
4207 {
4208 FILE *f = fopen ("conftest.out", "w");
4209 if (!f)
4210 return 1;
4211 return ferror (f) || fclose (f) != 0;
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 ac_clean_files="$ac_clean_files conftest.out"
4218 # Check that the compiler produces executables we can run. If not, either
4219 # the compiler is broken, or we cross compile.
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4221 printf %s "checking whether we are cross compiling... " >&6; }
4222 if test "$cross_compiling" != yes; then
4223 { { ac_try="$ac_link"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229 printf "%s\n" "$ac_try_echo"; } >&5
4230 (eval "$ac_link") 2>&5
4231 ac_status=$?
4232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 if { ac_try='./conftest$ac_cv_exeext'
4235 { { case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 printf "%s\n" "$ac_try_echo"; } >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }; }; then
4245 cross_compiling=no
4246 else
4247 if test "$cross_compiling" = maybe; then
4248 cross_compiling=yes
4249 else
4250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4251 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4252 as_fn_error 77 "cannot run C compiled programs.
4253 If you meant to cross compile, use '--host'.
4254 See 'config.log' for more details" "$LINENO" 5; }
4255 fi
4256 fi
4257 fi
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4259 printf "%s\n" "$cross_compiling" >&6; }
4260
4261 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4262 conftest.o conftest.obj conftest.out
4263 ac_clean_files=$ac_clean_files_save
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4265 printf %s "checking for suffix of object files... " >&6; }
4266 if test ${ac_cv_objext+y}
4267 then :
4268 printf %s "(cached) " >&6
4269 else case e in #(
4270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main (void)
4275 {
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.o conftest.obj
4282 if { { ac_try="$ac_compile"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 printf "%s\n" "$ac_try_echo"; } >&5
4289 (eval "$ac_compile") 2>&5
4290 ac_status=$?
4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; }
4293 then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4296 case $ac_file in
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299 break;;
4300 esac
4301 done
4302 else case e in #(
4303 e) printf "%s\n" "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4307 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See 'config.log' for more details" "$LINENO" 5; } ;;
4310 esac
4311 fi
4312 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4313 esac
4314 fi
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4316 printf "%s\n" "$ac_cv_objext" >&6; }
4317 OBJEXT=$ac_cv_objext
4318 ac_objext=$OBJEXT
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4320 printf %s "checking whether the compiler supports GNU C... " >&6; }
4321 if test ${ac_cv_c_compiler_gnu+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else case e in #(
4325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327
4328 int
4329 main (void)
4330 {
4331 #ifndef __GNUC__
4332 choke me
4333 #endif
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"
4340 then :
4341 ac_compiler_gnu=yes
4342 else case e in #(
4343 e) ac_compiler_gnu=no ;;
4344 esac
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4348 ;;
4349 esac
4350 fi
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4352 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354
4355 if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357 else
4358 GCC=
4359 fi
4360 ac_test_CFLAGS=${CFLAGS+y}
4361 ac_save_CFLAGS=$CFLAGS
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 printf %s "checking whether $CC accepts -g... " >&6; }
4364 if test ${ac_cv_prog_cc_g+y}
4365 then :
4366 printf %s "(cached) " >&6
4367 else case e in #(
4368 e) ac_save_c_werror_flag=$ac_c_werror_flag
4369 ac_c_werror_flag=yes
4370 ac_cv_prog_cc_g=no
4371 CFLAGS="-g"
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374
4375 int
4376 main (void)
4377 {
4378
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"
4384 then :
4385 ac_cv_prog_cc_g=yes
4386 else case e in #(
4387 e) CFLAGS=""
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 int
4392 main (void)
4393 {
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"
4400 then :
4401
4402 else case e in #(
4403 e) ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="-g"
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main (void)
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"
4417 then :
4418 ac_cv_prog_cc_g=yes
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4421 esac
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4424 esac
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4428 esac
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4431 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4432 if test $ac_test_CFLAGS; then
4433 CFLAGS=$ac_save_CFLAGS
4434 elif test $ac_cv_prog_cc_g = yes; then
4435 if test "$GCC" = yes; then
4436 CFLAGS="-g -O2"
4437 else
4438 CFLAGS="-g"
4439 fi
4440 else
4441 if test "$GCC" = yes; then
4442 CFLAGS="-O2"
4443 else
4444 CFLAGS=
4445 fi
4446 fi
4447 ac_prog_cc_stdc=no
4448 if test x$ac_prog_cc_stdc = xno
4449 then :
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4451 printf %s "checking for $CC option to enable C11 features... " >&6; }
4452 if test ${ac_cv_prog_cc_c11+y}
4453 then :
4454 printf %s "(cached) " >&6
4455 else case e in #(
4456 e) ac_cv_prog_cc_c11=no
4457 ac_save_CC=$CC
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460 $ac_c_conftest_c11_program
4461 _ACEOF
4462 for ac_arg in '' -std=gnu11
4463 do
4464 CC="$ac_save_CC $ac_arg"
4465 if ac_fn_c_try_compile "$LINENO"
4466 then :
4467 ac_cv_prog_cc_c11=$ac_arg
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.beam
4470 test "x$ac_cv_prog_cc_c11" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC ;;
4474 esac
4475 fi
4476
4477 if test "x$ac_cv_prog_cc_c11" = xno
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480 printf "%s\n" "unsupported" >&6; }
4481 else case e in #(
4482 e) if test "x$ac_cv_prog_cc_c11" = x
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4485 printf "%s\n" "none needed" >&6; }
4486 else case e in #(
4487 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4488 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4489 CC="$CC $ac_cv_prog_cc_c11" ;;
4490 esac
4491 fi
4492 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4493 ac_prog_cc_stdc=c11 ;;
4494 esac
4495 fi
4496 fi
4497 if test x$ac_prog_cc_stdc = xno
4498 then :
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4500 printf %s "checking for $CC option to enable C99 features... " >&6; }
4501 if test ${ac_cv_prog_cc_c99+y}
4502 then :
4503 printf %s "(cached) " >&6
4504 else case e in #(
4505 e) ac_cv_prog_cc_c99=no
4506 ac_save_CC=$CC
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 $ac_c_conftest_c99_program
4510 _ACEOF
4511 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4512 do
4513 CC="$ac_save_CC $ac_arg"
4514 if ac_fn_c_try_compile "$LINENO"
4515 then :
4516 ac_cv_prog_cc_c99=$ac_arg
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.beam
4519 test "x$ac_cv_prog_cc_c99" != "xno" && break
4520 done
4521 rm -f conftest.$ac_ext
4522 CC=$ac_save_CC ;;
4523 esac
4524 fi
4525
4526 if test "x$ac_cv_prog_cc_c99" = xno
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4529 printf "%s\n" "unsupported" >&6; }
4530 else case e in #(
4531 e) if test "x$ac_cv_prog_cc_c99" = x
4532 then :
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4534 printf "%s\n" "none needed" >&6; }
4535 else case e in #(
4536 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4537 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4538 CC="$CC $ac_cv_prog_cc_c99" ;;
4539 esac
4540 fi
4541 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4542 ac_prog_cc_stdc=c99 ;;
4543 esac
4544 fi
4545 fi
4546 if test x$ac_prog_cc_stdc = xno
4547 then :
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4549 printf %s "checking for $CC option to enable C89 features... " >&6; }
4550 if test ${ac_cv_prog_cc_c89+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else case e in #(
4554 e) ac_cv_prog_cc_c89=no
4555 ac_save_CC=$CC
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 $ac_c_conftest_c89_program
4559 _ACEOF
4560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4561 do
4562 CC="$ac_save_CC $ac_arg"
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565 ac_cv_prog_cc_c89=$ac_arg
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.beam
4568 test "x$ac_cv_prog_cc_c89" != "xno" && break
4569 done
4570 rm -f conftest.$ac_ext
4571 CC=$ac_save_CC ;;
4572 esac
4573 fi
4574
4575 if test "x$ac_cv_prog_cc_c89" = xno
4576 then :
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4578 printf "%s\n" "unsupported" >&6; }
4579 else case e in #(
4580 e) if test "x$ac_cv_prog_cc_c89" = x
4581 then :
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4583 printf "%s\n" "none needed" >&6; }
4584 else case e in #(
4585 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4586 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4587 CC="$CC $ac_cv_prog_cc_c89" ;;
4588 esac
4589 fi
4590 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4591 ac_prog_cc_stdc=c89 ;;
4592 esac
4593 fi
4594 fi
4595
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602
4603 ac_ext=c
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4609 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4610 if test ${am_cv_prog_cc_c_o+y}
4611 then :
4612 printf %s "(cached) " >&6
4613 else case e in #(
4614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main (void)
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 # Make sure it works both with $CC and with simple cc.
4626 # Following AC_PROG_CC_C_O, we do the test twice because some
4627 # compilers refuse to overwrite an existing .o file with -o,
4628 # though they will create one.
4629 am_cv_prog_cc_c_o=yes
4630 for am_i in 1 2; do
4631 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4632 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } \
4636 && test -f conftest2.$ac_objext; then
4637 : OK
4638 else
4639 am_cv_prog_cc_c_o=no
4640 break
4641 fi
4642 done
4643 # aligned with autoconf, so not including core; see bug#72225.
4644 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4645 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4646 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4647 unset am_i ;;
4648 esac
4649 fi
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4651 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4652 if test "$am_cv_prog_cc_c_o" != yes; then
4653 # Losing compiler, so override with the script.
4654 # FIXME: It is wrong to rewrite CC.
4655 # But if we don't then we get into trouble of one sort or another.
4656 # A longer-term fix would be to have automake use am__CC in this case,
4657 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4658 CC="$am_aux_dir/compile $CC"
4659 fi
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666 DEPDIR="${am__leading_dot}deps"
4667
4668 ac_config_commands="$ac_config_commands depfiles"
4669
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4671 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4672 cat > confinc.mk << 'END'
4673 am__doit:
4674 @echo this is the am__doit target >confinc.out
4675 .PHONY: am__doit
4676 END
4677 am__include="#"
4678 am__quote=
4679 # BSD make does it like this.
4680 echo '.include "confinc.mk" # ignored' > confmf.BSD
4681 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4682 echo 'include confinc.mk # ignored' > confmf.GNU
4683 _am_result=no
4684 for s in GNU BSD; do
4685 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4686 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }
4690 case $?:`cat confinc.out 2>/dev/null` in #(
4691 '0:this is the am__doit target') :
4692 case $s in #(
4693 BSD) :
4694 am__include='.include' am__quote='"' ;; #(
4695 *) :
4696 am__include='include' am__quote='' ;;
4697 esac ;; #(
4698 *) :
4699 ;;
4700 esac
4701 if test "$am__include" != "#"; then
4702 _am_result="yes ($s style)"
4703 break
4704 fi
4705 done
4706 rm -f confinc.* confmf.*
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4708 printf "%s\n" "${_am_result}" >&6; }
4709
4710 # Check whether --enable-dependency-tracking was given.
4711 if test ${enable_dependency_tracking+y}
4712 then :
4713 enableval=$enable_dependency_tracking;
4714 fi
4715
4716 if test "x$enable_dependency_tracking" != xno; then
4717 am_depcomp="$ac_aux_dir/depcomp"
4718 AMDEPBACKSLASH='\'
4719 am__nodep='_no'
4720 fi
4721 if test "x$enable_dependency_tracking" != xno; then
4722 AMDEP_TRUE=
4723 AMDEP_FALSE='#'
4724 else
4725 AMDEP_TRUE='#'
4726 AMDEP_FALSE=
4727 fi
4728
4729
4730
4731 depcc="$CC" am_compiler_list=
4732
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4734 printf %s "checking dependency style of $depcc... " >&6; }
4735 if test ${am_cv_CC_dependencies_compiler_type+y}
4736 then :
4737 printf %s "(cached) " >&6
4738 else case e in #(
4739 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4740 # We make a subdir and do the tests there. Otherwise we can end up
4741 # making bogus files that we don't know about and never remove. For
4742 # instance it was reported that on HP-UX the gcc test will end up
4743 # making a dummy file named 'D' -- because '-MD' means "put the output
4744 # in D".
4745 rm -rf conftest.dir
4746 mkdir conftest.dir
4747 # Copy depcomp to subdir because otherwise we won't find it if we're
4748 # using a relative directory.
4749 cp "$am_depcomp" conftest.dir
4750 cd conftest.dir
4751 # We will build objects and dependencies in a subdirectory because
4752 # it helps to detect inapplicable dependency modes. For instance
4753 # both Tru64's cc and ICC support -MD to output dependencies as a
4754 # side effect of compilation, but ICC will put the dependencies in
4755 # the current directory while Tru64 will put them in the object
4756 # directory.
4757 mkdir sub
4758
4759 am_cv_CC_dependencies_compiler_type=none
4760 if test "$am_compiler_list" = ""; then
4761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4762 fi
4763 am__universal=false
4764 case " $depcc " in #(
4765 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4766 esac
4767
4768 for depmode in $am_compiler_list; do
4769 # Setup a source with many dependencies, because some compilers
4770 # like to wrap large dependency lists on column 80 (with \), and
4771 # we should not choose a depcomp mode which is confused by this.
4772 #
4773 # We need to recreate these files for each test, as the compiler may
4774 # overwrite some of them when testing with obscure command lines.
4775 # This happens at least with the AIX C compiler.
4776 : > sub/conftest.c
4777 for i in 1 2 3 4 5 6; do
4778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4779 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4780 # Solaris 10 /bin/sh.
4781 echo '/* dummy */' > sub/conftst$i.h
4782 done
4783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4784
4785 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4786 # mode. It turns out that the SunPro C++ compiler does not properly
4787 # handle '-M -o', and we need to detect this. Also, some Intel
4788 # versions had trouble with output in subdirs.
4789 am__obj=sub/conftest.${OBJEXT-o}
4790 am__minus_obj="-o $am__obj"
4791 case $depmode in
4792 gcc)
4793 # This depmode causes a compiler race in universal mode.
4794 test "$am__universal" = false || continue
4795 ;;
4796 nosideeffect)
4797 # After this tag, mechanisms are not by side-effect, so they'll
4798 # only be used when explicitly requested.
4799 if test "x$enable_dependency_tracking" = xyes; then
4800 continue
4801 else
4802 break
4803 fi
4804 ;;
4805 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4806 # This compiler won't grok '-c -o', but also, the minuso test has
4807 # not run yet. These depmodes are late enough in the game, and
4808 # so weak that their functioning should not be impacted.
4809 am__obj=conftest.${OBJEXT-o}
4810 am__minus_obj=
4811 ;;
4812 none) break ;;
4813 esac
4814 if depmode=$depmode \
4815 source=sub/conftest.c object=$am__obj \
4816 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4817 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4818 >/dev/null 2>conftest.err &&
4819 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4821 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4823 # icc doesn't choke on unknown options, it will just issue warnings
4824 # or remarks (even with -Werror). So we grep stderr for any message
4825 # that says an option was ignored or not supported.
4826 # When given -MP, icc 7.0 and 7.1 complain thus:
4827 # icc: Command line warning: ignoring option '-M'; no argument required
4828 # The diagnosis changed in icc 8.0:
4829 # icc: Command line remark: option '-MP' not supported
4830 if (grep 'ignoring option' conftest.err ||
4831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4832 am_cv_CC_dependencies_compiler_type=$depmode
4833 break
4834 fi
4835 fi
4836 done
4837
4838 cd ..
4839 rm -rf conftest.dir
4840 else
4841 am_cv_CC_dependencies_compiler_type=none
4842 fi
4843 ;;
4844 esac
4845 fi
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4847 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4848 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4849
4850 if
4851 test "x$enable_dependency_tracking" != xno \
4852 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4853 am__fastdepCC_TRUE=
4854 am__fastdepCC_FALSE='#'
4855 else
4856 am__fastdepCC_TRUE='#'
4857 am__fastdepCC_FALSE=
4858 fi
4859
4860
4861
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4863 printf %s "checking whether ln -s works... " >&6; }
4864 LN_S=$as_ln_s
4865 if test "$LN_S" = "ln -s"; then
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 printf "%s\n" "yes" >&6; }
4868 else
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4870 printf "%s\n" "no, using $LN_S" >&6; }
4871 fi
4872
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4874 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4875 set x ${MAKE-make}
4876 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4877 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else case e in #(
4881 e) cat >conftest.make <<\_ACEOF
4882 SHELL = /bin/sh
4883 all:
4884 @echo '@@@%%%=$(MAKE)=@@@%%%'
4885 _ACEOF
4886 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4887 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4888 *@@@%%%=?*=@@@%%%*)
4889 eval ac_cv_prog_make_${ac_make}_set=yes;;
4890 *)
4891 eval ac_cv_prog_make_${ac_make}_set=no;;
4892 esac
4893 rm -f conftest.make ;;
4894 esac
4895 fi
4896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 printf "%s\n" "yes" >&6; }
4899 SET_MAKE=
4900 else
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 printf "%s\n" "no" >&6; }
4903 SET_MAKE="MAKE=${MAKE-make}"
4904 fi
4905
4906 case `pwd` in
4907 *\ * | *\ *)
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4909 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4910 esac
4911
4912
4913
4914 macro_version='2.5.4'
4915 macro_revision='2.5.4'
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 ltmain=$ac_aux_dir/ltmain.sh
4931
4932
4933
4934 # Make sure we can run config.sub.
4935 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4936 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4937
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4939 printf %s "checking build system type... " >&6; }
4940 if test ${ac_cv_build+y}
4941 then :
4942 printf %s "(cached) " >&6
4943 else case e in #(
4944 e) ac_build_alias=$build_alias
4945 test "x$ac_build_alias" = x &&
4946 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4947 test "x$ac_build_alias" = x &&
4948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4949 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4950 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4951 ;;
4952 esac
4953 fi
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4955 printf "%s\n" "$ac_cv_build" >&6; }
4956 case $ac_cv_build in
4957 *-*-*) ;;
4958 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4959 esac
4960 build=$ac_cv_build
4961 ac_save_IFS=$IFS; IFS='-'
4962 set x $ac_cv_build
4963 shift
4964 build_cpu=$1
4965 build_vendor=$2
4966 shift; shift
4967 # Remember, the first character of IFS is used to create $*,
4968 # except with old shells:
4969 build_os=$*
4970 IFS=$ac_save_IFS
4971 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4972
4973
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4975 printf %s "checking host system type... " >&6; }
4976 if test ${ac_cv_host+y}
4977 then :
4978 printf %s "(cached) " >&6
4979 else case e in #(
4980 e) if test "x$host_alias" = x; then
4981 ac_cv_host=$ac_cv_build
4982 else
4983 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4984 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4985 fi
4986 ;;
4987 esac
4988 fi
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4990 printf "%s\n" "$ac_cv_host" >&6; }
4991 case $ac_cv_host in
4992 *-*-*) ;;
4993 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4994 esac
4995 host=$ac_cv_host
4996 ac_save_IFS=$IFS; IFS='-'
4997 set x $ac_cv_host
4998 shift
4999 host_cpu=$1
5000 host_vendor=$2
5001 shift; shift
5002 # Remember, the first character of IFS is used to create $*,
5003 # except with old shells:
5004 host_os=$*
5005 IFS=$ac_save_IFS
5006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5007
5008
5009 # Backslashify metacharacters that are still active within
5010 # double-quoted strings.
5011 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5012
5013 # Same as above, but do not quote variable references.
5014 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5015
5016 # Sed substitution to delay expansion of an escaped shell variable in a
5017 # double_quote_subst'ed string.
5018 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5019
5020 # Sed substitution to delay expansion of an escaped single quote.
5021 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5022
5023 # Sed substitution to avoid accidental globbing in evaled expressions
5024 no_glob_subst='s/\*/\\\*/g'
5025
5026 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5027 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5028 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5029
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5031 printf %s "checking how to print strings... " >&6; }
5032 # Test print first, because it will be a builtin if present.
5033 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5034 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5035 ECHO='print -r --'
5036 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5037 ECHO='printf %s\n'
5038 else
5039 # Use this function as a fallback that always works.
5040 func_fallback_echo ()
5041 {
5042 eval 'cat <<_LTECHO_EOF
5043 $1
5044 _LTECHO_EOF'
5045 }
5046 ECHO='func_fallback_echo'
5047 fi
5048
5049 # func_echo_all arg...
5050 # Invoke $ECHO with all args, space-separated.
5051 func_echo_all ()
5052 {
5053 $ECHO ""
5054 }
5055
5056 case $ECHO in
5057 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5058 printf "%s\n" "printf" >&6; } ;;
5059 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5060 printf "%s\n" "print -r" >&6; } ;;
5061 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5062 printf "%s\n" "cat" >&6; } ;;
5063 esac
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5079 printf %s "checking for a sed that does not truncate output... " >&6; }
5080 if test ${ac_cv_path_SED+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else case e in #(
5084 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5085 for ac_i in 1 2 3 4 5 6 7; do
5086 ac_script="$ac_script$as_nl$ac_script"
5087 done
5088 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5089 { ac_script=; unset ac_script;}
5090 if test -z "$SED"; then
5091 ac_path_SED_found=false
5092 # Loop through the user's path and test for each of PROGNAME-LIST
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 case $as_dir in #(((
5098 '') as_dir=./ ;;
5099 */) ;;
5100 *) as_dir=$as_dir/ ;;
5101 esac
5102 for ac_prog in sed gsed
5103 do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5106 as_fn_executable_p "$ac_path_SED" || continue
5107 # Check for GNU ac_path_SED and select it if it is found.
5108 # Check for GNU $ac_path_SED
5109 case `"$ac_path_SED" --version 2>&1` in #(
5110 *GNU*)
5111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5112 #(
5113 *)
5114 ac_count=0
5115 printf %s 0123456789 >"conftest.in"
5116 while :
5117 do
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 printf "%s\n" '' >> "conftest.nl"
5122 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 as_fn_arith $ac_count + 1 && ac_count=$as_val
5125 if test $ac_count -gt ${ac_path_SED_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_SED="$ac_path_SED"
5128 ac_path_SED_max=$ac_count
5129 fi
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5132 done
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134 esac
5135
5136 $ac_path_SED_found && break 3
5137 done
5138 done
5139 done
5140 IFS=$as_save_IFS
5141 if test -z "$ac_cv_path_SED"; then
5142 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5143 fi
5144 else
5145 ac_cv_path_SED=$SED
5146 fi
5147 ;;
5148 esac
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5151 printf "%s\n" "$ac_cv_path_SED" >&6; }
5152 SED="$ac_cv_path_SED"
5153 rm -f conftest.sed
5154
5155 test -z "$SED" && SED=sed
5156 Xsed="$SED -e 1s/^X//"
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5169 printf %s "checking for grep that handles long lines and -e... " >&6; }
5170 if test ${ac_cv_path_GREP+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else case e in #(
5174 e) if test -z "$GREP"; then
5175 ac_path_GREP_found=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 do
5180 IFS=$as_save_IFS
5181 case $as_dir in #(((
5182 '') as_dir=./ ;;
5183 */) ;;
5184 *) as_dir=$as_dir/ ;;
5185 esac
5186 for ac_prog in grep ggrep
5187 do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5190 as_fn_executable_p "$ac_path_GREP" || continue
5191 # Check for GNU ac_path_GREP and select it if it is found.
5192 # Check for GNU $ac_path_GREP
5193 case `"$ac_path_GREP" --version 2>&1` in #(
5194 *GNU*)
5195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5196 #(
5197 *)
5198 ac_count=0
5199 printf %s 0123456789 >"conftest.in"
5200 while :
5201 do
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 printf "%s\n" 'GREP' >> "conftest.nl"
5206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_GREP="$ac_path_GREP"
5212 ac_path_GREP_max=$ac_count
5213 fi
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5216 done
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5219
5220 $ac_path_GREP_found && break 3
5221 done
5222 done
5223 done
5224 IFS=$as_save_IFS
5225 if test -z "$ac_cv_path_GREP"; then
5226 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5227 fi
5228 else
5229 ac_cv_path_GREP=$GREP
5230 fi
5231 ;;
5232 esac
5233 fi
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5235 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5236 GREP="$ac_cv_path_GREP"
5237
5238
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5240 printf %s "checking for egrep... " >&6; }
5241 if test ${ac_cv_path_EGREP+y}
5242 then :
5243 printf %s "(cached) " >&6
5244 else case e in #(
5245 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5246 then ac_cv_path_EGREP="$GREP -E"
5247 else
5248 if test -z "$EGREP"; then
5249 ac_path_EGREP_found=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5253 do
5254 IFS=$as_save_IFS
5255 case $as_dir in #(((
5256 '') as_dir=./ ;;
5257 */) ;;
5258 *) as_dir=$as_dir/ ;;
5259 esac
5260 for ac_prog in egrep
5261 do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5264 as_fn_executable_p "$ac_path_EGREP" || continue
5265 # Check for GNU ac_path_EGREP and select it if it is found.
5266 # Check for GNU $ac_path_EGREP
5267 case `"$ac_path_EGREP" --version 2>&1` in #(
5268 *GNU*)
5269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5270 #(
5271 *)
5272 ac_count=0
5273 printf %s 0123456789 >"conftest.in"
5274 while :
5275 do
5276 cat "conftest.in" "conftest.in" >"conftest.tmp"
5277 mv "conftest.tmp" "conftest.in"
5278 cp "conftest.in" "conftest.nl"
5279 printf "%s\n" 'EGREP' >> "conftest.nl"
5280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282 as_fn_arith $ac_count + 1 && ac_count=$as_val
5283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5284 # Best one so far, save it but keep looking for a better one
5285 ac_cv_path_EGREP="$ac_path_EGREP"
5286 ac_path_EGREP_max=$ac_count
5287 fi
5288 # 10*(2^10) chars as input seems more than enough
5289 test $ac_count -gt 10 && break
5290 done
5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292 esac
5293
5294 $ac_path_EGREP_found && break 3
5295 done
5296 done
5297 done
5298 IFS=$as_save_IFS
5299 if test -z "$ac_cv_path_EGREP"; then
5300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 fi
5302 else
5303 ac_cv_path_EGREP=$EGREP
5304 fi
5305
5306 fi ;;
5307 esac
5308 fi
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5310 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5311 EGREP="$ac_cv_path_EGREP"
5312
5313 EGREP_TRADITIONAL=$EGREP
5314 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5315
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5317 printf %s "checking for fgrep... " >&6; }
5318 if test ${ac_cv_path_FGREP+y}
5319 then :
5320 printf %s "(cached) " >&6
5321 else case e in #(
5322 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5323 then ac_cv_path_FGREP="$GREP -F"
5324 else
5325 if test -z "$FGREP"; then
5326 ac_path_FGREP_found=false
5327 # Loop through the user's path and test for each of PROGNAME-LIST
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 do
5331 IFS=$as_save_IFS
5332 case $as_dir in #(((
5333 '') as_dir=./ ;;
5334 */) ;;
5335 *) as_dir=$as_dir/ ;;
5336 esac
5337 for ac_prog in fgrep
5338 do
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5341 as_fn_executable_p "$ac_path_FGREP" || continue
5342 # Check for GNU ac_path_FGREP and select it if it is found.
5343 # Check for GNU $ac_path_FGREP
5344 case `"$ac_path_FGREP" --version 2>&1` in #(
5345 *GNU*)
5346 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5347 #(
5348 *)
5349 ac_count=0
5350 printf %s 0123456789 >"conftest.in"
5351 while :
5352 do
5353 cat "conftest.in" "conftest.in" >"conftest.tmp"
5354 mv "conftest.tmp" "conftest.in"
5355 cp "conftest.in" "conftest.nl"
5356 printf "%s\n" 'FGREP' >> "conftest.nl"
5357 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359 as_fn_arith $ac_count + 1 && ac_count=$as_val
5360 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5361 # Best one so far, save it but keep looking for a better one
5362 ac_cv_path_FGREP="$ac_path_FGREP"
5363 ac_path_FGREP_max=$ac_count
5364 fi
5365 # 10*(2^10) chars as input seems more than enough
5366 test $ac_count -gt 10 && break
5367 done
5368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369 esac
5370
5371 $ac_path_FGREP_found && break 3
5372 done
5373 done
5374 done
5375 IFS=$as_save_IFS
5376 if test -z "$ac_cv_path_FGREP"; then
5377 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5378 fi
5379 else
5380 ac_cv_path_FGREP=$FGREP
5381 fi
5382
5383 fi ;;
5384 esac
5385 fi
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5387 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5388 FGREP="$ac_cv_path_FGREP"
5389
5390
5391 test -z "$GREP" && GREP=grep
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 # Check whether --with-gnu-ld was given.
5412 if test ${with_gnu_ld+y}
5413 then :
5414 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5415 else case e in #(
5416 e) with_gnu_ld=no ;;
5417 esac
5418 fi
5419
5420 ac_prog=ld
5421 if test yes = "$GCC"; then
5422 # Check if gcc -print-prog-name=ld gives a path.
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5424 printf %s "checking for ld used by $CC... " >&6; }
5425 case $host in
5426 *-*-mingw* | *-*-windows*)
5427 # gcc leaves a trailing carriage return, which upsets mingw
5428 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5429 *)
5430 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5431 esac
5432 case $ac_prog in
5433 # Accept absolute paths.
5434 [\\/]* | ?:[\\/]*)
5435 re_direlt='/[^/][^/]*/\.\./'
5436 # Canonicalize the pathname of ld
5437 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5438 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5439 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5440 done
5441 test -z "$LD" && LD=$ac_prog
5442 ;;
5443 "")
5444 # If it fails, then pretend we aren't using GCC.
5445 ac_prog=ld
5446 ;;
5447 *)
5448 # If it is relative, then search for the first ld in PATH.
5449 with_gnu_ld=unknown
5450 ;;
5451 esac
5452 elif test yes = "$with_gnu_ld"; then
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5454 printf %s "checking for GNU ld... " >&6; }
5455 else
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5457 printf %s "checking for non-GNU ld... " >&6; }
5458 fi
5459 if test ${lt_cv_path_LD+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else case e in #(
5463 e) if test -z "$LD"; then
5464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5465 for ac_dir in $PATH; do
5466 IFS=$lt_save_ifs
5467 test -z "$ac_dir" && ac_dir=.
5468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5469 lt_cv_path_LD=$ac_dir/$ac_prog
5470 # Check to see if the program is GNU ld. I'd rather use --version,
5471 # but apparently some variants of GNU ld only accept -v.
5472 # Break only if it was the GNU/non-GNU ld that we prefer.
5473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5474 *GNU* | *'with BFD'*)
5475 test no != "$with_gnu_ld" && break
5476 ;;
5477 *)
5478 test yes != "$with_gnu_ld" && break
5479 ;;
5480 esac
5481 fi
5482 done
5483 IFS=$lt_save_ifs
5484 else
5485 lt_cv_path_LD=$LD # Let the user override the test with a path.
5486 fi ;;
5487 esac
5488 fi
5489
5490 LD=$lt_cv_path_LD
5491 if test -n "$LD"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5493 printf "%s\n" "$LD" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 printf "%s\n" "no" >&6; }
5497 fi
5498 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5500 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5501 if test ${lt_cv_prog_gnu_ld+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else case e in #(
5505 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5506 case `$LD -v 2>&1 </dev/null` in
5507 *GNU* | *'with BFD'*)
5508 lt_cv_prog_gnu_ld=yes
5509 ;;
5510 *)
5511 lt_cv_prog_gnu_ld=no
5512 ;;
5513 esac ;;
5514 esac
5515 fi
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5518 with_gnu_ld=$lt_cv_prog_gnu_ld
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530 if test ${lt_cv_path_NM+y}
5531 then :
5532 printf %s "(cached) " >&6
5533 else case e in #(
5534 e) if test -n "$NM"; then
5535 # Let the user override the test.
5536 lt_cv_path_NM=$NM
5537 else
5538 lt_nm_to_check=${ac_tool_prefix}nm
5539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5540 lt_nm_to_check="$lt_nm_to_check nm"
5541 fi
5542 for lt_tmp_nm in $lt_nm_to_check; do
5543 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5545 IFS=$lt_save_ifs
5546 test -z "$ac_dir" && ac_dir=.
5547 tmp_nm=$ac_dir/$lt_tmp_nm
5548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5549 # Check to see if the nm accepts a BSD-compat flag.
5550 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5551 # nm: unknown option "B" ignored
5552 # Tru64's nm complains that /dev/null is an invalid object file
5553 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5554 case $build_os in
5555 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5556 *) lt_bad_file=/dev/null ;;
5557 esac
5558 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5559 *$lt_bad_file* | *'Invalid file or object type'*)
5560 lt_cv_path_NM="$tmp_nm -B"
5561 break 2
5562 ;;
5563 *)
5564 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5565 */dev/null*)
5566 lt_cv_path_NM="$tmp_nm -p"
5567 break 2
5568 ;;
5569 *)
5570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571 continue # so that we can try to find one that supports BSD flags
5572 ;;
5573 esac
5574 ;;
5575 esac
5576 fi
5577 done
5578 IFS=$lt_save_ifs
5579 done
5580 : ${lt_cv_path_NM=no}
5581 fi ;;
5582 esac
5583 fi
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5585 printf "%s\n" "$lt_cv_path_NM" >&6; }
5586 if test no != "$lt_cv_path_NM"; then
5587 NM=$lt_cv_path_NM
5588 else
5589 # Didn't find any BSD compatible name lister, look for dumpbin.
5590 if test -n "$DUMPBIN"; then :
5591 # Let the user override the test.
5592 else
5593 if test -n "$ac_tool_prefix"; then
5594 for ac_prog in dumpbin "link -dump"
5595 do
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 printf %s "checking for $ac_word... " >&6; }
5600 if test ${ac_cv_prog_DUMPBIN+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else case e in #(
5604 e) if test -n "$DUMPBIN"; then
5605 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610 IFS=$as_save_IFS
5611 case $as_dir in #(((
5612 '') as_dir=./ ;;
5613 */) ;;
5614 *) as_dir=$as_dir/ ;;
5615 esac
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi ;;
5627 esac
5628 fi
5629 DUMPBIN=$ac_cv_prog_DUMPBIN
5630 if test -n "$DUMPBIN"; then
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5632 printf "%s\n" "$DUMPBIN" >&6; }
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 printf "%s\n" "no" >&6; }
5636 fi
5637
5638
5639 test -n "$DUMPBIN" && break
5640 done
5641 fi
5642 if test -z "$DUMPBIN"; then
5643 ac_ct_DUMPBIN=$DUMPBIN
5644 for ac_prog in dumpbin "link -dump"
5645 do
5646 # Extract the first word of "$ac_prog", so it can be a program name with args.
5647 set dummy $ac_prog; ac_word=$2
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 printf %s "checking for $ac_word... " >&6; }
5650 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else case e in #(
5654 e) if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 case $as_dir in #(((
5662 '') as_dir=./ ;;
5663 */) ;;
5664 *) as_dir=$as_dir/ ;;
5665 esac
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi ;;
5677 esac
5678 fi
5679 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5680 if test -n "$ac_ct_DUMPBIN"; then
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5682 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5683 else
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 printf "%s\n" "no" >&6; }
5686 fi
5687
5688
5689 test -n "$ac_ct_DUMPBIN" && break
5690 done
5691
5692 if test "x$ac_ct_DUMPBIN" = x; then
5693 DUMPBIN=":"
5694 else
5695 case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701 DUMPBIN=$ac_ct_DUMPBIN
5702 fi
5703 fi
5704
5705 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5706 *COFF*)
5707 DUMPBIN="$DUMPBIN -symbols -headers"
5708 ;;
5709 *)
5710 DUMPBIN=:
5711 ;;
5712 esac
5713 fi
5714
5715 if test : != "$DUMPBIN"; then
5716 NM=$DUMPBIN
5717 fi
5718 fi
5719 test -z "$NM" && NM=nm
5720
5721
5722
5723
5724
5725
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5727 printf %s "checking the name lister ($NM) interface... " >&6; }
5728 if test ${lt_cv_nm_interface+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else case e in #(
5732 e) lt_cv_nm_interface="BSD nm"
5733 echo "int some_variable = 0;" > conftest.$ac_ext
5734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5735 (eval "$ac_compile" 2>conftest.err)
5736 cat conftest.err >&5
5737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5739 cat conftest.err >&5
5740 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5741 cat conftest.out >&5
5742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5743 lt_cv_nm_interface="MS dumpbin"
5744 fi
5745 rm -f conftest* ;;
5746 esac
5747 fi
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5749 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5750
5751 # find the maximum length of command line arguments
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5753 printf %s "checking the maximum length of command line arguments... " >&6; }
5754 if test ${lt_cv_sys_max_cmd_len+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else case e in #(
5758 e) i=0
5759 teststring=ABCD
5760
5761 case $build_os in
5762 msdosdjgpp*)
5763 # On DJGPP, this test can blow up pretty badly due to problems in libc
5764 # (any single argument exceeding 2000 bytes causes a buffer overrun
5765 # during glob expansion). Even if it were fixed, the result of this
5766 # check would be larger than it should be.
5767 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5768 ;;
5769
5770 gnu* | ironclad*)
5771 # Under GNU Hurd and Ironclad, this test is not required because there
5772 # is no limit to the length of command line arguments.
5773 # Libtool will interpret -1 as no limit whatsoever
5774 lt_cv_sys_max_cmd_len=-1;
5775 ;;
5776
5777 cygwin* | mingw* | windows* | cegcc*)
5778 # On Win9x/ME, this test blows up -- it succeeds, but takes
5779 # about 5 minutes as the teststring grows exponentially.
5780 # Worse, since 9x/ME are not pre-emptively multitasking,
5781 # you end up with a "frozen" computer, even though with patience
5782 # the test eventually succeeds (with a max line length of 256k).
5783 # Instead, let's just punt: use the minimum linelength reported by
5784 # all of the supported platforms: 8192 (on NT/2K/XP).
5785 lt_cv_sys_max_cmd_len=8192;
5786 ;;
5787
5788 mint*)
5789 # On MiNT this can take a long time and run out of memory.
5790 lt_cv_sys_max_cmd_len=8192;
5791 ;;
5792
5793 amigaos*)
5794 # On AmigaOS with pdksh, this test takes hours, literally.
5795 # So we just punt and use a minimum line length of 8192.
5796 lt_cv_sys_max_cmd_len=8192;
5797 ;;
5798
5799 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5800 # This has been around since 386BSD, at least. Likely further.
5801 if test -x /sbin/sysctl; then
5802 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5803 elif test -x /usr/sbin/sysctl; then
5804 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5805 else
5806 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5807 fi
5808 # And add a safety zone
5809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5811 ;;
5812
5813 interix*)
5814 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5815 lt_cv_sys_max_cmd_len=196608
5816 ;;
5817
5818 os2*)
5819 # The test takes a long time on OS/2.
5820 lt_cv_sys_max_cmd_len=8192
5821 ;;
5822
5823 osf*)
5824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5826 # nice to cause kernel panics so lets avoid the loop below.
5827 # First set a reasonable default.
5828 lt_cv_sys_max_cmd_len=16384
5829 #
5830 if test -x /sbin/sysconfig; then
5831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5833 esac
5834 fi
5835 ;;
5836 sco3.2v5*)
5837 lt_cv_sys_max_cmd_len=102400
5838 ;;
5839 sysv5* | sco5v6* | sysv4.2uw2*)
5840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5841 if test -n "$kargmax"; then
5842 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5843 else
5844 lt_cv_sys_max_cmd_len=32768
5845 fi
5846 ;;
5847 *)
5848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5849 if test -n "$lt_cv_sys_max_cmd_len" && \
5850 test undefined != "$lt_cv_sys_max_cmd_len"; then
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5853 else
5854 # Make teststring a little bigger before we do anything with it.
5855 # a 1K string should be a reasonable start.
5856 for i in 1 2 3 4 5 6 7 8; do
5857 teststring=$teststring$teststring
5858 done
5859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5860 # If test is not a shell built-in, we'll probably end up computing a
5861 # maximum length that is only half of the actual maximum length, but
5862 # we can't tell.
5863 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5864 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5865 test 17 != "$i" # 1/2 MB should be enough
5866 do
5867 i=`expr $i + 1`
5868 teststring=$teststring$teststring
5869 done
5870 # Only check the string length outside the loop.
5871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5872 teststring=
5873 # Add a significant safety factor because C++ compilers can tack on
5874 # massive amounts of additional arguments before passing them to the
5875 # linker. It appears as though 1/2 is a usable value.
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5877 fi
5878 ;;
5879 esac
5880 ;;
5881 esac
5882 fi
5883
5884 if test -n "$lt_cv_sys_max_cmd_len"; then
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5886 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5887 else
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5889 printf "%s\n" "none" >&6; }
5890 fi
5891 max_cmd_len=$lt_cv_sys_max_cmd_len
5892
5893
5894
5895
5896
5897
5898 : ${CP="cp -f"}
5899 : ${MV="mv -f"}
5900 : ${RM="rm -f"}
5901
5902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5903 lt_unset=unset
5904 else
5905 lt_unset=false
5906 fi
5907
5908
5909
5910
5911
5912 # test EBCDIC or ASCII
5913 case `echo X|tr X '\101'` in
5914 A) # ASCII based system
5915 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5916 lt_SP2NL='tr \040 \012'
5917 lt_NL2SP='tr \015\012 \040\040'
5918 ;;
5919 *) # EBCDIC based system
5920 lt_SP2NL='tr \100 \n'
5921 lt_NL2SP='tr \r\n \100\100'
5922 ;;
5923 esac
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5934 printf %s "checking how to convert $build file names to $host format... " >&6; }
5935 if test ${lt_cv_to_host_file_cmd+y}
5936 then :
5937 printf %s "(cached) " >&6
5938 else case e in #(
5939 e) case $host in
5940 *-*-mingw* )
5941 case $build in
5942 *-*-mingw* | *-*-windows* ) # actually msys
5943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5944 ;;
5945 *-*-cygwin* )
5946 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5947 ;;
5948 * ) # otherwise, assume *nix
5949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5950 ;;
5951 esac
5952 ;;
5953 *-*-cygwin* )
5954 case $build in
5955 *-*-mingw* | *-*-windows* ) # actually msys
5956 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5957 ;;
5958 *-*-cygwin* )
5959 lt_cv_to_host_file_cmd=func_convert_file_noop
5960 ;;
5961 * ) # otherwise, assume *nix
5962 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5963 ;;
5964 esac
5965 ;;
5966 * ) # unhandled hosts (and "normal" native builds)
5967 lt_cv_to_host_file_cmd=func_convert_file_noop
5968 ;;
5969 esac
5970 ;;
5971 esac
5972 fi
5973
5974 to_host_file_cmd=$lt_cv_to_host_file_cmd
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5976 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5977
5978
5979
5980
5981
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5983 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5984 if test ${lt_cv_to_tool_file_cmd+y}
5985 then :
5986 printf %s "(cached) " >&6
5987 else case e in #(
5988 e) #assume ordinary cross tools, or native build.
5989 lt_cv_to_tool_file_cmd=func_convert_file_noop
5990 case $host in
5991 *-*-mingw* | *-*-windows* )
5992 case $build in
5993 *-*-mingw* | *-*-windows* ) # actually msys
5994 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5995 ;;
5996 esac
5997 ;;
5998 esac
5999 ;;
6000 esac
6001 fi
6002
6003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6005 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6012 printf %s "checking for $LD option to reload object files... " >&6; }
6013 if test ${lt_cv_ld_reload_flag+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) lt_cv_ld_reload_flag='-r' ;;
6018 esac
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6021 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6022 reload_flag=$lt_cv_ld_reload_flag
6023 case $reload_flag in
6024 "" | " "*) ;;
6025 *) reload_flag=" $reload_flag" ;;
6026 esac
6027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6028 case $host_os in
6029 cygwin* | mingw* | windows* | pw32* | cegcc*)
6030 if test yes != "$GCC"; then
6031 reload_cmds=false
6032 fi
6033 ;;
6034 darwin*)
6035 if test yes = "$GCC"; then
6036 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6037 else
6038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6039 fi
6040 ;;
6041 esac
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 # Extract the first word of "file", so it can be a program name with args.
6052 set dummy file; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_FILECMD+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) if test -n "$FILECMD"; then
6060 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_FILECMD="file"
6074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6082 fi ;;
6083 esac
6084 fi
6085 FILECMD=$ac_cv_prog_FILECMD
6086 if test -n "$FILECMD"; then
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6088 printf "%s\n" "$FILECMD" >&6; }
6089 else
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 printf "%s\n" "no" >&6; }
6092 fi
6093
6094
6095
6096
6097
6098
6099
6100
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 printf %s "checking for $ac_word... " >&6; }
6106 if test ${ac_cv_prog_OBJDUMP+y}
6107 then :
6108 printf %s "(cached) " >&6
6109 else case e in #(
6110 e) if test -n "$OBJDUMP"; then
6111 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 case $as_dir in #(((
6118 '') as_dir=./ ;;
6119 */) ;;
6120 *) as_dir=$as_dir/ ;;
6121 esac
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi ;;
6133 esac
6134 fi
6135 OBJDUMP=$ac_cv_prog_OBJDUMP
6136 if test -n "$OBJDUMP"; then
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6138 printf "%s\n" "$OBJDUMP" >&6; }
6139 else
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_OBJDUMP"; then
6147 ac_ct_OBJDUMP=$OBJDUMP
6148 # Extract the first word of "objdump", so it can be a program name with args.
6149 set dummy objdump; ac_word=$2
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 printf %s "checking for $ac_word... " >&6; }
6152 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else case e in #(
6156 e) if test -n "$ac_ct_OBJDUMP"; then
6157 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 case $as_dir in #(((
6164 '') as_dir=./ ;;
6165 */) ;;
6166 *) as_dir=$as_dir/ ;;
6167 esac
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi ;;
6179 esac
6180 fi
6181 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6182 if test -n "$ac_ct_OBJDUMP"; then
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6184 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6185 else
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 printf "%s\n" "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_OBJDUMP" = x; then
6191 OBJDUMP="false"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 OBJDUMP=$ac_ct_OBJDUMP
6200 fi
6201 else
6202 OBJDUMP="$ac_cv_prog_OBJDUMP"
6203 fi
6204
6205 test -z "$OBJDUMP" && OBJDUMP=objdump
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6216 printf %s "checking how to recognize dependent libraries... " >&6; }
6217 if test ${lt_cv_deplibs_check_method+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else case e in #(
6221 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6222 lt_cv_file_magic_test_file=
6223 lt_cv_deplibs_check_method='unknown'
6224 # Need to set the preceding variable on all platforms that support
6225 # interlibrary dependencies.
6226 # 'none' -- dependencies not supported.
6227 # 'unknown' -- same as none, but documents that we really don't know.
6228 # 'pass_all' -- all dependencies passed with no checks.
6229 # 'file_magic [[regex]]' -- check by looking for files in library path
6230 # that responds to the $file_magic_cmd with a given extended regex.
6231 # If you have 'file' or equivalent on your system and you're not sure
6232 # whether 'pass_all' will *always* work, you probably want this one.
6233
6234 case $host_os in
6235 aix[4-9]*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 beos*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 bsdi[45]*)
6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6245 lt_cv_file_magic_cmd='$FILECMD -L'
6246 lt_cv_file_magic_test_file=/shlib/libc.so
6247 ;;
6248
6249 cygwin*)
6250 # func_win32_libid is a shell function defined in ltmain.sh
6251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6252 lt_cv_file_magic_cmd='func_win32_libid'
6253 ;;
6254
6255 mingw* | windows* | pw32*)
6256 # Base MSYS/MinGW do not provide the 'file' command needed by
6257 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6258 # unless we find 'file', for example because we are cross-compiling.
6259 if ( file / ) >/dev/null 2>&1; then
6260 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6261 lt_cv_file_magic_cmd='func_win32_libid'
6262 else
6263 # Keep this pattern in sync with the one in func_win32_libid.
6264 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6265 lt_cv_file_magic_cmd='$OBJDUMP -f'
6266 fi
6267 ;;
6268
6269 cegcc*)
6270 # use the weaker test based on 'objdump'. See mingw*.
6271 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6272 lt_cv_file_magic_cmd='$OBJDUMP -f'
6273 ;;
6274
6275 darwin* | rhapsody*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278
6279 freebsd* | dragonfly* | midnightbsd*)
6280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6281 case $host_cpu in
6282 i*86 )
6283 # Not sure whether the presence of OpenBSD here was a mistake.
6284 # Let's accept both of them until this is cleared up.
6285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6286 lt_cv_file_magic_cmd=$FILECMD
6287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6288 ;;
6289 esac
6290 else
6291 lt_cv_deplibs_check_method=pass_all
6292 fi
6293 ;;
6294
6295 haiku*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299 hpux10.20* | hpux11*)
6300 lt_cv_file_magic_cmd=$FILECMD
6301 case $host_cpu in
6302 ia64*)
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6305 ;;
6306 hppa*64*)
6307 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]'
6308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6309 ;;
6310 *)
6311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6313 ;;
6314 esac
6315 ;;
6316
6317 interix[3-9]*)
6318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6320 ;;
6321
6322 irix5* | irix6* | nonstopux*)
6323 case $LD in
6324 *-32|*"-32 ") libmagic=32-bit;;
6325 *-n32|*"-n32 ") libmagic=N32;;
6326 *-64|*"-64 ") libmagic=64-bit;;
6327 *) libmagic=never-match;;
6328 esac
6329 lt_cv_deplibs_check_method=pass_all
6330 ;;
6331
6332 # This must be glibc/ELF.
6333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337 *-mlibc)
6338 lt_cv_deplibs_check_method=pass_all
6339 ;;
6340
6341 netbsd* | netbsdelf*-gnu)
6342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6344 else
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6346 fi
6347 ;;
6348
6349 newos6*)
6350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6351 lt_cv_file_magic_cmd=$FILECMD
6352 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6353 ;;
6354
6355 *nto* | *qnx*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 openbsd*)
6360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6362 else
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6364 fi
6365 ;;
6366
6367 osf3* | osf4* | osf5*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 rdos*)
6372 lt_cv_deplibs_check_method=pass_all
6373 ;;
6374
6375 serenity*)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378
6379 solaris*)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382
6383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6384 lt_cv_deplibs_check_method=pass_all
6385 ;;
6386
6387 sysv4 | sysv4.3*)
6388 case $host_vendor in
6389 motorola)
6390 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]'
6391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6392 ;;
6393 ncr)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396 sequent)
6397 lt_cv_file_magic_cmd='/bin/file'
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6399 ;;
6400 sni)
6401 lt_cv_file_magic_cmd='/bin/file'
6402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6403 lt_cv_file_magic_test_file=/lib/libc.so
6404 ;;
6405 siemens)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408 pc)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411 esac
6412 ;;
6413
6414 tpf*)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417 os2*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420 esac
6421 ;;
6422 esac
6423 fi
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6426
6427 file_magic_glob=
6428 want_nocaseglob=no
6429 if test "$build" = "$host"; then
6430 case $host_os in
6431 mingw* | windows* | pw32*)
6432 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6433 want_nocaseglob=yes
6434 else
6435 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6436 fi
6437 ;;
6438 esac
6439 fi
6440
6441 file_magic_cmd=$lt_cv_file_magic_cmd
6442 deplibs_check_method=$lt_cv_deplibs_check_method
6443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 printf %s "checking for $ac_word... " >&6; }
6471 if test ${ac_cv_prog_DLLTOOL+y}
6472 then :
6473 printf %s "(cached) " >&6
6474 else case e in #(
6475 e) if test -n "$DLLTOOL"; then
6476 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 case $as_dir in #(((
6483 '') as_dir=./ ;;
6484 */) ;;
6485 *) as_dir=$as_dir/ ;;
6486 esac
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi ;;
6498 esac
6499 fi
6500 DLLTOOL=$ac_cv_prog_DLLTOOL
6501 if test -n "$DLLTOOL"; then
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6503 printf "%s\n" "$DLLTOOL" >&6; }
6504 else
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 printf "%s\n" "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_DLLTOOL"; then
6512 ac_ct_DLLTOOL=$DLLTOOL
6513 # Extract the first word of "dlltool", so it can be a program name with args.
6514 set dummy dlltool; ac_word=$2
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 printf %s "checking for $ac_word... " >&6; }
6517 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6518 then :
6519 printf %s "(cached) " >&6
6520 else case e in #(
6521 e) if test -n "$ac_ct_DLLTOOL"; then
6522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 case $as_dir in #(((
6529 '') as_dir=./ ;;
6530 */) ;;
6531 *) as_dir=$as_dir/ ;;
6532 esac
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi ;;
6544 esac
6545 fi
6546 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6547 if test -n "$ac_ct_DLLTOOL"; then
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6549 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6550 else
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 printf "%s\n" "no" >&6; }
6553 fi
6554
6555 if test "x$ac_ct_DLLTOOL" = x; then
6556 DLLTOOL="false"
6557 else
6558 case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 DLLTOOL=$ac_ct_DLLTOOL
6565 fi
6566 else
6567 DLLTOOL="$ac_cv_prog_DLLTOOL"
6568 fi
6569
6570 test -z "$DLLTOOL" && DLLTOOL=dlltool
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6582 printf %s "checking how to associate runtime and link libraries... " >&6; }
6583 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else case e in #(
6587 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6588
6589 case $host_os in
6590 cygwin* | mingw* | windows* | pw32* | cegcc*)
6591 # two different shell functions defined in ltmain.sh;
6592 # decide which one to use based on capabilities of $DLLTOOL
6593 case `$DLLTOOL --help 2>&1` in
6594 *--identify-strict*)
6595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6596 ;;
6597 *)
6598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6599 ;;
6600 esac
6601 ;;
6602 *)
6603 # fallback: assume linklib IS sharedlib
6604 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6605 ;;
6606 esac
6607 ;;
6608 esac
6609 fi
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6611 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6612 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6613 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6614
6615
6616
6617
6618
6619
6620
6621
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 printf %s "checking for $ac_word... " >&6; }
6627 if test ${ac_cv_prog_RANLIB+y}
6628 then :
6629 printf %s "(cached) " >&6
6630 else case e in #(
6631 e) if test -n "$RANLIB"; then
6632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 case $as_dir in #(((
6639 '') as_dir=./ ;;
6640 */) ;;
6641 *) as_dir=$as_dir/ ;;
6642 esac
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi ;;
6654 esac
6655 fi
6656 RANLIB=$ac_cv_prog_RANLIB
6657 if test -n "$RANLIB"; then
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6659 printf "%s\n" "$RANLIB" >&6; }
6660 else
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 printf "%s\n" "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_RANLIB"; then
6668 ac_ct_RANLIB=$RANLIB
6669 # Extract the first word of "ranlib", so it can be a program name with args.
6670 set dummy ranlib; ac_word=$2
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 printf %s "checking for $ac_word... " >&6; }
6673 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6674 then :
6675 printf %s "(cached) " >&6
6676 else case e in #(
6677 e) if test -n "$ac_ct_RANLIB"; then
6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 case $as_dir in #(((
6685 '') as_dir=./ ;;
6686 */) ;;
6687 *) as_dir=$as_dir/ ;;
6688 esac
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_RANLIB="ranlib"
6692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi ;;
6700 esac
6701 fi
6702 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6703 if test -n "$ac_ct_RANLIB"; then
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6705 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6706 else
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 printf "%s\n" "no" >&6; }
6709 fi
6710
6711 if test "x$ac_ct_RANLIB" = x; then
6712 RANLIB=":"
6713 else
6714 case $cross_compiling:$ac_tool_warned in
6715 yes:)
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 RANLIB=$ac_ct_RANLIB
6721 fi
6722 else
6723 RANLIB="$ac_cv_prog_RANLIB"
6724 fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727 for ac_prog in ar
6728 do
6729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_AR+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) if test -n "$AR"; then
6738 ac_cv_prog_AR="$AR" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 case $as_dir in #(((
6745 '') as_dir=./ ;;
6746 */) ;;
6747 *) as_dir=$as_dir/ ;;
6748 esac
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi ;;
6760 esac
6761 fi
6762 AR=$ac_cv_prog_AR
6763 if test -n "$AR"; then
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6765 printf "%s\n" "$AR" >&6; }
6766 else
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 printf "%s\n" "no" >&6; }
6769 fi
6770
6771
6772 test -n "$AR" && break
6773 done
6774 fi
6775 if test -z "$AR"; then
6776 ac_ct_AR=$AR
6777 for ac_prog in ar
6778 do
6779 # Extract the first word of "$ac_prog", so it can be a program name with args.
6780 set dummy $ac_prog; ac_word=$2
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 printf %s "checking for $ac_word... " >&6; }
6783 if test ${ac_cv_prog_ac_ct_AR+y}
6784 then :
6785 printf %s "(cached) " >&6
6786 else case e in #(
6787 e) if test -n "$ac_ct_AR"; then
6788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 case $as_dir in #(((
6795 '') as_dir=./ ;;
6796 */) ;;
6797 *) as_dir=$as_dir/ ;;
6798 esac
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_AR="$ac_prog"
6802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi ;;
6810 esac
6811 fi
6812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6813 if test -n "$ac_ct_AR"; then
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6815 printf "%s\n" "$ac_ct_AR" >&6; }
6816 else
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 printf "%s\n" "no" >&6; }
6819 fi
6820
6821
6822 test -n "$ac_ct_AR" && break
6823 done
6824
6825 if test "x$ac_ct_AR" = x; then
6826 AR="false"
6827 else
6828 case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6832 ac_tool_warned=yes ;;
6833 esac
6834 AR=$ac_ct_AR
6835 fi
6836 fi
6837
6838 : ${AR=ar}
6839
6840
6841
6842
6843
6844
6845 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6846 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6847 # higher priority because that's what people were doing historically (setting
6848 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6849 # variable obsoleted/removed.
6850
6851 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6852 lt_ar_flags=$AR_FLAGS
6853
6854
6855
6856
6857
6858
6859 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6860 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6861
6862
6863
6864
6865
6866
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6868 printf %s "checking for archiver @FILE support... " >&6; }
6869 if test ${lt_cv_ar_at_file+y}
6870 then :
6871 printf %s "(cached) " >&6
6872 else case e in #(
6873 e) lt_cv_ar_at_file=no
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 int
6878 main (void)
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"
6886 then :
6887 echo conftest.$ac_objext > conftest.lst
6888 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6890 (eval $lt_ar_try) 2>&5
6891 ac_status=$?
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }
6894 if test 0 -eq "$ac_status"; then
6895 # Ensure the archiver fails upon bogus file names.
6896 rm -f conftest.$ac_objext libconftest.a
6897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6898 (eval $lt_ar_try) 2>&5
6899 ac_status=$?
6900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }
6902 if test 0 -ne "$ac_status"; then
6903 lt_cv_ar_at_file=@
6904 fi
6905 fi
6906 rm -f conftest.* libconftest.a
6907
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6910 ;;
6911 esac
6912 fi
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6914 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6915
6916 if test no = "$lt_cv_ar_at_file"; then
6917 archiver_list_spec=
6918 else
6919 archiver_list_spec=$lt_cv_ar_at_file
6920 fi
6921
6922
6923
6924
6925
6926
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}strip; ac_word=$2
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_prog_STRIP+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else case e in #(
6937 e) if test -n "$STRIP"; then
6938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 case $as_dir in #(((
6945 '') as_dir=./ ;;
6946 */) ;;
6947 *) as_dir=$as_dir/ ;;
6948 esac
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959 fi ;;
6960 esac
6961 fi
6962 STRIP=$ac_cv_prog_STRIP
6963 if test -n "$STRIP"; then
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6965 printf "%s\n" "$STRIP" >&6; }
6966 else
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 printf "%s\n" "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_STRIP"; then
6974 ac_ct_STRIP=$STRIP
6975 # Extract the first word of "strip", so it can be a program name with args.
6976 set dummy strip; ac_word=$2
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 printf %s "checking for $ac_word... " >&6; }
6979 if test ${ac_cv_prog_ac_ct_STRIP+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else case e in #(
6983 e) if test -n "$ac_ct_STRIP"; then
6984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 case $as_dir in #(((
6991 '') as_dir=./ ;;
6992 */) ;;
6993 *) as_dir=$as_dir/ ;;
6994 esac
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_ac_ct_STRIP="strip"
6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi ;;
7006 esac
7007 fi
7008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7009 if test -n "$ac_ct_STRIP"; then
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7011 printf "%s\n" "$ac_ct_STRIP" >&6; }
7012 else
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 printf "%s\n" "no" >&6; }
7015 fi
7016
7017 if test "x$ac_ct_STRIP" = x; then
7018 STRIP=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 STRIP=$ac_ct_STRIP
7027 fi
7028 else
7029 STRIP="$ac_cv_prog_STRIP"
7030 fi
7031
7032 test -z "$STRIP" && STRIP=:
7033
7034
7035
7036
7037
7038
7039
7040 test -z "$RANLIB" && RANLIB=:
7041
7042
7043
7044
7045
7046
7047 # Determine commands to create old-style static archives.
7048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7049 old_postinstall_cmds='chmod 644 $oldlib'
7050 old_postuninstall_cmds=
7051
7052 if test -n "$RANLIB"; then
7053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7055 fi
7056
7057 case $host_os in
7058 darwin*)
7059 lock_old_archive_extraction=yes ;;
7060 *)
7061 lock_old_archive_extraction=no ;;
7062 esac
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 # If no C compiler was specified, use CC.
7103 LTCC=${LTCC-"$CC"}
7104
7105 # If no C compiler flags were specified, use CFLAGS.
7106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107
7108 # Allow CC to be a program name with arguments.
7109 compiler=$CC
7110
7111
7112 # Check for command to grab the raw symbol name followed by C symbol from nm.
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7114 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7115 if test ${lt_cv_sys_global_symbol_pipe+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else case e in #(
7119 e)
7120 # These are sane defaults that work on at least a few old systems.
7121 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7122
7123 # Character class describing NM global symbol codes.
7124 symcode='[BCDEGRST]'
7125
7126 # Regexp to match symbols that can be accessed directly from C.
7127 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7128
7129 # Define system-specific variables.
7130 case $host_os in
7131 aix*)
7132 symcode='[BCDT]'
7133 ;;
7134 cygwin* | mingw* | windows* | pw32* | cegcc*)
7135 symcode='[ABCDGISTW]'
7136 ;;
7137 hpux*)
7138 if test ia64 = "$host_cpu"; then
7139 symcode='[ABCDEGRST]'
7140 fi
7141 ;;
7142 irix* | nonstopux*)
7143 symcode='[BCDEGRST]'
7144 ;;
7145 osf*)
7146 symcode='[BCDEGQRST]'
7147 ;;
7148 solaris*)
7149 symcode='[BCDRT]'
7150 ;;
7151 sco3.2v5*)
7152 symcode='[DT]'
7153 ;;
7154 sysv4.2uw2*)
7155 symcode='[DT]'
7156 ;;
7157 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7158 symcode='[ABDT]'
7159 ;;
7160 sysv4)
7161 symcode='[DFNSTU]'
7162 ;;
7163 esac
7164
7165 # If we're using GNU nm, then use its standard symbol codes.
7166 case `$NM -V 2>&1` in
7167 *GNU* | *'with BFD'*)
7168 symcode='[ABCDGIRSTW]' ;;
7169 esac
7170
7171 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7172 # Gets list of data symbols to import.
7173 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7174 # Adjust the below global symbol transforms to fixup imported variables.
7175 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7176 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7177 lt_c_name_lib_hook="\
7178 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7179 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7180 else
7181 # Disable hooks by default.
7182 lt_cv_sys_global_symbol_to_import=
7183 lt_cdecl_hook=
7184 lt_c_name_hook=
7185 lt_c_name_lib_hook=
7186 fi
7187
7188 # Transform an extracted symbol line into a proper C declaration.
7189 # Some systems (esp. on ia64) link data and code symbols differently,
7190 # so use this general approach.
7191 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7192 $lt_cdecl_hook\
7193 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7194 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7195
7196 # Transform an extracted symbol line into symbol name and symbol address
7197 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7198 $lt_c_name_hook\
7199 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7200 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7201
7202 # Transform an extracted symbol line into symbol name with lib prefix and
7203 # symbol address.
7204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7205 $lt_c_name_lib_hook\
7206 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7207 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7208 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7209
7210 # Handle CRLF in mingw tool chain
7211 opt_cr=
7212 case $build_os in
7213 mingw* | windows*)
7214 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7215 ;;
7216 esac
7217
7218 # Try without a prefix underscore, then with it.
7219 for ac_symprfx in "" "_"; do
7220
7221 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7222 symxfrm="\\1 $ac_symprfx\\2 \\2"
7223
7224 # Write the raw and C identifiers.
7225 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7226 # Fake it for dumpbin and say T for any non-static function,
7227 # D for any global variable and I for any imported variable.
7228 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7229 # which start with @ or ?.
7230 lt_cv_sys_global_symbol_pipe="$AWK '"\
7231 " {last_section=section; section=\$ 3};"\
7232 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7233 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7234 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7235 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7236 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7237 " \$ 0!~/External *\|/{next};"\
7238 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7239 " {if(hide[section]) next};"\
7240 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7241 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7242 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7243 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7244 " ' prfx=^$ac_symprfx"
7245 else
7246 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7247 fi
7248 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7249
7250 # Check to see that the pipe works correctly.
7251 pipe_works=no
7252
7253 rm -f conftest*
7254 cat > conftest.$ac_ext <<_LT_EOF
7255 #ifdef __cplusplus
7256 extern "C" {
7257 #endif
7258 char nm_test_var;
7259 void nm_test_func(void);
7260 void nm_test_func(void){}
7261 #ifdef __cplusplus
7262 }
7263 #endif
7264 int main(void){nm_test_var='a';nm_test_func();return(0);}
7265 _LT_EOF
7266
7267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7268 (eval $ac_compile) 2>&5
7269 ac_status=$?
7270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271 test $ac_status = 0; }; then
7272 # Now try to grab the symbols.
7273 nlist=conftest.nm
7274 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7275 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7276 # Try sorting and uniquifying the output.
7277 if sort "$nlist" | uniq > "$nlist"T; then
7278 mv -f "$nlist"T "$nlist"
7279 else
7280 rm -f "$nlist"T
7281 fi
7282
7283 # Make sure that we snagged all the symbols we need.
7284 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7285 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7286 cat <<_LT_EOF > conftest.$ac_ext
7287 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7288 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7289 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7290 relocations are performed -- see ld's documentation on pseudo-relocs. */
7291 # define LT_DLSYM_CONST
7292 #elif defined __osf__
7293 /* This system does not cope well with relocations in const data. */
7294 # define LT_DLSYM_CONST
7295 #else
7296 # define LT_DLSYM_CONST const
7297 #endif
7298
7299 #ifdef __cplusplus
7300 extern "C" {
7301 #endif
7302
7303 _LT_EOF
7304 # Now generate the symbol file.
7305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7306
7307 cat <<_LT_EOF >> conftest.$ac_ext
7308
7309 /* The mapping between symbol names and symbols. */
7310 LT_DLSYM_CONST struct {
7311 const char *name;
7312 void *address;
7313 }
7314 lt__PROGRAM__LTX_preloaded_symbols[] =
7315 {
7316 { "@PROGRAM@", (void *) 0 },
7317 _LT_EOF
7318 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7319 cat <<\_LT_EOF >> conftest.$ac_ext
7320 {0, (void *) 0}
7321 };
7322
7323 /* This works around a problem in FreeBSD linker */
7324 #ifdef FREEBSD_WORKAROUND
7325 static const void *lt_preloaded_setup() {
7326 return lt__PROGRAM__LTX_preloaded_symbols;
7327 }
7328 #endif
7329
7330 #ifdef __cplusplus
7331 }
7332 #endif
7333 _LT_EOF
7334 # Now try linking the two files.
7335 mv conftest.$ac_objext conftstm.$ac_objext
7336 lt_globsym_save_LIBS=$LIBS
7337 lt_globsym_save_CFLAGS=$CFLAGS
7338 LIBS=conftstm.$ac_objext
7339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7341 (eval $ac_link) 2>&5
7342 ac_status=$?
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7345 pipe_works=yes
7346 fi
7347 LIBS=$lt_globsym_save_LIBS
7348 CFLAGS=$lt_globsym_save_CFLAGS
7349 else
7350 echo "cannot find nm_test_func in $nlist" >&5
7351 fi
7352 else
7353 echo "cannot find nm_test_var in $nlist" >&5
7354 fi
7355 else
7356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7357 fi
7358 else
7359 echo "$progname: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 fi
7362 rm -rf conftest* conftst*
7363
7364 # Do not use the global_symbol_pipe unless it works.
7365 if test yes = "$pipe_works"; then
7366 break
7367 else
7368 lt_cv_sys_global_symbol_pipe=
7369 fi
7370 done
7371 ;;
7372 esac
7373 fi
7374
7375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
7377 fi
7378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380 printf "%s\n" "failed" >&6; }
7381 else
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383 printf "%s\n" "ok" >&6; }
7384 fi
7385
7386 # Response file support.
7387 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7388 nm_file_list_spec='@'
7389 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7390 nm_file_list_spec='@'
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7430 printf %s "checking for sysroot... " >&6; }
7431
7432 # Check whether --with-sysroot was given.
7433 if test ${with_sysroot+y}
7434 then :
7435 withval=$with_sysroot;
7436 else case e in #(
7437 e) with_sysroot=no ;;
7438 esac
7439 fi
7440
7441
7442 lt_sysroot=
7443 case $with_sysroot in #(
7444 yes)
7445 if test yes = "$GCC"; then
7446 # Trim trailing / since we'll always append absolute paths and we want
7447 # to avoid //, if only for less confusing output for the user.
7448 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7449 fi
7450 ;; #(
7451 /*)
7452 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7453 ;; #(
7454 no|'')
7455 ;; #(
7456 *)
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7458 printf "%s\n" "$with_sysroot" >&6; }
7459 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7460 ;;
7461 esac
7462
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7464 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7465
7466
7467
7468
7469
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7471 printf %s "checking for a working dd... " >&6; }
7472 if test ${ac_cv_path_lt_DD+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else case e in #(
7476 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7477 cat conftest.i conftest.i >conftest2.i
7478 : ${lt_DD:=$DD}
7479 if test -z "$lt_DD"; then
7480 ac_path_lt_DD_found=false
7481 # Loop through the user's path and test for each of PROGNAME-LIST
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485 IFS=$as_save_IFS
7486 case $as_dir in #(((
7487 '') as_dir=./ ;;
7488 */) ;;
7489 *) as_dir=$as_dir/ ;;
7490 esac
7491 for ac_prog in dd
7492 do
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7495 as_fn_executable_p "$ac_path_lt_DD" || continue
7496 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7497 cmp -s conftest.i conftest.out \
7498 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7499 fi
7500 $ac_path_lt_DD_found && break 3
7501 done
7502 done
7503 done
7504 IFS=$as_save_IFS
7505 if test -z "$ac_cv_path_lt_DD"; then
7506 :
7507 fi
7508 else
7509 ac_cv_path_lt_DD=$lt_DD
7510 fi
7511
7512 rm -f conftest.i conftest2.i conftest.out ;;
7513 esac
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7516 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7517
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7520 printf %s "checking how to truncate binary pipes... " >&6; }
7521 if test ${lt_cv_truncate_bin+y}
7522 then :
7523 printf %s "(cached) " >&6
7524 else case e in #(
7525 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7526 cat conftest.i conftest.i >conftest2.i
7527 lt_cv_truncate_bin=
7528 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7529 cmp -s conftest.i conftest.out \
7530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7531 fi
7532 rm -f conftest.i conftest2.i conftest.out
7533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7534 esac
7535 fi
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7537 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7538
7539
7540
7541
7542
7543
7544
7545 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7546 func_cc_basename ()
7547 {
7548 for cc_temp in $*""; do
7549 case $cc_temp in
7550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7552 \-*) ;;
7553 *) break;;
7554 esac
7555 done
7556 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7557 }
7558
7559 # Check whether --enable-libtool-lock was given.
7560 if test ${enable_libtool_lock+y}
7561 then :
7562 enableval=$enable_libtool_lock;
7563 fi
7564
7565 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7566
7567 # Some flags need to be propagated to the compiler or linker for good
7568 # libtool support.
7569 case $host in
7570 ia64-*-hpux*)
7571 # Find out what ABI is being produced by ac_compile, and set mode
7572 # options accordingly.
7573 echo 'int i;' > conftest.$ac_ext
7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
7577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 case `$FILECMD conftest.$ac_objext` in
7580 *ELF-32*)
7581 HPUX_IA64_MODE=32
7582 ;;
7583 *ELF-64*)
7584 HPUX_IA64_MODE=64
7585 ;;
7586 esac
7587 fi
7588 rm -rf conftest*
7589 ;;
7590 *-*-irix6*)
7591 # Find out what ABI is being produced by ac_compile, and set linker
7592 # options accordingly.
7593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7595 (eval $ac_compile) 2>&5
7596 ac_status=$?
7597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7598 test $ac_status = 0; }; then
7599 if test yes = "$lt_cv_prog_gnu_ld"; then
7600 case `$FILECMD conftest.$ac_objext` in
7601 *32-bit*)
7602 LD="${LD-ld} -melf32bsmip"
7603 ;;
7604 *N32*)
7605 LD="${LD-ld} -melf32bmipn32"
7606 ;;
7607 *64-bit*)
7608 LD="${LD-ld} -melf64bmip"
7609 ;;
7610 esac
7611 else
7612 case `$FILECMD conftest.$ac_objext` in
7613 *32-bit*)
7614 LD="${LD-ld} -32"
7615 ;;
7616 *N32*)
7617 LD="${LD-ld} -n32"
7618 ;;
7619 *64-bit*)
7620 LD="${LD-ld} -64"
7621 ;;
7622 esac
7623 fi
7624 fi
7625 rm -rf conftest*
7626 ;;
7627
7628 mips64*-*linux*)
7629 # Find out what ABI is being produced by ac_compile, and set linker
7630 # options accordingly.
7631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7633 (eval $ac_compile) 2>&5
7634 ac_status=$?
7635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }; then
7637 emul=elf
7638 case `$FILECMD conftest.$ac_objext` in
7639 *32-bit*)
7640 emul="${emul}32"
7641 ;;
7642 *64-bit*)
7643 emul="${emul}64"
7644 ;;
7645 esac
7646 case `$FILECMD conftest.$ac_objext` in
7647 *MSB*)
7648 emul="${emul}btsmip"
7649 ;;
7650 *LSB*)
7651 emul="${emul}ltsmip"
7652 ;;
7653 esac
7654 case `$FILECMD conftest.$ac_objext` in
7655 *N32*)
7656 emul="${emul}n32"
7657 ;;
7658 esac
7659 LD="${LD-ld} -m $emul"
7660 fi
7661 rm -rf conftest*
7662 ;;
7663
7664 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7665 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7666 # Find out what ABI is being produced by ac_compile, and set linker
7667 # options accordingly. Note that the listed cases only cover the
7668 # situations where additional linker options are needed (such as when
7669 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7670 # vice versa); the common cases where no linker options are needed do
7671 # not appear in the list.
7672 echo 'int i;' > conftest.$ac_ext
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7674 (eval $ac_compile) 2>&5
7675 ac_status=$?
7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 case `$FILECMD conftest.o` in
7679 *32-bit*)
7680 case $host in
7681 x86_64-*kfreebsd*-gnu)
7682 LD="${LD-ld} -m elf_i386_fbsd"
7683 ;;
7684 x86_64-*linux*|x86_64-gnu*)
7685 case `$FILECMD conftest.o` in
7686 *x86-64*)
7687 LD="${LD-ld} -m elf32_x86_64"
7688 ;;
7689 *)
7690 LD="${LD-ld} -m elf_i386"
7691 ;;
7692 esac
7693 ;;
7694 powerpc64le-*linux*)
7695 LD="${LD-ld} -m elf32lppclinux"
7696 ;;
7697 powerpc64-*linux*)
7698 LD="${LD-ld} -m elf32ppclinux"
7699 ;;
7700 s390x-*linux*)
7701 LD="${LD-ld} -m elf_s390"
7702 ;;
7703 sparc64-*linux*)
7704 LD="${LD-ld} -m elf32_sparc"
7705 ;;
7706 esac
7707 ;;
7708 *64-bit*)
7709 case $host in
7710 x86_64-*kfreebsd*-gnu)
7711 LD="${LD-ld} -m elf_x86_64_fbsd"
7712 ;;
7713 x86_64-*linux*|x86_64-gnu*)
7714 LD="${LD-ld} -m elf_x86_64"
7715 ;;
7716 powerpcle-*linux*)
7717 LD="${LD-ld} -m elf64lppc"
7718 ;;
7719 powerpc-*linux*)
7720 LD="${LD-ld} -m elf64ppc"
7721 ;;
7722 s390*-*linux*|s390*-*tpf*)
7723 LD="${LD-ld} -m elf64_s390"
7724 ;;
7725 sparc*-*linux*)
7726 LD="${LD-ld} -m elf64_sparc"
7727 ;;
7728 esac
7729 ;;
7730 esac
7731 fi
7732 rm -rf conftest*
7733 ;;
7734
7735 *-*-sco3.2v5*)
7736 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7737 SAVE_CFLAGS=$CFLAGS
7738 CFLAGS="$CFLAGS -belf"
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7740 printf %s "checking whether the C compiler needs -belf... " >&6; }
7741 if test ${lt_cv_cc_needs_belf+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else case e in #(
7745 e) ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753
7754 int
7755 main (void)
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"
7763 then :
7764 lt_cv_cc_needs_belf=yes
7765 else case e in #(
7766 e) lt_cv_cc_needs_belf=no ;;
7767 esac
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7770 conftest$ac_exeext conftest.$ac_ext
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776 ;;
7777 esac
7778 fi
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7780 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7781 if test yes != "$lt_cv_cc_needs_belf"; then
7782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7783 CFLAGS=$SAVE_CFLAGS
7784 fi
7785 ;;
7786 *-*solaris*)
7787 # Find out what ABI is being produced by ac_compile, and set linker
7788 # options accordingly.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `$FILECMD conftest.o` in
7796 *64-bit*)
7797 case $lt_cv_prog_gnu_ld in
7798 yes*)
7799 case $host in
7800 i?86-*-solaris*|x86_64-*-solaris*)
7801 LD="${LD-ld} -m elf_x86_64"
7802 ;;
7803 sparc*-*-solaris*)
7804 LD="${LD-ld} -m elf64_sparc"
7805 ;;
7806 esac
7807 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7808 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7809 LD=${LD-ld}_sol2
7810 fi
7811 ;;
7812 *)
7813 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7814 LD="${LD-ld} -64"
7815 fi
7816 ;;
7817 esac
7818 ;;
7819 esac
7820 fi
7821 rm -rf conftest*
7822 ;;
7823 esac
7824
7825 need_locks=$enable_libtool_lock
7826
7827 if test -n "$ac_tool_prefix"; then
7828 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7829 set dummy ${ac_tool_prefix}mt; ac_word=$2
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 printf %s "checking for $ac_word... " >&6; }
7832 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7833 then :
7834 printf %s "(cached) " >&6
7835 else case e in #(
7836 e) if test -n "$MANIFEST_TOOL"; then
7837 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 case $as_dir in #(((
7844 '') as_dir=./ ;;
7845 */) ;;
7846 *) as_dir=$as_dir/ ;;
7847 esac
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi ;;
7859 esac
7860 fi
7861 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7862 if test -n "$MANIFEST_TOOL"; then
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7864 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7865 else
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 printf "%s\n" "no" >&6; }
7868 fi
7869
7870
7871 fi
7872 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7873 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7874 # Extract the first word of "mt", so it can be a program name with args.
7875 set dummy mt; ac_word=$2
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 printf %s "checking for $ac_word... " >&6; }
7878 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7879 then :
7880 printf %s "(cached) " >&6
7881 else case e in #(
7882 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7883 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 case $as_dir in #(((
7890 '') as_dir=./ ;;
7891 */) ;;
7892 *) as_dir=$as_dir/ ;;
7893 esac
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi ;;
7905 esac
7906 fi
7907 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7908 if test -n "$ac_ct_MANIFEST_TOOL"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7910 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 printf "%s\n" "no" >&6; }
7914 fi
7915
7916 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7917 MANIFEST_TOOL=":"
7918 else
7919 case $cross_compiling:$ac_tool_warned in
7920 yes:)
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923 ac_tool_warned=yes ;;
7924 esac
7925 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7926 fi
7927 else
7928 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7929 fi
7930
7931 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7933 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7934 if test ${lt_cv_path_manifest_tool+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else case e in #(
7938 e) lt_cv_path_manifest_tool=no
7939 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7940 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7941 cat conftest.err >&5
7942 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7943 lt_cv_path_manifest_tool=yes
7944 fi
7945 rm -f conftest* ;;
7946 esac
7947 fi
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7949 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7950 if test yes != "$lt_cv_path_manifest_tool"; then
7951 MANIFEST_TOOL=:
7952 fi
7953
7954
7955
7956
7957
7958
7959 case $host_os in
7960 rhapsody* | darwin*)
7961 if test -n "$ac_tool_prefix"; then
7962 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7963 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 printf %s "checking for $ac_word... " >&6; }
7966 if test ${ac_cv_prog_DSYMUTIL+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else case e in #(
7970 e) if test -n "$DSYMUTIL"; then
7971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976 IFS=$as_save_IFS
7977 case $as_dir in #(((
7978 '') as_dir=./ ;;
7979 */) ;;
7980 *) as_dir=$as_dir/ ;;
7981 esac
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi ;;
7993 esac
7994 fi
7995 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7996 if test -n "$DSYMUTIL"; then
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7998 printf "%s\n" "$DSYMUTIL" >&6; }
7999 else
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 printf "%s\n" "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_DSYMUTIL"; then
8007 ac_ct_DSYMUTIL=$DSYMUTIL
8008 # Extract the first word of "dsymutil", so it can be a program name with args.
8009 set dummy dsymutil; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else case e in #(
8016 e) if test -n "$ac_ct_DSYMUTIL"; then
8017 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi ;;
8039 esac
8040 fi
8041 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8042 if test -n "$ac_ct_DSYMUTIL"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8044 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050 if test "x$ac_ct_DSYMUTIL" = x; then
8051 DSYMUTIL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 DSYMUTIL=$ac_ct_DSYMUTIL
8060 fi
8061 else
8062 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8063 fi
8064
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_NMEDIT+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else case e in #(
8074 e) if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi ;;
8097 esac
8098 fi
8099 NMEDIT=$ac_cv_prog_NMEDIT
8100 if test -n "$NMEDIT"; then
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8102 printf "%s\n" "$NMEDIT" >&6; }
8103 else
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 printf "%s\n" "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_NMEDIT"; then
8111 ac_ct_NMEDIT=$NMEDIT
8112 # Extract the first word of "nmedit", so it can be a program name with args.
8113 set dummy nmedit; ac_word=$2
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 printf %s "checking for $ac_word... " >&6; }
8116 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else case e in #(
8120 e) if test -n "$ac_ct_NMEDIT"; then
8121 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi ;;
8143 esac
8144 fi
8145 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8146 if test -n "$ac_ct_NMEDIT"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8148 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8149 else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 printf "%s\n" "no" >&6; }
8152 fi
8153
8154 if test "x$ac_ct_NMEDIT" = x; then
8155 NMEDIT=":"
8156 else
8157 case $cross_compiling:$ac_tool_warned in
8158 yes:)
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163 NMEDIT=$ac_ct_NMEDIT
8164 fi
8165 else
8166 NMEDIT="$ac_cv_prog_NMEDIT"
8167 fi
8168
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 printf %s "checking for $ac_word... " >&6; }
8174 if test ${ac_cv_prog_LIPO+y}
8175 then :
8176 printf %s "(cached) " >&6
8177 else case e in #(
8178 e) if test -n "$LIPO"; then
8179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 case $as_dir in #(((
8186 '') as_dir=./ ;;
8187 */) ;;
8188 *) as_dir=$as_dir/ ;;
8189 esac
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200 fi ;;
8201 esac
8202 fi
8203 LIPO=$ac_cv_prog_LIPO
8204 if test -n "$LIPO"; then
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8206 printf "%s\n" "$LIPO" >&6; }
8207 else
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 printf "%s\n" "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_LIPO"; then
8215 ac_ct_LIPO=$LIPO
8216 # Extract the first word of "lipo", so it can be a program name with args.
8217 set dummy lipo; ac_word=$2
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_ac_ct_LIPO+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$ac_ct_LIPO"; then
8225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_ac_ct_LIPO="lipo"
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi ;;
8247 esac
8248 fi
8249 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8250 if test -n "$ac_ct_LIPO"; then
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8252 printf "%s\n" "$ac_ct_LIPO" >&6; }
8253 else
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 printf "%s\n" "no" >&6; }
8256 fi
8257
8258 if test "x$ac_ct_LIPO" = x; then
8259 LIPO=":"
8260 else
8261 case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267 LIPO=$ac_ct_LIPO
8268 fi
8269 else
8270 LIPO="$ac_cv_prog_LIPO"
8271 fi
8272
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool; ac_word=$2
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 printf %s "checking for $ac_word... " >&6; }
8278 if test ${ac_cv_prog_OTOOL+y}
8279 then :
8280 printf %s "(cached) " >&6
8281 else case e in #(
8282 e) if test -n "$OTOOL"; then
8283 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288 IFS=$as_save_IFS
8289 case $as_dir in #(((
8290 '') as_dir=./ ;;
8291 */) ;;
8292 *) as_dir=$as_dir/ ;;
8293 esac
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 fi ;;
8305 esac
8306 fi
8307 OTOOL=$ac_cv_prog_OTOOL
8308 if test -n "$OTOOL"; then
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8310 printf "%s\n" "$OTOOL" >&6; }
8311 else
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 printf "%s\n" "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_OTOOL"; then
8319 ac_ct_OTOOL=$OTOOL
8320 # Extract the first word of "otool", so it can be a program name with args.
8321 set dummy otool; ac_word=$2
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 printf %s "checking for $ac_word... " >&6; }
8324 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) if test -n "$ac_ct_OTOOL"; then
8329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 case $as_dir in #(((
8336 '') as_dir=./ ;;
8337 */) ;;
8338 *) as_dir=$as_dir/ ;;
8339 esac
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_OTOOL="otool"
8343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi ;;
8351 esac
8352 fi
8353 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8354 if test -n "$ac_ct_OTOOL"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8356 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362 if test "x$ac_ct_OTOOL" = x; then
8363 OTOOL=":"
8364 else
8365 case $cross_compiling:$ac_tool_warned in
8366 yes:)
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371 OTOOL=$ac_ct_OTOOL
8372 fi
8373 else
8374 OTOOL="$ac_cv_prog_OTOOL"
8375 fi
8376
8377 if test -n "$ac_tool_prefix"; then
8378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8379 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 printf %s "checking for $ac_word... " >&6; }
8382 if test ${ac_cv_prog_OTOOL64+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else case e in #(
8386 e) if test -n "$OTOOL64"; then
8387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 case $as_dir in #(((
8394 '') as_dir=./ ;;
8395 */) ;;
8396 *) as_dir=$as_dir/ ;;
8397 esac
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi ;;
8409 esac
8410 fi
8411 OTOOL64=$ac_cv_prog_OTOOL64
8412 if test -n "$OTOOL64"; then
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8414 printf "%s\n" "$OTOOL64" >&6; }
8415 else
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8418 fi
8419
8420
8421 fi
8422 if test -z "$ac_cv_prog_OTOOL64"; then
8423 ac_ct_OTOOL64=$OTOOL64
8424 # Extract the first word of "otool64", so it can be a program name with args.
8425 set dummy otool64; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else case e in #(
8432 e) if test -n "$ac_ct_OTOOL64"; then
8433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438 IFS=$as_save_IFS
8439 case $as_dir in #(((
8440 '') as_dir=./ ;;
8441 */) ;;
8442 *) as_dir=$as_dir/ ;;
8443 esac
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_ac_ct_OTOOL64="otool64"
8447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 fi ;;
8455 esac
8456 fi
8457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8458 if test -n "$ac_ct_OTOOL64"; then
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8460 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8461 else
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 printf "%s\n" "no" >&6; }
8464 fi
8465
8466 if test "x$ac_ct_OTOOL64" = x; then
8467 OTOOL64=":"
8468 else
8469 case $cross_compiling:$ac_tool_warned in
8470 yes:)
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8473 ac_tool_warned=yes ;;
8474 esac
8475 OTOOL64=$ac_ct_OTOOL64
8476 fi
8477 else
8478 OTOOL64="$ac_cv_prog_OTOOL64"
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8508 printf %s "checking for -single_module linker flag... " >&6; }
8509 if test ${lt_cv_apple_cc_single_mod+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else case e in #(
8513 e) lt_cv_apple_cc_single_mod=no
8514 if test -z "$LT_MULTI_MODULE"; then
8515 # By default we will add the -single_module flag. You can override
8516 # by either setting the environment variable LT_MULTI_MODULE
8517 # non-empty at configure time, or by adding -multi_module to the
8518 # link flags.
8519 rm -rf libconftest.dylib*
8520 echo "int foo(void){return 1;}" > conftest.c
8521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8522 -dynamiclib -Wl,-single_module conftest.c" >&5
8523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8525 _lt_result=$?
8526 # If there is a non-empty error log, and "single_module"
8527 # appears in it, assume the flag caused a linker warning
8528 if test -s conftest.err && $GREP single_module conftest.err; then
8529 cat conftest.err >&5
8530 # Otherwise, if the output was created with a 0 exit code from
8531 # the compiler, it worked.
8532 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8533 lt_cv_apple_cc_single_mod=yes
8534 else
8535 cat conftest.err >&5
8536 fi
8537 rm -rf libconftest.dylib*
8538 rm -f conftest.*
8539 fi ;;
8540 esac
8541 fi
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8543 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8544
8545 # Feature test to disable chained fixups since it is not
8546 # compatible with '-undefined dynamic_lookup'
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8548 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8549 if test ${lt_cv_support_no_fixup_chains+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else case e in #(
8553 e) save_LDFLAGS=$LDFLAGS
8554 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557
8558 int
8559 main (void)
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"
8567 then :
8568 lt_cv_support_no_fixup_chains=yes
8569 else case e in #(
8570 e) lt_cv_support_no_fixup_chains=no
8571 ;;
8572 esac
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LDFLAGS=$save_LDFLAGS
8577
8578 ;;
8579 esac
8580 fi
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8582 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8583
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8585 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8586 if test ${lt_cv_ld_exported_symbols_list+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) lt_cv_ld_exported_symbols_list=no
8591 save_LDFLAGS=$LDFLAGS
8592 echo "_main" > conftest.sym
8593 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596
8597 int
8598 main (void)
8599 {
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"
8606 then :
8607 lt_cv_ld_exported_symbols_list=yes
8608 else case e in #(
8609 e) lt_cv_ld_exported_symbols_list=no ;;
8610 esac
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8613 conftest$ac_exeext conftest.$ac_ext
8614 LDFLAGS=$save_LDFLAGS
8615 ;;
8616 esac
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8619 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8620
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8622 printf %s "checking for -force_load linker flag... " >&6; }
8623 if test ${lt_cv_ld_force_load+y}
8624 then :
8625 printf %s "(cached) " >&6
8626 else case e in #(
8627 e) lt_cv_ld_force_load=no
8628 cat > conftest.c << _LT_EOF
8629 int forced_loaded() { return 2;}
8630 _LT_EOF
8631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8633 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8634 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8635 echo "$RANLIB libconftest.a" >&5
8636 $RANLIB libconftest.a 2>&5
8637 cat > conftest.c << _LT_EOF
8638 int main(void) { return 0;}
8639 _LT_EOF
8640 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8641 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8642 _lt_result=$?
8643 if test -s conftest.err && $GREP force_load conftest.err; then
8644 cat conftest.err >&5
8645 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8646 lt_cv_ld_force_load=yes
8647 else
8648 cat conftest.err >&5
8649 fi
8650 rm -f conftest.err libconftest.a conftest conftest.c
8651 rm -rf conftest.dSYM
8652 ;;
8653 esac
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8656 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8657 case $host_os in
8658 rhapsody* | darwin1.[012])
8659 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8660 darwin1.*)
8661 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8662 darwin*)
8663 case $MACOSX_DEPLOYMENT_TARGET,$host in
8664 10.[012],*|,*powerpc*-darwin[5-8]*)
8665 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8666 *)
8667 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8668 if test yes = "$lt_cv_support_no_fixup_chains"; then
8669 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8670 fi
8671 ;;
8672 esac
8673 ;;
8674 esac
8675 if test yes = "$lt_cv_apple_cc_single_mod"; then
8676 _lt_dar_single_mod='$single_module'
8677 fi
8678 _lt_dar_needs_single_mod=no
8679 case $host_os in
8680 rhapsody* | darwin1.*)
8681 _lt_dar_needs_single_mod=yes ;;
8682 darwin*)
8683 # When targeting Mac OS X 10.4 (darwin 8) or later,
8684 # -single_module is the default and -multi_module is unsupported.
8685 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8686 # target any OS version that needs -single_module.
8687 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8688 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8689 _lt_dar_needs_single_mod=yes ;;
8690 esac
8691 ;;
8692 esac
8693 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8694 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8695 else
8696 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8697 fi
8698 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8699 _lt_dsymutil='~$DSYMUTIL $lib || :'
8700 else
8701 _lt_dsymutil=
8702 fi
8703 ;;
8704 esac
8705
8706 # func_munge_path_list VARIABLE PATH
8707 # -----------------------------------
8708 # VARIABLE is name of variable containing _space_ separated list of
8709 # directories to be munged by the contents of PATH, which is string
8710 # having a format:
8711 # "DIR[:DIR]:"
8712 # string "DIR[ DIR]" will be prepended to VARIABLE
8713 # ":DIR[:DIR]"
8714 # string "DIR[ DIR]" will be appended to VARIABLE
8715 # "DIRP[:DIRP]::[DIRA:]DIRA"
8716 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8717 # "DIRA[ DIRA]" will be appended to VARIABLE
8718 # "DIR[:DIR]"
8719 # VARIABLE will be replaced by "DIR[ DIR]"
8720 func_munge_path_list ()
8721 {
8722 case x$2 in
8723 x)
8724 ;;
8725 *:)
8726 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8727 ;;
8728 x:*)
8729 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8730 ;;
8731 *::*)
8732 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8733 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8734 ;;
8735 *)
8736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8737 ;;
8738 esac
8739 }
8740
8741 ac_header= ac_cache=
8742 for ac_item in $ac_header_c_list
8743 do
8744 if test $ac_cache; then
8745 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8746 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8747 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8748 fi
8749 ac_header= ac_cache=
8750 elif test $ac_header; then
8751 ac_cache=$ac_item
8752 else
8753 ac_header=$ac_item
8754 fi
8755 done
8756
8757
8758
8759
8760
8761
8762
8763
8764 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8765 then :
8766
8767 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8768
8769 fi
8770 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8771 "
8772 if test "x$ac_cv_header_dlfcn_h" = xyes
8773 then :
8774 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8775
8776 fi
8777
8778
8779
8780
8781
8782 # Set options
8783
8784
8785
8786 enable_dlopen=no
8787
8788
8789 enable_win32_dll=no
8790
8791
8792 # Check whether --enable-shared was given.
8793 if test ${enable_shared+y}
8794 then :
8795 enableval=$enable_shared; p=${PACKAGE-default}
8796 case $enableval in
8797 yes) enable_shared=yes ;;
8798 no) enable_shared=no ;;
8799 *)
8800 enable_shared=no
8801 # Look at the argument we got. We use all the common list separators.
8802 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8803 for pkg in $enableval; do
8804 IFS=$lt_save_ifs
8805 if test "X$pkg" = "X$p"; then
8806 enable_shared=yes
8807 fi
8808 done
8809 IFS=$lt_save_ifs
8810 ;;
8811 esac
8812 else case e in #(
8813 e) enable_shared=yes ;;
8814 esac
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 # Check whether --enable-static was given.
8826 if test ${enable_static+y}
8827 then :
8828 enableval=$enable_static; p=${PACKAGE-default}
8829 case $enableval in
8830 yes) enable_static=yes ;;
8831 no) enable_static=no ;;
8832 *)
8833 enable_static=no
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8836 for pkg in $enableval; do
8837 IFS=$lt_save_ifs
8838 if test "X$pkg" = "X$p"; then
8839 enable_static=yes
8840 fi
8841 done
8842 IFS=$lt_save_ifs
8843 ;;
8844 esac
8845 else case e in #(
8846 e) enable_static=yes ;;
8847 esac
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858 # Check whether --enable-pic was given.
8859 if test ${enable_pic+y}
8860 then :
8861 enableval=$enable_pic; lt_p=${PACKAGE-default}
8862 case $enableval in
8863 yes|no) pic_mode=$enableval ;;
8864 *)
8865 pic_mode=default
8866 # Look at the argument we got. We use all the common list separators.
8867 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8868 for lt_pkg in $enableval; do
8869 IFS=$lt_save_ifs
8870 if test "X$lt_pkg" = "X$lt_p"; then
8871 pic_mode=yes
8872 fi
8873 done
8874 IFS=$lt_save_ifs
8875 ;;
8876 esac
8877 else case e in #(
8878 e) # Check whether --with-pic was given.
8879 if test ${with_pic+y}
8880 then :
8881 withval=$with_pic; lt_p=${PACKAGE-default}
8882 case $withval in
8883 yes|no) pic_mode=$withval ;;
8884 *)
8885 pic_mode=default
8886 # Look at the argument we got. We use all the common list separators.
8887 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8888 for lt_pkg in $withval; do
8889 IFS=$lt_save_ifs
8890 if test "X$lt_pkg" = "X$lt_p"; then
8891 pic_mode=yes
8892 fi
8893 done
8894 IFS=$lt_save_ifs
8895 ;;
8896 esac
8897 else case e in #(
8898 e) pic_mode=default ;;
8899 esac
8900 fi
8901
8902 ;;
8903 esac
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912
8913 # Check whether --enable-fast-install was given.
8914 if test ${enable_fast_install+y}
8915 then :
8916 enableval=$enable_fast_install; p=${PACKAGE-default}
8917 case $enableval in
8918 yes) enable_fast_install=yes ;;
8919 no) enable_fast_install=no ;;
8920 *)
8921 enable_fast_install=no
8922 # Look at the argument we got. We use all the common list separators.
8923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8924 for pkg in $enableval; do
8925 IFS=$lt_save_ifs
8926 if test "X$pkg" = "X$p"; then
8927 enable_fast_install=yes
8928 fi
8929 done
8930 IFS=$lt_save_ifs
8931 ;;
8932 esac
8933 else case e in #(
8934 e) enable_fast_install=yes ;;
8935 esac
8936 fi
8937
8938
8939
8940
8941
8942
8943
8944
8945 shared_archive_member_spec=
8946 case $host,$enable_shared in
8947 power*-*-aix[5-9]*,yes)
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8949 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8950 # Check whether --enable-aix-soname was given.
8951 if test ${enable_aix_soname+y}
8952 then :
8953 enableval=$enable_aix_soname; case $enableval in
8954 aix|svr4|both)
8955 ;;
8956 *)
8957 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8958 ;;
8959 esac
8960 lt_cv_with_aix_soname=$enable_aix_soname
8961 else case e in #(
8962 e) # Check whether --with-aix-soname was given.
8963 if test ${with_aix_soname+y}
8964 then :
8965 withval=$with_aix_soname; case $withval in
8966 aix|svr4|both)
8967 ;;
8968 *)
8969 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8970 ;;
8971 esac
8972 lt_cv_with_aix_soname=$with_aix_soname
8973 else case e in #(
8974 e) if test ${lt_cv_with_aix_soname+y}
8975 then :
8976 printf %s "(cached) " >&6
8977 else case e in #(
8978 e) lt_cv_with_aix_soname=aix ;;
8979 esac
8980 fi
8981 ;;
8982 esac
8983 fi
8984
8985 enable_aix_soname=$lt_cv_with_aix_soname ;;
8986 esac
8987 fi
8988
8989 with_aix_soname=$enable_aix_soname
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8991 printf "%s\n" "$with_aix_soname" >&6; }
8992 if test aix != "$with_aix_soname"; then
8993 # For the AIX way of multilib, we name the shared archive member
8994 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8995 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8996 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8997 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8998 if test 64 = "${OBJECT_MODE-32}"; then
8999 shared_archive_member_spec=shr_64
9000 else
9001 shared_archive_member_spec=shr
9002 fi
9003 fi
9004 ;;
9005 *)
9006 with_aix_soname=aix
9007 ;;
9008 esac
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 # This can be used to rebuild libtool when needed
9020 LIBTOOL_DEPS=$ltmain
9021
9022 # Always use our own libtool.
9023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 test -z "$LN_S" && LN_S="ln -s"
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069 if test -n "${ZSH_VERSION+set}"; then
9070 setopt NO_GLOB_SUBST
9071 fi
9072
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9074 printf %s "checking for objdir... " >&6; }
9075 if test ${lt_cv_objdir+y}
9076 then :
9077 printf %s "(cached) " >&6
9078 else case e in #(
9079 e) rm -f .libs 2>/dev/null
9080 mkdir .libs 2>/dev/null
9081 if test -d .libs; then
9082 lt_cv_objdir=.libs
9083 else
9084 # MS-DOS does not allow filenames that begin with a dot.
9085 lt_cv_objdir=_libs
9086 fi
9087 rmdir .libs 2>/dev/null ;;
9088 esac
9089 fi
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9091 printf "%s\n" "$lt_cv_objdir" >&6; }
9092 objdir=$lt_cv_objdir
9093
9094
9095
9096
9097
9098 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9099
9100
9101
9102
9103 case $host_os in
9104 aix3*)
9105 # AIX sometimes has problems with the GCC collect2 program. For some
9106 # reason, if we set the COLLECT_NAMES environment variable, the problems
9107 # vanish in a puff of smoke.
9108 if test set != "${COLLECT_NAMES+set}"; then
9109 COLLECT_NAMES=
9110 export COLLECT_NAMES
9111 fi
9112 ;;
9113 esac
9114
9115 # Global variables:
9116 ofile=libtool
9117 can_build_shared=yes
9118
9119 # All known linkers require a '.a' archive for static linking (except MSVC and
9120 # ICC, which need '.lib').
9121 libext=a
9122
9123 with_gnu_ld=$lt_cv_prog_gnu_ld
9124
9125 old_CC=$CC
9126 old_CFLAGS=$CFLAGS
9127
9128 # Set sane defaults for various variables
9129 test -z "$CC" && CC=cc
9130 test -z "$LTCC" && LTCC=$CC
9131 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9132 test -z "$LD" && LD=ld
9133 test -z "$ac_objext" && ac_objext=o
9134
9135 func_cc_basename $compiler
9136 cc_basename=$func_cc_basename_result
9137
9138
9139 # Only perform the check for file, if the check method requires it
9140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9141 case $deplibs_check_method in
9142 file_magic*)
9143 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9145 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9146 if test ${lt_cv_path_MAGIC_CMD+y}
9147 then :
9148 printf %s "(cached) " >&6
9149 else case e in #(
9150 e) case $MAGIC_CMD in
9151 [\\/*] | ?:[\\/]*)
9152 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9153 ;;
9154 *)
9155 lt_save_MAGIC_CMD=$MAGIC_CMD
9156 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9158 for ac_dir in $ac_dummy; do
9159 IFS=$lt_save_ifs
9160 test -z "$ac_dir" && ac_dir=.
9161 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9162 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9163 if test -n "$file_magic_test_file"; then
9164 case $deplibs_check_method in
9165 "file_magic "*)
9166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9167 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9169 $EGREP "$file_magic_regex" > /dev/null; then
9170 :
9171 else
9172 cat <<_LT_EOF 1>&2
9173
9174 *** Warning: the command libtool uses to detect shared libraries,
9175 *** $file_magic_cmd, produces output that libtool cannot recognize.
9176 *** The result is that libtool may fail to recognize shared libraries
9177 *** as such. This will affect the creation of libtool libraries that
9178 *** depend on shared libraries, but programs linked with such libtool
9179 *** libraries will work regardless of this problem. Nevertheless, you
9180 *** may want to report the problem to your system manager and/or to
9181 *** [email protected]
9182
9183 _LT_EOF
9184 fi ;;
9185 esac
9186 fi
9187 break
9188 fi
9189 done
9190 IFS=$lt_save_ifs
9191 MAGIC_CMD=$lt_save_MAGIC_CMD
9192 ;;
9193 esac ;;
9194 esac
9195 fi
9196
9197 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9198 if test -n "$MAGIC_CMD"; then
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9200 printf "%s\n" "$MAGIC_CMD" >&6; }
9201 else
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 printf "%s\n" "no" >&6; }
9204 fi
9205
9206
9207
9208
9209
9210 if test -z "$lt_cv_path_MAGIC_CMD"; then
9211 if test -n "$ac_tool_prefix"; then
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9213 printf %s "checking for file... " >&6; }
9214 if test ${lt_cv_path_MAGIC_CMD+y}
9215 then :
9216 printf %s "(cached) " >&6
9217 else case e in #(
9218 e) case $MAGIC_CMD in
9219 [\\/*] | ?:[\\/]*)
9220 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9221 ;;
9222 *)
9223 lt_save_MAGIC_CMD=$MAGIC_CMD
9224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226 for ac_dir in $ac_dummy; do
9227 IFS=$lt_save_ifs
9228 test -z "$ac_dir" && ac_dir=.
9229 if test -f "$ac_dir/file"; then
9230 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9231 if test -n "$file_magic_test_file"; then
9232 case $deplibs_check_method in
9233 "file_magic "*)
9234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237 $EGREP "$file_magic_regex" > /dev/null; then
9238 :
9239 else
9240 cat <<_LT_EOF 1>&2
9241
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such. This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem. Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** [email protected]
9250
9251 _LT_EOF
9252 fi ;;
9253 esac
9254 fi
9255 break
9256 fi
9257 done
9258 IFS=$lt_save_ifs
9259 MAGIC_CMD=$lt_save_MAGIC_CMD
9260 ;;
9261 esac ;;
9262 esac
9263 fi
9264
9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9266 if test -n "$MAGIC_CMD"; then
9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 printf "%s\n" "$MAGIC_CMD" >&6; }
9269 else
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 printf "%s\n" "no" >&6; }
9272 fi
9273
9274
9275 else
9276 MAGIC_CMD=:
9277 fi
9278 fi
9279
9280 fi
9281 ;;
9282 esac
9283
9284 # Use C for the default configuration in the libtool script
9285
9286 lt_save_CC=$CC
9287 ac_ext=c
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
9293
9294 # Source file extension for C test sources.
9295 ac_ext=c
9296
9297 # Object file extension for compiled C test sources.
9298 objext=o
9299 objext=$objext
9300
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9303
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(void){return(0);}'
9306
9307
9308
9309
9310
9311
9312
9313 # If no C compiler was specified, use CC.
9314 LTCC=${LTCC-"$CC"}
9315
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9318
9319 # Allow CC to be a program name with arguments.
9320 compiler=$CC
9321
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9325
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9331 $RM conftest*
9332
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9337 $RM -r conftest*
9338
9339
9340 ## CAVEAT EMPTOR:
9341 ## There is no encapsulation within the following macros, do not change
9342 ## the running order or otherwise move them around unless you know exactly
9343 ## what you are doing...
9344 if test -n "$compiler"; then
9345
9346 lt_prog_compiler_no_builtin_flag=
9347
9348 if test yes = "$GCC"; then
9349 case $cc_basename in
9350 nvcc*)
9351 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9352 *)
9353 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9354 esac
9355
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9357 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9358 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) lt_cv_prog_compiler_rtti_exceptions=no
9363 ac_outfile=conftest.$ac_objext
9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9365 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9366 # Insert the option either (1) after the last *FLAGS variable, or
9367 # (2) before a word containing "conftest.", or (3) at the end.
9368 # Note that $ac_compile itself does not contain backslashes and begins
9369 # with a dollar sign (not a hyphen), so the echo should work correctly.
9370 # The option is referenced via a variable to avoid confusing sed.
9371 lt_compile=`echo "$ac_compile" | $SED \
9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9374 -e 's:$: $lt_compiler_flag:'`
9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9376 (eval "$lt_compile" 2>conftest.err)
9377 ac_status=$?
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 if (exit $ac_status) && test -s "$ac_outfile"; then
9381 # The compiler can only warn and ignore the option if not recognized
9382 # So say no if there are warnings other than the usual output.
9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9386 lt_cv_prog_compiler_rtti_exceptions=yes
9387 fi
9388 fi
9389 $RM conftest*
9390 ;;
9391 esac
9392 fi
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9395
9396 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 else
9399 :
9400 fi
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409 lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9412
9413
9414 if test yes = "$GCC"; then
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_static='-static'
9417
9418 case $host_os in
9419 aix*)
9420 # All AIX code is PIC.
9421 if test ia64 = "$host_cpu"; then
9422 # AIX 5 now supports IA64 processor
9423 lt_prog_compiler_static='-Bstatic'
9424 fi
9425 lt_prog_compiler_pic='-fPIC'
9426 ;;
9427
9428 amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 lt_prog_compiler_pic='-fPIC'
9433 ;;
9434 m68k)
9435 # FIXME: we need at least 68020 code to build shared libraries, but
9436 # adding the '-m68020' flag to GCC prevents building anything better,
9437 # like '-m68040'.
9438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9439 ;;
9440 esac
9441 ;;
9442
9443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9444 # PIC is the default for these OSes.
9445 ;;
9446
9447 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9448 # This hack is so that the source file can tell whether it is being
9449 # built for inclusion in a dll (and should export symbols for example).
9450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9451 # (--disable-auto-import) libraries
9452 lt_prog_compiler_pic='-DDLL_EXPORT'
9453 case $host_os in
9454 os2*)
9455 lt_prog_compiler_static='$wl-static'
9456 ;;
9457 esac
9458 ;;
9459
9460 darwin* | rhapsody*)
9461 # PIC is the default on this platform
9462 # Common symbols not allowed in MH_DYLIB files
9463 lt_prog_compiler_pic='-fno-common'
9464 ;;
9465
9466 haiku*)
9467 # PIC is the default for Haiku.
9468 # The "-static" flag exists, but is broken.
9469 lt_prog_compiler_static=
9470 ;;
9471
9472 hpux*)
9473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9475 # sets the default TLS model and affects inlining.
9476 case $host_cpu in
9477 hppa*64*)
9478 # +Z the default
9479 ;;
9480 *)
9481 lt_prog_compiler_pic='-fPIC'
9482 ;;
9483 esac
9484 ;;
9485
9486 interix[3-9]*)
9487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9488 # Instead, we relocate shared libraries at runtime.
9489 ;;
9490
9491 msdosdjgpp*)
9492 # Just because we use GCC doesn't mean we suddenly get shared libraries
9493 # on systems that don't support them.
9494 lt_prog_compiler_can_build_shared=no
9495 enable_shared=no
9496 ;;
9497
9498 *nto* | *qnx*)
9499 # QNX uses GNU C++, but need to define -shared option too, otherwise
9500 # it will coredump.
9501 lt_prog_compiler_pic='-fPIC -shared'
9502 ;;
9503
9504 sysv4*MP*)
9505 if test -d /usr/nec; then
9506 lt_prog_compiler_pic=-Kconform_pic
9507 fi
9508 ;;
9509
9510 *)
9511 lt_prog_compiler_pic='-fPIC'
9512 ;;
9513 esac
9514
9515 case $cc_basename in
9516 nvcc*) # Cuda Compiler Driver 2.2
9517 lt_prog_compiler_wl='-Xlinker '
9518 if test -n "$lt_prog_compiler_pic"; then
9519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9520 fi
9521 ;;
9522 esac
9523 else
9524 # PORTME Check for flag to pass linker flags through the system compiler.
9525 case $host_os in
9526 aix*)
9527 lt_prog_compiler_wl='-Wl,'
9528 if test ia64 = "$host_cpu"; then
9529 # AIX 5 now supports IA64 processor
9530 lt_prog_compiler_static='-Bstatic'
9531 else
9532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9533 fi
9534 ;;
9535
9536 darwin* | rhapsody*)
9537 # PIC is the default on this platform
9538 # Common symbols not allowed in MH_DYLIB files
9539 lt_prog_compiler_pic='-fno-common'
9540 case $cc_basename in
9541 nagfor*)
9542 # NAG Fortran compiler
9543 lt_prog_compiler_wl='-Wl,-Wl,,'
9544 lt_prog_compiler_pic='-PIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 ;;
9547 esac
9548 ;;
9549
9550 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9551 # This hack is so that the source file can tell whether it is being
9552 # built for inclusion in a dll (and should export symbols for example).
9553 lt_prog_compiler_pic='-DDLL_EXPORT'
9554 case $host_os in
9555 os2*)
9556 lt_prog_compiler_static='$wl-static'
9557 ;;
9558 esac
9559 ;;
9560
9561 hpux9* | hpux10* | hpux11*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9564 # not for PA HP-UX.
9565 case $host_cpu in
9566 hppa*64*|ia64*)
9567 # +Z the default
9568 ;;
9569 *)
9570 lt_prog_compiler_pic='+Z'
9571 ;;
9572 esac
9573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9574 lt_prog_compiler_static='$wl-a ${wl}archive'
9575 ;;
9576
9577 irix5* | irix6* | nonstopux*)
9578 lt_prog_compiler_wl='-Wl,'
9579 # PIC (with -KPIC) is the default.
9580 lt_prog_compiler_static='-non_shared'
9581 ;;
9582
9583 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9584 case $cc_basename in
9585 # old Intel for x86_64, which still supported -KPIC.
9586 ecc*)
9587 lt_prog_compiler_wl='-Wl,'
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-static'
9590 ;;
9591 *flang* | ftn | f18* | f95*)
9592 # Flang compiler.
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-fPIC'
9595 lt_prog_compiler_static='-static'
9596 ;;
9597 # flang / f18. f95 an alias for gfortran or flang on Debian
9598 flang* | f18* | f95*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-fPIC'
9601 lt_prog_compiler_static='-static'
9602 ;;
9603 # icc used to be incompatible with GCC.
9604 # ICC 10 doesn't accept -KPIC any more.
9605 icc* | ifort*)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fPIC'
9608 lt_prog_compiler_static='-static'
9609 ;;
9610 # Lahey Fortran 8.1.
9611 lf95*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='--shared'
9614 lt_prog_compiler_static='--static'
9615 ;;
9616 nagfor*)
9617 # NAG Fortran compiler
9618 lt_prog_compiler_wl='-Wl,-Wl,,'
9619 lt_prog_compiler_pic='-PIC'
9620 lt_prog_compiler_static='-Bstatic'
9621 ;;
9622 tcc*)
9623 # Fabrice Bellard et al's Tiny C Compiler
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-fPIC'
9626 lt_prog_compiler_static='-static'
9627 ;;
9628 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9629 # Portland Group compilers (*not* the Pentium gcc compiler,
9630 # which looks to be a dead project)
9631 lt_prog_compiler_wl='-Wl,'
9632 lt_prog_compiler_pic='-fpic'
9633 lt_prog_compiler_static='-Bstatic'
9634 ;;
9635 ccc*)
9636 lt_prog_compiler_wl='-Wl,'
9637 # All Alpha code is PIC.
9638 lt_prog_compiler_static='-non_shared'
9639 ;;
9640 xl* | bgxl* | bgf* | mpixl*)
9641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-qpic'
9644 lt_prog_compiler_static='-qstaticlink'
9645 ;;
9646 *)
9647 case `$CC -V 2>&1 | $SED 5q` in
9648 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9652 lt_prog_compiler_wl=''
9653 ;;
9654 *Sun\ F* | *Sun*Fortran*)
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl='-Qoption ld '
9658 ;;
9659 *Sun\ C*)
9660 # Sun C 5.9
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl='-Wl,'
9664 ;;
9665 *Intel*\ [CF]*Compiler*)
9666 lt_prog_compiler_wl='-Wl,'
9667 lt_prog_compiler_pic='-fPIC'
9668 lt_prog_compiler_static='-static'
9669 ;;
9670 *Portland\ Group*)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-fpic'
9673 lt_prog_compiler_static='-Bstatic'
9674 ;;
9675 esac
9676 ;;
9677 esac
9678 ;;
9679
9680 newsos6)
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9683 ;;
9684
9685 *-mlibc)
9686 lt_prog_compiler_wl='-Wl,'
9687 lt_prog_compiler_pic='-fPIC'
9688 lt_prog_compiler_static='-static'
9689 ;;
9690
9691 *nto* | *qnx*)
9692 # QNX uses GNU C++, but need to define -shared option too, otherwise
9693 # it will coredump.
9694 lt_prog_compiler_pic='-fPIC -shared'
9695 ;;
9696
9697 osf3* | osf4* | osf5*)
9698 lt_prog_compiler_wl='-Wl,'
9699 # All OSF/1 code is PIC.
9700 lt_prog_compiler_static='-non_shared'
9701 ;;
9702
9703 rdos*)
9704 lt_prog_compiler_static='-non_shared'
9705 ;;
9706
9707 serenity*)
9708 ;;
9709
9710 solaris*)
9711 lt_prog_compiler_pic='-KPIC'
9712 lt_prog_compiler_static='-Bstatic'
9713 case $cc_basename in
9714 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9715 lt_prog_compiler_wl='-Qoption ld ';;
9716 *)
9717 lt_prog_compiler_wl='-Wl,';;
9718 esac
9719 ;;
9720
9721 sunos4*)
9722 lt_prog_compiler_wl='-Qoption ld '
9723 lt_prog_compiler_pic='-PIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726
9727 sysv4 | sysv4.2uw2* | sysv4.3*)
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='-KPIC'
9730 lt_prog_compiler_static='-Bstatic'
9731 ;;
9732
9733 sysv4*MP*)
9734 if test -d /usr/nec; then
9735 lt_prog_compiler_pic='-Kconform_pic'
9736 lt_prog_compiler_static='-Bstatic'
9737 fi
9738 ;;
9739
9740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9741 lt_prog_compiler_wl='-Wl,'
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 ;;
9745
9746 unicos*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_can_build_shared=no
9749 ;;
9750
9751 uts4*)
9752 lt_prog_compiler_pic='-pic'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755
9756 *)
9757 lt_prog_compiler_can_build_shared=no
9758 ;;
9759 esac
9760 fi
9761
9762 case $host_os in
9763 # For platforms that do not support PIC, -DPIC is meaningless:
9764 *djgpp*)
9765 lt_prog_compiler_pic=
9766 ;;
9767 *)
9768 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9769 ;;
9770 esac
9771
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9773 printf %s "checking for $compiler option to produce PIC... " >&6; }
9774 if test ${lt_cv_prog_compiler_pic+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else case e in #(
9778 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9779 esac
9780 fi
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9782 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9784
9785 #
9786 # Check to make sure the PIC flag actually works.
9787 #
9788 if test -n "$lt_prog_compiler_pic"; then
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9790 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9791 if test ${lt_cv_prog_compiler_pic_works+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else case e in #(
9795 e) lt_cv_prog_compiler_pic_works=no
9796 ac_outfile=conftest.$ac_objext
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9799 # Insert the option either (1) after the last *FLAGS variable, or
9800 # (2) before a word containing "conftest.", or (3) at the end.
9801 # Note that $ac_compile itself does not contain backslashes and begins
9802 # with a dollar sign (not a hyphen), so the echo should work correctly.
9803 # The option is referenced via a variable to avoid confusing sed.
9804 lt_compile=`echo "$ac_compile" | $SED \
9805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9807 -e 's:$: $lt_compiler_flag:'`
9808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9809 (eval "$lt_compile" 2>conftest.err)
9810 ac_status=$?
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 if (exit $ac_status) && test -s "$ac_outfile"; then
9814 # The compiler can only warn and ignore the option if not recognized
9815 # So say no if there are warnings other than the usual output.
9816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9819 lt_cv_prog_compiler_pic_works=yes
9820 fi
9821 fi
9822 $RM conftest*
9823 ;;
9824 esac
9825 fi
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9827 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9828
9829 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9830 case $lt_prog_compiler_pic in
9831 "" | " "*) ;;
9832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9833 esac
9834 else
9835 lt_prog_compiler_pic=
9836 lt_prog_compiler_can_build_shared=no
9837 fi
9838
9839 fi
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 #
9852 # Check to make sure the static flag actually works.
9853 #
9854 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9856 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9857 if test ${lt_cv_prog_compiler_static_works+y}
9858 then :
9859 printf %s "(cached) " >&6
9860 else case e in #(
9861 e) lt_cv_prog_compiler_static_works=no
9862 save_LDFLAGS=$LDFLAGS
9863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9866 # The linker can only warn and ignore the option if not recognized
9867 # So say no if there are warnings
9868 if test -s conftest.err; then
9869 # Append any errors to the config.log.
9870 cat conftest.err 1>&5
9871 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9873 if diff conftest.exp conftest.er2 >/dev/null; then
9874 lt_cv_prog_compiler_static_works=yes
9875 fi
9876 else
9877 lt_cv_prog_compiler_static_works=yes
9878 fi
9879 fi
9880 $RM -r conftest*
9881 LDFLAGS=$save_LDFLAGS
9882 ;;
9883 esac
9884 fi
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9886 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9887
9888 if test yes = "$lt_cv_prog_compiler_static_works"; then
9889 :
9890 else
9891 lt_prog_compiler_static=
9892 fi
9893
9894
9895
9896
9897
9898
9899
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9901 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9902 if test ${lt_cv_prog_compiler_c_o+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else case e in #(
9906 e) lt_cv_prog_compiler_c_o=no
9907 $RM -r conftest 2>/dev/null
9908 mkdir conftest
9909 cd conftest
9910 mkdir out
9911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9912
9913 lt_compiler_flag="-o out/conftest2.$ac_objext"
9914 # Insert the option either (1) after the last *FLAGS variable, or
9915 # (2) before a word containing "conftest.", or (3) at the end.
9916 # Note that $ac_compile itself does not contain backslashes and begins
9917 # with a dollar sign (not a hyphen), so the echo should work correctly.
9918 lt_compile=`echo "$ac_compile" | $SED \
9919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9921 -e 's:$: $lt_compiler_flag:'`
9922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9923 (eval "$lt_compile" 2>out/conftest.err)
9924 ac_status=$?
9925 cat out/conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9928 then
9929 # The compiler can only warn and ignore the option if not recognized
9930 # So say no if there are warnings
9931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler_c_o=yes
9935 fi
9936 fi
9937 chmod u+w . 2>&5
9938 $RM conftest*
9939 # SGI C++ compiler will create directory out/ii_files/ for
9940 # template instantiation
9941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9942 $RM out/* && rmdir out
9943 cd ..
9944 $RM -r conftest
9945 $RM conftest*
9946 ;;
9947 esac
9948 fi
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9950 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9951
9952
9953
9954
9955
9956
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9958 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9959 if test ${lt_cv_prog_compiler_c_o+y}
9960 then :
9961 printf %s "(cached) " >&6
9962 else case e in #(
9963 e) lt_cv_prog_compiler_c_o=no
9964 $RM -r conftest 2>/dev/null
9965 mkdir conftest
9966 cd conftest
9967 mkdir out
9968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9969
9970 lt_compiler_flag="-o out/conftest2.$ac_objext"
9971 # Insert the option either (1) after the last *FLAGS variable, or
9972 # (2) before a word containing "conftest.", or (3) at the end.
9973 # Note that $ac_compile itself does not contain backslashes and begins
9974 # with a dollar sign (not a hyphen), so the echo should work correctly.
9975 lt_compile=`echo "$ac_compile" | $SED \
9976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9978 -e 's:$: $lt_compiler_flag:'`
9979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9980 (eval "$lt_compile" 2>out/conftest.err)
9981 ac_status=$?
9982 cat out/conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9985 then
9986 # The compiler can only warn and ignore the option if not recognized
9987 # So say no if there are warnings
9988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9991 lt_cv_prog_compiler_c_o=yes
9992 fi
9993 fi
9994 chmod u+w . 2>&5
9995 $RM conftest*
9996 # SGI C++ compiler will create directory out/ii_files/ for
9997 # template instantiation
9998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9999 $RM out/* && rmdir out
10000 cd ..
10001 $RM -r conftest
10002 $RM conftest*
10003 ;;
10004 esac
10005 fi
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10007 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10008
10009
10010
10011
10012 hard_links=nottested
10013 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10014 # do not overwrite the value of need_locks provided by the user
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10016 printf %s "checking if we can lock with hard links... " >&6; }
10017 hard_links=yes
10018 $RM conftest*
10019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020 touch conftest.a
10021 ln conftest.a conftest.b 2>&5 || hard_links=no
10022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10024 printf "%s\n" "$hard_links" >&6; }
10025 if test no = "$hard_links"; then
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10027 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10028 need_locks=warn
10029 fi
10030 else
10031 need_locks=no
10032 fi
10033
10034
10035
10036
10037
10038
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10040 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10041
10042 runpath_var=
10043 allow_undefined_flag=
10044 always_export_symbols=no
10045 archive_cmds=
10046 archive_expsym_cmds=
10047 compiler_needs_object=no
10048 enable_shared_with_static_runtimes=no
10049 export_dynamic_flag_spec=
10050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10051 hardcode_automatic=no
10052 hardcode_direct=no
10053 hardcode_direct_absolute=no
10054 hardcode_libdir_flag_spec=
10055 hardcode_libdir_separator=
10056 hardcode_minus_L=no
10057 hardcode_shlibpath_var=unsupported
10058 inherit_rpath=no
10059 link_all_deplibs=unknown
10060 module_cmds=
10061 module_expsym_cmds=
10062 old_archive_from_new_cmds=
10063 old_archive_from_expsyms_cmds=
10064 thread_safe_flag_spec=
10065 whole_archive_flag_spec=
10066 # include_expsyms should be a list of space-separated symbols to be *always*
10067 # included in the symbol list
10068 include_expsyms=
10069 # exclude_expsyms can be an extended regexp of symbols to exclude
10070 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10071 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10072 # as well as any symbol that contains 'd'.
10073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10075 # platforms (ab)use it in PIC code, but their linkers get confused if
10076 # the symbol is explicitly referenced. Since portable code cannot
10077 # rely on this symbol name, it's probably fine to never include it in
10078 # preloaded symbol tables.
10079 # Exclude shared library initialization/finalization symbols.
10080 extract_expsyms_cmds=
10081
10082 case $host_os in
10083 cygwin* | mingw* | windows* | pw32* | cegcc*)
10084 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10085 # When not using gcc, we currently assume that we are using
10086 # Microsoft Visual C++ or Intel C++ Compiler.
10087 if test yes != "$GCC"; then
10088 with_gnu_ld=no
10089 fi
10090 ;;
10091 interix*)
10092 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10093 with_gnu_ld=yes
10094 ;;
10095 linux* | k*bsd*-gnu | gnu*)
10096 link_all_deplibs=no
10097 ;;
10098 esac
10099
10100 ld_shlibs=yes
10101
10102 # On some targets, GNU ld is compatible enough with the native linker
10103 # that we're better off using the native interface for both.
10104 lt_use_gnu_ld_interface=no
10105 if test yes = "$with_gnu_ld"; then
10106 case $host_os in
10107 aix*)
10108 # The AIX port of GNU ld has always aspired to compatibility
10109 # with the native linker. However, as the warning in the GNU ld
10110 # block says, versions before 2.19.5* couldn't really create working
10111 # shared libraries, regardless of the interface used.
10112 case `$LD -v 2>&1` in
10113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10116 *)
10117 lt_use_gnu_ld_interface=yes
10118 ;;
10119 esac
10120 ;;
10121 *)
10122 lt_use_gnu_ld_interface=yes
10123 ;;
10124 esac
10125 fi
10126
10127 if test yes = "$lt_use_gnu_ld_interface"; then
10128 # If archive_cmds runs LD, not CC, wlarc should be empty
10129 wlarc='$wl'
10130
10131 # Set some defaults for GNU ld with shared library support. These
10132 # are reset later if shared libraries are not supported. Putting them
10133 # here allows them to be overridden if necessary.
10134 runpath_var=LD_RUN_PATH
10135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10136 export_dynamic_flag_spec='$wl--export-dynamic'
10137 # ancient GNU ld didn't support --whole-archive et. al.
10138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10140 else
10141 whole_archive_flag_spec=
10142 fi
10143 supports_anon_versioning=no
10144 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10145 *GNU\ gold*) supports_anon_versioning=yes ;;
10146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10149 *\ 2.11.*) ;; # other 2.11 versions
10150 *) supports_anon_versioning=yes ;;
10151 esac
10152
10153 # See if GNU ld supports shared libraries.
10154 case $host_os in
10155 aix[3-9]*)
10156 # On AIX/PPC, the GNU linker is very broken
10157 if test ia64 != "$host_cpu"; then
10158 ld_shlibs=no
10159 cat <<_LT_EOF 1>&2
10160
10161 *** Warning: the GNU linker, at least up to release 2.19, is reported
10162 *** to be unable to reliably create shared libraries on AIX.
10163 *** Therefore, libtool is disabling shared libraries support. If you
10164 *** really care for shared libraries, you may want to install binutils
10165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10166 *** You will then need to restart the configuration process.
10167
10168 _LT_EOF
10169 fi
10170 ;;
10171
10172 amigaos*)
10173 case $host_cpu in
10174 powerpc)
10175 # see comment about AmigaOS4 .so support
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10177 archive_expsym_cmds=''
10178 ;;
10179 m68k)
10180 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)'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_minus_L=yes
10183 ;;
10184 esac
10185 ;;
10186
10187 beos*)
10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 allow_undefined_flag=unsupported
10190 # Joseph Beckenbach <[email protected]> says some releases of gcc
10191 # support --undefined. This deserves some investigation. FIXME
10192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10193 else
10194 ld_shlibs=no
10195 fi
10196 ;;
10197
10198 cygwin* | mingw* | windows* | pw32* | cegcc*)
10199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10200 # as there is no search path for DLLs.
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 export_dynamic_flag_spec='$wl--export-all-symbols'
10203 allow_undefined_flag=unsupported
10204 always_export_symbols=no
10205 enable_shared_with_static_runtimes=yes
10206 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'
10207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10208 file_list_spec='@'
10209
10210 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10212 # If the export-symbols file already is a .def file, use it as
10213 # is; otherwise, prepend EXPORTS...
10214 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10215 cp $export_symbols $output_objdir/$soname.def;
10216 else
10217 echo EXPORTS > $output_objdir/$soname.def;
10218 cat $export_symbols >> $output_objdir/$soname.def;
10219 fi~
10220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10221 else
10222 ld_shlibs=no
10223 fi
10224 ;;
10225
10226 haiku*)
10227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10228 link_all_deplibs=no
10229 ;;
10230
10231 os2*)
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_minus_L=yes
10234 allow_undefined_flag=unsupported
10235 shrext_cmds=.dll
10236 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10237 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10238 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10239 $ECHO EXPORTS >> $output_objdir/$libname.def~
10240 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10241 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10242 emximp -o $lib $output_objdir/$libname.def'
10243 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10246 $ECHO EXPORTS >> $output_objdir/$libname.def~
10247 prefix_cmds="$SED"~
10248 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10249 prefix_cmds="$prefix_cmds -e 1d";
10250 fi~
10251 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10252 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10254 emximp -o $lib $output_objdir/$libname.def'
10255 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10256 enable_shared_with_static_runtimes=yes
10257 file_list_spec='@'
10258 ;;
10259
10260 interix[3-9]*)
10261 hardcode_direct=no
10262 hardcode_shlibpath_var=no
10263 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10264 export_dynamic_flag_spec='$wl-E'
10265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10266 # Instead, shared libraries are loaded at an image base (0x10000000 by
10267 # default) and relocated if they conflict, which is a slow very memory
10268 # consuming and fragmenting process. To avoid this, we pick a random,
10269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10272 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'
10273 ;;
10274
10275 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10276 tmp_diet=no
10277 if test linux-dietlibc = "$host_os"; then
10278 case $cc_basename in
10279 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10280 esac
10281 fi
10282 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10283 && test no = "$tmp_diet"
10284 then
10285 tmp_addflag=' $pic_flag'
10286 tmp_sharedflag='-shared'
10287 case $cc_basename,$host_cpu in
10288 pgcc*) # Portland Group C compiler
10289 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'
10290 tmp_addflag=' $pic_flag'
10291 ;;
10292 pgf77* | pgf90* | pgf95* | pgfortran*)
10293 # Portland Group f77 and f90 compilers
10294 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'
10295 tmp_addflag=' $pic_flag -Mnomain' ;;
10296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10297 tmp_addflag=' -i_dynamic' ;;
10298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10299 tmp_addflag=' -i_dynamic -nofor_main' ;;
10300 ifc* | ifort*) # Intel Fortran compiler
10301 tmp_addflag=' -nofor_main' ;;
10302 lf95*) # Lahey Fortran 8.1
10303 whole_archive_flag_spec=
10304 tmp_sharedflag='--shared' ;;
10305 nagfor*) # NAGFOR 5.3
10306 tmp_sharedflag='-Wl,-shared' ;;
10307 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10308 tmp_sharedflag='-qmkshrobj'
10309 tmp_addflag= ;;
10310 nvcc*) # Cuda Compiler Driver 2.2
10311 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'
10312 compiler_needs_object=yes
10313 ;;
10314 esac
10315 case `$CC -V 2>&1 | $SED 5q` in
10316 *Sun\ C*) # Sun C 5.9
10317 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'
10318 compiler_needs_object=yes
10319 tmp_sharedflag='-G' ;;
10320 *Sun\ F*) # Sun Fortran 8.3
10321 tmp_sharedflag='-G' ;;
10322 esac
10323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10324
10325 if test yes = "$supports_anon_versioning"; then
10326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10327 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10328 echo "local: *; };" >> $output_objdir/$libname.ver~
10329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10330 fi
10331
10332 case $cc_basename in
10333 tcc*)
10334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10335 export_dynamic_flag_spec='-rdynamic'
10336 ;;
10337 xlf* | bgf* | bgxlf* | mpixlf*)
10338 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10340 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10341 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10342 if test yes = "$supports_anon_versioning"; then
10343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10344 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10345 echo "local: *; };" >> $output_objdir/$libname.ver~
10346 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10347 fi
10348 ;;
10349 esac
10350 else
10351 ld_shlibs=no
10352 fi
10353 ;;
10354
10355 *-mlibc)
10356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10358 ;;
10359
10360 netbsd* | netbsdelf*-gnu)
10361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10363 wlarc=
10364 else
10365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10366 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10367 fi
10368 ;;
10369
10370 solaris*)
10371 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10372 ld_shlibs=no
10373 cat <<_LT_EOF 1>&2
10374
10375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10376 *** create shared libraries on Solaris systems. Therefore, libtool
10377 *** is disabling shared libraries support. We urge you to upgrade GNU
10378 *** binutils to release 2.9.1 or newer. Another option is to modify
10379 *** your PATH or compiler configuration so that the native linker is
10380 *** used, and then restart.
10381
10382 _LT_EOF
10383 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10386 else
10387 ld_shlibs=no
10388 fi
10389 ;;
10390
10391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10392 case `$LD -v 2>&1` in
10393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10394 ld_shlibs=no
10395 cat <<_LT_EOF 1>&2
10396
10397 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10398 *** reliably create shared libraries on SCO systems. Therefore, libtool
10399 *** is disabling shared libraries support. We urge you to upgrade GNU
10400 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10401 *** your PATH or compiler configuration so that the native linker is
10402 *** used, and then restart.
10403
10404 _LT_EOF
10405 ;;
10406 *)
10407 # For security reasons, it is highly recommended that you always
10408 # use absolute paths for naming shared libraries, and exclude the
10409 # DT_RUNPATH tag from executables and libraries. But doing so
10410 # requires that you compile everything twice, which is a pain.
10411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10415 else
10416 ld_shlibs=no
10417 fi
10418 ;;
10419 esac
10420 ;;
10421
10422 sunos4*)
10423 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10424 wlarc=
10425 hardcode_direct=yes
10426 hardcode_shlibpath_var=no
10427 ;;
10428
10429 *)
10430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10432 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10433 else
10434 ld_shlibs=no
10435 fi
10436 ;;
10437 esac
10438
10439 if test no = "$ld_shlibs"; then
10440 runpath_var=
10441 hardcode_libdir_flag_spec=
10442 export_dynamic_flag_spec=
10443 whole_archive_flag_spec=
10444 fi
10445 else
10446 # PORTME fill in a description of your system's linker (not GNU ld)
10447 case $host_os in
10448 aix3*)
10449 allow_undefined_flag=unsupported
10450 always_export_symbols=yes
10451 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'
10452 # Note: this linker hardcodes the directories in LIBPATH if there
10453 # are no directories specified by -L.
10454 hardcode_minus_L=yes
10455 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10456 # Neither direct hardcoding nor static linking is supported with a
10457 # broken collect2.
10458 hardcode_direct=unsupported
10459 fi
10460 ;;
10461
10462 aix[4-9]*)
10463 if test ia64 = "$host_cpu"; then
10464 # On IA64, the linker does run time linking by default, so we don't
10465 # have to do anything special.
10466 aix_use_runtimelinking=no
10467 exp_sym_flag='-Bexport'
10468 no_entry_flag=
10469 else
10470 # If we're using GNU nm, then we don't want the "-C" option.
10471 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10472 # Without the "-l" option, or with the "-B" option, AIX nm treats
10473 # weak defined symbols like other global defined symbols, whereas
10474 # GNU nm marks them as "W".
10475 # While the 'weak' keyword is ignored in the Export File, we need
10476 # it in the Import File for the 'aix-soname' feature, so we have
10477 # to replace the "-B" option with "-P" for AIX nm.
10478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10479 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'
10480 else
10481 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'
10482 fi
10483 aix_use_runtimelinking=no
10484
10485 # Test if we are trying to use run time linking or normal
10486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10487 # have runtime linking enabled, and use it for executables.
10488 # For shared libraries, we enable/disable runtime linking
10489 # depending on the kind of the shared library created -
10490 # when "with_aix_soname,aix_use_runtimelinking" is:
10491 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10492 # "aix,yes" lib.so shared, rtl:yes, for executables
10493 # lib.a static archive
10494 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10495 # lib.a(lib.so.V) shared, rtl:no, for executables
10496 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10497 # lib.a(lib.so.V) shared, rtl:no
10498 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10499 # lib.a static archive
10500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10501 for ld_flag in $LDFLAGS; do
10502 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10503 aix_use_runtimelinking=yes
10504 break
10505 fi
10506 done
10507 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10508 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10509 # so we don't have lib.a shared libs to link our executables.
10510 # We have to force runtime linking in this case.
10511 aix_use_runtimelinking=yes
10512 LDFLAGS="$LDFLAGS -Wl,-brtl"
10513 fi
10514 ;;
10515 esac
10516
10517 exp_sym_flag='-bexport'
10518 no_entry_flag='-bnoentry'
10519 fi
10520
10521 # When large executables or shared objects are built, AIX ld can
10522 # have problems creating the table of contents. If linking a library
10523 # or program results in "error TOC overflow" add -mminimal-toc to
10524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10526
10527 archive_cmds=''
10528 hardcode_direct=yes
10529 hardcode_direct_absolute=yes
10530 hardcode_libdir_separator=':'
10531 link_all_deplibs=yes
10532 file_list_spec='$wl-f,'
10533 case $with_aix_soname,$aix_use_runtimelinking in
10534 aix,*) ;; # traditional, no import file
10535 svr4,* | *,yes) # use import file
10536 # The Import File defines what to hardcode.
10537 hardcode_direct=no
10538 hardcode_direct_absolute=no
10539 ;;
10540 esac
10541
10542 if test yes = "$GCC"; then
10543 case $host_os in aix4.[012]|aix4.[012].*)
10544 # We only want to do this on AIX 4.2 and lower, the check
10545 # below for broken collect2 doesn't work under 4.3+
10546 collect2name=`$CC -print-prog-name=collect2`
10547 if test -f "$collect2name" &&
10548 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10549 then
10550 # We have reworked collect2
10551 :
10552 else
10553 # We have old collect2
10554 hardcode_direct=unsupported
10555 # It fails to find uninstalled libraries when the uninstalled
10556 # path is not listed in the libpath. Setting hardcode_minus_L
10557 # to unsupported forces relinking
10558 hardcode_minus_L=yes
10559 hardcode_libdir_flag_spec='-L$libdir'
10560 hardcode_libdir_separator=
10561 fi
10562 ;;
10563 esac
10564 shared_flag='-shared'
10565 if test yes = "$aix_use_runtimelinking"; then
10566 shared_flag="$shared_flag "'$wl-G'
10567 fi
10568 # Need to ensure runtime linking is disabled for the traditional
10569 # shared library, or the linker may eventually find shared libraries
10570 # /with/ Import File - we do not want to mix them.
10571 shared_flag_aix='-shared'
10572 shared_flag_svr4='-shared $wl-G'
10573 else
10574 # not using gcc
10575 if test ia64 = "$host_cpu"; then
10576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10577 # chokes on -Wl,-G. The following line is correct:
10578 shared_flag='-G'
10579 else
10580 if test yes = "$aix_use_runtimelinking"; then
10581 shared_flag='$wl-G'
10582 else
10583 shared_flag='$wl-bM:SRE'
10584 fi
10585 shared_flag_aix='$wl-bM:SRE'
10586 shared_flag_svr4='$wl-G'
10587 fi
10588 fi
10589
10590 export_dynamic_flag_spec='$wl-bexpall'
10591 # It seems that -bexpall does not export symbols beginning with
10592 # underscore (_), so it is better to generate a list of symbols to export.
10593 always_export_symbols=yes
10594 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10595 # Warning - without using the other runtime loading flags (-brtl),
10596 # -berok will link without error, but may produce a broken library.
10597 allow_undefined_flag='-berok'
10598 # Determine the default libpath from the value encoded in an
10599 # empty executable.
10600 if test set = "${lt_cv_aix_libpath+set}"; then
10601 aix_libpath=$lt_cv_aix_libpath
10602 else
10603 if test ${lt_cv_aix_libpath_+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else case e in #(
10607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 int
10611 main (void)
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"
10619 then :
10620
10621 lt_aix_libpath_sed='
10622 /Import File Strings/,/^$/ {
10623 /^0/ {
10624 s/^0 *\([^ ]*\) *$/\1/
10625 p
10626 }
10627 }'
10628 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10629 # Check for a 64-bit object if we didn't find anything.
10630 if test -z "$lt_cv_aix_libpath_"; then
10631 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10632 fi
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10635 conftest$ac_exeext conftest.$ac_ext
10636 if test -z "$lt_cv_aix_libpath_"; then
10637 lt_cv_aix_libpath_=/usr/lib:/lib
10638 fi
10639 ;;
10640 esac
10641 fi
10642
10643 aix_libpath=$lt_cv_aix_libpath_
10644 fi
10645
10646 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10647 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
10648 else
10649 if test ia64 = "$host_cpu"; then
10650 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10651 allow_undefined_flag="-z nodefs"
10652 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"
10653 else
10654 # Determine the default libpath from the value encoded in an
10655 # empty executable.
10656 if test set = "${lt_cv_aix_libpath+set}"; then
10657 aix_libpath=$lt_cv_aix_libpath
10658 else
10659 if test ${lt_cv_aix_libpath_+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else case e in #(
10663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665
10666 int
10667 main (void)
10668 {
10669
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"
10675 then :
10676
10677 lt_aix_libpath_sed='
10678 /Import File Strings/,/^$/ {
10679 /^0/ {
10680 s/^0 *\([^ ]*\) *$/\1/
10681 p
10682 }
10683 }'
10684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10685 # Check for a 64-bit object if we didn't find anything.
10686 if test -z "$lt_cv_aix_libpath_"; then
10687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10688 fi
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10691 conftest$ac_exeext conftest.$ac_ext
10692 if test -z "$lt_cv_aix_libpath_"; then
10693 lt_cv_aix_libpath_=/usr/lib:/lib
10694 fi
10695 ;;
10696 esac
10697 fi
10698
10699 aix_libpath=$lt_cv_aix_libpath_
10700 fi
10701
10702 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10703 # Warning - without using the other run time loading flags,
10704 # -berok will link without error, but may produce a broken library.
10705 no_undefined_flag=' $wl-bernotok'
10706 allow_undefined_flag=' $wl-berok'
10707 if test yes = "$with_gnu_ld"; then
10708 # We only use this code for GNU lds that support --whole-archive.
10709 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10710 else
10711 # Exported symbols can be pulled into shared objects from archives
10712 whole_archive_flag_spec='$convenience'
10713 fi
10714 archive_cmds_need_lc=yes
10715 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10716 # -brtl affects multiple linker settings, -berok does not and is overridden later
10717 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10718 if test svr4 != "$with_aix_soname"; then
10719 # This is similar to how AIX traditionally builds its shared libraries.
10720 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'
10721 fi
10722 if test aix != "$with_aix_soname"; then
10723 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'
10724 else
10725 # used by -dlpreopen to get the symbols
10726 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10727 fi
10728 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10729 fi
10730 fi
10731 ;;
10732
10733 amigaos*)
10734 case $host_cpu in
10735 powerpc)
10736 # see comment about AmigaOS4 .so support
10737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10738 archive_expsym_cmds=''
10739 ;;
10740 m68k)
10741 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)'
10742 hardcode_libdir_flag_spec='-L$libdir'
10743 hardcode_minus_L=yes
10744 ;;
10745 esac
10746 ;;
10747
10748 bsdi[45]*)
10749 export_dynamic_flag_spec=-rdynamic
10750 ;;
10751
10752 cygwin* | mingw* | windows* | pw32* | cegcc*)
10753 # When not using gcc, we currently assume that we are using
10754 # Microsoft Visual C++ or Intel C++ Compiler.
10755 # hardcode_libdir_flag_spec is actually meaningless, as there is
10756 # no search path for DLLs.
10757 case $cc_basename in
10758 cl* | icl*)
10759 # Native MSVC or ICC
10760 hardcode_libdir_flag_spec=' '
10761 allow_undefined_flag=unsupported
10762 always_export_symbols=yes
10763 file_list_spec='@'
10764 # Tell ltmain to make .lib files, not .a files.
10765 libext=lib
10766 # Tell ltmain to make .dll files, not .so files.
10767 shrext_cmds=.dll
10768 # FIXME: Setting linknames here is a bad hack.
10769 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10770 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10771 cp "$export_symbols" "$output_objdir/$soname.def";
10772 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10773 else
10774 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10775 fi~
10776 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10777 linknames='
10778 # The linker will not automatically build a static lib if we build a DLL.
10779 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10780 enable_shared_with_static_runtimes=yes
10781 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10783 # Don't use ranlib
10784 old_postinstall_cmds='chmod 644 $oldlib'
10785 postlink_cmds='lt_outputfile="@OUTPUT@"~
10786 lt_tool_outputfile="@TOOL_OUTPUT@"~
10787 case $lt_outputfile in
10788 *.exe|*.EXE) ;;
10789 *)
10790 lt_outputfile=$lt_outputfile.exe
10791 lt_tool_outputfile=$lt_tool_outputfile.exe
10792 ;;
10793 esac~
10794 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10795 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10796 $RM "$lt_outputfile.manifest";
10797 fi'
10798 ;;
10799 *)
10800 # Assume MSVC and ICC wrapper
10801 hardcode_libdir_flag_spec=' '
10802 allow_undefined_flag=unsupported
10803 # Tell ltmain to make .lib files, not .a files.
10804 libext=lib
10805 # Tell ltmain to make .dll files, not .so files.
10806 shrext_cmds=.dll
10807 # FIXME: Setting linknames here is a bad hack.
10808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10809 # The linker will automatically build a .lib file if we build a DLL.
10810 old_archive_from_new_cmds='true'
10811 # FIXME: Should let the user specify the lib program.
10812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10813 enable_shared_with_static_runtimes=yes
10814 ;;
10815 esac
10816 ;;
10817
10818 darwin* | rhapsody*)
10819
10820
10821 archive_cmds_need_lc=no
10822 hardcode_direct=no
10823 hardcode_automatic=yes
10824 hardcode_shlibpath_var=unsupported
10825 if test yes = "$lt_cv_ld_force_load"; then
10826 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\"`'
10827
10828 else
10829 whole_archive_flag_spec=''
10830 fi
10831 link_all_deplibs=yes
10832 allow_undefined_flag=$_lt_dar_allow_undefined
10833 case $cc_basename in
10834 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10835 *) _lt_dar_can_shared=$GCC ;;
10836 esac
10837 if test yes = "$_lt_dar_can_shared"; then
10838 output_verbose_link_cmd=func_echo_all
10839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10841 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"
10842 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"
10843
10844 else
10845 ld_shlibs=no
10846 fi
10847
10848 ;;
10849
10850 dgux*)
10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_libdir_flag_spec='-L$libdir'
10853 hardcode_shlibpath_var=no
10854 ;;
10855
10856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10857 # support. Future versions do this automatically, but an explicit c++rt0.o
10858 # does not break anything, and helps significantly (at the cost of a little
10859 # extra space).
10860 freebsd2.2*)
10861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10862 hardcode_libdir_flag_spec='-R$libdir'
10863 hardcode_direct=yes
10864 hardcode_shlibpath_var=no
10865 ;;
10866
10867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10868 freebsd2.*)
10869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10870 hardcode_direct=yes
10871 hardcode_minus_L=yes
10872 hardcode_shlibpath_var=no
10873 ;;
10874
10875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10876 freebsd* | dragonfly* | midnightbsd*)
10877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10878 hardcode_libdir_flag_spec='-R$libdir'
10879 hardcode_direct=yes
10880 hardcode_shlibpath_var=no
10881 ;;
10882
10883 hpux9*)
10884 if test yes = "$GCC"; then
10885 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'
10886 else
10887 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'
10888 fi
10889 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10890 hardcode_libdir_separator=:
10891 hardcode_direct=yes
10892
10893 # hardcode_minus_L: Not really in the search PATH,
10894 # but as the default location of the library.
10895 hardcode_minus_L=yes
10896 export_dynamic_flag_spec='$wl-E'
10897 ;;
10898
10899 hpux10*)
10900 if test yes,no = "$GCC,$with_gnu_ld"; then
10901 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10902 else
10903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10904 fi
10905 if test no = "$with_gnu_ld"; then
10906 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10907 hardcode_libdir_separator=:
10908 hardcode_direct=yes
10909 hardcode_direct_absolute=yes
10910 export_dynamic_flag_spec='$wl-E'
10911 # hardcode_minus_L: Not really in the search PATH,
10912 # but as the default location of the library.
10913 hardcode_minus_L=yes
10914 fi
10915 ;;
10916
10917 hpux11*)
10918 if test yes,no = "$GCC,$with_gnu_ld"; then
10919 case $host_cpu in
10920 hppa*64*)
10921 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 ;;
10923 ia64*)
10924 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10925 ;;
10926 *)
10927 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10928 ;;
10929 esac
10930 else
10931 case $host_cpu in
10932 hppa*64*)
10933 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 ;;
10935 ia64*)
10936 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10937 ;;
10938 *)
10939
10940 # Older versions of the 11.00 compiler do not understand -b yet
10941 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10943 printf %s "checking if $CC understands -b... " >&6; }
10944 if test ${lt_cv_prog_compiler__b+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else case e in #(
10948 e) lt_cv_prog_compiler__b=no
10949 save_LDFLAGS=$LDFLAGS
10950 LDFLAGS="$LDFLAGS -b"
10951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10953 # The linker can only warn and ignore the option if not recognized
10954 # So say no if there are warnings
10955 if test -s conftest.err; then
10956 # Append any errors to the config.log.
10957 cat conftest.err 1>&5
10958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10960 if diff conftest.exp conftest.er2 >/dev/null; then
10961 lt_cv_prog_compiler__b=yes
10962 fi
10963 else
10964 lt_cv_prog_compiler__b=yes
10965 fi
10966 fi
10967 $RM -r conftest*
10968 LDFLAGS=$save_LDFLAGS
10969 ;;
10970 esac
10971 fi
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10973 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10974
10975 if test yes = "$lt_cv_prog_compiler__b"; then
10976 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10977 else
10978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10979 fi
10980
10981 ;;
10982 esac
10983 fi
10984 if test no = "$with_gnu_ld"; then
10985 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10986 hardcode_libdir_separator=:
10987
10988 case $host_cpu in
10989 hppa*64*|ia64*)
10990 hardcode_direct=no
10991 hardcode_shlibpath_var=no
10992 ;;
10993 *)
10994 hardcode_direct=yes
10995 hardcode_direct_absolute=yes
10996 export_dynamic_flag_spec='$wl-E'
10997
10998 # hardcode_minus_L: Not really in the search PATH,
10999 # but as the default location of the library.
11000 hardcode_minus_L=yes
11001 ;;
11002 esac
11003 fi
11004 ;;
11005
11006 irix5* | irix6* | nonstopux*)
11007 if test yes = "$GCC"; then
11008 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'
11009 # Try to use the -exported_symbol ld option, if it does not
11010 # work, assume that -exports_file does not work either and
11011 # implicitly export all symbols.
11012 # This should be the same for all languages, so no per-tag cache variable.
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11014 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11015 if test ${lt_cv_irix_exported_symbol+y}
11016 then :
11017 printf %s "(cached) " >&6
11018 else case e in #(
11019 e) save_LDFLAGS=$LDFLAGS
11020 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023 int foo (void) { return 0; }
11024 _ACEOF
11025 if ac_fn_c_try_link "$LINENO"
11026 then :
11027 lt_cv_irix_exported_symbol=yes
11028 else case e in #(
11029 e) lt_cv_irix_exported_symbol=no ;;
11030 esac
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LDFLAGS=$save_LDFLAGS ;;
11035 esac
11036 fi
11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11038 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11039 if test yes = "$lt_cv_irix_exported_symbol"; then
11040 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'
11041 fi
11042 link_all_deplibs=no
11043 else
11044 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'
11045 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'
11046 fi
11047 archive_cmds_need_lc='no'
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 hardcode_libdir_separator=:
11050 inherit_rpath=yes
11051 link_all_deplibs=yes
11052 ;;
11053
11054 linux*)
11055 case $cc_basename in
11056 tcc*)
11057 # Fabrice Bellard et al's Tiny C Compiler
11058 ld_shlibs=yes
11059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11061 ;;
11062 esac
11063 ;;
11064
11065 *-mlibc)
11066 ;;
11067
11068 netbsd* | netbsdelf*-gnu)
11069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11071 else
11072 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11073 fi
11074 hardcode_libdir_flag_spec='-R$libdir'
11075 hardcode_direct=yes
11076 hardcode_shlibpath_var=no
11077 ;;
11078
11079 newsos6)
11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_direct=yes
11082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11083 hardcode_libdir_separator=:
11084 hardcode_shlibpath_var=no
11085 ;;
11086
11087 *nto* | *qnx*)
11088 ;;
11089
11090 openbsd*)
11091 if test -f /usr/libexec/ld.so; then
11092 hardcode_direct=yes
11093 hardcode_shlibpath_var=no
11094 hardcode_direct_absolute=yes
11095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11098 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11099 export_dynamic_flag_spec='$wl-E'
11100 else
11101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11102 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11103 fi
11104 else
11105 ld_shlibs=no
11106 fi
11107 ;;
11108
11109 os2*)
11110 hardcode_libdir_flag_spec='-L$libdir'
11111 hardcode_minus_L=yes
11112 allow_undefined_flag=unsupported
11113 shrext_cmds=.dll
11114 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11115 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11116 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11117 $ECHO EXPORTS >> $output_objdir/$libname.def~
11118 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11120 emximp -o $lib $output_objdir/$libname.def'
11121 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11124 $ECHO EXPORTS >> $output_objdir/$libname.def~
11125 prefix_cmds="$SED"~
11126 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11127 prefix_cmds="$prefix_cmds -e 1d";
11128 fi~
11129 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11130 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11132 emximp -o $lib $output_objdir/$libname.def'
11133 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11134 enable_shared_with_static_runtimes=yes
11135 file_list_spec='@'
11136 ;;
11137
11138 osf3*)
11139 if test yes = "$GCC"; then
11140 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11141 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'
11142 else
11143 allow_undefined_flag=' -expect_unresolved \*'
11144 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'
11145 fi
11146 archive_cmds_need_lc='no'
11147 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11148 hardcode_libdir_separator=:
11149 ;;
11150
11151 osf4* | osf5*) # as osf3* with the addition of -msym flag
11152 if test yes = "$GCC"; then
11153 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11154 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'
11155 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11156 else
11157 allow_undefined_flag=' -expect_unresolved \*'
11158 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'
11159 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~
11160 $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'
11161
11162 # Both c and cxx compiler support -rpath directly
11163 hardcode_libdir_flag_spec='-rpath $libdir'
11164 fi
11165 archive_cmds_need_lc='no'
11166 hardcode_libdir_separator=:
11167 ;;
11168
11169 serenity*)
11170 ;;
11171
11172 solaris*)
11173 no_undefined_flag=' -z defs'
11174 if test yes = "$GCC"; then
11175 wlarc='$wl'
11176 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11178 $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'
11179 else
11180 case `$CC -V 2>&1` in
11181 *"Compilers 5.0"*)
11182 wlarc=''
11183 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11185 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11186 ;;
11187 *)
11188 wlarc='$wl'
11189 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11191 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11192 ;;
11193 esac
11194 fi
11195 hardcode_libdir_flag_spec='-R$libdir'
11196 hardcode_shlibpath_var=no
11197 case $host_os in
11198 solaris2.[0-5] | solaris2.[0-5].*) ;;
11199 *)
11200 # The compiler driver will combine and reorder linker options,
11201 # but understands '-z linker_flag'. GCC discards it without '$wl',
11202 # but is careful enough not to reorder.
11203 # Supported since Solaris 2.6 (maybe 2.5.1?)
11204 if test yes = "$GCC"; then
11205 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11206 else
11207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11208 fi
11209 ;;
11210 esac
11211 link_all_deplibs=yes
11212 ;;
11213
11214 sunos4*)
11215 if test sequent = "$host_vendor"; then
11216 # Use $CC to link under sequent, because it throws in some extra .o
11217 # files that make .init and .fini sections work.
11218 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11219 else
11220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11221 fi
11222 hardcode_libdir_flag_spec='-L$libdir'
11223 hardcode_direct=yes
11224 hardcode_minus_L=yes
11225 hardcode_shlibpath_var=no
11226 ;;
11227
11228 sysv4)
11229 case $host_vendor in
11230 sni)
11231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_direct=yes # is this really true???
11233 ;;
11234 siemens)
11235 ## LD is ld it makes a PLAMLIB
11236 ## CC just makes a GrossModule.
11237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11238 reload_cmds='$CC -r -o $output$reload_objs'
11239 hardcode_direct=no
11240 ;;
11241 motorola)
11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11244 ;;
11245 esac
11246 runpath_var='LD_RUN_PATH'
11247 hardcode_shlibpath_var=no
11248 ;;
11249
11250 sysv4.3*)
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_shlibpath_var=no
11253 export_dynamic_flag_spec='-Bexport'
11254 ;;
11255
11256 sysv4*MP*)
11257 if test -d /usr/nec; then
11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_shlibpath_var=no
11260 runpath_var=LD_RUN_PATH
11261 hardcode_runpath_var=yes
11262 ld_shlibs=yes
11263 fi
11264 ;;
11265
11266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11267 no_undefined_flag='$wl-z,text'
11268 archive_cmds_need_lc=no
11269 hardcode_shlibpath_var=no
11270 runpath_var='LD_RUN_PATH'
11271
11272 if test yes = "$GCC"; then
11273 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 else
11276 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 fi
11279 ;;
11280
11281 sysv5* | sco3.2v5* | sco5v6*)
11282 # Note: We CANNOT use -z defs as we might desire, because we do not
11283 # link with -lc, and that would cause any symbols used from libc to
11284 # always be unresolved, which means just about no library would
11285 # ever link correctly. If we're not using GNU ld we use -z text
11286 # though, which does catch some bad symbols but isn't as heavy-handed
11287 # as -z defs.
11288 no_undefined_flag='$wl-z,text'
11289 allow_undefined_flag='$wl-z,nodefs'
11290 archive_cmds_need_lc=no
11291 hardcode_shlibpath_var=no
11292 hardcode_libdir_flag_spec='$wl-R,$libdir'
11293 hardcode_libdir_separator=':'
11294 link_all_deplibs=yes
11295 export_dynamic_flag_spec='$wl-Bexport'
11296 runpath_var='LD_RUN_PATH'
11297
11298 if test yes = "$GCC"; then
11299 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 else
11302 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 fi
11305 ;;
11306
11307 uts4*)
11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_shlibpath_var=no
11311 ;;
11312
11313 *)
11314 ld_shlibs=no
11315 ;;
11316 esac
11317
11318 if test sni = "$host_vendor"; then
11319 case $host in
11320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11321 export_dynamic_flag_spec='$wl-Blargedynsym'
11322 ;;
11323 esac
11324 fi
11325 fi
11326
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11328 printf "%s\n" "$ld_shlibs" >&6; }
11329 test no = "$ld_shlibs" && can_build_shared=no
11330
11331 with_gnu_ld=$with_gnu_ld
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 #
11348 # Do we need to explicitly link libc?
11349 #
11350 case "x$archive_cmds_need_lc" in
11351 x|xyes)
11352 # Assume -lc should be added
11353 archive_cmds_need_lc=yes
11354
11355 if test yes,yes = "$GCC,$enable_shared"; then
11356 case $archive_cmds in
11357 *'~'*)
11358 # FIXME: we may have to deal with multi-command sequences.
11359 ;;
11360 '$CC '*)
11361 # Test whether the compiler implicitly links with -lc since on some
11362 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11363 # to ld, don't add -lc before -lgcc.
11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11365 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11366 if test ${lt_cv_archive_cmds_need_lc+y}
11367 then :
11368 printf %s "(cached) " >&6
11369 else case e in #(
11370 e) $RM conftest*
11371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11372
11373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11374 (eval $ac_compile) 2>&5
11375 ac_status=$?
11376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11377 test $ac_status = 0; } 2>conftest.err; then
11378 soname=conftest
11379 lib=conftest
11380 libobjs=conftest.$ac_objext
11381 deplibs=
11382 wl=$lt_prog_compiler_wl
11383 pic_flag=$lt_prog_compiler_pic
11384 compiler_flags=-v
11385 linker_flags=-v
11386 verstring=
11387 output_objdir=.
11388 libname=conftest
11389 lt_save_allow_undefined_flag=$allow_undefined_flag
11390 allow_undefined_flag=
11391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11392 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11393 ac_status=$?
11394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11395 test $ac_status = 0; }
11396 then
11397 lt_cv_archive_cmds_need_lc=no
11398 else
11399 lt_cv_archive_cmds_need_lc=yes
11400 fi
11401 allow_undefined_flag=$lt_save_allow_undefined_flag
11402 else
11403 cat conftest.err 1>&5
11404 fi
11405 $RM conftest*
11406 ;;
11407 esac
11408 fi
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11410 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11411 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11412 ;;
11413 esac
11414 fi
11415 ;;
11416 esac
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11570 printf %s "checking dynamic linker characteristics... " >&6; }
11571
11572 if test yes = "$GCC"; then
11573 case $host_os in
11574 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11575 *) lt_awk_arg='/^libraries:/' ;;
11576 esac
11577 case $host_os in
11578 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11579 *) lt_sed_strip_eq='s|=/|/|g' ;;
11580 esac
11581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11582 case $lt_search_path_spec in
11583 *\;*)
11584 # if the path contains ";" then we assume it to be the separator
11585 # otherwise default to the standard path separator (i.e. ":") - it is
11586 # assumed that no part of a normal pathname contains ";" but that should
11587 # okay in the real world where ";" in dirpaths is itself problematic.
11588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11589 ;;
11590 *)
11591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11592 ;;
11593 esac
11594 # Ok, now we have the path, separated by spaces, we can step through it
11595 # and add multilib dir if necessary...
11596 lt_tmp_lt_search_path_spec=
11597 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11598 # ...but if some path component already ends with the multilib dir we assume
11599 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11600 case "$lt_multi_os_dir; $lt_search_path_spec " in
11601 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11602 lt_multi_os_dir=
11603 ;;
11604 esac
11605 for lt_sys_path in $lt_search_path_spec; do
11606 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11607 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11608 elif test -n "$lt_multi_os_dir"; then
11609 test -d "$lt_sys_path" && \
11610 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11611 fi
11612 done
11613 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11614 BEGIN {RS = " "; FS = "/|\n";} {
11615 lt_foo = "";
11616 lt_count = 0;
11617 for (lt_i = NF; lt_i > 0; lt_i--) {
11618 if ($lt_i != "" && $lt_i != ".") {
11619 if ($lt_i == "..") {
11620 lt_count++;
11621 } else {
11622 if (lt_count == 0) {
11623 lt_foo = "/" $lt_i lt_foo;
11624 } else {
11625 lt_count--;
11626 }
11627 }
11628 }
11629 }
11630 if (lt_foo != "") { lt_freq[lt_foo]++; }
11631 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11632 }'`
11633 # AWK program above erroneously prepends '/' to C:/dos/paths
11634 # for these hosts.
11635 case $host_os in
11636 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11637 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11638 esac
11639 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11640 else
11641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11642 fi
11643 library_names_spec=
11644 libname_spec='lib$name'
11645 soname_spec=
11646 shrext_cmds=.so
11647 postinstall_cmds=
11648 postuninstall_cmds=
11649 finish_cmds=
11650 finish_eval=
11651 shlibpath_var=
11652 shlibpath_overrides_runpath=unknown
11653 version_type=none
11654 dynamic_linker="$host_os ld.so"
11655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11656 need_lib_prefix=unknown
11657 hardcode_into_libs=no
11658
11659 # when you set need_version to no, make sure it does not cause -set_version
11660 # flags to be left without arguments
11661 need_version=unknown
11662
11663
11664
11665 case $host_os in
11666 aix3*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11669 shlibpath_var=LIBPATH
11670
11671 # AIX 3 has no versioning support, so we append a major version to the name.
11672 soname_spec='$libname$release$shared_ext$major'
11673 ;;
11674
11675 aix[4-9]*)
11676 version_type=linux # correct to gnu/linux during the next big refactor
11677 need_lib_prefix=no
11678 need_version=no
11679 hardcode_into_libs=yes
11680 if test ia64 = "$host_cpu"; then
11681 # AIX 5 supports IA64
11682 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 else
11685 # With GCC up to 2.95.x, collect2 would create an import file
11686 # for dependence libraries. The import file would start with
11687 # the line '#! .'. This would cause the generated library to
11688 # depend on '.', always an invalid library. This was fixed in
11689 # development snapshots of GCC prior to 3.0.
11690 case $host_os in
11691 aix4 | aix4.[01] | aix4.[01].*)
11692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11693 echo ' yes '
11694 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11695 :
11696 else
11697 can_build_shared=no
11698 fi
11699 ;;
11700 esac
11701 # Using Import Files as archive members, it is possible to support
11702 # filename-based versioning of shared library archives on AIX. While
11703 # this would work for both with and without runtime linking, it will
11704 # prevent static linking of such archives. So we do filename-based
11705 # shared library versioning with .so extension only, which is used
11706 # when both runtime linking and shared linking is enabled.
11707 # Unfortunately, runtime linking may impact performance, so we do
11708 # not want this to be the default eventually. Also, we use the
11709 # versioned .so libs for executables only if there is the -brtl
11710 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11711 # To allow for filename-based versioning support, we need to create
11712 # libNAME.so.V as an archive file, containing:
11713 # *) an Import File, referring to the versioned filename of the
11714 # archive as well as the shared archive member, telling the
11715 # bitwidth (32 or 64) of that shared object, and providing the
11716 # list of exported symbols of that shared object, eventually
11717 # decorated with the 'weak' keyword
11718 # *) the shared object with the F_LOADONLY flag set, to really avoid
11719 # it being seen by the linker.
11720 # At run time we better use the real file rather than another symlink,
11721 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11722
11723 case $with_aix_soname,$aix_use_runtimelinking in
11724 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11725 # soname into executable. Probably we can add versioning support to
11726 # collect2, so additional links can be useful in future.
11727 aix,yes) # traditional libtool
11728 dynamic_linker='AIX unversionable lib.so'
11729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11730 # instead of lib<name>.a to let people know that these are not
11731 # typical AIX shared libraries.
11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11733 ;;
11734 aix,no) # traditional AIX only
11735 dynamic_linker='AIX lib.a(lib.so.V)'
11736 # We preserve .a as extension for shared libraries through AIX4.2
11737 # and later when we are not doing run time linking.
11738 library_names_spec='$libname$release.a $libname.a'
11739 soname_spec='$libname$release$shared_ext$major'
11740 ;;
11741 svr4,*) # full svr4 only
11742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11744 # We do not specify a path in Import Files, so LIBPATH fires.
11745 shlibpath_overrides_runpath=yes
11746 ;;
11747 *,yes) # both, prefer svr4
11748 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11749 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11750 # unpreferred sharedlib libNAME.a needs extra handling
11751 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"'
11752 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"'
11753 # We do not specify a path in Import Files, so LIBPATH fires.
11754 shlibpath_overrides_runpath=yes
11755 ;;
11756 *,no) # both, prefer aix
11757 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11758 library_names_spec='$libname$release.a $libname.a'
11759 soname_spec='$libname$release$shared_ext$major'
11760 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11761 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)'
11762 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"'
11763 ;;
11764 esac
11765 shlibpath_var=LIBPATH
11766 fi
11767 ;;
11768
11769 amigaos*)
11770 case $host_cpu in
11771 powerpc)
11772 # Since July 2007 AmigaOS4 officially supports .so libraries.
11773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 ;;
11776 m68k)
11777 library_names_spec='$libname.ixlibrary $libname.a'
11778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11779 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'
11780 ;;
11781 esac
11782 ;;
11783
11784 beos*)
11785 library_names_spec='$libname$shared_ext'
11786 dynamic_linker="$host_os ld.so"
11787 shlibpath_var=LIBRARY_PATH
11788 ;;
11789
11790 bsdi[45]*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_version=no
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11799 # the default ld.so.conf also contains /usr/contrib/lib and
11800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11801 # libtool to hard-code these into programs
11802 ;;
11803
11804 cygwin* | mingw* | windows* | pw32* | cegcc*)
11805 version_type=windows
11806 shrext_cmds=.dll
11807 need_version=no
11808 need_lib_prefix=no
11809
11810 case $GCC,$cc_basename in
11811 yes,*)
11812 # gcc
11813 library_names_spec='$libname.dll.a'
11814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11815 # If user builds GCC with multilib enabled,
11816 # it should just install on $(libdir)
11817 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11818 if test xyes = x"$multilib"; then
11819 postinstall_cmds='base_file=`basename \$file`~
11820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11821 dldir=$destdir/`dirname \$dlpath`~
11822 $install_prog $dir/$dlname $destdir/$dlname~
11823 chmod a+x $destdir/$dlname~
11824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11825 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11826 fi'
11827 else
11828 postinstall_cmds='base_file=`basename \$file`~
11829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11830 dldir=$destdir/`dirname \$dlpath`~
11831 test -d \$dldir || mkdir -p \$dldir~
11832 $install_prog $dir/$dlname \$dldir/$dlname~
11833 chmod a+x \$dldir/$dlname~
11834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11836 fi'
11837 fi
11838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11839 dlpath=$dir/\$dldll~
11840 $RM \$dlpath'
11841 shlibpath_overrides_runpath=yes
11842
11843 case $host_os in
11844 cygwin*)
11845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11846 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11847
11848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11849 ;;
11850 mingw* | windows* | cegcc*)
11851 # MinGW DLLs use traditional 'lib' prefix
11852 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11853 ;;
11854 pw32*)
11855 # pw32 DLLs use 'pw' prefix rather than 'lib'
11856 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11857 ;;
11858 esac
11859 dynamic_linker='Win32 ld.exe'
11860 ;;
11861
11862 *,cl* | *,icl*)
11863 # Native MSVC or ICC
11864 libname_spec='$name'
11865 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866 library_names_spec='$libname.dll.lib'
11867
11868 case $build_os in
11869 mingw* | windows*)
11870 sys_lib_search_path_spec=
11871 lt_save_ifs=$IFS
11872 IFS=';'
11873 for lt_path in $LIB
11874 do
11875 IFS=$lt_save_ifs
11876 # Let DOS variable expansion print the short 8.3 style file name.
11877 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11878 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11879 done
11880 IFS=$lt_save_ifs
11881 # Convert to MSYS style.
11882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11883 ;;
11884 cygwin*)
11885 # Convert to unix form, then to dos form, then back to unix form
11886 # but this time dos style (no spaces!) so that the unix form looks
11887 # like /cygdrive/c/PROGRA~1:/cygdr...
11888 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11889 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11890 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11891 ;;
11892 *)
11893 sys_lib_search_path_spec=$LIB
11894 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11895 # It is most probably a Windows format PATH.
11896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11897 else
11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11899 fi
11900 # FIXME: find the short name or the path components, as spaces are
11901 # common. (e.g. "Program Files" -> "PROGRA~1")
11902 ;;
11903 esac
11904
11905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11906 postinstall_cmds='base_file=`basename \$file`~
11907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11908 dldir=$destdir/`dirname \$dlpath`~
11909 test -d \$dldir || mkdir -p \$dldir~
11910 $install_prog $dir/$dlname \$dldir/$dlname'
11911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912 dlpath=$dir/\$dldll~
11913 $RM \$dlpath'
11914 shlibpath_overrides_runpath=yes
11915 dynamic_linker='Win32 link.exe'
11916 ;;
11917
11918 *)
11919 # Assume MSVC and ICC wrapper
11920 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11921 dynamic_linker='Win32 ld.exe'
11922 ;;
11923 esac
11924 # FIXME: first we should search . and the directory the executable is in
11925 shlibpath_var=PATH
11926 ;;
11927
11928 darwin* | rhapsody*)
11929 dynamic_linker="$host_os dyld"
11930 version_type=darwin
11931 need_lib_prefix=no
11932 need_version=no
11933 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11934 soname_spec='$libname$release$major$shared_ext'
11935 shlibpath_overrides_runpath=yes
11936 shlibpath_var=DYLD_LIBRARY_PATH
11937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11938
11939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11941 ;;
11942
11943 dgux*)
11944 version_type=linux # correct to gnu/linux during the next big refactor
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 ;;
11951
11952 freebsd* | dragonfly* | midnightbsd*)
11953 # DragonFly does not have aout. When/if they implement a new
11954 # versioning mechanism, adjust this.
11955 if test -x /usr/bin/objformat; then
11956 objformat=`/usr/bin/objformat`
11957 else
11958 case $host_os in
11959 freebsd[23].*) objformat=aout ;;
11960 *) objformat=elf ;;
11961 esac
11962 fi
11963 version_type=freebsd-$objformat
11964 case $version_type in
11965 freebsd-elf*)
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 need_version=no
11969 need_lib_prefix=no
11970 ;;
11971 freebsd-*)
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11973 need_version=yes
11974 ;;
11975 esac
11976 case $host_cpu in
11977 powerpc64)
11978 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11979 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 int test_pointer_size[sizeof (void *) - 5];
11983
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"
11986 then :
11987 shlibpath_var=LD_LIBRARY_PATH
11988 else case e in #(
11989 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11990 esac
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11993 ;;
11994 *)
11995 shlibpath_var=LD_LIBRARY_PATH
11996 ;;
11997 esac
11998 case $host_os in
11999 freebsd2.*)
12000 shlibpath_overrides_runpath=yes
12001 ;;
12002 freebsd3.[01]* | freebsdelf3.[01]*)
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12005 ;;
12006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008 shlibpath_overrides_runpath=no
12009 hardcode_into_libs=yes
12010 ;;
12011 *) # from 4.6 on, and DragonFly
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12014 ;;
12015 esac
12016 ;;
12017
12018 haiku*)
12019 version_type=linux # correct to gnu/linux during the next big refactor
12020 need_lib_prefix=no
12021 need_version=no
12022 dynamic_linker="$host_os runtime_loader"
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext$major'
12025 shlibpath_var=LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12028 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12029 hardcode_into_libs=no
12030 ;;
12031
12032 hpux9* | hpux10* | hpux11*)
12033 # Give a soname corresponding to the major version so that dld.sl refuses to
12034 # link against other versions.
12035 version_type=sunos
12036 need_lib_prefix=no
12037 need_version=no
12038 case $host_cpu in
12039 ia64*)
12040 shrext_cmds='.so'
12041 hardcode_into_libs=yes
12042 dynamic_linker="$host_os dld.so"
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 if test 32 = "$HPUX_IA64_MODE"; then
12048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12050 else
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12053 fi
12054 ;;
12055 hppa*64*)
12056 shrext_cmds='.sl'
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 soname_spec='$libname$release$shared_ext$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065 ;;
12066 *)
12067 shrext_cmds='.sl'
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 ;;
12074 esac
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12076 postinstall_cmds='chmod 555 $lib'
12077 # or fails outright, so override atomically:
12078 install_override_mode=555
12079 ;;
12080
12081 interix[3-9]*)
12082 version_type=linux # correct to gnu/linux during the next big refactor
12083 need_lib_prefix=no
12084 need_version=no
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086 soname_spec='$libname$release$shared_ext$major'
12087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=no
12090 hardcode_into_libs=yes
12091 ;;
12092
12093 irix5* | irix6* | nonstopux*)
12094 case $host_os in
12095 nonstopux*) version_type=nonstopux ;;
12096 *)
12097 if test yes = "$lt_cv_prog_gnu_ld"; then
12098 version_type=linux # correct to gnu/linux during the next big refactor
12099 else
12100 version_type=irix
12101 fi ;;
12102 esac
12103 need_lib_prefix=no
12104 need_version=no
12105 soname_spec='$libname$release$shared_ext$major'
12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12107 case $host_os in
12108 irix5* | nonstopux*)
12109 libsuff= shlibsuff=
12110 ;;
12111 *)
12112 case $LD in # libtool.m4 will add one of these switches to LD
12113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12114 libsuff= shlibsuff= libmagic=32-bit;;
12115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12116 libsuff=32 shlibsuff=N32 libmagic=N32;;
12117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12119 *) libsuff= shlibsuff= libmagic=never-match;;
12120 esac
12121 ;;
12122 esac
12123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12124 shlibpath_overrides_runpath=no
12125 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12126 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12127 hardcode_into_libs=yes
12128 ;;
12129
12130 # No shared lib support for Linux oldld, aout, or coff.
12131 linux*oldld* | linux*aout* | linux*coff*)
12132 dynamic_linker=no
12133 ;;
12134
12135 linux*android*)
12136 version_type=none # Android doesn't support versioned libraries.
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12140 soname_spec='$libname$release$shared_ext'
12141 finish_cmds=
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12144
12145 # This implies no fast_install, which is unacceptable.
12146 # Some rework will be needed to allow for fast_install
12147 # before this can be enabled.
12148 hardcode_into_libs=yes
12149
12150 dynamic_linker='Android linker'
12151 # -rpath works at least for libraries that are not overridden by
12152 # libraries installed in system locations.
12153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12154 ;;
12155
12156 # This must be glibc/ELF.
12157 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 need_lib_prefix=no
12160 need_version=no
12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 soname_spec='$libname$release$shared_ext$major'
12163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=no
12166
12167 # Some binutils ld are patched to set DT_RUNPATH
12168 if test ${lt_cv_shlibpath_overrides_runpath+y}
12169 then :
12170 printf %s "(cached) " >&6
12171 else case e in #(
12172 e) lt_cv_shlibpath_overrides_runpath=no
12173 save_LDFLAGS=$LDFLAGS
12174 save_libdir=$libdir
12175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 int
12181 main (void)
12182 {
12183
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"
12189 then :
12190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12191 then :
12192 lt_cv_shlibpath_overrides_runpath=yes
12193 fi
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LDFLAGS=$save_LDFLAGS
12198 libdir=$save_libdir
12199 ;;
12200 esac
12201 fi
12202
12203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12204
12205 # This implies no fast_install, which is unacceptable.
12206 # Some rework will be needed to allow for fast_install
12207 # before this can be enabled.
12208 hardcode_into_libs=yes
12209
12210 # Ideally, we could use ldconfig to report *all* directories which are
12211 # searched for libraries, however this is still not possible. Aside from not
12212 # being certain /sbin/ldconfig is available, command
12213 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12214 # even though it is searched at run-time. Try to do the best guess by
12215 # appending ld.so.conf contents (and includes) to the search path.
12216 if test -f /etc/ld.so.conf; then
12217 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' ' '`
12218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219 fi
12220
12221 # We used to test for /lib/ld.so.1 and disable shared libraries on
12222 # powerpc, because MkLinux only supported shared libraries with the
12223 # GNU dynamic linker. Since this was broken with cross compilers,
12224 # most powerpc-linux boxes support dynamic linking these days and
12225 # people can always --disable-shared, the test was removed, and we
12226 # assume the GNU/Linux dynamic linker is in use.
12227 dynamic_linker='GNU/Linux ld.so'
12228 ;;
12229
12230 netbsdelf*-gnu)
12231 version_type=linux
12232 need_lib_prefix=no
12233 need_version=no
12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12235 soname_spec='$libname$release$shared_ext$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=no
12238 hardcode_into_libs=yes
12239 dynamic_linker='NetBSD ld.elf_so'
12240 ;;
12241
12242 netbsdelf*-gnu)
12243 version_type=linux
12244 need_lib_prefix=no
12245 need_version=no
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12251 dynamic_linker='NetBSD ld.elf_so'
12252 ;;
12253
12254 netbsd*)
12255 version_type=sunos
12256 need_lib_prefix=no
12257 need_version=no
12258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12261 dynamic_linker='NetBSD (a.out) ld.so'
12262 else
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12264 soname_spec='$libname$release$shared_ext$major'
12265 dynamic_linker='NetBSD ld.elf_so'
12266 fi
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=yes
12269 hardcode_into_libs=yes
12270 ;;
12271
12272 *-mlibc)
12273 version_type=linux # correct to gnu/linux during the next big refactor
12274 need_lib_prefix=no
12275 need_version=no
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277 soname_spec='$libname$release$shared_ext$major'
12278 dynamic_linker='mlibc ld.so'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 ;;
12283
12284 newsos6)
12285 version_type=linux # correct to gnu/linux during the next big refactor
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287 shlibpath_var=LD_LIBRARY_PATH
12288 shlibpath_overrides_runpath=yes
12289 ;;
12290
12291 *nto* | *qnx*)
12292 version_type=qnx
12293 need_lib_prefix=no
12294 need_version=no
12295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12296 soname_spec='$libname$release$shared_ext$major'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 shlibpath_overrides_runpath=no
12299 hardcode_into_libs=yes
12300 dynamic_linker='ldqnx.so'
12301 ;;
12302
12303 openbsd*)
12304 version_type=sunos
12305 sys_lib_dlsearch_path_spec=/usr/lib
12306 need_lib_prefix=no
12307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12308 need_version=no
12309 else
12310 need_version=yes
12311 fi
12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes
12316 ;;
12317
12318 os2*)
12319 libname_spec='$name'
12320 version_type=windows
12321 shrext_cmds=.dll
12322 need_version=no
12323 need_lib_prefix=no
12324 # OS/2 can only load a DLL with a base name of 8 characters or less.
12325 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12326 v=$($ECHO $release$versuffix | tr -d .-);
12327 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12328 $ECHO $n$v`$shared_ext'
12329 library_names_spec='${libname}_dll.$libext'
12330 dynamic_linker='OS/2 ld.exe'
12331 shlibpath_var=BEGINLIBPATH
12332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12334 postinstall_cmds='base_file=`basename \$file`~
12335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12336 dldir=$destdir/`dirname \$dlpath`~
12337 test -d \$dldir || mkdir -p \$dldir~
12338 $install_prog $dir/$dlname \$dldir/$dlname~
12339 chmod a+x \$dldir/$dlname~
12340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12342 fi'
12343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12344 dlpath=$dir/\$dldll~
12345 $RM \$dlpath'
12346 ;;
12347
12348 osf3* | osf4* | osf5*)
12349 version_type=osf
12350 need_lib_prefix=no
12351 need_version=no
12352 soname_spec='$libname$release$shared_ext$major'
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12357 ;;
12358
12359 rdos*)
12360 dynamic_linker=no
12361 ;;
12362
12363 serenity*)
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368 soname_spec='$libname$release$shared_ext$major'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=no
12371 dynamic_linker='SerenityOS LibELF'
12372 ;;
12373
12374 solaris*)
12375 version_type=linux # correct to gnu/linux during the next big refactor
12376 need_lib_prefix=no
12377 need_version=no
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12379 soname_spec='$libname$release$shared_ext$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=yes
12382 hardcode_into_libs=yes
12383 # ldd complains unless libraries are executable
12384 postinstall_cmds='chmod +x $lib'
12385 ;;
12386
12387 sunos4*)
12388 version_type=sunos
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=yes
12393 if test yes = "$with_gnu_ld"; then
12394 need_lib_prefix=no
12395 fi
12396 need_version=yes
12397 ;;
12398
12399 sysv4 | sysv4.3*)
12400 version_type=linux # correct to gnu/linux during the next big refactor
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 soname_spec='$libname$release$shared_ext$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 case $host_vendor in
12405 sni)
12406 shlibpath_overrides_runpath=no
12407 need_lib_prefix=no
12408 runpath_var=LD_RUN_PATH
12409 ;;
12410 siemens)
12411 need_lib_prefix=no
12412 ;;
12413 motorola)
12414 need_lib_prefix=no
12415 need_version=no
12416 shlibpath_overrides_runpath=no
12417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12418 ;;
12419 esac
12420 ;;
12421
12422 sysv4*MP*)
12423 if test -d /usr/nec; then
12424 version_type=linux # correct to gnu/linux during the next big refactor
12425 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12426 soname_spec='$libname$shared_ext.$major'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 fi
12429 ;;
12430
12431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12432 version_type=sco
12433 need_lib_prefix=no
12434 need_version=no
12435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12436 soname_spec='$libname$release$shared_ext$major'
12437 shlibpath_var=LD_LIBRARY_PATH
12438 shlibpath_overrides_runpath=yes
12439 hardcode_into_libs=yes
12440 if test yes = "$with_gnu_ld"; then
12441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12442 else
12443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12444 case $host_os in
12445 sco3.2v5*)
12446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12447 ;;
12448 esac
12449 fi
12450 sys_lib_dlsearch_path_spec='/usr/lib'
12451 ;;
12452
12453 tpf*)
12454 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12455 version_type=linux # correct to gnu/linux during the next big refactor
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=no
12461 hardcode_into_libs=yes
12462 ;;
12463
12464 uts4*)
12465 version_type=linux # correct to gnu/linux during the next big refactor
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 shlibpath_var=LD_LIBRARY_PATH
12469 ;;
12470
12471 emscripten*)
12472 version_type=none
12473 need_lib_prefix=no
12474 need_version=no
12475 library_names_spec='$libname$release$shared_ext'
12476 soname_spec='$libname$release$shared_ext'
12477 finish_cmds=
12478 dynamic_linker="Emscripten linker"
12479 lt_prog_compiler_wl=
12480 lt_prog_compiler_pic=
12481 lt_prog_compiler_static=
12482
12483
12484 if test yes = "$GCC"; then
12485 lt_prog_compiler_wl='-Wl,'
12486 lt_prog_compiler_static='-static'
12487
12488 case $host_os in
12489 aix*)
12490 # All AIX code is PIC.
12491 if test ia64 = "$host_cpu"; then
12492 # AIX 5 now supports IA64 processor
12493 lt_prog_compiler_static='-Bstatic'
12494 fi
12495 lt_prog_compiler_pic='-fPIC'
12496 ;;
12497
12498 amigaos*)
12499 case $host_cpu in
12500 powerpc)
12501 # see comment about AmigaOS4 .so support
12502 lt_prog_compiler_pic='-fPIC'
12503 ;;
12504 m68k)
12505 # FIXME: we need at least 68020 code to build shared libraries, but
12506 # adding the '-m68020' flag to GCC prevents building anything better,
12507 # like '-m68040'.
12508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12509 ;;
12510 esac
12511 ;;
12512
12513 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12514 # PIC is the default for these OSes.
12515 ;;
12516
12517 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12518 # This hack is so that the source file can tell whether it is being
12519 # built for inclusion in a dll (and should export symbols for example).
12520 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12521 # (--disable-auto-import) libraries
12522 lt_prog_compiler_pic='-DDLL_EXPORT'
12523 case $host_os in
12524 os2*)
12525 lt_prog_compiler_static='$wl-static'
12526 ;;
12527 esac
12528 ;;
12529
12530 darwin* | rhapsody*)
12531 # PIC is the default on this platform
12532 # Common symbols not allowed in MH_DYLIB files
12533 lt_prog_compiler_pic='-fno-common'
12534 ;;
12535
12536 haiku*)
12537 # PIC is the default for Haiku.
12538 # The "-static" flag exists, but is broken.
12539 lt_prog_compiler_static=
12540 ;;
12541
12542 hpux*)
12543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12545 # sets the default TLS model and affects inlining.
12546 case $host_cpu in
12547 hppa*64*)
12548 # +Z the default
12549 ;;
12550 *)
12551 lt_prog_compiler_pic='-fPIC'
12552 ;;
12553 esac
12554 ;;
12555
12556 interix[3-9]*)
12557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12558 # Instead, we relocate shared libraries at runtime.
12559 ;;
12560
12561 msdosdjgpp*)
12562 # Just because we use GCC doesn't mean we suddenly get shared libraries
12563 # on systems that don't support them.
12564 lt_prog_compiler_can_build_shared=no
12565 enable_shared=no
12566 ;;
12567
12568 *nto* | *qnx*)
12569 # QNX uses GNU C++, but need to define -shared option too, otherwise
12570 # it will coredump.
12571 lt_prog_compiler_pic='-fPIC -shared'
12572 ;;
12573
12574 sysv4*MP*)
12575 if test -d /usr/nec; then
12576 lt_prog_compiler_pic=-Kconform_pic
12577 fi
12578 ;;
12579
12580 *)
12581 lt_prog_compiler_pic='-fPIC'
12582 ;;
12583 esac
12584
12585 case $cc_basename in
12586 nvcc*) # Cuda Compiler Driver 2.2
12587 lt_prog_compiler_wl='-Xlinker '
12588 if test -n "$lt_prog_compiler_pic"; then
12589 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12590 fi
12591 ;;
12592 esac
12593 else
12594 # PORTME Check for flag to pass linker flags through the system compiler.
12595 case $host_os in
12596 aix*)
12597 lt_prog_compiler_wl='-Wl,'
12598 if test ia64 = "$host_cpu"; then
12599 # AIX 5 now supports IA64 processor
12600 lt_prog_compiler_static='-Bstatic'
12601 else
12602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12603 fi
12604 ;;
12605
12606 darwin* | rhapsody*)
12607 # PIC is the default on this platform
12608 # Common symbols not allowed in MH_DYLIB files
12609 lt_prog_compiler_pic='-fno-common'
12610 case $cc_basename in
12611 nagfor*)
12612 # NAG Fortran compiler
12613 lt_prog_compiler_wl='-Wl,-Wl,,'
12614 lt_prog_compiler_pic='-PIC'
12615 lt_prog_compiler_static='-Bstatic'
12616 ;;
12617 esac
12618 ;;
12619
12620 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12621 # This hack is so that the source file can tell whether it is being
12622 # built for inclusion in a dll (and should export symbols for example).
12623 lt_prog_compiler_pic='-DDLL_EXPORT'
12624 case $host_os in
12625 os2*)
12626 lt_prog_compiler_static='$wl-static'
12627 ;;
12628 esac
12629 ;;
12630
12631 hpux9* | hpux10* | hpux11*)
12632 lt_prog_compiler_wl='-Wl,'
12633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12634 # not for PA HP-UX.
12635 case $host_cpu in
12636 hppa*64*|ia64*)
12637 # +Z the default
12638 ;;
12639 *)
12640 lt_prog_compiler_pic='+Z'
12641 ;;
12642 esac
12643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12644 lt_prog_compiler_static='$wl-a ${wl}archive'
12645 ;;
12646
12647 irix5* | irix6* | nonstopux*)
12648 lt_prog_compiler_wl='-Wl,'
12649 # PIC (with -KPIC) is the default.
12650 lt_prog_compiler_static='-non_shared'
12651 ;;
12652
12653 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12654 case $cc_basename in
12655 # old Intel for x86_64, which still supported -KPIC.
12656 ecc*)
12657 lt_prog_compiler_wl='-Wl,'
12658 lt_prog_compiler_pic='-KPIC'
12659 lt_prog_compiler_static='-static'
12660 ;;
12661 *flang* | ftn | f18* | f95*)
12662 # Flang compiler.
12663 lt_prog_compiler_wl='-Wl,'
12664 lt_prog_compiler_pic='-fPIC'
12665 lt_prog_compiler_static='-static'
12666 ;;
12667 # flang / f18. f95 an alias for gfortran or flang on Debian
12668 flang* | f18* | f95*)
12669 lt_prog_compiler_wl='-Wl,'
12670 lt_prog_compiler_pic='-fPIC'
12671 lt_prog_compiler_static='-static'
12672 ;;
12673 # icc used to be incompatible with GCC.
12674 # ICC 10 doesn't accept -KPIC any more.
12675 icc* | ifort*)
12676 lt_prog_compiler_wl='-Wl,'
12677 lt_prog_compiler_pic='-fPIC'
12678 lt_prog_compiler_static='-static'
12679 ;;
12680 # Lahey Fortran 8.1.
12681 lf95*)
12682 lt_prog_compiler_wl='-Wl,'
12683 lt_prog_compiler_pic='--shared'
12684 lt_prog_compiler_static='--static'
12685 ;;
12686 nagfor*)
12687 # NAG Fortran compiler
12688 lt_prog_compiler_wl='-Wl,-Wl,,'
12689 lt_prog_compiler_pic='-PIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 ;;
12692 tcc*)
12693 # Fabrice Bellard et al's Tiny C Compiler
12694 lt_prog_compiler_wl='-Wl,'
12695 lt_prog_compiler_pic='-fPIC'
12696 lt_prog_compiler_static='-static'
12697 ;;
12698 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12699 # Portland Group compilers (*not* the Pentium gcc compiler,
12700 # which looks to be a dead project)
12701 lt_prog_compiler_wl='-Wl,'
12702 lt_prog_compiler_pic='-fpic'
12703 lt_prog_compiler_static='-Bstatic'
12704 ;;
12705 ccc*)
12706 lt_prog_compiler_wl='-Wl,'
12707 # All Alpha code is PIC.
12708 lt_prog_compiler_static='-non_shared'
12709 ;;
12710 xl* | bgxl* | bgf* | mpixl*)
12711 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12712 lt_prog_compiler_wl='-Wl,'
12713 lt_prog_compiler_pic='-qpic'
12714 lt_prog_compiler_static='-qstaticlink'
12715 ;;
12716 *)
12717 case `$CC -V 2>&1 | $SED 5q` in
12718 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12720 lt_prog_compiler_pic='-KPIC'
12721 lt_prog_compiler_static='-Bstatic'
12722 lt_prog_compiler_wl=''
12723 ;;
12724 *Sun\ F* | *Sun*Fortran*)
12725 lt_prog_compiler_pic='-KPIC'
12726 lt_prog_compiler_static='-Bstatic'
12727 lt_prog_compiler_wl='-Qoption ld '
12728 ;;
12729 *Sun\ C*)
12730 # Sun C 5.9
12731 lt_prog_compiler_pic='-KPIC'
12732 lt_prog_compiler_static='-Bstatic'
12733 lt_prog_compiler_wl='-Wl,'
12734 ;;
12735 *Intel*\ [CF]*Compiler*)
12736 lt_prog_compiler_wl='-Wl,'
12737 lt_prog_compiler_pic='-fPIC'
12738 lt_prog_compiler_static='-static'
12739 ;;
12740 *Portland\ Group*)
12741 lt_prog_compiler_wl='-Wl,'
12742 lt_prog_compiler_pic='-fpic'
12743 lt_prog_compiler_static='-Bstatic'
12744 ;;
12745 esac
12746 ;;
12747 esac
12748 ;;
12749
12750 newsos6)
12751 lt_prog_compiler_pic='-KPIC'
12752 lt_prog_compiler_static='-Bstatic'
12753 ;;
12754
12755 *-mlibc)
12756 lt_prog_compiler_wl='-Wl,'
12757 lt_prog_compiler_pic='-fPIC'
12758 lt_prog_compiler_static='-static'
12759 ;;
12760
12761 *nto* | *qnx*)
12762 # QNX uses GNU C++, but need to define -shared option too, otherwise
12763 # it will coredump.
12764 lt_prog_compiler_pic='-fPIC -shared'
12765 ;;
12766
12767 osf3* | osf4* | osf5*)
12768 lt_prog_compiler_wl='-Wl,'
12769 # All OSF/1 code is PIC.
12770 lt_prog_compiler_static='-non_shared'
12771 ;;
12772
12773 rdos*)
12774 lt_prog_compiler_static='-non_shared'
12775 ;;
12776
12777 serenity*)
12778 ;;
12779
12780 solaris*)
12781 lt_prog_compiler_pic='-KPIC'
12782 lt_prog_compiler_static='-Bstatic'
12783 case $cc_basename in
12784 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12785 lt_prog_compiler_wl='-Qoption ld ';;
12786 *)
12787 lt_prog_compiler_wl='-Wl,';;
12788 esac
12789 ;;
12790
12791 sunos4*)
12792 lt_prog_compiler_wl='-Qoption ld '
12793 lt_prog_compiler_pic='-PIC'
12794 lt_prog_compiler_static='-Bstatic'
12795 ;;
12796
12797 sysv4 | sysv4.2uw2* | sysv4.3*)
12798 lt_prog_compiler_wl='-Wl,'
12799 lt_prog_compiler_pic='-KPIC'
12800 lt_prog_compiler_static='-Bstatic'
12801 ;;
12802
12803 sysv4*MP*)
12804 if test -d /usr/nec; then
12805 lt_prog_compiler_pic='-Kconform_pic'
12806 lt_prog_compiler_static='-Bstatic'
12807 fi
12808 ;;
12809
12810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12811 lt_prog_compiler_wl='-Wl,'
12812 lt_prog_compiler_pic='-KPIC'
12813 lt_prog_compiler_static='-Bstatic'
12814 ;;
12815
12816 unicos*)
12817 lt_prog_compiler_wl='-Wl,'
12818 lt_prog_compiler_can_build_shared=no
12819 ;;
12820
12821 uts4*)
12822 lt_prog_compiler_pic='-pic'
12823 lt_prog_compiler_static='-Bstatic'
12824 ;;
12825
12826 *)
12827 lt_prog_compiler_can_build_shared=no
12828 ;;
12829 esac
12830 fi
12831
12832 case $host_os in
12833 # For platforms that do not support PIC, -DPIC is meaningless:
12834 *djgpp*)
12835 lt_prog_compiler_pic=
12836 ;;
12837 *)
12838 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12839 ;;
12840 esac
12841
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12843 printf %s "checking for $compiler option to produce PIC... " >&6; }
12844 if test ${lt_cv_prog_compiler_pic+y}
12845 then :
12846 printf %s "(cached) " >&6
12847 else case e in #(
12848 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12849 esac
12850 fi
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12852 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12853 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12854
12855 #
12856 # Check to make sure the PIC flag actually works.
12857 #
12858 if test -n "$lt_prog_compiler_pic"; then
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12860 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12861 if test ${lt_cv_prog_compiler_pic_works+y}
12862 then :
12863 printf %s "(cached) " >&6
12864 else case e in #(
12865 e) lt_cv_prog_compiler_pic_works=no
12866 ac_outfile=conftest.$ac_objext
12867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12868 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12869 # Insert the option either (1) after the last *FLAGS variable, or
12870 # (2) before a word containing "conftest.", or (3) at the end.
12871 # Note that $ac_compile itself does not contain backslashes and begins
12872 # with a dollar sign (not a hyphen), so the echo should work correctly.
12873 # The option is referenced via a variable to avoid confusing sed.
12874 lt_compile=`echo "$ac_compile" | $SED \
12875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12877 -e 's:$: $lt_compiler_flag:'`
12878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12879 (eval "$lt_compile" 2>conftest.err)
12880 ac_status=$?
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 if (exit $ac_status) && test -s "$ac_outfile"; then
12884 # The compiler can only warn and ignore the option if not recognized
12885 # So say no if there are warnings other than the usual output.
12886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12889 lt_cv_prog_compiler_pic_works=yes
12890 fi
12891 fi
12892 $RM conftest*
12893 ;;
12894 esac
12895 fi
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12897 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12898
12899 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12900 case $lt_prog_compiler_pic in
12901 "" | " "*) ;;
12902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12903 esac
12904 else
12905 lt_prog_compiler_pic=
12906 lt_prog_compiler_can_build_shared=no
12907 fi
12908
12909 fi
12910
12911
12912
12913
12914
12915 #
12916 # Check to make sure the static flag actually works.
12917 #
12918 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12920 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12921 if test ${lt_cv_prog_compiler_static_works+y}
12922 then :
12923 printf %s "(cached) " >&6
12924 else case e in #(
12925 e) lt_cv_prog_compiler_static_works=no
12926 save_LDFLAGS=$LDFLAGS
12927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12930 # The linker can only warn and ignore the option if not recognized
12931 # So say no if there are warnings
12932 if test -s conftest.err; then
12933 # Append any errors to the config.log.
12934 cat conftest.err 1>&5
12935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12937 if diff conftest.exp conftest.er2 >/dev/null; then
12938 lt_cv_prog_compiler_static_works=yes
12939 fi
12940 else
12941 lt_cv_prog_compiler_static_works=yes
12942 fi
12943 fi
12944 $RM -r conftest*
12945 LDFLAGS=$save_LDFLAGS
12946 ;;
12947 esac
12948 fi
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12950 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12951
12952 if test yes = "$lt_cv_prog_compiler_static_works"; then
12953 :
12954 else
12955 lt_prog_compiler_static=
12956 fi
12957
12958
12959
12960 ='-fPIC'
12961 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12962 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'
12963 archive_cmds_need_lc=no
12964 no_undefined_flag=
12965 ;;
12966
12967 *)
12968 dynamic_linker=no
12969 ;;
12970 esac
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12972 printf "%s\n" "$dynamic_linker" >&6; }
12973 test no = "$dynamic_linker" && can_build_shared=no
12974
12975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12976 if test yes = "$GCC"; then
12977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12978 fi
12979
12980 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12981 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12982 fi
12983
12984 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12985 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12986 fi
12987
12988 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12989 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12990
12991 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12992 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12993
12994 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12995 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13094 printf %s "checking how to hardcode library paths into programs... " >&6; }
13095 hardcode_action=
13096 if test -n "$hardcode_libdir_flag_spec" ||
13097 test -n "$runpath_var" ||
13098 test yes = "$hardcode_automatic"; then
13099
13100 # We can hardcode non-existent directories.
13101 if test no != "$hardcode_direct" &&
13102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13103 # have to relink, otherwise we might link with an installed library
13104 # when we should be linking with a yet-to-be-installed one
13105 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13106 test no != "$hardcode_minus_L"; then
13107 # Linking always hardcodes the temporary library directory.
13108 hardcode_action=relink
13109 else
13110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13111 hardcode_action=immediate
13112 fi
13113 else
13114 # We cannot hardcode anything, or else we can only hardcode existing
13115 # directories.
13116 hardcode_action=unsupported
13117 fi
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13119 printf "%s\n" "$hardcode_action" >&6; }
13120
13121 if test relink = "$hardcode_action" ||
13122 test yes = "$inherit_rpath"; then
13123 # Fast installation is not supported
13124 enable_fast_install=no
13125 elif test yes = "$shlibpath_overrides_runpath" ||
13126 test no = "$enable_shared"; then
13127 # Fast installation is not necessary
13128 enable_fast_install=needless
13129 fi
13130
13131
13132
13133
13134
13135
13136 if test yes != "$enable_dlopen"; then
13137 enable_dlopen=unknown
13138 enable_dlopen_self=unknown
13139 enable_dlopen_self_static=unknown
13140 else
13141 lt_cv_dlopen=no
13142 lt_cv_dlopen_libs=
13143
13144 case $host_os in
13145 beos*)
13146 lt_cv_dlopen=load_add_on
13147 lt_cv_dlopen_libs=
13148 lt_cv_dlopen_self=yes
13149 ;;
13150
13151 mingw* | windows* | pw32* | cegcc*)
13152 lt_cv_dlopen=LoadLibrary
13153 lt_cv_dlopen_libs=
13154 ;;
13155
13156 cygwin*)
13157 lt_cv_dlopen=dlopen
13158 lt_cv_dlopen_libs=
13159 ;;
13160
13161 darwin*)
13162 # if libdl is installed we need to link against it
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13164 printf %s "checking for dlopen in -ldl... " >&6; }
13165 if test ${ac_cv_lib_dl_dlopen+y}
13166 then :
13167 printf %s "(cached) " >&6
13168 else case e in #(
13169 e) ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-ldl $LIBS"
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply.
13177 The 'extern "C"' is for builds by C++ compilers;
13178 although this is not generally supported in C code supporting it here
13179 has little cost and some practical benefit (sr 110532). */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char dlopen (void);
13184 int
13185 main (void)
13186 {
13187 return dlopen ();
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"
13193 then :
13194 ac_cv_lib_dl_dlopen=yes
13195 else case e in #(
13196 e) ac_cv_lib_dl_dlopen=no ;;
13197 esac
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS ;;
13202 esac
13203 fi
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13205 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13206 if test "x$ac_cv_lib_dl_dlopen" = xyes
13207 then :
13208 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13209 else case e in #(
13210 e)
13211 lt_cv_dlopen=dyld
13212 lt_cv_dlopen_libs=
13213 lt_cv_dlopen_self=yes
13214 ;;
13215 esac
13216 fi
13217
13218 ;;
13219
13220 tpf*)
13221 # Don't try to run any link tests for TPF. We know it's impossible
13222 # because TPF is a cross-compiler, and we know how we open DSOs.
13223 lt_cv_dlopen=dlopen
13224 lt_cv_dlopen_libs=
13225 lt_cv_dlopen_self=no
13226 ;;
13227
13228 *)
13229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13230 if test "x$ac_cv_func_shl_load" = xyes
13231 then :
13232 lt_cv_dlopen=shl_load
13233 else case e in #(
13234 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13235 printf %s "checking for shl_load in -ldld... " >&6; }
13236 if test ${ac_cv_lib_dld_shl_load+y}
13237 then :
13238 printf %s "(cached) " >&6
13239 else case e in #(
13240 e) ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-ldld $LIBS"
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply.
13248 The 'extern "C"' is for builds by C++ compilers;
13249 although this is not generally supported in C code supporting it here
13250 has little cost and some practical benefit (sr 110532). */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 char shl_load (void);
13255 int
13256 main (void)
13257 {
13258 return shl_load ();
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"
13264 then :
13265 ac_cv_lib_dld_shl_load=yes
13266 else case e in #(
13267 e) ac_cv_lib_dld_shl_load=no ;;
13268 esac
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS ;;
13273 esac
13274 fi
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13276 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13277 if test "x$ac_cv_lib_dld_shl_load" = xyes
13278 then :
13279 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13280 else case e in #(
13281 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13282 if test "x$ac_cv_func_dlopen" = xyes
13283 then :
13284 lt_cv_dlopen=dlopen
13285 else case e in #(
13286 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13287 printf %s "checking for dlopen in -ldl... " >&6; }
13288 if test ${ac_cv_lib_dl_dlopen+y}
13289 then :
13290 printf %s "(cached) " >&6
13291 else case e in #(
13292 e) ac_check_lib_save_LIBS=$LIBS
13293 LIBS="-ldl $LIBS"
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply.
13300 The 'extern "C"' is for builds by C++ compilers;
13301 although this is not generally supported in C code supporting it here
13302 has little cost and some practical benefit (sr 110532). */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char dlopen (void);
13307 int
13308 main (void)
13309 {
13310 return dlopen ();
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"
13316 then :
13317 ac_cv_lib_dl_dlopen=yes
13318 else case e in #(
13319 e) ac_cv_lib_dl_dlopen=no ;;
13320 esac
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS ;;
13325 esac
13326 fi
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13328 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13329 if test "x$ac_cv_lib_dl_dlopen" = xyes
13330 then :
13331 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13332 else case e in #(
13333 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13334 printf %s "checking for dlopen in -lsvld... " >&6; }
13335 if test ${ac_cv_lib_svld_dlopen+y}
13336 then :
13337 printf %s "(cached) " >&6
13338 else case e in #(
13339 e) ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lsvld $LIBS"
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply.
13347 The 'extern "C"' is for builds by C++ compilers;
13348 although this is not generally supported in C code supporting it here
13349 has little cost and some practical benefit (sr 110532). */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 char dlopen (void);
13354 int
13355 main (void)
13356 {
13357 return dlopen ();
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_link "$LINENO"
13363 then :
13364 ac_cv_lib_svld_dlopen=yes
13365 else case e in #(
13366 e) ac_cv_lib_svld_dlopen=no ;;
13367 esac
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13370 conftest$ac_exeext conftest.$ac_ext
13371 LIBS=$ac_check_lib_save_LIBS ;;
13372 esac
13373 fi
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13375 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13376 if test "x$ac_cv_lib_svld_dlopen" = xyes
13377 then :
13378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13379 else case e in #(
13380 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13381 printf %s "checking for dld_link in -ldld... " >&6; }
13382 if test ${ac_cv_lib_dld_dld_link+y}
13383 then :
13384 printf %s "(cached) " >&6
13385 else case e in #(
13386 e) ac_check_lib_save_LIBS=$LIBS
13387 LIBS="-ldld $LIBS"
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply.
13394 The 'extern "C"' is for builds by C++ compilers;
13395 although this is not generally supported in C code supporting it here
13396 has little cost and some practical benefit (sr 110532). */
13397 #ifdef __cplusplus
13398 extern "C"
13399 #endif
13400 char dld_link (void);
13401 int
13402 main (void)
13403 {
13404 return dld_link ();
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 if ac_fn_c_try_link "$LINENO"
13410 then :
13411 ac_cv_lib_dld_dld_link=yes
13412 else case e in #(
13413 e) ac_cv_lib_dld_dld_link=no ;;
13414 esac
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS ;;
13419 esac
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13422 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13423 if test "x$ac_cv_lib_dld_dld_link" = xyes
13424 then :
13425 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13426 fi
13427
13428 ;;
13429 esac
13430 fi
13431
13432 ;;
13433 esac
13434 fi
13435
13436 ;;
13437 esac
13438 fi
13439
13440 ;;
13441 esac
13442 fi
13443
13444 ;;
13445 esac
13446 fi
13447
13448 ;;
13449 esac
13450
13451 if test no = "$lt_cv_dlopen"; then
13452 enable_dlopen=no
13453 else
13454 enable_dlopen=yes
13455 fi
13456
13457 case $lt_cv_dlopen in
13458 dlopen)
13459 save_CPPFLAGS=$CPPFLAGS
13460 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13461
13462 save_LDFLAGS=$LDFLAGS
13463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13464
13465 save_LIBS=$LIBS
13466 LIBS="$lt_cv_dlopen_libs $LIBS"
13467
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13469 printf %s "checking whether a program can dlopen itself... " >&6; }
13470 if test ${lt_cv_dlopen_self+y}
13471 then :
13472 printf %s "(cached) " >&6
13473 else case e in #(
13474 e) if test yes = "$cross_compiling"; then :
13475 lt_cv_dlopen_self=cross
13476 else
13477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13478 lt_status=$lt_dlunknown
13479 cat > conftest.$ac_ext <<_LT_EOF
13480 #line $LINENO "configure"
13481 #include "confdefs.h"
13482
13483 #if HAVE_DLFCN_H
13484 #include <dlfcn.h>
13485 #endif
13486
13487 #include <stdio.h>
13488
13489 #ifdef RTLD_GLOBAL
13490 # define LT_DLGLOBAL RTLD_GLOBAL
13491 #else
13492 # ifdef DL_GLOBAL
13493 # define LT_DLGLOBAL DL_GLOBAL
13494 # else
13495 # define LT_DLGLOBAL 0
13496 # endif
13497 #endif
13498
13499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13500 find out it does not work in some platform. */
13501 #ifndef LT_DLLAZY_OR_NOW
13502 # ifdef RTLD_LAZY
13503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13504 # else
13505 # ifdef DL_LAZY
13506 # define LT_DLLAZY_OR_NOW DL_LAZY
13507 # else
13508 # ifdef RTLD_NOW
13509 # define LT_DLLAZY_OR_NOW RTLD_NOW
13510 # else
13511 # ifdef DL_NOW
13512 # define LT_DLLAZY_OR_NOW DL_NOW
13513 # else
13514 # define LT_DLLAZY_OR_NOW 0
13515 # endif
13516 # endif
13517 # endif
13518 # endif
13519 #endif
13520
13521 /* When -fvisibility=hidden is used, assume the code has been annotated
13522 correspondingly for the symbols needed. */
13523 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13524 int fnord (void) __attribute__((visibility("default")));
13525 #endif
13526
13527 int fnord (void) { return 42; }
13528 int main (void)
13529 {
13530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13531 int status = $lt_dlunknown;
13532
13533 if (self)
13534 {
13535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13536 else
13537 {
13538 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13539 else puts (dlerror ());
13540 }
13541 /* dlclose (self); */
13542 }
13543 else
13544 puts (dlerror ());
13545
13546 return status;
13547 }
13548 _LT_EOF
13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13550 (eval $ac_link) 2>&5
13551 ac_status=$?
13552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13554 (./conftest; exit; ) >&5 2>/dev/null
13555 lt_status=$?
13556 case x$lt_status in
13557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13560 esac
13561 else :
13562 # compilation failed
13563 lt_cv_dlopen_self=no
13564 fi
13565 fi
13566 rm -fr conftest*
13567
13568 ;;
13569 esac
13570 fi
13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13572 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13573
13574 if test yes = "$lt_cv_dlopen_self"; then
13575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13577 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13578 if test ${lt_cv_dlopen_self_static+y}
13579 then :
13580 printf %s "(cached) " >&6
13581 else case e in #(
13582 e) if test yes = "$cross_compiling"; then :
13583 lt_cv_dlopen_self_static=cross
13584 else
13585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13586 lt_status=$lt_dlunknown
13587 cat > conftest.$ac_ext <<_LT_EOF
13588 #line $LINENO "configure"
13589 #include "confdefs.h"
13590
13591 #if HAVE_DLFCN_H
13592 #include <dlfcn.h>
13593 #endif
13594
13595 #include <stdio.h>
13596
13597 #ifdef RTLD_GLOBAL
13598 # define LT_DLGLOBAL RTLD_GLOBAL
13599 #else
13600 # ifdef DL_GLOBAL
13601 # define LT_DLGLOBAL DL_GLOBAL
13602 # else
13603 # define LT_DLGLOBAL 0
13604 # endif
13605 #endif
13606
13607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13608 find out it does not work in some platform. */
13609 #ifndef LT_DLLAZY_OR_NOW
13610 # ifdef RTLD_LAZY
13611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13612 # else
13613 # ifdef DL_LAZY
13614 # define LT_DLLAZY_OR_NOW DL_LAZY
13615 # else
13616 # ifdef RTLD_NOW
13617 # define LT_DLLAZY_OR_NOW RTLD_NOW
13618 # else
13619 # ifdef DL_NOW
13620 # define LT_DLLAZY_OR_NOW DL_NOW
13621 # else
13622 # define LT_DLLAZY_OR_NOW 0
13623 # endif
13624 # endif
13625 # endif
13626 # endif
13627 #endif
13628
13629 /* When -fvisibility=hidden is used, assume the code has been annotated
13630 correspondingly for the symbols needed. */
13631 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13632 int fnord (void) __attribute__((visibility("default")));
13633 #endif
13634
13635 int fnord (void) { return 42; }
13636 int main (void)
13637 {
13638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13639 int status = $lt_dlunknown;
13640
13641 if (self)
13642 {
13643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13644 else
13645 {
13646 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13647 else puts (dlerror ());
13648 }
13649 /* dlclose (self); */
13650 }
13651 else
13652 puts (dlerror ());
13653
13654 return status;
13655 }
13656 _LT_EOF
13657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13658 (eval $ac_link) 2>&5
13659 ac_status=$?
13660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13661 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13662 (./conftest; exit; ) >&5 2>/dev/null
13663 lt_status=$?
13664 case x$lt_status in
13665 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13666 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13667 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13668 esac
13669 else :
13670 # compilation failed
13671 lt_cv_dlopen_self_static=no
13672 fi
13673 fi
13674 rm -fr conftest*
13675
13676 ;;
13677 esac
13678 fi
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13680 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13681 fi
13682
13683 CPPFLAGS=$save_CPPFLAGS
13684 LDFLAGS=$save_LDFLAGS
13685 LIBS=$save_LIBS
13686 ;;
13687 esac
13688
13689 case $lt_cv_dlopen_self in
13690 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13691 *) enable_dlopen_self=unknown ;;
13692 esac
13693
13694 case $lt_cv_dlopen_self_static in
13695 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13696 *) enable_dlopen_self_static=unknown ;;
13697 esac
13698 fi
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716 striplib=
13717 old_striplib=
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13719 printf %s "checking whether stripping libraries is possible... " >&6; }
13720 if test -z "$STRIP"; then
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 printf "%s\n" "no" >&6; }
13723 else
13724 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13725 old_striplib="$STRIP --strip-debug"
13726 striplib="$STRIP --strip-unneeded"
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 printf "%s\n" "yes" >&6; }
13729 else
13730 case $host_os in
13731 darwin*)
13732 # FIXME - insert some real tests, host_os isn't really good enough
13733 striplib="$STRIP -x"
13734 old_striplib="$STRIP -S"
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 printf "%s\n" "yes" >&6; }
13737 ;;
13738 freebsd*)
13739 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13740 old_striplib="$STRIP --strip-debug"
13741 striplib="$STRIP --strip-unneeded"
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13743 printf "%s\n" "yes" >&6; }
13744 else
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 printf "%s\n" "no" >&6; }
13747 fi
13748 ;;
13749 *)
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 printf "%s\n" "no" >&6; }
13752 ;;
13753 esac
13754 fi
13755 fi
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768 # Report what library types will actually be built
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13770 printf %s "checking if libtool supports shared libraries... " >&6; }
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13772 printf "%s\n" "$can_build_shared" >&6; }
13773
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13775 printf %s "checking whether to build shared libraries... " >&6; }
13776 test no = "$can_build_shared" && enable_shared=no
13777
13778 # On AIX, shared libraries and static libraries use the same namespace, and
13779 # are all built from PIC.
13780 case $host_os in
13781 aix3*)
13782 test yes = "$enable_shared" && enable_static=no
13783 if test -n "$RANLIB"; then
13784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13785 postinstall_cmds='$RANLIB $lib'
13786 fi
13787 ;;
13788
13789 aix[4-9]*)
13790 if test ia64 != "$host_cpu"; then
13791 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13792 yes,aix,yes) ;; # shared object as lib.so file only
13793 yes,svr4,*) ;; # shared object as lib.so archive member only
13794 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13795 esac
13796 fi
13797 ;;
13798 esac
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13800 printf "%s\n" "$enable_shared" >&6; }
13801
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13803 printf %s "checking whether to build static libraries... " >&6; }
13804 # Make sure either enable_shared or enable_static is yes.
13805 test yes = "$enable_shared" || enable_static=yes
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13807 printf "%s\n" "$enable_static" >&6; }
13808
13809
13810
13811
13812 fi
13813 ac_ext=c
13814 ac_cpp='$CPP $CPPFLAGS'
13815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13818
13819 CC=$lt_save_CC
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835 ac_config_commands="$ac_config_commands libtool"
13836
13837
13838
13839
13840 # Only expand once:
13841
13842
13843
13844 # Whether linker support --version-script option
13845 echo '{global:hello; local:*;};' > conftest.ver
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linker supports -version-script" >&5
13847 printf %s "checking whether linker supports -version-script... " >&6; }
13848 if test ${datrie_cv_have_version_script+y}
13849 then :
13850 printf %s "(cached) " >&6
13851 else case e in #(
13852 e) datrie_cv_have_version_script=no
13853 save_LDFLAGS=$LDFLAGS
13854 LDFLAGS="$LDFLAGS -Wl,-version-script -Wl,conftest.ver"
13855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13857 # The linker can only warn and ignore the option if not recognized
13858 # So say no if there are warnings
13859 if test -s conftest.err; then
13860 # Append any errors to the config.log.
13861 cat conftest.err 1>&5
13862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13864 if diff conftest.exp conftest.er2 >/dev/null; then
13865 datrie_cv_have_version_script=yes
13866 fi
13867 else
13868 datrie_cv_have_version_script=yes
13869 fi
13870 fi
13871 $RM -r conftest*
13872 LDFLAGS=$save_LDFLAGS
13873 ;;
13874 esac
13875 fi
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_have_version_script" >&5
13877 printf "%s\n" "$datrie_cv_have_version_script" >&6; }
13878
13879 if test yes = "$datrie_cv_have_version_script"; then
13880 :
13881 else
13882 :
13883 fi
13884
13885
13886 if test "$datrie_cv_have_version_script" = "yes"; then
13887 LD_HAS_VERSION_SCRIPT_TRUE=
13888 LD_HAS_VERSION_SCRIPT_FALSE='#'
13889 else
13890 LD_HAS_VERSION_SCRIPT_TRUE='#'
13891 LD_HAS_VERSION_SCRIPT_FALSE=
13892 fi
13893
13894
13895 # Checks for libraries.
13896
13897 #
13898 # Checks for iconv
13899 #
13900 found_iconv=no
13901 # Check in the C library first
13902 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
13903 if test "x$ac_cv_func_iconv_open" = xyes
13904 then :
13905 with_libiconv=no; found_iconv=yes
13906 fi
13907
13908 # Check if we have GNU libiconv
13909 if test $found_iconv = "no"; then
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
13911 printf %s "checking for libiconv_open in -liconv... " >&6; }
13912 if test ${ac_cv_lib_iconv_libiconv_open+y}
13913 then :
13914 printf %s "(cached) " >&6
13915 else case e in #(
13916 e) ac_check_lib_save_LIBS=$LIBS
13917 LIBS="-liconv $LIBS"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply.
13924 The 'extern "C"' is for builds by C++ compilers;
13925 although this is not generally supported in C code supporting it here
13926 has little cost and some practical benefit (sr 110532). */
13927 #ifdef __cplusplus
13928 extern "C"
13929 #endif
13930 char libiconv_open (void);
13931 int
13932 main (void)
13933 {
13934 return libiconv_open ();
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"
13940 then :
13941 ac_cv_lib_iconv_libiconv_open=yes
13942 else case e in #(
13943 e) ac_cv_lib_iconv_libiconv_open=no ;;
13944 esac
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13947 conftest$ac_exeext conftest.$ac_ext
13948 LIBS=$ac_check_lib_save_LIBS ;;
13949 esac
13950 fi
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
13952 printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; }
13953 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes
13954 then :
13955 with_libiconv=gnu; found_iconv=yes
13956 fi
13957
13958 fi
13959 # Check if we have a iconv in -liconv, possibly from vendor
13960 if test $found_iconv = "no"; then
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
13962 printf %s "checking for iconv_open in -liconv... " >&6; }
13963 if test ${ac_cv_lib_iconv_iconv_open+y}
13964 then :
13965 printf %s "(cached) " >&6
13966 else case e in #(
13967 e) ac_check_lib_save_LIBS=$LIBS
13968 LIBS="-liconv $LIBS"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply.
13975 The 'extern "C"' is for builds by C++ compilers;
13976 although this is not generally supported in C code supporting it here
13977 has little cost and some practical benefit (sr 110532). */
13978 #ifdef __cplusplus
13979 extern "C"
13980 #endif
13981 char iconv_open (void);
13982 int
13983 main (void)
13984 {
13985 return iconv_open ();
13986 ;
13987 return 0;
13988 }
13989 _ACEOF
13990 if ac_fn_c_try_link "$LINENO"
13991 then :
13992 ac_cv_lib_iconv_iconv_open=yes
13993 else case e in #(
13994 e) ac_cv_lib_iconv_iconv_open=no ;;
13995 esac
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13998 conftest$ac_exeext conftest.$ac_ext
13999 LIBS=$ac_check_lib_save_LIBS ;;
14000 esac
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
14003 printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
14004 if test "x$ac_cv_lib_iconv_iconv_open" = xyes
14005 then :
14006 with_libiconv=native; found_iconv=yes
14007 fi
14008
14009 fi
14010 if test $found_iconv = "no"; then
14011 as_fn_error $? "*** No usable iconv() implementation found" "$LINENO" 5
14012 fi
14013
14014 #
14015 # Checks for locale_charset() and nl_langinfo(CODESET)
14016 #
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
14018 printf %s "checking for locale_charset in -liconv... " >&6; }
14019 if test ${ac_cv_lib_iconv_locale_charset+y}
14020 then :
14021 printf %s "(cached) " >&6
14022 else case e in #(
14023 e) ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-liconv $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply.
14031 The 'extern "C"' is for builds by C++ compilers;
14032 although this is not generally supported in C code supporting it here
14033 has little cost and some practical benefit (sr 110532). */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 char locale_charset (void);
14038 int
14039 main (void)
14040 {
14041 return locale_charset ();
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_link "$LINENO"
14047 then :
14048 ac_cv_lib_iconv_locale_charset=yes
14049 else case e in #(
14050 e) ac_cv_lib_iconv_locale_charset=no ;;
14051 esac
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14054 conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS ;;
14056 esac
14057 fi
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
14059 printf "%s\n" "$ac_cv_lib_iconv_locale_charset" >&6; }
14060 if test "x$ac_cv_lib_iconv_locale_charset" = xyes
14061 then :
14062 have_locale_charset=yes
14063 else case e in #(
14064 e) have_locale_charset=no ;;
14065 esac
14066 fi
14067
14068 if test x$have_locale_charset = xyes; then
14069
14070 printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
14071
14072 with_libiconv=yes
14073 fi
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
14075 printf %s "checking for nl_langinfo (CODESET)... " >&6; }
14076 if test ${datrie_cv_langinfo_codeset+y}
14077 then :
14078 printf %s "(cached) " >&6
14079 else case e in #(
14080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 #include <langinfo.h>
14083 int
14084 main (void)
14085 {
14086 char *codeset = nl_langinfo (CODESET);
14087
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"
14093 then :
14094 datrie_cv_langinfo_codeset=yes
14095 else case e in #(
14096 e) datrie_cv_langinfo_codeset=no ;;
14097 esac
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14100 ;;
14101 esac
14102 fi
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_langinfo_codeset" >&5
14104 printf "%s\n" "$datrie_cv_langinfo_codeset" >&6; }
14105 if test x$datrie_cv_langinfo_codeset = xyes; then
14106
14107 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14108
14109 fi
14110 if test x$have_locale_charset = xno && test x$datrie_cv_langinfo_codeset = xno
14111 then
14112 as_fn_error $? "*** No locale_charset() nor nl_langinfo(CODESET) found.
14113 Please consider installing GNU libiconv." "$LINENO" 5
14114 fi
14115
14116 case $with_libiconv in
14117 gnu|native|yes)
14118 ICONV_LIBS="-liconv"
14119 ;;
14120 esac
14121
14122
14123
14124 # Checks for header files.
14125 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14126 if test "x$ac_cv_header_limits_h" = xyes
14127 then :
14128 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14129
14130 fi
14131 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14132 if test "x$ac_cv_header_stdlib_h" = xyes
14133 then :
14134 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14135
14136 fi
14137 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14138 if test "x$ac_cv_header_stdio_h" = xyes
14139 then :
14140 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
14141
14142 fi
14143 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14144 if test "x$ac_cv_header_string_h" = xyes
14145 then :
14146 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14147
14148 fi
14149
14150
14151 # Checks for typedefs, structures, and compiler characteristics.
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14153 printf %s "checking for an ANSI C-conforming const... " >&6; }
14154 if test ${ac_cv_c_const+y}
14155 then :
14156 printf %s "(cached) " >&6
14157 else case e in #(
14158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160
14161 int
14162 main (void)
14163 {
14164
14165 #ifndef __cplusplus
14166 /* Ultrix mips cc rejects this sort of thing. */
14167 typedef int charset[2];
14168 const charset cs = { 0, 0 };
14169 /* SunOS 4.1.1 cc rejects this. */
14170 char const *const *pcpcc;
14171 char **ppc;
14172 /* NEC SVR4.0.2 mips cc rejects this. */
14173 struct point {int x, y;};
14174 static struct point const zero = {0,0};
14175 /* IBM XL C 1.02.0.0 rejects this.
14176 It does not let you subtract one const X* pointer from another in
14177 an arm of an if-expression whose if-part is not a constant
14178 expression */
14179 const char *g = "string";
14180 pcpcc = &g + (g ? g-g : 0);
14181 /* HPUX 7.0 cc rejects these. */
14182 ++pcpcc;
14183 ppc = (char**) pcpcc;
14184 pcpcc = (char const *const *) ppc;
14185 { /* SCO 3.2v4 cc rejects this sort of thing. */
14186 char tx;
14187 char *t = &tx;
14188 char const *s = 0 ? (char *) 0 : (char const *) 0;
14189
14190 *t++ = 0;
14191 if (s) return 0;
14192 }
14193 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14194 int x[] = {25, 17};
14195 const int *foo = &x[0];
14196 ++foo;
14197 }
14198 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14199 typedef const int *iptr;
14200 iptr p = 0;
14201 ++p;
14202 }
14203 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14204 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14205 struct s { int j; const int *ap[3]; } bx;
14206 struct s *b = &bx; b->j = 5;
14207 }
14208 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14209 const int foo = 10;
14210 if (!foo) return 0;
14211 }
14212 return !cs[0] && !zero.x;
14213 #endif
14214
14215 ;
14216 return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_compile "$LINENO"
14220 then :
14221 ac_cv_c_const=yes
14222 else case e in #(
14223 e) ac_cv_c_const=no ;;
14224 esac
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14227 esac
14228 fi
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14230 printf "%s\n" "$ac_cv_c_const" >&6; }
14231 if test $ac_cv_c_const = no; then
14232
14233 printf "%s\n" "#define const /**/" >>confdefs.h
14234
14235 fi
14236
14237 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14238 if test "x$ac_cv_type_size_t" = xyes
14239 then :
14240
14241 else case e in #(
14242 e)
14243 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14244 ;;
14245 esac
14246 fi
14247
14248
14249 # Check whether --enable-doxygen-doc was given.
14250 if test ${enable_doxygen_doc+y}
14251 then :
14252 enableval=$enable_doxygen_doc;
14253 else case e in #(
14254 e) enable_doxygen_doc="yes" ;;
14255 esac
14256 fi
14257
14258
14259 if test "x$enable_doxygen_doc" = "xyes"; then
14260 # Extract the first word of "doxygen", so it can be a program name with args.
14261 set dummy doxygen; ac_word=$2
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 printf %s "checking for $ac_word... " >&6; }
14264 if test ${ac_cv_prog_DOXYGEN+y}
14265 then :
14266 printf %s "(cached) " >&6
14267 else case e in #(
14268 e) if test -n "$DOXYGEN"; then
14269 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
14270 else
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14273 do
14274 IFS=$as_save_IFS
14275 case $as_dir in #(((
14276 '') as_dir=./ ;;
14277 */) ;;
14278 *) as_dir=$as_dir/ ;;
14279 esac
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14282 ac_cv_prog_DOXYGEN="doxygen"
14283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14284 break 2
14285 fi
14286 done
14287 done
14288 IFS=$as_save_IFS
14289
14290 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
14291 fi ;;
14292 esac
14293 fi
14294 DOXYGEN=$ac_cv_prog_DOXYGEN
14295 if test -n "$DOXYGEN"; then
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14297 printf "%s\n" "$DOXYGEN" >&6; }
14298 else
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 printf "%s\n" "no" >&6; }
14301 fi
14302
14303
14304 if test "x$DOXYGEN" = "xno"; then
14305 enable_doxygen_doc="no"
14306 else
14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking doxygen >= $DOXYGEN_REQ_VER" >&5
14308 printf %s "checking doxygen >= $DOXYGEN_REQ_VER... " >&6; }
14309 DOXYGEN_VER=$($DOXYGEN --version)
14310 as_arg_v1=$DOXYGEN_VER
14311 as_arg_v2=$DOXYGEN_REQ_VER
14312 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14313 case $? in #(
14314 1) :
14315 enable_doxygen_doc="no" ;; #(
14316 0) :
14317 ;; #(
14318 2) :
14319 ;; #(
14320 *) :
14321 ;;
14322 esac
14323 if test x"$enable_doxygen_doc" = "xyes"; then
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, yes" >&5
14325 printf "%s\n" "$DOXYGEN_VER, yes" >&6; }
14326 else
14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, no, documentation disabled" >&5
14328 printf "%s\n" "$DOXYGEN_VER, no, documentation disabled" >&6; }
14329 fi
14330 fi
14331 fi
14332
14333
14334 # Check whether --with-html-docdir was given.
14335 if test ${with_html_docdir+y}
14336 then :
14337 withval=$with_html_docdir; htmldocdir="$withval"
14338 else case e in #(
14339 e) htmldocdir=\$\{prefix\}/share/doc/datrie/html ;;
14340 esac
14341 fi
14342
14343
14344
14345 if test "x$enable_doxygen_doc" = "xyes"; then
14346 ENABLE_DOXYGEN_DOC_TRUE=
14347 ENABLE_DOXYGEN_DOC_FALSE='#'
14348 else
14349 ENABLE_DOXYGEN_DOC_TRUE='#'
14350 ENABLE_DOXYGEN_DOC_FALSE=
14351 fi
14352
14353
14354 # Checks for library functions.
14355 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
14356 if test "x$ac_cv_func_malloc" = xyes
14357 then :
14358 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
14359
14360 fi
14361
14362
14363 ac_config_files="$ac_config_files Makefile datrie-0.2.pc datrie/Makefile tools/Makefile man/Makefile doc/Makefile doc/Doxyfile tests/Makefile"
14364
14365 cat >confcache <<\_ACEOF
14366 # This file is a shell script that caches the results of configure
14367 # tests run on this system so they can be shared between configure
14368 # scripts and configure runs, see configure's option --config-cache.
14369 # It is not useful on other systems. If it contains results you don't
14370 # want to keep, you may remove or edit it.
14371 #
14372 # config.status only pays attention to the cache file if you give it
14373 # the --recheck option to rerun configure.
14374 #
14375 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14376 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14377 # following values.
14378
14379 _ACEOF
14380
14381 # The following way of writing the cache mishandles newlines in values,
14382 # but we know of no workaround that is simple, portable, and efficient.
14383 # So, we kill variables containing newlines.
14384 # Ultrix sh set writes to stderr and can't be redirected directly,
14385 # and sets the high bit in the cache file unless we assign to the vars.
14386 (
14387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14388 eval ac_val=\$$ac_var
14389 case $ac_val in #(
14390 *${as_nl}*)
14391 case $ac_var in #(
14392 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14393 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14394 esac
14395 case $ac_var in #(
14396 _ | IFS | as_nl) ;; #(
14397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14398 *) { eval $ac_var=; unset $ac_var;} ;;
14399 esac ;;
14400 esac
14401 done
14402
14403 (set) 2>&1 |
14404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14405 *${as_nl}ac_space=\ *)
14406 # 'set' does not quote correctly, so add quotes: double-quote
14407 # substitution turns \\\\ into \\, and sed turns \\ into \.
14408 sed -n \
14409 "s/'/'\\\\''/g;
14410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14411 ;; #(
14412 *)
14413 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14415 ;;
14416 esac |
14417 sort
14418 ) |
14419 sed '
14420 /^ac_cv_env_/b end
14421 t clear
14422 :clear
14423 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14424 t end
14425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14426 :end' >>confcache
14427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14428 if test -w "$cache_file"; then
14429 if test "x$cache_file" != "x/dev/null"; then
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14431 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14432 if test ! -f "$cache_file" || test -h "$cache_file"; then
14433 cat confcache >"$cache_file"
14434 else
14435 case $cache_file in #(
14436 */* | ?:*)
14437 mv -f confcache "$cache_file"$$ &&
14438 mv -f "$cache_file"$$ "$cache_file" ;; #(
14439 *)
14440 mv -f confcache "$cache_file" ;;
14441 esac
14442 fi
14443 fi
14444 else
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14446 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14447 fi
14448 fi
14449 rm -f confcache
14450
14451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14452 # Let make expand exec_prefix.
14453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14454
14455 DEFS=-DHAVE_CONFIG_H
14456
14457 ac_libobjs=
14458 ac_ltlibobjs=
14459 U=
14460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14461 # 1. Remove the extension, and $U if already installed.
14462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14463 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14465 # will be set to the directory where LIBOBJS objects are built.
14466 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14467 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14468 done
14469 LIBOBJS=$ac_libobjs
14470
14471 LTLIBOBJS=$ac_ltlibobjs
14472
14473
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14475 printf %s "checking that generated files are newer than configure... " >&6; }
14476 if test -n "$am_sleep_pid"; then
14477 # Hide warnings about reused PIDs.
14478 wait $am_sleep_pid 2>/dev/null
14479 fi
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14481 printf "%s\n" "done" >&6; }
14482 case $enable_silent_rules in # (((
14483 yes) AM_DEFAULT_VERBOSITY=0;;
14484 no) AM_DEFAULT_VERBOSITY=1;;
14485 esac
14486 if test $am_cv_make_support_nested_variables = yes; then
14487 AM_V='$(V)'
14488 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14489 else
14490 AM_V=$AM_DEFAULT_VERBOSITY
14491 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14492 fi
14493
14494 if test -n "$EXEEXT"; then
14495 am__EXEEXT_TRUE=
14496 am__EXEEXT_FALSE='#'
14497 else
14498 am__EXEEXT_TRUE='#'
14499 am__EXEEXT_FALSE=
14500 fi
14501
14502 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14503 as_fn_error $? "conditional \"AMDEP\" was never defined.
14504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14505 fi
14506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14507 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14509 fi
14510 if test -z "${LD_HAS_VERSION_SCRIPT_TRUE}" && test -z "${LD_HAS_VERSION_SCRIPT_FALSE}"; then
14511 as_fn_error $? "conditional \"LD_HAS_VERSION_SCRIPT\" was never defined.
14512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14513 fi
14514 if test -z "${ENABLE_DOXYGEN_DOC_TRUE}" && test -z "${ENABLE_DOXYGEN_DOC_FALSE}"; then
14515 as_fn_error $? "conditional \"ENABLE_DOXYGEN_DOC\" was never defined.
14516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14517 fi
14518
14519 : "${CONFIG_STATUS=./config.status}"
14520 ac_write_fail=0
14521 ac_clean_files_save=$ac_clean_files
14522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14524 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14525 as_write_fail=0
14526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14527 #! $SHELL
14528 # Generated by $as_me.
14529 # Run this file to recreate the current configuration.
14530 # Compiler output produced by configure, useful for debugging
14531 # configure, is in config.log if it exists.
14532
14533 debug=false
14534 ac_cs_recheck=false
14535 ac_cs_silent=false
14536
14537 SHELL=\${CONFIG_SHELL-$SHELL}
14538 export SHELL
14539 _ASEOF
14540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14541 ## -------------------- ##
14542 ## M4sh Initialization. ##
14543 ## -------------------- ##
14544
14545 # Be more Bourne compatible
14546 DUALCASE=1; export DUALCASE # for MKS sh
14547 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14548 then :
14549 emulate sh
14550 NULLCMD=:
14551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14552 # is contrary to our usage. Disable this feature.
14553 alias -g '${1+"$@"}'='"$@"'
14554 setopt NO_GLOB_SUBST
14555 else case e in #(
14556 e) case `(set -o) 2>/dev/null` in #(
14557 *posix*) :
14558 set -o posix ;; #(
14559 *) :
14560 ;;
14561 esac ;;
14562 esac
14563 fi
14564
14565
14566
14567 # Reset variables that may have inherited troublesome values from
14568 # the environment.
14569
14570 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14571 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14572 # side effect of setting IFS to empty, thus disabling word splitting.)
14573 # Quoting is to prevent editors from complaining about space-tab.
14574 as_nl='
14575 '
14576 export as_nl
14577 IFS=" "" $as_nl"
14578
14579 PS1='$ '
14580 PS2='> '
14581 PS4='+ '
14582
14583 # Ensure predictable behavior from utilities with locale-dependent output.
14584 LC_ALL=C
14585 export LC_ALL
14586 LANGUAGE=C
14587 export LANGUAGE
14588
14589 # We cannot yet rely on "unset" to work, but we need these variables
14590 # to be unset--not just set to an empty or harmless value--now, to
14591 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14592 # also avoids known problems related to "unset" and subshell syntax
14593 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14594 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14595 do eval test \${$as_var+y} \
14596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14597 done
14598
14599 # Ensure that fds 0, 1, and 2 are open.
14600 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14601 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14602 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14603
14604 # The user is always right.
14605 if ${PATH_SEPARATOR+false} :; then
14606 PATH_SEPARATOR=:
14607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14609 PATH_SEPARATOR=';'
14610 }
14611 fi
14612
14613
14614 # Find who we are. Look in the path if we contain no directory separator.
14615 as_myself=
14616 case $0 in #((
14617 *[\\/]* ) as_myself=$0 ;;
14618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14620 do
14621 IFS=$as_save_IFS
14622 case $as_dir in #(((
14623 '') as_dir=./ ;;
14624 */) ;;
14625 *) as_dir=$as_dir/ ;;
14626 esac
14627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14628 done
14629 IFS=$as_save_IFS
14630
14631 ;;
14632 esac
14633 # We did not find ourselves, most probably we were run as 'sh COMMAND'
14634 # in which case we are not to be found in the path.
14635 if test "x$as_myself" = x; then
14636 as_myself=$0
14637 fi
14638 if test ! -f "$as_myself"; then
14639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14640 exit 1
14641 fi
14642
14643
14644
14645 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14646 # ----------------------------------------
14647 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14648 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14649 # script with STATUS, using 1 if that was 0.
14650 as_fn_error ()
14651 {
14652 as_status=$1; test $as_status -eq 0 && as_status=1
14653 if test "$4"; then
14654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14656 fi
14657 printf "%s\n" "$as_me: error: $2" >&2
14658 as_fn_exit $as_status
14659 } # as_fn_error
14660
14661
14662 # as_fn_set_status STATUS
14663 # -----------------------
14664 # Set $? to STATUS, without forking.
14665 as_fn_set_status ()
14666 {
14667 return $1
14668 } # as_fn_set_status
14669
14670 # as_fn_exit STATUS
14671 # -----------------
14672 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14673 as_fn_exit ()
14674 {
14675 set +e
14676 as_fn_set_status $1
14677 exit $1
14678 } # as_fn_exit
14679
14680 # as_fn_unset VAR
14681 # ---------------
14682 # Portably unset VAR.
14683 as_fn_unset ()
14684 {
14685 { eval $1=; unset $1;}
14686 }
14687 as_unset=as_fn_unset
14688
14689 # as_fn_append VAR VALUE
14690 # ----------------------
14691 # Append the text in VALUE to the end of the definition contained in VAR. Take
14692 # advantage of any shell optimizations that allow amortized linear growth over
14693 # repeated appends, instead of the typical quadratic growth present in naive
14694 # implementations.
14695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14696 then :
14697 eval 'as_fn_append ()
14698 {
14699 eval $1+=\$2
14700 }'
14701 else case e in #(
14702 e) as_fn_append ()
14703 {
14704 eval $1=\$$1\$2
14705 } ;;
14706 esac
14707 fi # as_fn_append
14708
14709 # as_fn_arith ARG...
14710 # ------------------
14711 # Perform arithmetic evaluation on the ARGs, and store the result in the
14712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14713 # must be portable across $(()) and expr.
14714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14715 then :
14716 eval 'as_fn_arith ()
14717 {
14718 as_val=$(( $* ))
14719 }'
14720 else case e in #(
14721 e) as_fn_arith ()
14722 {
14723 as_val=`expr "$@" || test $? -eq 1`
14724 } ;;
14725 esac
14726 fi # as_fn_arith
14727
14728
14729 if expr a : '\(a\)' >/dev/null 2>&1 &&
14730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14731 as_expr=expr
14732 else
14733 as_expr=false
14734 fi
14735
14736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14737 as_basename=basename
14738 else
14739 as_basename=false
14740 fi
14741
14742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14743 as_dirname=dirname
14744 else
14745 as_dirname=false
14746 fi
14747
14748 as_me=`$as_basename -- "$0" ||
14749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14750 X"$0" : 'X\(//\)$' \| \
14751 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14752 printf "%s\n" X/"$0" |
14753 sed '/^.*\/\([^/][^/]*\)\/*$/{
14754 s//\1/
14755 q
14756 }
14757 /^X\/\(\/\/\)$/{
14758 s//\1/
14759 q
14760 }
14761 /^X\/\(\/\).*/{
14762 s//\1/
14763 q
14764 }
14765 s/.*/./; q'`
14766
14767 # Avoid depending upon Character Ranges.
14768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14771 as_cr_digits='0123456789'
14772 as_cr_alnum=$as_cr_Letters$as_cr_digits
14773
14774
14775 # Determine whether it's possible to make 'echo' print without a newline.
14776 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14777 # for compatibility with existing Makefiles.
14778 ECHO_C= ECHO_N= ECHO_T=
14779 case `echo -n x` in #(((((
14780 -n*)
14781 case `echo 'xy\c'` in
14782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14783 xy) ECHO_C='\c';;
14784 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14785 ECHO_T=' ';;
14786 esac;;
14787 *)
14788 ECHO_N='-n';;
14789 esac
14790
14791 # For backward compatibility with old third-party macros, we provide
14792 # the shell variables $as_echo and $as_echo_n. New code should use
14793 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14794 as_echo='printf %s\n'
14795 as_echo_n='printf %s'
14796
14797 rm -f conf$$ conf$$.exe conf$$.file
14798 if test -d conf$$.dir; then
14799 rm -f conf$$.dir/conf$$.file
14800 else
14801 rm -f conf$$.dir
14802 mkdir conf$$.dir 2>/dev/null
14803 fi
14804 if (echo >conf$$.file) 2>/dev/null; then
14805 if ln -s conf$$.file conf$$ 2>/dev/null; then
14806 as_ln_s='ln -s'
14807 # ... but there are two gotchas:
14808 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
14809 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
14810 # In both cases, we have to default to 'cp -pR'.
14811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14812 as_ln_s='cp -pR'
14813 elif ln conf$$.file conf$$ 2>/dev/null; then
14814 as_ln_s=ln
14815 else
14816 as_ln_s='cp -pR'
14817 fi
14818 else
14819 as_ln_s='cp -pR'
14820 fi
14821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14822 rmdir conf$$.dir 2>/dev/null
14823
14824
14825 # as_fn_mkdir_p
14826 # -------------
14827 # Create "$as_dir" as a directory, including parents if necessary.
14828 as_fn_mkdir_p ()
14829 {
14830
14831 case $as_dir in #(
14832 -*) as_dir=./$as_dir;;
14833 esac
14834 test -d "$as_dir" || eval $as_mkdir_p || {
14835 as_dirs=
14836 while :; do
14837 case $as_dir in #(
14838 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14839 *) as_qdir=$as_dir;;
14840 esac
14841 as_dirs="'$as_qdir' $as_dirs"
14842 as_dir=`$as_dirname -- "$as_dir" ||
14843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14844 X"$as_dir" : 'X\(//\)[^/]' \| \
14845 X"$as_dir" : 'X\(//\)$' \| \
14846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14847 printf "%s\n" X"$as_dir" |
14848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14849 s//\1/
14850 q
14851 }
14852 /^X\(\/\/\)[^/].*/{
14853 s//\1/
14854 q
14855 }
14856 /^X\(\/\/\)$/{
14857 s//\1/
14858 q
14859 }
14860 /^X\(\/\).*/{
14861 s//\1/
14862 q
14863 }
14864 s/.*/./; q'`
14865 test -d "$as_dir" && break
14866 done
14867 test -z "$as_dirs" || eval "mkdir $as_dirs"
14868 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14869
14870
14871 } # as_fn_mkdir_p
14872 if mkdir -p . 2>/dev/null; then
14873 as_mkdir_p='mkdir -p "$as_dir"'
14874 else
14875 test -d ./-p && rmdir ./-p
14876 as_mkdir_p=false
14877 fi
14878
14879
14880 # as_fn_executable_p FILE
14881 # -----------------------
14882 # Test if FILE is an executable regular file.
14883 as_fn_executable_p ()
14884 {
14885 test -f "$1" && test -x "$1"
14886 } # as_fn_executable_p
14887 as_test_x='test -x'
14888 as_executable_p=as_fn_executable_p
14889
14890 # Sed expression to map a string onto a valid CPP name.
14891 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14892 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
14893
14894 # Sed expression to map a string onto a valid variable name.
14895 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14896 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
14897
14898
14899 exec 6>&1
14900 ## ----------------------------------- ##
14901 ## Main body of $CONFIG_STATUS script. ##
14902 ## ----------------------------------- ##
14903 _ASEOF
14904 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14905
14906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14907 # Save the log message, to keep $0 and so on meaningful, and to
14908 # report actual input values of CONFIG_FILES etc. instead of their
14909 # values after options handling.
14910 ac_log="
14911 This file was extended by libdatrie $as_me 0.2.14, which was
14912 generated by GNU Autoconf 2.72. Invocation command line was
14913
14914 CONFIG_FILES = $CONFIG_FILES
14915 CONFIG_HEADERS = $CONFIG_HEADERS
14916 CONFIG_LINKS = $CONFIG_LINKS
14917 CONFIG_COMMANDS = $CONFIG_COMMANDS
14918 $ $0 $@
14919
14920 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14921 "
14922
14923 _ACEOF
14924
14925 case $ac_config_files in *"
14926 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14927 esac
14928
14929 case $ac_config_headers in *"
14930 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14931 esac
14932
14933
14934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14935 # Files that config.status was made for.
14936 config_files="$ac_config_files"
14937 config_headers="$ac_config_headers"
14938 config_commands="$ac_config_commands"
14939
14940 _ACEOF
14941
14942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14943 ac_cs_usage="\
14944 '$as_me' instantiates files and other configuration actions
14945 from templates according to the current configuration. Unless the files
14946 and actions are specified as TAGs, all are instantiated by default.
14947
14948 Usage: $0 [OPTION]... [TAG]...
14949
14950 -h, --help print this help, then exit
14951 -V, --version print version number and configuration settings, then exit
14952 --config print configuration, then exit
14953 -q, --quiet, --silent
14954 do not print progress messages
14955 -d, --debug don't remove temporary files
14956 --recheck update $as_me by reconfiguring in the same conditions
14957 --file=FILE[:TEMPLATE]
14958 instantiate the configuration file FILE
14959 --header=FILE[:TEMPLATE]
14960 instantiate the configuration header FILE
14961
14962 Configuration files:
14963 $config_files
14964
14965 Configuration headers:
14966 $config_headers
14967
14968 Configuration commands:
14969 $config_commands
14970
14971 Report bugs to <https://github.com/tlwg/libdatrie/issues>."
14972
14973 _ACEOF
14974 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14975 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977 ac_cs_config='$ac_cs_config_escaped'
14978 ac_cs_version="\\
14979 libdatrie config.status 0.2.14
14980 configured by $0, generated by GNU Autoconf 2.72,
14981 with options \\"\$ac_cs_config\\"
14982
14983 Copyright (C) 2023 Free Software Foundation, Inc.
14984 This config.status script is free software; the Free Software Foundation
14985 gives unlimited permission to copy, distribute and modify it."
14986
14987 ac_pwd='$ac_pwd'
14988 srcdir='$srcdir'
14989 INSTALL='$INSTALL'
14990 MKDIR_P='$MKDIR_P'
14991 AWK='$AWK'
14992 test -n "\$AWK" || AWK=awk
14993 _ACEOF
14994
14995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14996 # The default lists apply if the user does not specify any file.
14997 ac_need_defaults=:
14998 while test $# != 0
14999 do
15000 case $1 in
15001 --*=?*)
15002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15004 ac_shift=:
15005 ;;
15006 --*=)
15007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15008 ac_optarg=
15009 ac_shift=:
15010 ;;
15011 *)
15012 ac_option=$1
15013 ac_optarg=$2
15014 ac_shift=shift
15015 ;;
15016 esac
15017
15018 case $ac_option in
15019 # Handling of the options.
15020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15021 ac_cs_recheck=: ;;
15022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15023 printf "%s\n" "$ac_cs_version"; exit ;;
15024 --config | --confi | --conf | --con | --co | --c )
15025 printf "%s\n" "$ac_cs_config"; exit ;;
15026 --debug | --debu | --deb | --de | --d | -d )
15027 debug=: ;;
15028 --file | --fil | --fi | --f )
15029 $ac_shift
15030 case $ac_optarg in
15031 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15032 '') as_fn_error $? "missing file argument" ;;
15033 esac
15034 as_fn_append CONFIG_FILES " '$ac_optarg'"
15035 ac_need_defaults=false;;
15036 --header | --heade | --head | --hea )
15037 $ac_shift
15038 case $ac_optarg in
15039 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15040 esac
15041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15042 ac_need_defaults=false;;
15043 --he | --h)
15044 # Conflict between --help and --header
15045 as_fn_error $? "ambiguous option: '$1'
15046 Try '$0 --help' for more information.";;
15047 --help | --hel | -h )
15048 printf "%s\n" "$ac_cs_usage"; exit ;;
15049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15051 ac_cs_silent=: ;;
15052
15053 # This is an error.
15054 -*) as_fn_error $? "unrecognized option: '$1'
15055 Try '$0 --help' for more information." ;;
15056
15057 *) as_fn_append ac_config_targets " $1"
15058 ac_need_defaults=false ;;
15059
15060 esac
15061 shift
15062 done
15063
15064 ac_configure_extra_args=
15065
15066 if $ac_cs_silent; then
15067 exec 6>/dev/null
15068 ac_configure_extra_args="$ac_configure_extra_args --silent"
15069 fi
15070
15071 _ACEOF
15072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073 if \$ac_cs_recheck; then
15074 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15075 shift
15076 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15077 CONFIG_SHELL='$SHELL'
15078 export CONFIG_SHELL
15079 exec "\$@"
15080 fi
15081
15082 _ACEOF
15083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084 exec 5>>config.log
15085 {
15086 echo
15087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15088 ## Running $as_me. ##
15089 _ASBOX
15090 printf "%s\n" "$ac_log"
15091 } >&5
15092
15093 _ACEOF
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15095 #
15096 # INIT-COMMANDS
15097 #
15098 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15099
15100
15101 # The HP-UX ksh and POSIX shell print the target directory to stdout
15102 # if CDPATH is set.
15103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15104
15105 sed_quote_subst='$sed_quote_subst'
15106 double_quote_subst='$double_quote_subst'
15107 delay_variable_subst='$delay_variable_subst'
15108 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15109 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15110 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15111 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15112 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15113 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15114 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15115 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15116 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15117 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15118 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15119 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15120 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15121 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15122 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15123 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15124 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15125 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15126 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15127 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15128 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15129 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15130 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15131 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15132 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15133 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15134 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15135 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15136 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15137 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15138 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15139 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15140 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15141 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15142 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15143 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15144 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15145 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15146 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15147 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15148 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15149 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15150 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15151 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15152 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15153 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15154 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15155 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15156 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15157 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15158 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15159 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15160 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15161 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15162 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15163 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15164 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15165 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15166 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15167 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15168 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"`'
15169 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15170 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15171 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15172 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15173 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15174 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15175 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15176 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15177 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15178 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15179 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15180 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15181 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15182 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15183 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15184 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15185 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15186 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15187 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15188 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15189 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15190 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15191 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15192 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15193 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15194 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15195 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15196 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15197 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15198 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15199 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15200 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15201 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15202 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15203 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15204 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15205 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15206 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15207 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15208 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15209 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15210 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15211 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15212 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15213 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15214 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15215 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15216 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15217 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15218 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15219 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15220 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15221 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15222 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15223 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15224 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15225 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15226 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15227 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15228 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15229 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15230 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15231 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15232 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15233 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15234 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15235 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15236 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15237 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15238 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15239 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15240 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15241 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15242 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15243 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15244 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15245
15246 LTCC='$LTCC'
15247 LTCFLAGS='$LTCFLAGS'
15248 compiler='$compiler_DEFAULT'
15249
15250 # A function that is used when there is no print builtin or printf.
15251 func_fallback_echo ()
15252 {
15253 eval 'cat <<_LTECHO_EOF
15254 \$1
15255 _LTECHO_EOF'
15256 }
15257
15258 # Quote evaled strings.
15259 for var in SHELL \
15260 ECHO \
15261 PATH_SEPARATOR \
15262 SED \
15263 GREP \
15264 EGREP \
15265 FGREP \
15266 LD \
15267 NM \
15268 LN_S \
15269 lt_SP2NL \
15270 lt_NL2SP \
15271 reload_flag \
15272 FILECMD \
15273 OBJDUMP \
15274 deplibs_check_method \
15275 file_magic_cmd \
15276 file_magic_glob \
15277 want_nocaseglob \
15278 DLLTOOL \
15279 sharedlib_from_linklib_cmd \
15280 AR \
15281 archiver_list_spec \
15282 STRIP \
15283 RANLIB \
15284 CC \
15285 CFLAGS \
15286 compiler \
15287 lt_cv_sys_global_symbol_pipe \
15288 lt_cv_sys_global_symbol_to_cdecl \
15289 lt_cv_sys_global_symbol_to_import \
15290 lt_cv_sys_global_symbol_to_c_name_address \
15291 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15292 lt_cv_nm_interface \
15293 nm_file_list_spec \
15294 lt_cv_truncate_bin \
15295 lt_prog_compiler_no_builtin_flag \
15296 lt_prog_compiler_pic \
15297 lt_prog_compiler_wl \
15298 lt_prog_compiler_static \
15299 lt_cv_prog_compiler_c_o \
15300 need_locks \
15301 MANIFEST_TOOL \
15302 DSYMUTIL \
15303 NMEDIT \
15304 LIPO \
15305 OTOOL \
15306 OTOOL64 \
15307 shrext_cmds \
15308 export_dynamic_flag_spec \
15309 whole_archive_flag_spec \
15310 compiler_needs_object \
15311 with_gnu_ld \
15312 allow_undefined_flag \
15313 no_undefined_flag \
15314 hardcode_libdir_flag_spec \
15315 hardcode_libdir_separator \
15316 exclude_expsyms \
15317 include_expsyms \
15318 file_list_spec \
15319 variables_saved_for_relink \
15320 libname_spec \
15321 library_names_spec \
15322 soname_spec \
15323 install_override_mode \
15324 finish_eval \
15325 old_striplib \
15326 striplib; do
15327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15328 *[\\\\\\\`\\"\\\$]*)
15329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15330 ;;
15331 *)
15332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15333 ;;
15334 esac
15335 done
15336
15337 # Double-quote double-evaled strings.
15338 for var in reload_cmds \
15339 old_postinstall_cmds \
15340 old_postuninstall_cmds \
15341 old_archive_cmds \
15342 extract_expsyms_cmds \
15343 old_archive_from_new_cmds \
15344 old_archive_from_expsyms_cmds \
15345 archive_cmds \
15346 archive_expsym_cmds \
15347 module_cmds \
15348 module_expsym_cmds \
15349 export_symbols_cmds \
15350 prelink_cmds \
15351 postlink_cmds \
15352 postinstall_cmds \
15353 postuninstall_cmds \
15354 finish_cmds \
15355 sys_lib_search_path_spec \
15356 configure_time_dlsearch_path \
15357 configure_time_lt_sys_library_path; do
15358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15359 *[\\\\\\\`\\"\\\$]*)
15360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15361 ;;
15362 *)
15363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15364 ;;
15365 esac
15366 done
15367
15368 ac_aux_dir='$ac_aux_dir'
15369
15370 # See if we are running on zsh, and set the options that allow our
15371 # commands through without removal of \ escapes INIT.
15372 if test -n "\${ZSH_VERSION+set}"; then
15373 setopt NO_GLOB_SUBST
15374 fi
15375
15376
15377 PACKAGE='$PACKAGE'
15378 VERSION='$VERSION'
15379 RM='$RM'
15380 ofile='$ofile'
15381
15382
15383
15384
15385 _ACEOF
15386
15387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15388
15389 # Handling of arguments.
15390 for ac_config_target in $ac_config_targets
15391 do
15392 case $ac_config_target in
15393 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15394 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15395 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15397 "datrie-0.2.pc") CONFIG_FILES="$CONFIG_FILES datrie-0.2.pc" ;;
15398 "datrie/Makefile") CONFIG_FILES="$CONFIG_FILES datrie/Makefile" ;;
15399 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15400 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15401 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15402 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
15403 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15404
15405 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15406 esac
15407 done
15408
15409
15410 # If the user did not use the arguments to specify the items to instantiate,
15411 # then the envvar interface is used. Set only those that are not.
15412 # We use the long form for the default assignment because of an extremely
15413 # bizarre bug on SunOS 4.1.3.
15414 if $ac_need_defaults; then
15415 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15416 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15417 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15418 fi
15419
15420 # Have a temporary directory for convenience. Make it in the build tree
15421 # simply because there is no reason against having it here, and in addition,
15422 # creating and moving files from /tmp can sometimes cause problems.
15423 # Hook for its removal unless debugging.
15424 # Note that there is a small window in which the directory will not be cleaned:
15425 # after its creation but before its name has been assigned to '$tmp'.
15426 $debug ||
15427 {
15428 tmp= ac_tmp=
15429 trap 'exit_status=$?
15430 : "${ac_tmp:=$tmp}"
15431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15432 ' 0
15433 trap 'as_fn_exit 1' 1 2 13 15
15434 }
15435 # Create a (secure) tmp directory for tmp files.
15436
15437 {
15438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15439 test -d "$tmp"
15440 } ||
15441 {
15442 tmp=./conf$$-$RANDOM
15443 (umask 077 && mkdir "$tmp")
15444 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15445 ac_tmp=$tmp
15446
15447 # Set up the scripts for CONFIG_FILES section.
15448 # No need to generate them if there are no CONFIG_FILES.
15449 # This happens for instance with './config.status config.h'.
15450 if test -n "$CONFIG_FILES"; then
15451
15452
15453 ac_cr=`echo X | tr X '\015'`
15454 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15455 # But we know of no other shell where ac_cr would be empty at this
15456 # point, so we can use a bashism as a fallback.
15457 if test "x$ac_cr" = x; then
15458 eval ac_cr=\$\'\\r\'
15459 fi
15460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15462 ac_cs_awk_cr='\\r'
15463 else
15464 ac_cs_awk_cr=$ac_cr
15465 fi
15466
15467 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15468 _ACEOF
15469
15470
15471 {
15472 echo "cat >conf$$subs.awk <<_ACEOF" &&
15473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15474 echo "_ACEOF"
15475 } >conf$$subs.sh ||
15476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15478 ac_delim='%!_!# '
15479 for ac_last_try in false false false false false :; do
15480 . ./conf$$subs.sh ||
15481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15482
15483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15484 if test $ac_delim_n = $ac_delim_num; then
15485 break
15486 elif $ac_last_try; then
15487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15488 else
15489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15490 fi
15491 done
15492 rm -f conf$$subs.sh
15493
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15496 _ACEOF
15497 sed -n '
15498 h
15499 s/^/S["/; s/!.*/"]=/
15500 p
15501 g
15502 s/^[^!]*!//
15503 :repl
15504 t repl
15505 s/'"$ac_delim"'$//
15506 t delim
15507 :nl
15508 h
15509 s/\(.\{148\}\)..*/\1/
15510 t more1
15511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15512 p
15513 n
15514 b repl
15515 :more1
15516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15517 p
15518 g
15519 s/.\{148\}//
15520 t nl
15521 :delim
15522 h
15523 s/\(.\{148\}\)..*/\1/
15524 t more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"/
15526 p
15527 b
15528 :more2
15529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15530 p
15531 g
15532 s/.\{148\}//
15533 t delim
15534 ' <conf$$subs.awk | sed '
15535 /^[^""]/{
15536 N
15537 s/\n//
15538 }
15539 ' >>$CONFIG_STATUS || ac_write_fail=1
15540 rm -f conf$$subs.awk
15541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15542 _ACAWK
15543 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15544 for (key in S) S_is_set[key] = 1
15545 FS = ""
15546
15547 }
15548 {
15549 line = $ 0
15550 nfields = split(line, field, "@")
15551 substed = 0
15552 len = length(field[1])
15553 for (i = 2; i < nfields; i++) {
15554 key = field[i]
15555 keylen = length(key)
15556 if (S_is_set[key]) {
15557 value = S[key]
15558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15559 len += length(value) + length(field[++i])
15560 substed = 1
15561 } else
15562 len += 1 + keylen
15563 }
15564
15565 print line
15566 }
15567
15568 _ACAWK
15569 _ACEOF
15570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15573 else
15574 cat
15575 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15577 _ACEOF
15578
15579 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15580 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15581 # trailing colons and then remove the whole line if VPATH becomes empty
15582 # (actually we leave an empty line to preserve line numbers).
15583 if test "x$srcdir" = x.; then
15584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15585 h
15586 s///
15587 s/^/:/
15588 s/[ ]*$/:/
15589 s/:\$(srcdir):/:/g
15590 s/:\${srcdir}:/:/g
15591 s/:@srcdir@:/:/g
15592 s/^:*//
15593 s/:*$//
15594 x
15595 s/\(=[ ]*\).*/\1/
15596 G
15597 s/\n//
15598 s/^[^=]*=[ ]*$//
15599 }'
15600 fi
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603 fi # test -n "$CONFIG_FILES"
15604
15605 # Set up the scripts for CONFIG_HEADERS section.
15606 # No need to generate them if there are no CONFIG_HEADERS.
15607 # This happens for instance with './config.status Makefile'.
15608 if test -n "$CONFIG_HEADERS"; then
15609 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15610 BEGIN {
15611 _ACEOF
15612
15613 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15614 # here-document in config.status, that substitutes the proper values into
15615 # config.h.in to produce config.h.
15616
15617 # Create a delimiter string that does not exist in confdefs.h, to ease
15618 # handling of long lines.
15619 ac_delim='%!_!# '
15620 for ac_last_try in false false :; do
15621 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15622 if test -z "$ac_tt"; then
15623 break
15624 elif $ac_last_try; then
15625 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15626 else
15627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15628 fi
15629 done
15630
15631 # For the awk script, D is an array of macro values keyed by name,
15632 # likewise P contains macro parameters if any. Preserve backslash
15633 # newline sequences.
15634
15635 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15636 sed -n '
15637 s/.\{148\}/&'"$ac_delim"'/g
15638 t rset
15639 :rset
15640 s/^[ ]*#[ ]*define[ ][ ]*/ /
15641 t def
15642 d
15643 :def
15644 s/\\$//
15645 t bsnl
15646 s/["\\]/\\&/g
15647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15648 D["\1"]=" \3"/p
15649 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15650 d
15651 :bsnl
15652 s/["\\]/\\&/g
15653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15654 D["\1"]=" \3\\\\\\n"\\/p
15655 t cont
15656 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15657 t cont
15658 d
15659 :cont
15660 n
15661 s/.\{148\}/&'"$ac_delim"'/g
15662 t clear
15663 :clear
15664 s/\\$//
15665 t bsnlc
15666 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15667 d
15668 :bsnlc
15669 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15670 b cont
15671 ' <confdefs.h | sed '
15672 s/'"$ac_delim"'/"\\\
15673 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15674
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 for (key in D) D_is_set[key] = 1
15677 FS = ""
15678 }
15679 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15680 line = \$ 0
15681 split(line, arg, " ")
15682 if (arg[1] == "#") {
15683 defundef = arg[2]
15684 mac1 = arg[3]
15685 } else {
15686 defundef = substr(arg[1], 2)
15687 mac1 = arg[2]
15688 }
15689 split(mac1, mac2, "(") #)
15690 macro = mac2[1]
15691 prefix = substr(line, 1, index(line, defundef) - 1)
15692 if (D_is_set[macro]) {
15693 # Preserve the white space surrounding the "#".
15694 print prefix "define", macro P[macro] D[macro]
15695 next
15696 } else {
15697 # Replace #undef with comments. This is necessary, for example,
15698 # in the case of _POSIX_SOURCE, which is predefined and required
15699 # on some systems where configure will not decide to define it.
15700 if (defundef == "undef") {
15701 print "/*", prefix defundef, macro, "*/"
15702 next
15703 }
15704 }
15705 }
15706 { print }
15707 _ACAWK
15708 _ACEOF
15709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15710 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15711 fi # test -n "$CONFIG_HEADERS"
15712
15713
15714 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15715 shift
15716 for ac_tag
15717 do
15718 case $ac_tag in
15719 :[FHLC]) ac_mode=$ac_tag; continue;;
15720 esac
15721 case $ac_mode$ac_tag in
15722 :[FHL]*:*);;
15723 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
15724 :[FH]-) ac_tag=-:-;;
15725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15726 esac
15727 ac_save_IFS=$IFS
15728 IFS=:
15729 set x $ac_tag
15730 IFS=$ac_save_IFS
15731 shift
15732 ac_file=$1
15733 shift
15734
15735 case $ac_mode in
15736 :L) ac_source=$1;;
15737 :[FH])
15738 ac_file_inputs=
15739 for ac_f
15740 do
15741 case $ac_f in
15742 -) ac_f="$ac_tmp/stdin";;
15743 *) # Look for the file first in the build tree, then in the source tree
15744 # (if the path is not absolute). The absolute path cannot be DOS-style,
15745 # because $ac_f cannot contain ':'.
15746 test -f "$ac_f" ||
15747 case $ac_f in
15748 [\\/$]*) false;;
15749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15750 esac ||
15751 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
15752 esac
15753 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15754 as_fn_append ac_file_inputs " '$ac_f'"
15755 done
15756
15757 # Let's still pretend it is 'configure' which instantiates (i.e., don't
15758 # use $as_me), people would be surprised to read:
15759 # /* config.h. Generated by config.status. */
15760 configure_input='Generated from '`
15761 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15762 `' by configure.'
15763 if test x"$ac_file" != x-; then
15764 configure_input="$ac_file. $configure_input"
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15766 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15767 fi
15768 # Neutralize special characters interpreted by sed in replacement strings.
15769 case $configure_input in #(
15770 *\&* | *\|* | *\\* )
15771 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15772 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15773 *) ac_sed_conf_input=$configure_input;;
15774 esac
15775
15776 case $ac_tag in
15777 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15779 esac
15780 ;;
15781 esac
15782
15783 ac_dir=`$as_dirname -- "$ac_file" ||
15784 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15785 X"$ac_file" : 'X\(//\)[^/]' \| \
15786 X"$ac_file" : 'X\(//\)$' \| \
15787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15788 printf "%s\n" X"$ac_file" |
15789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15790 s//\1/
15791 q
15792 }
15793 /^X\(\/\/\)[^/].*/{
15794 s//\1/
15795 q
15796 }
15797 /^X\(\/\/\)$/{
15798 s//\1/
15799 q
15800 }
15801 /^X\(\/\).*/{
15802 s//\1/
15803 q
15804 }
15805 s/.*/./; q'`
15806 as_dir="$ac_dir"; as_fn_mkdir_p
15807 ac_builddir=.
15808
15809 case "$ac_dir" in
15810 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15811 *)
15812 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15813 # A ".." for each directory in $ac_dir_suffix.
15814 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15815 case $ac_top_builddir_sub in
15816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15818 esac ;;
15819 esac
15820 ac_abs_top_builddir=$ac_pwd
15821 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15822 # for backward compatibility:
15823 ac_top_builddir=$ac_top_build_prefix
15824
15825 case $srcdir in
15826 .) # We are building in place.
15827 ac_srcdir=.
15828 ac_top_srcdir=$ac_top_builddir_sub
15829 ac_abs_top_srcdir=$ac_pwd ;;
15830 [\\/]* | ?:[\\/]* ) # Absolute name.
15831 ac_srcdir=$srcdir$ac_dir_suffix;
15832 ac_top_srcdir=$srcdir
15833 ac_abs_top_srcdir=$srcdir ;;
15834 *) # Relative name.
15835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15836 ac_top_srcdir=$ac_top_build_prefix$srcdir
15837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15838 esac
15839 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15840
15841
15842 case $ac_mode in
15843 :F)
15844 #
15845 # CONFIG_FILE
15846 #
15847
15848 case $INSTALL in
15849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15851 esac
15852 ac_MKDIR_P=$MKDIR_P
15853 case $MKDIR_P in
15854 [\\/$]* | ?:[\\/]* ) ;;
15855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15856 esac
15857 _ACEOF
15858
15859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15860 # If the template does not know about datarootdir, expand it.
15861 # FIXME: This hack should be removed a few years after 2.60.
15862 ac_datarootdir_hack=; ac_datarootdir_seen=
15863 ac_sed_dataroot='
15864 /datarootdir/ {
15865 p
15866 q
15867 }
15868 /@datadir@/p
15869 /@docdir@/p
15870 /@infodir@/p
15871 /@localedir@/p
15872 /@mandir@/p'
15873 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15874 *datarootdir*) ac_datarootdir_seen=yes;;
15875 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15877 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15878 _ACEOF
15879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15880 ac_datarootdir_hack='
15881 s&@datadir@&$datadir&g
15882 s&@docdir@&$docdir&g
15883 s&@infodir@&$infodir&g
15884 s&@localedir@&$localedir&g
15885 s&@mandir@&$mandir&g
15886 s&\\\${datarootdir}&$datarootdir&g' ;;
15887 esac
15888 _ACEOF
15889
15890 # Neutralize VPATH when '$srcdir' = '.'.
15891 # Shell code in configure.ac might set extrasub.
15892 # FIXME: do we really want to maintain this feature?
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 ac_sed_extra="$ac_vpsub
15895 $extrasub
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 :t
15899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15900 s|@configure_input@|$ac_sed_conf_input|;t t
15901 s&@top_builddir@&$ac_top_builddir_sub&;t t
15902 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15903 s&@srcdir@&$ac_srcdir&;t t
15904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15905 s&@top_srcdir@&$ac_top_srcdir&;t t
15906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15907 s&@builddir@&$ac_builddir&;t t
15908 s&@abs_builddir@&$ac_abs_builddir&;t t
15909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15910 s&@INSTALL@&$ac_INSTALL&;t t
15911 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15912 $ac_datarootdir_hack
15913 "
15914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15915 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15916
15917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15920 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15922 which seems to be undefined. Please make sure it is defined" >&5
15923 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
15924 which seems to be undefined. Please make sure it is defined" >&2;}
15925
15926 rm -f "$ac_tmp/stdin"
15927 case $ac_file in
15928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15930 esac \
15931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15932 ;;
15933 :H)
15934 #
15935 # CONFIG_HEADER
15936 #
15937 if test x"$ac_file" != x-; then
15938 {
15939 printf "%s\n" "/* $configure_input */" >&1 \
15940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15941 } >"$ac_tmp/config.h" \
15942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15943 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15945 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15946 else
15947 rm -f "$ac_file"
15948 mv "$ac_tmp/config.h" "$ac_file" \
15949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15950 fi
15951 else
15952 printf "%s\n" "/* $configure_input */" >&1 \
15953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15954 || as_fn_error $? "could not create -" "$LINENO" 5
15955 fi
15956 # Compute "$ac_file"'s index in $config_headers.
15957 _am_arg="$ac_file"
15958 _am_stamp_count=1
15959 for _am_header in $config_headers :; do
15960 case $_am_header in
15961 $_am_arg | $_am_arg:* )
15962 break ;;
15963 * )
15964 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15965 esac
15966 done
15967 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15968 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15969 X"$_am_arg" : 'X\(//\)[^/]' \| \
15970 X"$_am_arg" : 'X\(//\)$' \| \
15971 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15972 printf "%s\n" X"$_am_arg" |
15973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15974 s//\1/
15975 q
15976 }
15977 /^X\(\/\/\)[^/].*/{
15978 s//\1/
15979 q
15980 }
15981 /^X\(\/\/\)$/{
15982 s//\1/
15983 q
15984 }
15985 /^X\(\/\).*/{
15986 s//\1/
15987 q
15988 }
15989 s/.*/./; q'`/stamp-h$_am_stamp_count
15990 ;;
15991
15992 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15993 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15994 ;;
15995 esac
15996
15997
15998 case $ac_file$ac_mode in
15999 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16000 # Older Autoconf quotes --file arguments for eval, but not when files
16001 # are listed without --file. Let's play safe and only enable the eval
16002 # if we detect the quoting.
16003 # TODO: see whether this extra hack can be removed once we start
16004 # requiring Autoconf 2.70 or later.
16005 case $CONFIG_FILES in #(
16006 *\'*) :
16007 eval set x "$CONFIG_FILES" ;; #(
16008 *) :
16009 set x $CONFIG_FILES ;; #(
16010 *) :
16011 ;;
16012 esac
16013 shift
16014 # Used to flag and report bootstrapping failures.
16015 am_rc=0
16016 for am_mf
16017 do
16018 # Strip MF so we end up with the name of the file.
16019 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16020 # Check whether this is an Automake generated Makefile which includes
16021 # dependency-tracking related rules and includes.
16022 # Grep'ing the whole file directly is not great: AIX grep has a line
16023 # limit of 2048, but all sed's we know have understand at least 4000.
16024 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16025 || continue
16026 am_dirpart=`$as_dirname -- "$am_mf" ||
16027 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16028 X"$am_mf" : 'X\(//\)[^/]' \| \
16029 X"$am_mf" : 'X\(//\)$' \| \
16030 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16031 printf "%s\n" X"$am_mf" |
16032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16033 s//\1/
16034 q
16035 }
16036 /^X\(\/\/\)[^/].*/{
16037 s//\1/
16038 q
16039 }
16040 /^X\(\/\/\)$/{
16041 s//\1/
16042 q
16043 }
16044 /^X\(\/\).*/{
16045 s//\1/
16046 q
16047 }
16048 s/.*/./; q'`
16049 am_filepart=`$as_basename -- "$am_mf" ||
16050 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16051 X"$am_mf" : 'X\(//\)$' \| \
16052 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16053 printf "%s\n" X/"$am_mf" |
16054 sed '/^.*\/\([^/][^/]*\)\/*$/{
16055 s//\1/
16056 q
16057 }
16058 /^X\/\(\/\/\)$/{
16059 s//\1/
16060 q
16061 }
16062 /^X\/\(\/\).*/{
16063 s//\1/
16064 q
16065 }
16066 s/.*/./; q'`
16067 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16068 && sed -e '/# am--include-marker/d' "$am_filepart" \
16069 | $MAKE -f - am--depfiles" >&5
16070 (cd "$am_dirpart" \
16071 && sed -e '/# am--include-marker/d' "$am_filepart" \
16072 | $MAKE -f - am--depfiles) >&5 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } || am_rc=$?
16076 done
16077 if test $am_rc -ne 0; then
16078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16079 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16080 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16081 for automatic dependency tracking. If GNU make was not used, consider
16082 re-running the configure script with MAKE=\"gmake\" (or whatever is
16083 necessary). You can also try re-running configure with the
16084 '--disable-dependency-tracking' option to at least be able to build
16085 the package (albeit without support for automatic dependency tracking).
16086 See 'config.log' for more details" "$LINENO" 5; }
16087 fi
16088 { am_dirpart=; unset am_dirpart;}
16089 { am_filepart=; unset am_filepart;}
16090 { am_mf=; unset am_mf;}
16091 { am_rc=; unset am_rc;}
16092 rm -f conftest-deps.mk
16093 }
16094 ;;
16095 "libtool":C)
16096
16097 # See if we are running on zsh, and set the options that allow our
16098 # commands through without removal of \ escapes.
16099 if test -n "${ZSH_VERSION+set}"; then
16100 setopt NO_GLOB_SUBST
16101 fi
16102
16103 cfgfile=${ofile}T
16104 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16105 $RM "$cfgfile"
16106
16107 cat <<_LT_EOF >> "$cfgfile"
16108 #! $SHELL
16109 # Generated automatically by $as_me ($PACKAGE) $VERSION
16110 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16111
16112 # Provide generalized library-building support services.
16113 # Written by Gordon Matzigkeit, 1996
16114
16115 # Copyright (C) 2024 Free Software Foundation, Inc.
16116 # This is free software; see the source for copying conditions. There is NO
16117 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16118
16119 # GNU Libtool is free software; you can redistribute it and/or modify
16120 # it under the terms of the GNU General Public License as published by
16121 # the Free Software Foundation; either version 2 of the License, or
16122 # (at your option) any later version.
16123 #
16124 # As a special exception to the GNU General Public License, if you
16125 # distribute this file as part of a program or library that is built
16126 # using GNU Libtool, you may include this file under the same
16127 # distribution terms that you use for the rest of that program.
16128 #
16129 # GNU Libtool is distributed in the hope that it will be useful, but
16130 # WITHOUT ANY WARRANTY; without even the implied warranty of
16131 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16132 # GNU General Public License for more details.
16133 #
16134 # You should have received a copy of the GNU General Public License
16135 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16136
16137
16138 # The names of the tagged configurations supported by this script.
16139 available_tags=''
16140
16141 # Configured defaults for sys_lib_dlsearch_path munging.
16142 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16143
16144 # ### BEGIN LIBTOOL CONFIG
16145
16146 # Which release of libtool.m4 was used?
16147 macro_version=$macro_version
16148 macro_revision=$macro_revision
16149
16150 # Whether or not to build shared libraries.
16151 build_libtool_libs=$enable_shared
16152
16153 # Whether or not to build static libraries.
16154 build_old_libs=$enable_static
16155
16156 # What type of objects to build.
16157 pic_mode=$pic_mode
16158
16159 # Whether or not to optimize for fast installation.
16160 fast_install=$enable_fast_install
16161
16162 # Shared archive member basename,for filename based shared library versioning on AIX.
16163 shared_archive_member_spec=$shared_archive_member_spec
16164
16165 # Shell to use when invoking shell scripts.
16166 SHELL=$lt_SHELL
16167
16168 # An echo program that protects backslashes.
16169 ECHO=$lt_ECHO
16170
16171 # The PATH separator for the build system.
16172 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16173
16174 # The host system.
16175 host_alias=$host_alias
16176 host=$host
16177 host_os=$host_os
16178
16179 # The build system.
16180 build_alias=$build_alias
16181 build=$build
16182 build_os=$build_os
16183
16184 # A sed program that does not truncate output.
16185 SED=$lt_SED
16186
16187 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16188 Xsed="\$SED -e 1s/^X//"
16189
16190 # A grep program that handles long lines.
16191 GREP=$lt_GREP
16192
16193 # An ERE matcher.
16194 EGREP=$lt_EGREP
16195
16196 # A literal string matcher.
16197 FGREP=$lt_FGREP
16198
16199 # A BSD- or MS-compatible name lister.
16200 NM=$lt_NM
16201
16202 # Whether we need soft or hard links.
16203 LN_S=$lt_LN_S
16204
16205 # What is the maximum length of a command?
16206 max_cmd_len=$max_cmd_len
16207
16208 # Object file suffix (normally "o").
16209 objext=$ac_objext
16210
16211 # Executable file suffix (normally "").
16212 exeext=$exeext
16213
16214 # whether the shell understands "unset".
16215 lt_unset=$lt_unset
16216
16217 # turn spaces into newlines.
16218 SP2NL=$lt_lt_SP2NL
16219
16220 # turn newlines into spaces.
16221 NL2SP=$lt_lt_NL2SP
16222
16223 # convert \$build file names to \$host format.
16224 to_host_file_cmd=$lt_cv_to_host_file_cmd
16225
16226 # convert \$build files to toolchain format.
16227 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16228
16229 # A file(cmd) program that detects file types.
16230 FILECMD=$lt_FILECMD
16231
16232 # An object symbol dumper.
16233 OBJDUMP=$lt_OBJDUMP
16234
16235 # Method to check whether dependent libraries are shared objects.
16236 deplibs_check_method=$lt_deplibs_check_method
16237
16238 # Command to use when deplibs_check_method = "file_magic".
16239 file_magic_cmd=$lt_file_magic_cmd
16240
16241 # How to find potential files when deplibs_check_method = "file_magic".
16242 file_magic_glob=$lt_file_magic_glob
16243
16244 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16245 want_nocaseglob=$lt_want_nocaseglob
16246
16247 # DLL creation program.
16248 DLLTOOL=$lt_DLLTOOL
16249
16250 # Command to associate shared and link libraries.
16251 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16252
16253 # The archiver.
16254 AR=$lt_AR
16255
16256 # Flags to create an archive (by configure).
16257 lt_ar_flags=$lt_ar_flags
16258
16259 # Flags to create an archive.
16260 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16261
16262 # How to feed a file listing to the archiver.
16263 archiver_list_spec=$lt_archiver_list_spec
16264
16265 # A symbol stripping program.
16266 STRIP=$lt_STRIP
16267
16268 # Commands used to install an old-style archive.
16269 RANLIB=$lt_RANLIB
16270 old_postinstall_cmds=$lt_old_postinstall_cmds
16271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16272
16273 # Whether to use a lock for old archive extraction.
16274 lock_old_archive_extraction=$lock_old_archive_extraction
16275
16276 # A C compiler.
16277 LTCC=$lt_CC
16278
16279 # LTCC compiler flags.
16280 LTCFLAGS=$lt_CFLAGS
16281
16282 # Take the output of nm and produce a listing of raw symbols and C names.
16283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16284
16285 # Transform the output of nm in a proper C declaration.
16286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16287
16288 # Transform the output of nm into a list of symbols to manually relocate.
16289 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16290
16291 # Transform the output of nm in a C name address pair.
16292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16293
16294 # Transform the output of nm in a C name address pair when lib prefix is needed.
16295 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16296
16297 # The name lister interface.
16298 nm_interface=$lt_lt_cv_nm_interface
16299
16300 # Specify filename containing input files for \$NM.
16301 nm_file_list_spec=$lt_nm_file_list_spec
16302
16303 # The root where to search for dependent libraries,and where our libraries should be installed.
16304 lt_sysroot=$lt_sysroot
16305
16306 # Command to truncate a binary pipe.
16307 lt_truncate_bin=$lt_lt_cv_truncate_bin
16308
16309 # The name of the directory that contains temporary libtool files.
16310 objdir=$objdir
16311
16312 # Used to examine libraries when file_magic_cmd begins with "file".
16313 MAGIC_CMD=$MAGIC_CMD
16314
16315 # Must we lock files when doing compilation?
16316 need_locks=$lt_need_locks
16317
16318 # Manifest tool.
16319 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16320
16321 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16322 DSYMUTIL=$lt_DSYMUTIL
16323
16324 # Tool to change global to local symbols on Mac OS X.
16325 NMEDIT=$lt_NMEDIT
16326
16327 # Tool to manipulate fat objects and archives on Mac OS X.
16328 LIPO=$lt_LIPO
16329
16330 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16331 OTOOL=$lt_OTOOL
16332
16333 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16334 OTOOL64=$lt_OTOOL64
16335
16336 # Old archive suffix (normally "a").
16337 libext=$libext
16338
16339 # Shared library suffix (normally ".so").
16340 shrext_cmds=$lt_shrext_cmds
16341
16342 # The commands to extract the exported symbol list from a shared archive.
16343 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16344
16345 # Variables whose values should be saved in libtool wrapper scripts and
16346 # restored at link time.
16347 variables_saved_for_relink=$lt_variables_saved_for_relink
16348
16349 # Do we need the "lib" prefix for modules?
16350 need_lib_prefix=$need_lib_prefix
16351
16352 # Do we need a version for libraries?
16353 need_version=$need_version
16354
16355 # Library versioning type.
16356 version_type=$version_type
16357
16358 # Shared library runtime path variable.
16359 runpath_var=$runpath_var
16360
16361 # Shared library path variable.
16362 shlibpath_var=$shlibpath_var
16363
16364 # Is shlibpath searched before the hard-coded library search path?
16365 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16366
16367 # Format of library name prefix.
16368 libname_spec=$lt_libname_spec
16369
16370 # List of archive names. First name is the real one, the rest are links.
16371 # The last name is the one that the linker finds with -lNAME
16372 library_names_spec=$lt_library_names_spec
16373
16374 # The coded name of the library, if different from the real name.
16375 soname_spec=$lt_soname_spec
16376
16377 # Permission mode override for installation of shared libraries.
16378 install_override_mode=$lt_install_override_mode
16379
16380 # Command to use after installation of a shared archive.
16381 postinstall_cmds=$lt_postinstall_cmds
16382
16383 # Command to use after uninstallation of a shared archive.
16384 postuninstall_cmds=$lt_postuninstall_cmds
16385
16386 # Commands used to finish a libtool library installation in a directory.
16387 finish_cmds=$lt_finish_cmds
16388
16389 # As "finish_cmds", except a single script fragment to be evaled but
16390 # not shown.
16391 finish_eval=$lt_finish_eval
16392
16393 # Whether we should hardcode library paths into libraries.
16394 hardcode_into_libs=$hardcode_into_libs
16395
16396 # Compile-time system search path for libraries.
16397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16398
16399 # Detected run-time system search path for libraries.
16400 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16401
16402 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16403 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16404
16405 # Whether dlopen is supported.
16406 dlopen_support=$enable_dlopen
16407
16408 # Whether dlopen of programs is supported.
16409 dlopen_self=$enable_dlopen_self
16410
16411 # Whether dlopen of statically linked programs is supported.
16412 dlopen_self_static=$enable_dlopen_self_static
16413
16414 # Commands to strip libraries.
16415 old_striplib=$lt_old_striplib
16416 striplib=$lt_striplib
16417
16418
16419 # The linker used to build libraries.
16420 LD=$lt_LD
16421
16422 # How to create reloadable object files.
16423 reload_flag=$lt_reload_flag
16424 reload_cmds=$lt_reload_cmds
16425
16426 # Commands used to build an old-style archive.
16427 old_archive_cmds=$lt_old_archive_cmds
16428
16429 # A language specific compiler.
16430 CC=$lt_compiler
16431
16432 # Is the compiler the GNU compiler?
16433 with_gcc=$GCC
16434
16435 # Compiler flag to turn off builtin functions.
16436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16437
16438 # Additional compiler flags for building library objects.
16439 pic_flag=$lt_lt_prog_compiler_pic
16440
16441 # How to pass a linker flag through the compiler.
16442 wl=$lt_lt_prog_compiler_wl
16443
16444 # Compiler flag to prevent dynamic linking.
16445 link_static_flag=$lt_lt_prog_compiler_static
16446
16447 # Does compiler simultaneously support -c and -o options?
16448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16449
16450 # Whether or not to add -lc for building shared libraries.
16451 build_libtool_need_lc=$archive_cmds_need_lc
16452
16453 # Whether or not to disallow shared libs when runtime libs are static.
16454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16455
16456 # Compiler flag to allow reflexive dlopens.
16457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16458
16459 # Compiler flag to generate shared objects directly from archives.
16460 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16461
16462 # Whether the compiler copes with passing no objects directly.
16463 compiler_needs_object=$lt_compiler_needs_object
16464
16465 # Create an old-style archive from a shared archive.
16466 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16467
16468 # Create a temporary old-style archive to link instead of a shared archive.
16469 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16470
16471 # Commands used to build a shared archive.
16472 archive_cmds=$lt_archive_cmds
16473 archive_expsym_cmds=$lt_archive_expsym_cmds
16474
16475 # Commands used to build a loadable module if different from building
16476 # a shared archive.
16477 module_cmds=$lt_module_cmds
16478 module_expsym_cmds=$lt_module_expsym_cmds
16479
16480 # Whether we are building with GNU ld or not.
16481 with_gnu_ld=$lt_with_gnu_ld
16482
16483 # Flag that allows shared libraries with undefined symbols to be built.
16484 allow_undefined_flag=$lt_allow_undefined_flag
16485
16486 # Flag that enforces no undefined symbols.
16487 no_undefined_flag=$lt_no_undefined_flag
16488
16489 # Flag to hardcode \$libdir into a binary during linking.
16490 # This must work even if \$libdir does not exist
16491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16492
16493 # Whether we need a single "-rpath" flag with a separated argument.
16494 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16495
16496 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16497 # DIR into the resulting binary.
16498 hardcode_direct=$hardcode_direct
16499
16500 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16501 # DIR into the resulting binary and the resulting library dependency is
16502 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16503 # library is relocated.
16504 hardcode_direct_absolute=$hardcode_direct_absolute
16505
16506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16507 # into the resulting binary.
16508 hardcode_minus_L=$hardcode_minus_L
16509
16510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16511 # into the resulting binary.
16512 hardcode_shlibpath_var=$hardcode_shlibpath_var
16513
16514 # Set to "yes" if building a shared library automatically hardcodes DIR
16515 # into the library and all subsequent libraries and executables linked
16516 # against it.
16517 hardcode_automatic=$hardcode_automatic
16518
16519 # Set to yes if linker adds runtime paths of dependent libraries
16520 # to runtime path list.
16521 inherit_rpath=$inherit_rpath
16522
16523 # Whether libtool must link a program against all its dependency libraries.
16524 link_all_deplibs=$link_all_deplibs
16525
16526 # Set to "yes" if exported symbols are required.
16527 always_export_symbols=$always_export_symbols
16528
16529 # The commands to list exported symbols.
16530 export_symbols_cmds=$lt_export_symbols_cmds
16531
16532 # Symbols that should not be listed in the preloaded symbols.
16533 exclude_expsyms=$lt_exclude_expsyms
16534
16535 # Symbols that must always be exported.
16536 include_expsyms=$lt_include_expsyms
16537
16538 # Commands necessary for linking programs (against libraries) with templates.
16539 prelink_cmds=$lt_prelink_cmds
16540
16541 # Commands necessary for finishing linking programs.
16542 postlink_cmds=$lt_postlink_cmds
16543
16544 # Specify filename containing input files.
16545 file_list_spec=$lt_file_list_spec
16546
16547 # How to hardcode a shared library path into an executable.
16548 hardcode_action=$hardcode_action
16549
16550 # ### END LIBTOOL CONFIG
16551
16552 _LT_EOF
16553
16554 cat <<'_LT_EOF' >> "$cfgfile"
16555
16556 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16557
16558 # func_munge_path_list VARIABLE PATH
16559 # -----------------------------------
16560 # VARIABLE is name of variable containing _space_ separated list of
16561 # directories to be munged by the contents of PATH, which is string
16562 # having a format:
16563 # "DIR[:DIR]:"
16564 # string "DIR[ DIR]" will be prepended to VARIABLE
16565 # ":DIR[:DIR]"
16566 # string "DIR[ DIR]" will be appended to VARIABLE
16567 # "DIRP[:DIRP]::[DIRA:]DIRA"
16568 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16569 # "DIRA[ DIRA]" will be appended to VARIABLE
16570 # "DIR[:DIR]"
16571 # VARIABLE will be replaced by "DIR[ DIR]"
16572 func_munge_path_list ()
16573 {
16574 case x$2 in
16575 x)
16576 ;;
16577 *:)
16578 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16579 ;;
16580 x:*)
16581 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16582 ;;
16583 *::*)
16584 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16585 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16586 ;;
16587 *)
16588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16589 ;;
16590 esac
16591 }
16592
16593
16594 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16595 func_cc_basename ()
16596 {
16597 for cc_temp in $*""; do
16598 case $cc_temp in
16599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16601 \-*) ;;
16602 *) break;;
16603 esac
16604 done
16605 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16606 }
16607
16608
16609 # ### END FUNCTIONS SHARED WITH CONFIGURE
16610
16611 _LT_EOF
16612
16613 case $host_os in
16614 aix3*)
16615 cat <<\_LT_EOF >> "$cfgfile"
16616 # AIX sometimes has problems with the GCC collect2 program. For some
16617 # reason, if we set the COLLECT_NAMES environment variable, the problems
16618 # vanish in a puff of smoke.
16619 if test set != "${COLLECT_NAMES+set}"; then
16620 COLLECT_NAMES=
16621 export COLLECT_NAMES
16622 fi
16623 _LT_EOF
16624 ;;
16625 esac
16626
16627
16628
16629 ltmain=$ac_aux_dir/ltmain.sh
16630
16631
16632 # We use sed instead of cat because bash on DJGPP gets confused if
16633 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16634 # text mode, it properly converts lines to CR/LF. This bash problem
16635 # is reportedly fixed, but why not run on old versions too?
16636 $SED '$q' "$ltmain" >> "$cfgfile" \
16637 || (rm -f "$cfgfile"; exit 1)
16638
16639 mv -f "$cfgfile" "$ofile" ||
16640 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16641 chmod +x "$ofile"
16642
16643 ;;
16644
16645 esac
16646 done # for ac_tag
16647
16648
16649 as_fn_exit 0
16650 _ACEOF
16651 ac_clean_files=$ac_clean_files_save
16652
16653 test $ac_write_fail = 0 ||
16654 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16655
16656
16657 # configure is writing to config.log, and then calls config.status.
16658 # config.status does its own redirection, appending to config.log.
16659 # Unfortunately, on DOS this fails, as config.log is still kept open
16660 # by configure, so config.status won't be able to write to it; its
16661 # output is simply discarded. So we exec the FD to /dev/null,
16662 # effectively closing config.log, so it can be properly (re)opened and
16663 # appended to by config.status. When coming back to configure, we
16664 # need to make the FD available again.
16665 if test "$no_create" != yes; then
16666 ac_cs_success=:
16667 ac_config_status_args=
16668 test "$silent" = yes &&
16669 ac_config_status_args="$ac_config_status_args --quiet"
16670 exec 5>/dev/null
16671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16672 exec 5>>config.log
16673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16674 # would make configure fail if this is the last instruction.
16675 $ac_cs_success || as_fn_exit 1
16676 fi
16677 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16679 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16680 fi
16681
16682