Debian Codegraph @

builds/unix/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for FreeType 2.14.3.
4 #
5 # Report bugs to <[email protected]>.
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: [email protected] about your system, including any
283 $0: error possibly output before this message. Then install
284 $0: a modern shell, or manually run the script under such a
285 $0: shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='FreeType'
616 PACKAGE_TARNAME='freetype'
617 PACKAGE_VERSION='2.14.3'
618 PACKAGE_STRING='FreeType 2.14.3'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="ftconfig.h.in"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='LTLIBOBJS
658 LIBOBJS
659 build_libtool_libs
660 wl
661 hardcode_libdir_flag_spec
662 LIBSSTATIC_CONFIG
663 PKGCONFIG_LIBS_PRIVATE
664 PKGCONFIG_REQUIRES_PRIVATE
665 PKGCONFIG_LIBS
666 PKGCONFIG_REQUIRES
667 ftmac_c
668 PYTHON_VERSION
669 PYTHON
670 PTHREAD_CFLAGS
671 PTHREAD_LIBS
672 PTHREAD_CXX
673 PTHREAD_CC
674 ax_pthread_config
675 target_os
676 target_vendor
677 target_cpu
678 target
679 FT_DEMO_LDFLAGS
680 FT_DEMO_CFLAGS
681 LIBRSVG_LIBS
682 LIBRSVG_CFLAGS
683 BROTLI_LIBS
684 BROTLI_CFLAGS
685 HARFBUZZ_LIBS
686 HARFBUZZ_CFLAGS
687 have_libpng
688 LIBPNG_LIBS
689 LIBPNG_CFLAGS
690 BZIP2_LIBS
691 BZIP2_CFLAGS
692 SYSTEM_ZLIB
693 ZLIB_LIBS
694 ZLIB_CFLAGS
695 XX_ANSIFLAGS
696 XX_CFLAGS
697 FTSYS_SRC
698 INSTALL_FT2_CONFIG
699 MKDIR_P
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 EXEEXT_BUILD
704 LDFLAGS_BUILD
705 CFLAGS_BUILD
706 CC_BUILD
707 RC
708 LT_SYS_LIBRARY_PATH
709 OTOOL64
710 OTOOL
711 LIPO
712 NMEDIT
713 DSYMUTIL
714 MANIFEST_TOOL
715 AWK
716 RANLIB
717 STRIP
718 ac_ct_AR
719 AR
720 FILECMD
721 LN_S
722 NM
723 ac_ct_DUMPBIN
724 DUMPBIN
725 LD
726 FGREP
727 EGREP
728 GREP
729 SED
730 LIBTOOL
731 OBJDUMP
732 DLLTOOL
733 AS
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 CPP
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 ft_version
754 version_info
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 runstatedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_shared
798 enable_static
799 enable_pic
800 with_pic
801 enable_fast_install
802 enable_aix_soname
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_freetype_config
808 enable_largefile
809 enable_mmap
810 with_zlib
811 with_bzip2
812 with_png
813 with_harfbuzz
814 with_brotli
815 with_librsvg
816 with_old_mac_fonts
817 with_fsspec
818 with_fsref
819 with_quickdraw_toolbox
820 with_quickdraw_carbon
821 with_ats
822 enable_year2038
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 PKG_CONFIG
834 PKG_CONFIG_PATH
835 PKG_CONFIG_LIBDIR
836 LT_SYS_LIBRARY_PATH
837 ZLIB_CFLAGS
838 ZLIB_LIBS
839 BZIP2_CFLAGS
840 BZIP2_LIBS
841 LIBPNG_CFLAGS
842 LIBPNG_LIBS
843 HARFBUZZ_CFLAGS
844 HARFBUZZ_LIBS
845 BROTLI_CFLAGS
846 BROTLI_LIBS
847 LIBRSVG_CFLAGS
848 LIBRSVG_LIBS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: '$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: '$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: '$ac_option'
1243 Try '$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: '$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 'configure' configures FreeType 2.14.3 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print 'checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for '--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or '..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, 'make install' will install all the files in
1424 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than '$ac_default_prefix' using '--prefix',
1426 for instance '--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of FreeType 2.14.3:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --enable-aix-soname=aix|svr4|both
1479 shared library versioning (aka "SONAME") variant to
1480 provide on AIX, [default=aix].
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-freetype-config
1483 install freetype-config
1484 --disable-largefile omit support for large files
1485 --disable-mmap do not check mmap() and do not use
1486 --enable-year2038 support timestamps after 2038
1487
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494 --with-zlib=[yes|no|auto]
1495 use system zlib instead of internal library
1496 [default=auto]
1497 --with-bzip2=[yes|no|auto]
1498 support bzip2 compressed fonts [default=auto]
1499 --with-png=[yes|no|auto]
1500 support png compressed OpenType embedded bitmaps
1501 [default=auto]
1502 --with-harfbuzz=[yes|dynamic|no|auto]
1503 improve auto-hinting of OpenType fonts
1504 [default=auto]
1505 --with-brotli=[yes|no|auto]
1506 support decompression of WOFF2 streams
1507 [default=auto]
1508 --with-librsvg=[yes|no|auto]
1509 support OpenType SVG fonts in FreeType demo programs
1510 [default=auto]
1511 --with-old-mac-fonts allow Mac resource-based fonts to be used
1512 --with-fsspec use obsolete FSSpec API of MacOS, if available
1513 (default=yes)
1514 --with-fsref use Carbon FSRef API of MacOS, if available
1515 (default=yes)
1516 --with-quickdraw-toolbox
1517 use MacOS QuickDraw in ToolBox, if available
1518 (default=yes)
1519 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1520 (default=yes)
1521 --with-ats use AppleTypeService, if available (default=yes)
1522
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1532 PKG_CONFIG path to pkg-config utility
1533 PKG_CONFIG_PATH
1534 directories to add to pkg-config's search path
1535 PKG_CONFIG_LIBDIR
1536 path overriding pkg-config's built-in search path
1537 LT_SYS_LIBRARY_PATH
1538 User-defined run-time library search path.
1539 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1540 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1541 BZIP2_CFLAGS
1542 C compiler flags for BZIP2, overriding pkg-config
1543 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
1544 LIBPNG_CFLAGS
1545 C compiler flags for LIBPNG, overriding pkg-config
1546 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1547 HARFBUZZ_CFLAGS
1548 C compiler flags for HARFBUZZ, overriding pkg-config
1549 HARFBUZZ_LIBS
1550 linker flags for HARFBUZZ, overriding pkg-config
1551 BROTLI_CFLAGS
1552 C compiler flags for BROTLI, overriding pkg-config
1553 BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1554 LIBRSVG_CFLAGS
1555 C compiler flags for LIBRSVG, overriding pkg-config
1556 LIBRSVG_LIBS
1557 linker flags for LIBRSVG, overriding pkg-config
1558
1559 Use these variables to override the choices made by 'configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <[email protected]>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for configure.gnu first; this name is used for a wrapper for
1609 # Metaconfig's "Configure" on case-insensitive file systems.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 FreeType configure 2.14.3
1627 generated by GNU Autoconf 2.72
1628
1629 Copyright (C) 2023 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633 exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest.beam
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext
1666 then :
1667 ac_retval=0
1668 else case e in #(
1669 e) printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1 ;;
1673 esac
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 printf "%s\n" "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }
1705 then :
1706 ac_retval=0
1707 else case e in #(
1708 e) printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1 ;;
1712 esac
1713 fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 printf "%s\n" "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 test -x conftest$ac_exeext
1747 }
1748 then :
1749 ac_retval=0
1750 else case e in #(
1751 e) printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1 ;;
1755 esac
1756 fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_link
1766
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 printf %s "checking for $2... " >&6; }
1776 if eval test \${$3+y}
1777 then :
1778 printf %s "(cached) " >&6
1779 else case e in #(
1780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"
1786 then :
1787 eval "$3=yes"
1788 else case e in #(
1789 e) eval "$3=no" ;;
1790 esac
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1793 esac
1794 fi
1795 eval ac_res=\$$3
1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 printf "%s\n" "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_compile
1801
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 printf %s "checking for $2... " >&6; }
1810 if eval test \${$3+y}
1811 then :
1812 printf %s "(cached) " >&6
1813 else case e in #(
1814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1818 #define $2 innocuous_$2
1819
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (void); below. */
1822
1823 #include <limits.h>
1824 #undef $2
1825
1826 /* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 (void);
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1839
1840 int
1841 main (void)
1842 {
1843 return $2 ();
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"
1849 then :
1850 eval "$3=yes"
1851 else case e in #(
1852 e) eval "$3=no" ;;
1853 esac
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1856 conftest$ac_exeext conftest.$ac_ext ;;
1857 esac
1858 fi
1859 eval ac_res=\$$3
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 printf "%s\n" "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_func
1865
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1869 # executables *can* be run.
1870 ac_fn_c_try_run ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 printf "%s\n" "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>&5
1881 ac_status=$?
1882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884 { { case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 printf "%s\n" "$ac_try_echo"; } >&5
1890 (eval "$ac_try") 2>&5
1891 ac_status=$?
1892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; }; }
1894 then :
1895 ac_retval=0
1896 else case e in #(
1897 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1898 printf "%s\n" "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=$ac_status ;;
1902 esac
1903 fi
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
1910 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1911 # ------------------------------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1914 ac_fn_check_decl ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1919 printf %s "checking whether $as_decl_name is declared... " >&6; }
1920 if eval test \${$3+y}
1921 then :
1922 printf %s "(cached) " >&6
1923 else case e in #(
1924 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1925 eval ac_save_FLAGS=\$$6
1926 as_fn_append $6 " $5"
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $4
1930 int
1931 main (void)
1932 {
1933 #ifndef $as_decl_name
1934 #ifdef __cplusplus
1935 (void) $as_decl_use;
1936 #else
1937 (void) $as_decl_name;
1938 #endif
1939 #endif
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 eval "$3=yes"
1948 else case e in #(
1949 e) eval "$3=no" ;;
1950 esac
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1953 eval $6=\$ac_save_FLAGS
1954 ;;
1955 esac
1956 fi
1957 eval ac_res=\$$3
1958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 printf "%s\n" "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_check_decl
1963 ac_configure_args_raw=
1964 for ac_arg
1965 do
1966 case $ac_arg in
1967 *\'*)
1968 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 esac
1970 as_fn_append ac_configure_args_raw " '$ac_arg'"
1971 done
1972
1973 case $ac_configure_args_raw in
1974 *$as_nl*)
1975 ac_safe_unquote= ;;
1976 *)
1977 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1978 ac_unsafe_a="$ac_unsafe_z#~"
1979 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1980 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1981 esac
1982
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by FreeType $as_me 2.14.3, which was
1988 generated by GNU Autoconf 2.72. Invocation command line was
1989
1990 $ $0$ac_configure_args_raw
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 case $as_dir in #(((
2024 '') as_dir=./ ;;
2025 */) ;;
2026 *) as_dir=$as_dir/ ;;
2027 esac
2028 printf "%s\n" "PATH: $as_dir"
2029 done
2030 IFS=$as_save_IFS
2031
2032 } >&5
2033
2034 cat >&5 <<_ACEOF
2035
2036
2037 ## ----------- ##
2038 ## Core tests. ##
2039 ## ----------- ##
2040
2041 _ACEOF
2042
2043
2044 # Keep a trace of the command line.
2045 # Strip out --no-create and --no-recursion so they do not pile up.
2046 # Strip out --silent because we don't want to record it for future runs.
2047 # Also quote any args containing shell meta-characters.
2048 # Make two passes to allow for proper duplicate-argument suppression.
2049 ac_configure_args=
2050 ac_configure_args0=
2051 ac_configure_args1=
2052 ac_must_keep_next=false
2053 for ac_pass in 1 2
2054 do
2055 for ac_arg
2056 do
2057 case $ac_arg in
2058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060 | -silent | --silent | --silen | --sile | --sil)
2061 continue ;;
2062 *\'*)
2063 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 esac
2065 case $ac_pass in
2066 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2067 2)
2068 as_fn_append ac_configure_args1 " '$ac_arg'"
2069 if test $ac_must_keep_next = true; then
2070 ac_must_keep_next=false # Got value, back to normal.
2071 else
2072 case $ac_arg in
2073 *=* | --config-cache | -C | -disable-* | --disable-* \
2074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076 | -with-* | --with-* | -without-* | --without-* | --x)
2077 case "$ac_configure_args0 " in
2078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079 esac
2080 ;;
2081 -* ) ac_must_keep_next=true ;;
2082 esac
2083 fi
2084 as_fn_append ac_configure_args " '$ac_arg'"
2085 ;;
2086 esac
2087 done
2088 done
2089 { ac_configure_args0=; unset ac_configure_args0;}
2090 { ac_configure_args1=; unset ac_configure_args1;}
2091
2092 # When interrupted or exit'd, cleanup temporary files, and complete
2093 # config.log. We remove comments because anyway the quotes in there
2094 # would cause problems or look ugly.
2095 # WARNING: Use '\'' to represent an apostrophe within the trap.
2096 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2097 trap 'exit_status=$?
2098 # Sanitize IFS.
2099 IFS=" "" $as_nl"
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
2104 printf "%s\n" "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109 (
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
2115 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137 )
2138 echo
2139
2140 printf "%s\n" "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 printf "%s\n" "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
2155 printf "%s\n" "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 printf "%s\n" "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 printf "%s\n" "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
2179 printf "%s\n" "$as_me: caught signal $ac_signal"
2180 printf "%s\n" "$as_me: exit $exit_status"
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 printf "%s\n" "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2199
2200 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2201
2202 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2203
2204 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2205
2206 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2207
2208 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2209
2210
2211 # Let the site file select an alternate cache file if it wants to.
2212 # Prefer an explicitly selected file to automatically selected ones.
2213 if test -n "$CONFIG_SITE"; then
2214 ac_site_files="$CONFIG_SITE"
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2217 else
2218 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2219 fi
2220
2221 for ac_site_file in $ac_site_files
2222 do
2223 case $ac_site_file in #(
2224 */*) :
2225 ;; #(
2226 *) :
2227 ac_site_file=./$ac_site_file ;;
2228 esac
2229 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2233 . "$ac_site_file" \
2234 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2235 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2236 as_fn_error $? "failed to load site script $ac_site_file
2237 See 'config.log' for more details" "$LINENO" 5; }
2238 fi
2239 done
2240
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2251 fi
2252 else
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2256 fi
2257
2258 # Test code for whether the C compiler supports C89 (global declarations)
2259 ac_c_conftest_c89_globals='
2260 /* Does the compiler advertise C89 conformance?
2261 Do not test the value of __STDC__, because some compilers set it to 0
2262 while being otherwise adequately conformant. */
2263 #if !defined __STDC__
2264 # error "Compiler does not advertise C89 conformance"
2265 #endif
2266
2267 #include <stddef.h>
2268 #include <stdarg.h>
2269 struct stat;
2270 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2271 struct buf { int x; };
2272 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2273 static char *e (char **p, int i)
2274 {
2275 return p[i];
2276 }
2277 static char *f (char * (*g) (char **, int), char **p, ...)
2278 {
2279 char *s;
2280 va_list v;
2281 va_start (v,p);
2282 s = g (p, va_arg (v,int));
2283 va_end (v);
2284 return s;
2285 }
2286
2287 /* C89 style stringification. */
2288 #define noexpand_stringify(a) #a
2289 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2290
2291 /* C89 style token pasting. Exercises some of the corner cases that
2292 e.g. old MSVC gets wrong, but not very hard. */
2293 #define noexpand_concat(a,b) a##b
2294 #define expand_concat(a,b) noexpand_concat(a,b)
2295 extern int vA;
2296 extern int vbee;
2297 #define aye A
2298 #define bee B
2299 int *pvA = &expand_concat(v,aye);
2300 int *pvbee = &noexpand_concat(v,bee);
2301
2302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2303 function prototypes and stuff, but not \xHH hex character constants.
2304 These do not provoke an error unfortunately, instead are silently treated
2305 as an "x". The following induces an error, until -std is added to get
2306 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2307 array size at least. It is necessary to write \x00 == 0 to get something
2308 that is true only with -std. */
2309 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2310
2311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2312 inside strings and character constants. */
2313 #define FOO(x) '\''x'\''
2314 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2315
2316 int test (int i, double x);
2317 struct s1 {int (*f) (int a);};
2318 struct s2 {int (*f) (double a);};
2319 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2320 int, int);'
2321
2322 # Test code for whether the C compiler supports C89 (body of main).
2323 ac_c_conftest_c89_main='
2324 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2325 '
2326
2327 # Test code for whether the C compiler supports C99 (global declarations)
2328 ac_c_conftest_c99_globals='
2329 /* Does the compiler advertise C99 conformance? */
2330 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2331 # error "Compiler does not advertise C99 conformance"
2332 #endif
2333
2334 // See if C++-style comments work.
2335
2336 #include <stdbool.h>
2337 extern int puts (const char *);
2338 extern int printf (const char *, ...);
2339 extern int dprintf (int, const char *, ...);
2340 extern void *malloc (size_t);
2341 extern void free (void *);
2342
2343 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2344 // dprintf is used instead of fprintf to avoid needing to declare
2345 // FILE and stderr.
2346 #define debug(...) dprintf (2, __VA_ARGS__)
2347 #define showlist(...) puts (#__VA_ARGS__)
2348 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2349 static void
2350 test_varargs_macros (void)
2351 {
2352 int x = 1234;
2353 int y = 5678;
2354 debug ("Flag");
2355 debug ("X = %d\n", x);
2356 showlist (The first, second, and third items.);
2357 report (x>y, "x is %d but y is %d", x, y);
2358 }
2359
2360 // Check long long types.
2361 #define BIG64 18446744073709551615ull
2362 #define BIG32 4294967295ul
2363 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2364 #if !BIG_OK
2365 #error "your preprocessor is broken"
2366 #endif
2367 #if BIG_OK
2368 #else
2369 #error "your preprocessor is broken"
2370 #endif
2371 static long long int bignum = -9223372036854775807LL;
2372 static unsigned long long int ubignum = BIG64;
2373
2374 struct incomplete_array
2375 {
2376 int datasize;
2377 double data[];
2378 };
2379
2380 struct named_init {
2381 int number;
2382 const wchar_t *name;
2383 double average;
2384 };
2385
2386 typedef const char *ccp;
2387
2388 static inline int
2389 test_restrict (ccp restrict text)
2390 {
2391 // Iterate through items via the restricted pointer.
2392 // Also check for declarations in for loops.
2393 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2394 continue;
2395 return 0;
2396 }
2397
2398 // Check varargs and va_copy.
2399 static bool
2400 test_varargs (const char *format, ...)
2401 {
2402 va_list args;
2403 va_start (args, format);
2404 va_list args_copy;
2405 va_copy (args_copy, args);
2406
2407 const char *str = "";
2408 int number = 0;
2409 float fnumber = 0;
2410
2411 while (*format)
2412 {
2413 switch (*format++)
2414 {
2415 case '\''s'\'': // string
2416 str = va_arg (args_copy, const char *);
2417 break;
2418 case '\''d'\'': // int
2419 number = va_arg (args_copy, int);
2420 break;
2421 case '\''f'\'': // float
2422 fnumber = va_arg (args_copy, double);
2423 break;
2424 default:
2425 break;
2426 }
2427 }
2428 va_end (args_copy);
2429 va_end (args);
2430
2431 return *str && number && fnumber;
2432 }
2433 '
2434
2435 # Test code for whether the C compiler supports C99 (body of main).
2436 ac_c_conftest_c99_main='
2437 // Check bool.
2438 _Bool success = false;
2439 success |= (argc != 0);
2440
2441 // Check restrict.
2442 if (test_restrict ("String literal") == 0)
2443 success = true;
2444 char *restrict newvar = "Another string";
2445
2446 // Check varargs.
2447 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2448 test_varargs_macros ();
2449
2450 // Check flexible array members.
2451 struct incomplete_array *ia =
2452 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2453 ia->datasize = 10;
2454 for (int i = 0; i < ia->datasize; ++i)
2455 ia->data[i] = i * 1.234;
2456 // Work around memory leak warnings.
2457 free (ia);
2458
2459 // Check named initializers.
2460 struct named_init ni = {
2461 .number = 34,
2462 .name = L"Test wide string",
2463 .average = 543.34343,
2464 };
2465
2466 ni.number = 58;
2467
2468 int dynamic_array[ni.number];
2469 dynamic_array[0] = argv[0][0];
2470 dynamic_array[ni.number - 1] = 543;
2471
2472 // work around unused variable warnings
2473 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2474 || dynamic_array[ni.number - 1] != 543);
2475 '
2476
2477 # Test code for whether the C compiler supports C11 (global declarations)
2478 ac_c_conftest_c11_globals='
2479 /* Does the compiler advertise C11 conformance? */
2480 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2481 # error "Compiler does not advertise C11 conformance"
2482 #endif
2483
2484 // Check _Alignas.
2485 char _Alignas (double) aligned_as_double;
2486 char _Alignas (0) no_special_alignment;
2487 extern char aligned_as_int;
2488 char _Alignas (0) _Alignas (int) aligned_as_int;
2489
2490 // Check _Alignof.
2491 enum
2492 {
2493 int_alignment = _Alignof (int),
2494 int_array_alignment = _Alignof (int[100]),
2495 char_alignment = _Alignof (char)
2496 };
2497 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2498
2499 // Check _Noreturn.
2500 int _Noreturn does_not_return (void) { for (;;) continue; }
2501
2502 // Check _Static_assert.
2503 struct test_static_assert
2504 {
2505 int x;
2506 _Static_assert (sizeof (int) <= sizeof (long int),
2507 "_Static_assert does not work in struct");
2508 long int y;
2509 };
2510
2511 // Check UTF-8 literals.
2512 #define u8 syntax error!
2513 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2514
2515 // Check duplicate typedefs.
2516 typedef long *long_ptr;
2517 typedef long int *long_ptr;
2518 typedef long_ptr long_ptr;
2519
2520 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2521 struct anonymous
2522 {
2523 union {
2524 struct { int i; int j; };
2525 struct { int k; long int l; } w;
2526 };
2527 int m;
2528 } v1;
2529 '
2530
2531 # Test code for whether the C compiler supports C11 (body of main).
2532 ac_c_conftest_c11_main='
2533 _Static_assert ((offsetof (struct anonymous, i)
2534 == offsetof (struct anonymous, w.k)),
2535 "Anonymous union alignment botch");
2536 v1.i = 2;
2537 v1.w.k = 5;
2538 ok |= v1.i != 5;
2539 '
2540
2541 # Test code for whether the C compiler supports C11 (complete).
2542 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2543 ${ac_c_conftest_c99_globals}
2544 ${ac_c_conftest_c11_globals}
2545
2546 int
2547 main (int argc, char **argv)
2548 {
2549 int ok = 0;
2550 ${ac_c_conftest_c89_main}
2551 ${ac_c_conftest_c99_main}
2552 ${ac_c_conftest_c11_main}
2553 return ok;
2554 }
2555 "
2556
2557 # Test code for whether the C compiler supports C99 (complete).
2558 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2559 ${ac_c_conftest_c99_globals}
2560
2561 int
2562 main (int argc, char **argv)
2563 {
2564 int ok = 0;
2565 ${ac_c_conftest_c89_main}
2566 ${ac_c_conftest_c99_main}
2567 return ok;
2568 }
2569 "
2570
2571 # Test code for whether the C compiler supports C89 (complete).
2572 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2573
2574 int
2575 main (int argc, char **argv)
2576 {
2577 int ok = 0;
2578 ${ac_c_conftest_c89_main}
2579 return ok;
2580 }
2581 "
2582
2583 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2584 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2585 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2586 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2587 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2588 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2589 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2590 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2591 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2592 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2593 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2594
2595 # Auxiliary files required by this configure script.
2596 ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2597
2598 # Locations in which to look for auxiliary files.
2599 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2600
2601 # Search for a directory containing all of the required auxiliary files,
2602 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2603 # If we don't find one directory that contains all the files we need,
2604 # we report the set of missing files from the *first* directory in
2605 # $ac_aux_dir_candidates and give up.
2606 ac_missing_aux_files=""
2607 ac_first_candidate=:
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 as_found=false
2611 for as_dir in $ac_aux_dir_candidates
2612 do
2613 IFS=$as_save_IFS
2614 case $as_dir in #(((
2615 '') as_dir=./ ;;
2616 */) ;;
2617 *) as_dir=$as_dir/ ;;
2618 esac
2619 as_found=:
2620
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2622 ac_aux_dir_found=yes
2623 ac_install_sh=
2624 for ac_aux in $ac_aux_files
2625 do
2626 # As a special case, if "install-sh" is required, that requirement
2627 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2628 # and $ac_install_sh is set appropriately for whichever one is found.
2629 if test x"$ac_aux" = x"install-sh"
2630 then
2631 if test -f "${as_dir}install-sh"; then
2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2633 ac_install_sh="${as_dir}install-sh -c"
2634 elif test -f "${as_dir}install.sh"; then
2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2636 ac_install_sh="${as_dir}install.sh -c"
2637 elif test -f "${as_dir}shtool"; then
2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2639 ac_install_sh="${as_dir}shtool install -c"
2640 else
2641 ac_aux_dir_found=no
2642 if $ac_first_candidate; then
2643 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2644 else
2645 break
2646 fi
2647 fi
2648 else
2649 if test -f "${as_dir}${ac_aux}"; then
2650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2651 else
2652 ac_aux_dir_found=no
2653 if $ac_first_candidate; then
2654 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2655 else
2656 break
2657 fi
2658 fi
2659 fi
2660 done
2661 if test "$ac_aux_dir_found" = yes; then
2662 ac_aux_dir="$as_dir"
2663 break
2664 fi
2665 ac_first_candidate=false
2666
2667 as_found=false
2668 done
2669 IFS=$as_save_IFS
2670 if $as_found
2671 then :
2672
2673 else case e in #(
2674 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2675 esac
2676 fi
2677
2678
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 if test -f "${ac_aux_dir}config.guess"; then
2684 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2685 fi
2686 if test -f "${ac_aux_dir}config.sub"; then
2687 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2688 fi
2689 if test -f "$ac_aux_dir/configure"; then
2690 ac_configure="$SHELL ${ac_aux_dir}configure"
2691 fi
2692
2693 # Check that the precious variables saved in the cache have kept the same
2694 # value.
2695 ac_cache_corrupted=false
2696 for ac_var in $ac_precious_vars; do
2697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2698 eval ac_new_set=\$ac_env_${ac_var}_set
2699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2700 eval ac_new_val=\$ac_env_${ac_var}_value
2701 case $ac_old_set,$ac_new_set in
2702 set,)
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2704 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2706 ,set)
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2708 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2710 ,);;
2711 *)
2712 if test "x$ac_old_val" != "x$ac_new_val"; then
2713 # differences in whitespace do not lead to failure.
2714 ac_old_val_w=`echo x $ac_old_val`
2715 ac_new_val_w=`echo x $ac_new_val`
2716 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2718 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2719 ac_cache_corrupted=:
2720 else
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2722 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2723 eval $ac_var=\$ac_old_val
2724 fi
2725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2726 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2728 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2729 fi;;
2730 esac
2731 # Pass precious variables to config.status.
2732 if test "$ac_new_set" = set; then
2733 case $ac_new_val in
2734 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2735 *) ac_arg=$ac_var=$ac_new_val ;;
2736 esac
2737 case " $ac_configure_args " in
2738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2739 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2740 esac
2741 fi
2742 done
2743 if $ac_cache_corrupted; then
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2745 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2747 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2748 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2749 and start over" "$LINENO" 5
2750 fi
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761
2762
2763
2764
2765 # Don't forget to update `docs/VERSIONS.TXT'!
2766
2767 version_info='26:6:20'
2768
2769 ft_version=`echo $version_info | tr : .`
2770
2771
2772
2773 # checks for system type
2774
2775
2776
2777
2778 # Make sure we can run config.sub.
2779 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2780 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2781
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2783 printf %s "checking build system type... " >&6; }
2784 if test ${ac_cv_build+y}
2785 then :
2786 printf %s "(cached) " >&6
2787 else case e in #(
2788 e) ac_build_alias=$build_alias
2789 test "x$ac_build_alias" = x &&
2790 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2791 test "x$ac_build_alias" = x &&
2792 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2793 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2794 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2795 ;;
2796 esac
2797 fi
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2799 printf "%s\n" "$ac_cv_build" >&6; }
2800 case $ac_cv_build in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2803 esac
2804 build=$ac_cv_build
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_build
2807 shift
2808 build_cpu=$1
2809 build_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 build_os=$*
2814 IFS=$ac_save_IFS
2815 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2819 printf %s "checking host system type... " >&6; }
2820 if test ${ac_cv_host+y}
2821 then :
2822 printf %s "(cached) " >&6
2823 else case e in #(
2824 e) if test "x$host_alias" = x; then
2825 ac_cv_host=$ac_cv_build
2826 else
2827 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2828 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2829 fi
2830 ;;
2831 esac
2832 fi
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2834 printf "%s\n" "$ac_cv_host" >&6; }
2835 case $ac_cv_host in
2836 *-*-*) ;;
2837 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2838 esac
2839 host=$ac_cv_host
2840 ac_save_IFS=$IFS; IFS='-'
2841 set x $ac_cv_host
2842 shift
2843 host_cpu=$1
2844 host_vendor=$2
2845 shift; shift
2846 # Remember, the first character of IFS is used to create $*,
2847 # except with old shells:
2848 host_os=$*
2849 IFS=$ac_save_IFS
2850 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2851
2852
2853
2854
2855 # checks for programs
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 printf %s "checking for $ac_word... " >&6; }
2876 if test ${ac_cv_prog_CC+y}
2877 then :
2878 printf %s "(cached) " >&6
2879 else case e in #(
2880 e) if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 case $as_dir in #(((
2888 '') as_dir=./ ;;
2889 */) ;;
2890 *) as_dir=$as_dir/ ;;
2891 esac
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi ;;
2903 esac
2904 fi
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 printf "%s\n" "$CC" >&6; }
2909 else
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 printf "%s\n" "no" >&6; }
2912 fi
2913
2914
2915 fi
2916 if test -z "$ac_cv_prog_CC"; then
2917 ac_ct_CC=$CC
2918 # Extract the first word of "gcc", so it can be a program name with args.
2919 set dummy gcc; ac_word=$2
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 printf %s "checking for $ac_word... " >&6; }
2922 if test ${ac_cv_prog_ac_ct_CC+y}
2923 then :
2924 printf %s "(cached) " >&6
2925 else case e in #(
2926 e) if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 case $as_dir in #(((
2934 '') as_dir=./ ;;
2935 */) ;;
2936 *) as_dir=$as_dir/ ;;
2937 esac
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi ;;
2949 esac
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 printf "%s\n" "$ac_ct_CC" >&6; }
2955 else
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 printf "%s\n" "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2970 fi
2971 else
2972 CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 printf %s "checking for $ac_word... " >&6; }
2981 if test ${ac_cv_prog_CC+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else case e in #(
2985 e) if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="${ac_tool_prefix}cc"
3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi ;;
3008 esac
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 printf "%s\n" "$CC" >&6; }
3014 else
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 printf "%s\n" "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 fi
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_CC+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else case e in #(
3031 e) if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 ac_prog_rejected=no
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 case $as_dir in #(((
3040 '') as_dir=./ ;;
3041 */) ;;
3042 *) as_dir=$as_dir/ ;;
3043 esac
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3046 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047 ac_prog_rejected=yes
3048 continue
3049 fi
3050 ac_cv_prog_CC="cc"
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 if test $ac_prog_rejected = yes; then
3059 # We found a bogon in the path, so make sure we never use it.
3060 set dummy $ac_cv_prog_CC
3061 shift
3062 if test $# != 0; then
3063 # We chose a different compiler from the bogus one.
3064 # However, it has the same basename, so the bogon will be chosen
3065 # first if we set CC to just the basename; use the full file name.
3066 shift
3067 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3068 fi
3069 fi
3070 fi ;;
3071 esac
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 printf "%s\n" "$CC" >&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 "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in cl.exe
3087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 printf %s "checking for $ac_word... " >&6; }
3092 if test ${ac_cv_prog_CC+y}
3093 then :
3094 printf %s "(cached) " >&6
3095 else case e in #(
3096 e) if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 case $as_dir in #(((
3104 '') as_dir=./ ;;
3105 */) ;;
3106 *) as_dir=$as_dir/ ;;
3107 esac
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi ;;
3119 esac
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 printf "%s\n" "$CC" >&6; }
3125 else
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 printf "%s\n" "no" >&6; }
3128 fi
3129
3130
3131 test -n "$CC" && break
3132 done
3133 fi
3134 if test -z "$CC"; then
3135 ac_ct_CC=$CC
3136 for ac_prog in cl.exe
3137 do
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 printf %s "checking for $ac_word... " >&6; }
3142 if test ${ac_cv_prog_ac_ct_CC+y}
3143 then :
3144 printf %s "(cached) " >&6
3145 else case e in #(
3146 e) if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 case $as_dir in #(((
3154 '') as_dir=./ ;;
3155 */) ;;
3156 *) as_dir=$as_dir/ ;;
3157 esac
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_CC="$ac_prog"
3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi ;;
3169 esac
3170 fi
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174 printf "%s\n" "$ac_ct_CC" >&6; }
3175 else
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 printf "%s\n" "no" >&6; }
3178 fi
3179
3180
3181 test -n "$ac_ct_CC" && break
3182 done
3183
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3194 fi
3195 fi
3196
3197 fi
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}clang; ac_word=$2
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 printf %s "checking for $ac_word... " >&6; }
3204 if test ${ac_cv_prog_CC+y}
3205 then :
3206 printf %s "(cached) " >&6
3207 else case e in #(
3208 e) if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 case $as_dir in #(((
3216 '') as_dir=./ ;;
3217 */) ;;
3218 *) as_dir=$as_dir/ ;;
3219 esac
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_CC="${ac_tool_prefix}clang"
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi ;;
3231 esac
3232 fi
3233 CC=$ac_cv_prog_CC
3234 if test -n "$CC"; then
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 printf "%s\n" "$CC" >&6; }
3237 else
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 printf "%s\n" "no" >&6; }
3240 fi
3241
3242
3243 fi
3244 if test -z "$ac_cv_prog_CC"; then
3245 ac_ct_CC=$CC
3246 # Extract the first word of "clang", so it can be a program name with args.
3247 set dummy clang; ac_word=$2
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 printf %s "checking for $ac_word... " >&6; }
3250 if test ${ac_cv_prog_ac_ct_CC+y}
3251 then :
3252 printf %s "(cached) " >&6
3253 else case e in #(
3254 e) if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 case $as_dir in #(((
3262 '') as_dir=./ ;;
3263 */) ;;
3264 *) as_dir=$as_dir/ ;;
3265 esac
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_ac_ct_CC="clang"
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi ;;
3277 esac
3278 fi
3279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 printf "%s\n" "$ac_ct_CC" >&6; }
3283 else
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3286 fi
3287
3288 if test "x$ac_ct_CC" = x; then
3289 CC=""
3290 else
3291 case $cross_compiling:$ac_tool_warned in
3292 yes:)
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295 ac_tool_warned=yes ;;
3296 esac
3297 CC=$ac_ct_CC
3298 fi
3299 else
3300 CC="$ac_cv_prog_CC"
3301 fi
3302
3303 fi
3304
3305
3306 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3307 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3308 as_fn_error $? "no acceptable C compiler found in \$PATH
3309 See 'config.log' for more details" "$LINENO" 5; }
3310
3311 # Provide some information about the compiler.
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313 set X $ac_compile
3314 ac_compiler=$2
3315 for ac_option in --version -v -V -qversion -version; do
3316 { { ac_try="$ac_compiler $ac_option >&5"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 printf "%s\n" "$ac_try_echo"; } >&5
3323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324 ac_status=$?
3325 if test -s conftest.err; then
3326 sed '10a\
3327 ... rest of stderr output deleted ...
3328 10q' conftest.err >conftest.er1
3329 cat conftest.er1 >&5
3330 fi
3331 rm -f conftest.er1 conftest.err
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 done
3335
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main (void)
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3351 # of exeext.
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3353 printf %s "checking whether the C compiler works... " >&6; }
3354 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355
3356 # The possible output files:
3357 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3358
3359 ac_rmfiles=
3360 for ac_file in $ac_files
3361 do
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3365 esac
3366 done
3367 rm -f $ac_rmfiles
3368
3369 if { { ac_try="$ac_link_default"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 printf "%s\n" "$ac_try_echo"; } >&5
3376 (eval "$ac_link_default") 2>&5
3377 ac_status=$?
3378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }
3380 then :
3381 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3382 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3383 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3384 # so that the user can short-circuit this test for compilers unknown to
3385 # Autoconf.
3386 for ac_file in $ac_files ''
3387 do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3391 ;;
3392 [ab].out )
3393 # We found the default executable, but exeext='' is most
3394 # certainly right.
3395 break;;
3396 *.* )
3397 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3398 then :; else
3399 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 fi
3401 # We set ac_cv_exeext here because the later test for it is not
3402 # safe: cross compilers may not add the suffix if given an '-o'
3403 # argument, so we may need to know it at that point already.
3404 # Even if this section looks crufty: it has the advantage of
3405 # actually working.
3406 break;;
3407 * )
3408 break;;
3409 esac
3410 done
3411 test "$ac_cv_exeext" = no && ac_cv_exeext=
3412
3413 else case e in #(
3414 e) ac_file='' ;;
3415 esac
3416 fi
3417 if test -z "$ac_file"
3418 then :
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 printf "%s\n" "no" >&6; }
3421 printf "%s\n" "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3425 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3426 as_fn_error 77 "C compiler cannot create executables
3427 See 'config.log' for more details" "$LINENO" 5; }
3428 else case e in #(
3429 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 printf "%s\n" "yes" >&6; } ;;
3431 esac
3432 fi
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3434 printf %s "checking for C compiler default output file name... " >&6; }
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3436 printf "%s\n" "$ac_file" >&6; }
3437 ac_exeext=$ac_cv_exeext
3438
3439 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3440 ac_clean_files=$ac_clean_files_save
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 printf %s "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 printf "%s\n" "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 then :
3455 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3456 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3457 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3458 # 'rm'.
3459 for ac_file in conftest.exe conftest conftest.*; do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 break;;
3465 * ) break;;
3466 esac
3467 done
3468 else case e in #(
3469 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3470 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3472 See 'config.log' for more details" "$LINENO" 5; } ;;
3473 esac
3474 fi
3475 rm -f conftest conftest$ac_cv_exeext
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477 printf "%s\n" "$ac_cv_exeext" >&6; }
3478
3479 rm -f conftest.$ac_ext
3480 EXEEXT=$ac_cv_exeext
3481 ac_exeext=$EXEEXT
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdio.h>
3485 int
3486 main (void)
3487 {
3488 FILE *f = fopen ("conftest.out", "w");
3489 if (!f)
3490 return 1;
3491 return ferror (f) || fclose (f) != 0;
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 ac_clean_files="$ac_clean_files conftest.out"
3498 # Check that the compiler produces executables we can run. If not, either
3499 # the compiler is broken, or we cross compile.
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3501 printf %s "checking whether we are cross compiling... " >&6; }
3502 if test "$cross_compiling" != yes; then
3503 { { ac_try="$ac_link"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 printf "%s\n" "$ac_try_echo"; } >&5
3510 (eval "$ac_link") 2>&5
3511 ac_status=$?
3512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3514 if { ac_try='./conftest$ac_cv_exeext'
3515 { { case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 printf "%s\n" "$ac_try_echo"; } >&5
3521 (eval "$ac_try") 2>&5
3522 ac_status=$?
3523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; }; then
3525 cross_compiling=no
3526 else
3527 if test "$cross_compiling" = maybe; then
3528 cross_compiling=yes
3529 else
3530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3531 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3532 as_fn_error 77 "cannot run C compiled programs.
3533 If you meant to cross compile, use '--host'.
3534 See 'config.log' for more details" "$LINENO" 5; }
3535 fi
3536 fi
3537 fi
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3539 printf "%s\n" "$cross_compiling" >&6; }
3540
3541 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3542 conftest.o conftest.obj conftest.out
3543 ac_clean_files=$ac_clean_files_save
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3545 printf %s "checking for suffix of object files... " >&6; }
3546 if test ${ac_cv_objext+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main (void)
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.o conftest.obj
3562 if { { ac_try="$ac_compile"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 printf "%s\n" "$ac_try_echo"; } >&5
3569 (eval "$ac_compile") 2>&5
3570 ac_status=$?
3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 then :
3574 for ac_file in conftest.o conftest.obj conftest.*; do
3575 test -f "$ac_file" || continue;
3576 case $ac_file in
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579 break;;
3580 esac
3581 done
3582 else case e in #(
3583 e) printf "%s\n" "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot compute suffix of object files: cannot compile
3589 See 'config.log' for more details" "$LINENO" 5; } ;;
3590 esac
3591 fi
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3593 esac
3594 fi
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3596 printf "%s\n" "$ac_cv_objext" >&6; }
3597 OBJEXT=$ac_cv_objext
3598 ac_objext=$OBJEXT
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3600 printf %s "checking whether the compiler supports GNU C... " >&6; }
3601 if test ${ac_cv_c_compiler_gnu+y}
3602 then :
3603 printf %s "(cached) " >&6
3604 else case e in #(
3605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607
3608 int
3609 main (void)
3610 {
3611 #ifndef __GNUC__
3612 choke me
3613 #endif
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"
3620 then :
3621 ac_compiler_gnu=yes
3622 else case e in #(
3623 e) ac_compiler_gnu=no ;;
3624 esac
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628 ;;
3629 esac
3630 fi
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3632 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635 if test $ac_compiler_gnu = yes; then
3636 GCC=yes
3637 else
3638 GCC=
3639 fi
3640 ac_test_CFLAGS=${CFLAGS+y}
3641 ac_save_CFLAGS=$CFLAGS
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643 printf %s "checking whether $CC accepts -g... " >&6; }
3644 if test ${ac_cv_prog_cc_g+y}
3645 then :
3646 printf %s "(cached) " >&6
3647 else case e in #(
3648 e) ac_save_c_werror_flag=$ac_c_werror_flag
3649 ac_c_werror_flag=yes
3650 ac_cv_prog_cc_g=no
3651 CFLAGS="-g"
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654
3655 int
3656 main (void)
3657 {
3658
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"
3664 then :
3665 ac_cv_prog_cc_g=yes
3666 else case e in #(
3667 e) CFLAGS=""
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main (void)
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"
3680 then :
3681
3682 else case e in #(
3683 e) ac_c_werror_flag=$ac_save_c_werror_flag
3684 CFLAGS="-g"
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main (void)
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"
3697 then :
3698 ac_cv_prog_cc_g=yes
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3701 esac
3702 fi
3703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3704 esac
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3707 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3708 esac
3709 fi
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3711 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3712 if test $ac_test_CFLAGS; then
3713 CFLAGS=$ac_save_CFLAGS
3714 elif test $ac_cv_prog_cc_g = yes; then
3715 if test "$GCC" = yes; then
3716 CFLAGS="-g -O2"
3717 else
3718 CFLAGS="-g"
3719 fi
3720 else
3721 if test "$GCC" = yes; then
3722 CFLAGS="-O2"
3723 else
3724 CFLAGS=
3725 fi
3726 fi
3727 ac_prog_cc_stdc=no
3728 if test x$ac_prog_cc_stdc = xno
3729 then :
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3731 printf %s "checking for $CC option to enable C11 features... " >&6; }
3732 if test ${ac_cv_prog_cc_c11+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else case e in #(
3736 e) ac_cv_prog_cc_c11=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 $ac_c_conftest_c11_program
3741 _ACEOF
3742 for ac_arg in '' -std=gnu11
3743 do
3744 CC="$ac_save_CC $ac_arg"
3745 if ac_fn_c_try_compile "$LINENO"
3746 then :
3747 ac_cv_prog_cc_c11=$ac_arg
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.beam
3750 test "x$ac_cv_prog_cc_c11" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC ;;
3754 esac
3755 fi
3756
3757 if test "x$ac_cv_prog_cc_c11" = xno
3758 then :
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760 printf "%s\n" "unsupported" >&6; }
3761 else case e in #(
3762 e) if test "x$ac_cv_prog_cc_c11" = x
3763 then :
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765 printf "%s\n" "none needed" >&6; }
3766 else case e in #(
3767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3768 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3769 CC="$CC $ac_cv_prog_cc_c11" ;;
3770 esac
3771 fi
3772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3773 ac_prog_cc_stdc=c11 ;;
3774 esac
3775 fi
3776 fi
3777 if test x$ac_prog_cc_stdc = xno
3778 then :
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3780 printf %s "checking for $CC option to enable C99 features... " >&6; }
3781 if test ${ac_cv_prog_cc_c99+y}
3782 then :
3783 printf %s "(cached) " >&6
3784 else case e in #(
3785 e) ac_cv_prog_cc_c99=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 $ac_c_conftest_c99_program
3790 _ACEOF
3791 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3792 do
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"
3795 then :
3796 ac_cv_prog_cc_c99=$ac_arg
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.beam
3799 test "x$ac_cv_prog_cc_c99" != "xno" && break
3800 done
3801 rm -f conftest.$ac_ext
3802 CC=$ac_save_CC ;;
3803 esac
3804 fi
3805
3806 if test "x$ac_cv_prog_cc_c99" = xno
3807 then :
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3809 printf "%s\n" "unsupported" >&6; }
3810 else case e in #(
3811 e) if test "x$ac_cv_prog_cc_c99" = x
3812 then :
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814 printf "%s\n" "none needed" >&6; }
3815 else case e in #(
3816 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3817 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3818 CC="$CC $ac_cv_prog_cc_c99" ;;
3819 esac
3820 fi
3821 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3822 ac_prog_cc_stdc=c99 ;;
3823 esac
3824 fi
3825 fi
3826 if test x$ac_prog_cc_stdc = xno
3827 then :
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3829 printf %s "checking for $CC option to enable C89 features... " >&6; }
3830 if test ${ac_cv_prog_cc_c89+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else case e in #(
3834 e) ac_cv_prog_cc_c89=no
3835 ac_save_CC=$CC
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 $ac_c_conftest_c89_program
3839 _ACEOF
3840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 do
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"
3844 then :
3845 ac_cv_prog_cc_c89=$ac_arg
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.beam
3848 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC ;;
3852 esac
3853 fi
3854
3855 if test "x$ac_cv_prog_cc_c89" = xno
3856 then :
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3858 printf "%s\n" "unsupported" >&6; }
3859 else case e in #(
3860 e) if test "x$ac_cv_prog_cc_c89" = x
3861 then :
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3863 printf "%s\n" "none needed" >&6; }
3864 else case e in #(
3865 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3866 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3867 CC="$CC $ac_cv_prog_cc_c89" ;;
3868 esac
3869 fi
3870 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3871 ac_prog_cc_stdc=c89 ;;
3872 esac
3873 fi
3874 fi
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3888 printf %s "checking how to run the C preprocessor... " >&6; }
3889 # On Suns, sometimes $CPP names a directory.
3890 if test -n "$CPP" && test -d "$CPP"; then
3891 CPP=
3892 fi
3893 if test -z "$CPP"; then
3894 if test ${ac_cv_prog_CPP+y}
3895 then :
3896 printf %s "(cached) " >&6
3897 else case e in #(
3898 e) # Double quotes because $CC needs to be expanded
3899 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3900 do
3901 ac_preproc_ok=false
3902 for ac_c_preproc_warn_flag in '' yes
3903 do
3904 # Use a header file that comes with gcc, so configuring glibc
3905 # with a fresh cross-compiler works.
3906 # On the NeXT, cc -E runs the code through the compiler's parser,
3907 # not just through cpp. "Syntax error" is here to catch this case.
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #include <limits.h>
3911 Syntax error
3912 _ACEOF
3913 if ac_fn_c_try_cpp "$LINENO"
3914 then :
3915
3916 else case e in #(
3917 e) # Broken: fails on valid input.
3918 continue ;;
3919 esac
3920 fi
3921 rm -f conftest.err conftest.i conftest.$ac_ext
3922
3923 # OK, works on sane cases. Now check whether nonexistent headers
3924 # can be detected and how.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <ac_nonexistent.h>
3928 _ACEOF
3929 if ac_fn_c_try_cpp "$LINENO"
3930 then :
3931 # Broken: success on invalid input.
3932 continue
3933 else case e in #(
3934 e) # Passes both tests.
3935 ac_preproc_ok=:
3936 break ;;
3937 esac
3938 fi
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3940
3941 done
3942 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.i conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok
3945 then :
3946 break
3947 fi
3948
3949 done
3950 ac_cv_prog_CPP=$CPP
3951 ;;
3952 esac
3953 fi
3954 CPP=$ac_cv_prog_CPP
3955 else
3956 ac_cv_prog_CPP=$CPP
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3959 printf "%s\n" "$CPP" >&6; }
3960 ac_preproc_ok=false
3961 for ac_c_preproc_warn_flag in '' yes
3962 do
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #include <limits.h>
3970 Syntax error
3971 _ACEOF
3972 if ac_fn_c_try_cpp "$LINENO"
3973 then :
3974
3975 else case e in #(
3976 e) # Broken: fails on valid input.
3977 continue ;;
3978 esac
3979 fi
3980 rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982 # OK, works on sane cases. Now check whether nonexistent headers
3983 # can be detected and how.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if ac_fn_c_try_cpp "$LINENO"
3989 then :
3990 # Broken: success on invalid input.
3991 continue
3992 else case e in #(
3993 e) # Passes both tests.
3994 ac_preproc_ok=:
3995 break ;;
3996 esac
3997 fi
3998 rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000 done
4001 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok
4004 then :
4005
4006 else case e in #(
4007 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4008 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4009 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4010 See 'config.log' for more details" "$LINENO" 5; } ;;
4011 esac
4012 fi
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_path_PKG_CONFIG+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) case $PKG_CONFIG in
4040 [\\/]* | ?:[\\/]*)
4041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4042 ;;
4043 *)
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 case $as_dir in #(((
4049 '') as_dir=./ ;;
4050 */) ;;
4051 *) as_dir=$as_dir/ ;;
4052 esac
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4055 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059 done
4060 done
4061 IFS=$as_save_IFS
4062
4063 ;;
4064 esac ;;
4065 esac
4066 fi
4067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4068 if test -n "$PKG_CONFIG"; then
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4070 printf "%s\n" "$PKG_CONFIG" >&6; }
4071 else
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 printf "%s\n" "no" >&6; }
4074 fi
4075
4076
4077 fi
4078 if test -z "$ac_cv_path_PKG_CONFIG"; then
4079 ac_pt_PKG_CONFIG=$PKG_CONFIG
4080 # Extract the first word of "pkg-config", so it can be a program name with args.
4081 set dummy pkg-config; ac_word=$2
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 printf %s "checking for $ac_word... " >&6; }
4084 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4085 then :
4086 printf %s "(cached) " >&6
4087 else case e in #(
4088 e) case $ac_pt_PKG_CONFIG in
4089 [\\/]* | ?:[\\/]*)
4090 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4091 ;;
4092 *)
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 case $as_dir in #(((
4098 '') as_dir=./ ;;
4099 */) ;;
4100 *) as_dir=$as_dir/ ;;
4101 esac
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4104 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 ;;
4113 esac ;;
4114 esac
4115 fi
4116 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4117 if test -n "$ac_pt_PKG_CONFIG"; then
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4119 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4120 else
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 printf "%s\n" "no" >&6; }
4123 fi
4124
4125 if test "x$ac_pt_PKG_CONFIG" = x; then
4126 PKG_CONFIG=""
4127 else
4128 case $cross_compiling:$ac_tool_warned in
4129 yes:)
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4132 ac_tool_warned=yes ;;
4133 esac
4134 PKG_CONFIG=$ac_pt_PKG_CONFIG
4135 fi
4136 else
4137 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4138 fi
4139
4140 fi
4141 if test -n "$PKG_CONFIG"; then
4142 _pkg_min_version=0.24
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4144 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4145 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4147 printf "%s\n" "yes" >&6; }
4148 else
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 printf "%s\n" "no" >&6; }
4151 PKG_CONFIG=""
4152 fi
4153 fi
4154
4155
4156 case `pwd` in
4157 *\ * | *\ *)
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4159 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4160 esac
4161
4162
4163
4164 macro_version='2.5.4'
4165 macro_revision='2.5.4'
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180 ltmain=$ac_aux_dir/ltmain.sh
4181
4182 # Backslashify metacharacters that are still active within
4183 # double-quoted strings.
4184 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4185
4186 # Same as above, but do not quote variable references.
4187 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4188
4189 # Sed substitution to delay expansion of an escaped shell variable in a
4190 # double_quote_subst'ed string.
4191 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4192
4193 # Sed substitution to delay expansion of an escaped single quote.
4194 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4195
4196 # Sed substitution to avoid accidental globbing in evaled expressions
4197 no_glob_subst='s/\*/\\\*/g'
4198
4199 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4200 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4201 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4202
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4204 printf %s "checking how to print strings... " >&6; }
4205 # Test print first, because it will be a builtin if present.
4206 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4207 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4208 ECHO='print -r --'
4209 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4210 ECHO='printf %s\n'
4211 else
4212 # Use this function as a fallback that always works.
4213 func_fallback_echo ()
4214 {
4215 eval 'cat <<_LTECHO_EOF
4216 $1
4217 _LTECHO_EOF'
4218 }
4219 ECHO='func_fallback_echo'
4220 fi
4221
4222 # func_echo_all arg...
4223 # Invoke $ECHO with all args, space-separated.
4224 func_echo_all ()
4225 {
4226 $ECHO ""
4227 }
4228
4229 case $ECHO in
4230 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4231 printf "%s\n" "printf" >&6; } ;;
4232 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4233 printf "%s\n" "print -r" >&6; } ;;
4234 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4235 printf "%s\n" "cat" >&6; } ;;
4236 esac
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4252 printf %s "checking for a sed that does not truncate output... " >&6; }
4253 if test ${ac_cv_path_SED+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else case e in #(
4257 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4258 for ac_i in 1 2 3 4 5 6 7; do
4259 ac_script="$ac_script$as_nl$ac_script"
4260 done
4261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4262 { ac_script=; unset ac_script;}
4263 if test -z "$SED"; then
4264 ac_path_SED_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 case $as_dir in #(((
4271 '') as_dir=./ ;;
4272 */) ;;
4273 *) as_dir=$as_dir/ ;;
4274 esac
4275 for ac_prog in sed gsed
4276 do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4279 as_fn_executable_p "$ac_path_SED" || continue
4280 # Check for GNU ac_path_SED and select it if it is found.
4281 # Check for GNU $ac_path_SED
4282 case `"$ac_path_SED" --version 2>&1` in #(
4283 *GNU*)
4284 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4285 #(
4286 *)
4287 ac_count=0
4288 printf %s 0123456789 >"conftest.in"
4289 while :
4290 do
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 printf "%s\n" '' >> "conftest.nl"
4295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 as_fn_arith $ac_count + 1 && ac_count=$as_val
4298 if test $ac_count -gt ${ac_path_SED_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_SED="$ac_path_SED"
4301 ac_path_SED_max=$ac_count
4302 fi
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4308
4309 $ac_path_SED_found && break 3
4310 done
4311 done
4312 done
4313 IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_SED"; then
4315 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4316 fi
4317 else
4318 ac_cv_path_SED=$SED
4319 fi
4320 ;;
4321 esac
4322 fi
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4324 printf "%s\n" "$ac_cv_path_SED" >&6; }
4325 SED="$ac_cv_path_SED"
4326 rm -f conftest.sed
4327
4328 test -z "$SED" && SED=sed
4329 Xsed="$SED -e 1s/^X//"
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4342 printf %s "checking for grep that handles long lines and -e... " >&6; }
4343 if test ${ac_cv_path_GREP+y}
4344 then :
4345 printf %s "(cached) " >&6
4346 else case e in #(
4347 e) if test -z "$GREP"; then
4348 ac_path_GREP_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 do
4353 IFS=$as_save_IFS
4354 case $as_dir in #(((
4355 '') as_dir=./ ;;
4356 */) ;;
4357 *) as_dir=$as_dir/ ;;
4358 esac
4359 for ac_prog in grep ggrep
4360 do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4363 as_fn_executable_p "$ac_path_GREP" || continue
4364 # Check for GNU ac_path_GREP and select it if it is found.
4365 # Check for GNU $ac_path_GREP
4366 case `"$ac_path_GREP" --version 2>&1` in #(
4367 *GNU*)
4368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4369 #(
4370 *)
4371 ac_count=0
4372 printf %s 0123456789 >"conftest.in"
4373 while :
4374 do
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 printf "%s\n" 'GREP' >> "conftest.nl"
4379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_GREP="$ac_path_GREP"
4385 ac_path_GREP_max=$ac_count
4386 fi
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4389 done
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393 $ac_path_GREP_found && break 3
4394 done
4395 done
4396 done
4397 IFS=$as_save_IFS
4398 if test -z "$ac_cv_path_GREP"; then
4399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400 fi
4401 else
4402 ac_cv_path_GREP=$GREP
4403 fi
4404 ;;
4405 esac
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4408 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4409 GREP="$ac_cv_path_GREP"
4410
4411
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4413 printf %s "checking for egrep... " >&6; }
4414 if test ${ac_cv_path_EGREP+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else case e in #(
4418 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4419 then ac_cv_path_EGREP="$GREP -E"
4420 else
4421 if test -z "$EGREP"; then
4422 ac_path_EGREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 do
4427 IFS=$as_save_IFS
4428 case $as_dir in #(((
4429 '') as_dir=./ ;;
4430 */) ;;
4431 *) as_dir=$as_dir/ ;;
4432 esac
4433 for ac_prog in egrep
4434 do
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4437 as_fn_executable_p "$ac_path_EGREP" || continue
4438 # Check for GNU ac_path_EGREP and select it if it is found.
4439 # Check for GNU $ac_path_EGREP
4440 case `"$ac_path_EGREP" --version 2>&1` in #(
4441 *GNU*)
4442 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4443 #(
4444 *)
4445 ac_count=0
4446 printf %s 0123456789 >"conftest.in"
4447 while :
4448 do
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 printf "%s\n" 'EGREP' >> "conftest.nl"
4453 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 as_fn_arith $ac_count + 1 && ac_count=$as_val
4456 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_EGREP="$ac_path_EGREP"
4459 ac_path_EGREP_max=$ac_count
4460 fi
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4463 done
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465 esac
4466
4467 $ac_path_EGREP_found && break 3
4468 done
4469 done
4470 done
4471 IFS=$as_save_IFS
4472 if test -z "$ac_cv_path_EGREP"; then
4473 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4474 fi
4475 else
4476 ac_cv_path_EGREP=$EGREP
4477 fi
4478
4479 fi ;;
4480 esac
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4483 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4484 EGREP="$ac_cv_path_EGREP"
4485
4486 EGREP_TRADITIONAL=$EGREP
4487 ac_cv_path_EGREP_TRADITIONAL=$EGREP
4488
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4490 printf %s "checking for fgrep... " >&6; }
4491 if test ${ac_cv_path_FGREP+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else case e in #(
4495 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4496 then ac_cv_path_FGREP="$GREP -F"
4497 else
4498 if test -z "$FGREP"; then
4499 ac_path_FGREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 do
4504 IFS=$as_save_IFS
4505 case $as_dir in #(((
4506 '') as_dir=./ ;;
4507 */) ;;
4508 *) as_dir=$as_dir/ ;;
4509 esac
4510 for ac_prog in fgrep
4511 do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4514 as_fn_executable_p "$ac_path_FGREP" || continue
4515 # Check for GNU ac_path_FGREP and select it if it is found.
4516 # Check for GNU $ac_path_FGREP
4517 case `"$ac_path_FGREP" --version 2>&1` in #(
4518 *GNU*)
4519 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4520 #(
4521 *)
4522 ac_count=0
4523 printf %s 0123456789 >"conftest.in"
4524 while :
4525 do
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 printf "%s\n" 'FGREP' >> "conftest.nl"
4530 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 as_fn_arith $ac_count + 1 && ac_count=$as_val
4533 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_FGREP="$ac_path_FGREP"
4536 ac_path_FGREP_max=$ac_count
4537 fi
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4540 done
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 esac
4543
4544 $ac_path_FGREP_found && break 3
4545 done
4546 done
4547 done
4548 IFS=$as_save_IFS
4549 if test -z "$ac_cv_path_FGREP"; then
4550 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 fi
4552 else
4553 ac_cv_path_FGREP=$FGREP
4554 fi
4555
4556 fi ;;
4557 esac
4558 fi
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4560 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4561 FGREP="$ac_cv_path_FGREP"
4562
4563
4564 test -z "$GREP" && GREP=grep
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 # Check whether --with-gnu-ld was given.
4585 if test ${with_gnu_ld+y}
4586 then :
4587 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4588 else case e in #(
4589 e) with_gnu_ld=no ;;
4590 esac
4591 fi
4592
4593 ac_prog=ld
4594 if test yes = "$GCC"; then
4595 # Check if gcc -print-prog-name=ld gives a path.
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4597 printf %s "checking for ld used by $CC... " >&6; }
4598 case $host in
4599 *-*-mingw* | *-*-windows*)
4600 # gcc leaves a trailing carriage return, which upsets mingw
4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4602 *)
4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4604 esac
4605 case $ac_prog in
4606 # Accept absolute paths.
4607 [\\/]* | ?:[\\/]*)
4608 re_direlt='/[^/][^/]*/\.\./'
4609 # Canonicalize the pathname of ld
4610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4613 done
4614 test -z "$LD" && LD=$ac_prog
4615 ;;
4616 "")
4617 # If it fails, then pretend we aren't using GCC.
4618 ac_prog=ld
4619 ;;
4620 *)
4621 # If it is relative, then search for the first ld in PATH.
4622 with_gnu_ld=unknown
4623 ;;
4624 esac
4625 elif test yes = "$with_gnu_ld"; then
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4627 printf %s "checking for GNU ld... " >&6; }
4628 else
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4630 printf %s "checking for non-GNU ld... " >&6; }
4631 fi
4632 if test ${lt_cv_path_LD+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else case e in #(
4636 e) if test -z "$LD"; then
4637 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4638 for ac_dir in $PATH; do
4639 IFS=$lt_save_ifs
4640 test -z "$ac_dir" && ac_dir=.
4641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4642 lt_cv_path_LD=$ac_dir/$ac_prog
4643 # Check to see if the program is GNU ld. I'd rather use --version,
4644 # but apparently some variants of GNU ld only accept -v.
4645 # Break only if it was the GNU/non-GNU ld that we prefer.
4646 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4647 *GNU* | *'with BFD'*)
4648 test no != "$with_gnu_ld" && break
4649 ;;
4650 *)
4651 test yes != "$with_gnu_ld" && break
4652 ;;
4653 esac
4654 fi
4655 done
4656 IFS=$lt_save_ifs
4657 else
4658 lt_cv_path_LD=$LD # Let the user override the test with a path.
4659 fi ;;
4660 esac
4661 fi
4662
4663 LD=$lt_cv_path_LD
4664 if test -n "$LD"; then
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4666 printf "%s\n" "$LD" >&6; }
4667 else
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 printf "%s\n" "no" >&6; }
4670 fi
4671 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4673 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4674 if test ${lt_cv_prog_gnu_ld+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else case e in #(
4678 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
4679 case `$LD -v 2>&1 </dev/null` in
4680 *GNU* | *'with BFD'*)
4681 lt_cv_prog_gnu_ld=yes
4682 ;;
4683 *)
4684 lt_cv_prog_gnu_ld=no
4685 ;;
4686 esac ;;
4687 esac
4688 fi
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4690 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4691 with_gnu_ld=$lt_cv_prog_gnu_ld
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4702 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4703 if test ${lt_cv_path_NM+y}
4704 then :
4705 printf %s "(cached) " >&6
4706 else case e in #(
4707 e) if test -n "$NM"; then
4708 # Let the user override the test.
4709 lt_cv_path_NM=$NM
4710 else
4711 lt_nm_to_check=${ac_tool_prefix}nm
4712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4713 lt_nm_to_check="$lt_nm_to_check nm"
4714 fi
4715 for lt_tmp_nm in $lt_nm_to_check; do
4716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4718 IFS=$lt_save_ifs
4719 test -z "$ac_dir" && ac_dir=.
4720 tmp_nm=$ac_dir/$lt_tmp_nm
4721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4722 # Check to see if the nm accepts a BSD-compat flag.
4723 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4724 # nm: unknown option "B" ignored
4725 # Tru64's nm complains that /dev/null is an invalid object file
4726 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4727 case $build_os in
4728 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
4729 *) lt_bad_file=/dev/null ;;
4730 esac
4731 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4732 *$lt_bad_file* | *'Invalid file or object type'*)
4733 lt_cv_path_NM="$tmp_nm -B"
4734 break 2
4735 ;;
4736 *)
4737 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4738 */dev/null*)
4739 lt_cv_path_NM="$tmp_nm -p"
4740 break 2
4741 ;;
4742 *)
4743 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4744 continue # so that we can try to find one that supports BSD flags
4745 ;;
4746 esac
4747 ;;
4748 esac
4749 fi
4750 done
4751 IFS=$lt_save_ifs
4752 done
4753 : ${lt_cv_path_NM=no}
4754 fi ;;
4755 esac
4756 fi
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4758 printf "%s\n" "$lt_cv_path_NM" >&6; }
4759 if test no != "$lt_cv_path_NM"; then
4760 NM=$lt_cv_path_NM
4761 else
4762 # Didn't find any BSD compatible name lister, look for dumpbin.
4763 if test -n "$DUMPBIN"; then :
4764 # Let the user override the test.
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in dumpbin "link -dump"
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 printf %s "checking for $ac_word... " >&6; }
4773 if test ${ac_cv_prog_DUMPBIN+y}
4774 then :
4775 printf %s "(cached) " >&6
4776 else case e in #(
4777 e) if test -n "$DUMPBIN"; then
4778 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 case $as_dir in #(((
4785 '') as_dir=./ ;;
4786 */) ;;
4787 *) as_dir=$as_dir/ ;;
4788 esac
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi ;;
4800 esac
4801 fi
4802 DUMPBIN=$ac_cv_prog_DUMPBIN
4803 if test -n "$DUMPBIN"; then
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4805 printf "%s\n" "$DUMPBIN" >&6; }
4806 else
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 printf "%s\n" "no" >&6; }
4809 fi
4810
4811
4812 test -n "$DUMPBIN" && break
4813 done
4814 fi
4815 if test -z "$DUMPBIN"; then
4816 ac_ct_DUMPBIN=$DUMPBIN
4817 for ac_prog in dumpbin "link -dump"
4818 do
4819 # Extract the first word of "$ac_prog", so it can be a program name with args.
4820 set dummy $ac_prog; ac_word=$2
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 printf %s "checking for $ac_word... " >&6; }
4823 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4824 then :
4825 printf %s "(cached) " >&6
4826 else case e in #(
4827 e) if test -n "$ac_ct_DUMPBIN"; then
4828 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 case $as_dir in #(((
4835 '') as_dir=./ ;;
4836 */) ;;
4837 *) as_dir=$as_dir/ ;;
4838 esac
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi ;;
4850 esac
4851 fi
4852 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4853 if test -n "$ac_ct_DUMPBIN"; then
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4855 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4856 else
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 printf "%s\n" "no" >&6; }
4859 fi
4860
4861
4862 test -n "$ac_ct_DUMPBIN" && break
4863 done
4864
4865 if test "x$ac_ct_DUMPBIN" = x; then
4866 DUMPBIN=":"
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874 DUMPBIN=$ac_ct_DUMPBIN
4875 fi
4876 fi
4877
4878 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4879 *COFF*)
4880 DUMPBIN="$DUMPBIN -symbols -headers"
4881 ;;
4882 *)
4883 DUMPBIN=:
4884 ;;
4885 esac
4886 fi
4887
4888 if test : != "$DUMPBIN"; then
4889 NM=$DUMPBIN
4890 fi
4891 fi
4892 test -z "$NM" && NM=nm
4893
4894
4895
4896
4897
4898
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4900 printf %s "checking the name lister ($NM) interface... " >&6; }
4901 if test ${lt_cv_nm_interface+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else case e in #(
4905 e) lt_cv_nm_interface="BSD nm"
4906 echo "int some_variable = 0;" > conftest.$ac_ext
4907 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4908 (eval "$ac_compile" 2>conftest.err)
4909 cat conftest.err >&5
4910 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4911 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4912 cat conftest.err >&5
4913 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4914 cat conftest.out >&5
4915 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4916 lt_cv_nm_interface="MS dumpbin"
4917 fi
4918 rm -f conftest* ;;
4919 esac
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4922 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4923
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4925 printf %s "checking whether ln -s works... " >&6; }
4926 LN_S=$as_ln_s
4927 if test "$LN_S" = "ln -s"; then
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929 printf "%s\n" "yes" >&6; }
4930 else
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4932 printf "%s\n" "no, using $LN_S" >&6; }
4933 fi
4934
4935 # find the maximum length of command line arguments
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4937 printf %s "checking the maximum length of command line arguments... " >&6; }
4938 if test ${lt_cv_sys_max_cmd_len+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else case e in #(
4942 e) i=0
4943 teststring=ABCD
4944
4945 case $build_os in
4946 msdosdjgpp*)
4947 # On DJGPP, this test can blow up pretty badly due to problems in libc
4948 # (any single argument exceeding 2000 bytes causes a buffer overrun
4949 # during glob expansion). Even if it were fixed, the result of this
4950 # check would be larger than it should be.
4951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4952 ;;
4953
4954 gnu* | ironclad*)
4955 # Under GNU Hurd and Ironclad, this test is not required because there
4956 # is no limit to the length of command line arguments.
4957 # Libtool will interpret -1 as no limit whatsoever
4958 lt_cv_sys_max_cmd_len=-1;
4959 ;;
4960
4961 cygwin* | mingw* | windows* | cegcc*)
4962 # On Win9x/ME, this test blows up -- it succeeds, but takes
4963 # about 5 minutes as the teststring grows exponentially.
4964 # Worse, since 9x/ME are not pre-emptively multitasking,
4965 # you end up with a "frozen" computer, even though with patience
4966 # the test eventually succeeds (with a max line length of 256k).
4967 # Instead, let's just punt: use the minimum linelength reported by
4968 # all of the supported platforms: 8192 (on NT/2K/XP).
4969 lt_cv_sys_max_cmd_len=8192;
4970 ;;
4971
4972 mint*)
4973 # On MiNT this can take a long time and run out of memory.
4974 lt_cv_sys_max_cmd_len=8192;
4975 ;;
4976
4977 amigaos*)
4978 # On AmigaOS with pdksh, this test takes hours, literally.
4979 # So we just punt and use a minimum line length of 8192.
4980 lt_cv_sys_max_cmd_len=8192;
4981 ;;
4982
4983 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4984 # This has been around since 386BSD, at least. Likely further.
4985 if test -x /sbin/sysctl; then
4986 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4987 elif test -x /usr/sbin/sysctl; then
4988 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4989 else
4990 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4991 fi
4992 # And add a safety zone
4993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4995 ;;
4996
4997 interix*)
4998 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4999 lt_cv_sys_max_cmd_len=196608
5000 ;;
5001
5002 os2*)
5003 # The test takes a long time on OS/2.
5004 lt_cv_sys_max_cmd_len=8192
5005 ;;
5006
5007 osf*)
5008 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5009 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5010 # nice to cause kernel panics so lets avoid the loop below.
5011 # First set a reasonable default.
5012 lt_cv_sys_max_cmd_len=16384
5013 #
5014 if test -x /sbin/sysconfig; then
5015 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5016 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5017 esac
5018 fi
5019 ;;
5020 sco3.2v5*)
5021 lt_cv_sys_max_cmd_len=102400
5022 ;;
5023 sysv5* | sco5v6* | sysv4.2uw2*)
5024 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5025 if test -n "$kargmax"; then
5026 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5027 else
5028 lt_cv_sys_max_cmd_len=32768
5029 fi
5030 ;;
5031 *)
5032 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5033 if test -n "$lt_cv_sys_max_cmd_len" && \
5034 test undefined != "$lt_cv_sys_max_cmd_len"; then
5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5037 else
5038 # Make teststring a little bigger before we do anything with it.
5039 # a 1K string should be a reasonable start.
5040 for i in 1 2 3 4 5 6 7 8; do
5041 teststring=$teststring$teststring
5042 done
5043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5044 # If test is not a shell built-in, we'll probably end up computing a
5045 # maximum length that is only half of the actual maximum length, but
5046 # we can't tell.
5047 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5048 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5049 test 17 != "$i" # 1/2 MB should be enough
5050 do
5051 i=`expr $i + 1`
5052 teststring=$teststring$teststring
5053 done
5054 # Only check the string length outside the loop.
5055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5056 teststring=
5057 # Add a significant safety factor because C++ compilers can tack on
5058 # massive amounts of additional arguments before passing them to the
5059 # linker. It appears as though 1/2 is a usable value.
5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5061 fi
5062 ;;
5063 esac
5064 ;;
5065 esac
5066 fi
5067
5068 if test -n "$lt_cv_sys_max_cmd_len"; then
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5070 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5071 else
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5073 printf "%s\n" "none" >&6; }
5074 fi
5075 max_cmd_len=$lt_cv_sys_max_cmd_len
5076
5077
5078
5079
5080
5081
5082 : ${CP="cp -f"}
5083 : ${MV="mv -f"}
5084 : ${RM="rm -f"}
5085
5086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5087 lt_unset=unset
5088 else
5089 lt_unset=false
5090 fi
5091
5092
5093
5094
5095
5096 # test EBCDIC or ASCII
5097 case `echo X|tr X '\101'` in
5098 A) # ASCII based system
5099 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5100 lt_SP2NL='tr \040 \012'
5101 lt_NL2SP='tr \015\012 \040\040'
5102 ;;
5103 *) # EBCDIC based system
5104 lt_SP2NL='tr \100 \n'
5105 lt_NL2SP='tr \r\n \100\100'
5106 ;;
5107 esac
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5118 printf %s "checking how to convert $build file names to $host format... " >&6; }
5119 if test ${lt_cv_to_host_file_cmd+y}
5120 then :
5121 printf %s "(cached) " >&6
5122 else case e in #(
5123 e) case $host in
5124 *-*-mingw* )
5125 case $build in
5126 *-*-mingw* | *-*-windows* ) # actually msys
5127 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5128 ;;
5129 *-*-cygwin* )
5130 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5131 ;;
5132 * ) # otherwise, assume *nix
5133 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5134 ;;
5135 esac
5136 ;;
5137 *-*-cygwin* )
5138 case $build in
5139 *-*-mingw* | *-*-windows* ) # actually msys
5140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5141 ;;
5142 *-*-cygwin* )
5143 lt_cv_to_host_file_cmd=func_convert_file_noop
5144 ;;
5145 * ) # otherwise, assume *nix
5146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5147 ;;
5148 esac
5149 ;;
5150 * ) # unhandled hosts (and "normal" native builds)
5151 lt_cv_to_host_file_cmd=func_convert_file_noop
5152 ;;
5153 esac
5154 ;;
5155 esac
5156 fi
5157
5158 to_host_file_cmd=$lt_cv_to_host_file_cmd
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5160 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5161
5162
5163
5164
5165
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5167 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5168 if test ${lt_cv_to_tool_file_cmd+y}
5169 then :
5170 printf %s "(cached) " >&6
5171 else case e in #(
5172 e) #assume ordinary cross tools, or native build.
5173 lt_cv_to_tool_file_cmd=func_convert_file_noop
5174 case $host in
5175 *-*-mingw* | *-*-windows* )
5176 case $build in
5177 *-*-mingw* | *-*-windows* ) # actually msys
5178 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5179 ;;
5180 esac
5181 ;;
5182 esac
5183 ;;
5184 esac
5185 fi
5186
5187 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5189 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5190
5191
5192
5193
5194
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5196 printf %s "checking for $LD option to reload object files... " >&6; }
5197 if test ${lt_cv_ld_reload_flag+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else case e in #(
5201 e) lt_cv_ld_reload_flag='-r' ;;
5202 esac
5203 fi
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5205 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5206 reload_flag=$lt_cv_ld_reload_flag
5207 case $reload_flag in
5208 "" | " "*) ;;
5209 *) reload_flag=" $reload_flag" ;;
5210 esac
5211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5212 case $host_os in
5213 cygwin* | mingw* | windows* | pw32* | cegcc*)
5214 if test yes != "$GCC"; then
5215 reload_cmds=false
5216 fi
5217 ;;
5218 darwin*)
5219 if test yes = "$GCC"; then
5220 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5221 else
5222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223 fi
5224 ;;
5225 esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 # Extract the first word of "file", so it can be a program name with args.
5236 set dummy file; ac_word=$2
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 printf %s "checking for $ac_word... " >&6; }
5239 if test ${ac_cv_prog_FILECMD+y}
5240 then :
5241 printf %s "(cached) " >&6
5242 else case e in #(
5243 e) if test -n "$FILECMD"; then
5244 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 case $as_dir in #(((
5251 '') as_dir=./ ;;
5252 */) ;;
5253 *) as_dir=$as_dir/ ;;
5254 esac
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_FILECMD="file"
5258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5266 fi ;;
5267 esac
5268 fi
5269 FILECMD=$ac_cv_prog_FILECMD
5270 if test -n "$FILECMD"; then
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5272 printf "%s\n" "$FILECMD" >&6; }
5273 else
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 printf "%s\n" "no" >&6; }
5276 fi
5277
5278
5279
5280
5281
5282
5283
5284
5285 if test -n "$ac_tool_prefix"; then
5286 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5287 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 printf %s "checking for $ac_word... " >&6; }
5290 if test ${ac_cv_prog_OBJDUMP+y}
5291 then :
5292 printf %s "(cached) " >&6
5293 else case e in #(
5294 e) if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 case $as_dir in #(((
5302 '') as_dir=./ ;;
5303 */) ;;
5304 *) as_dir=$as_dir/ ;;
5305 esac
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi ;;
5317 esac
5318 fi
5319 OBJDUMP=$ac_cv_prog_OBJDUMP
5320 if test -n "$OBJDUMP"; then
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5322 printf "%s\n" "$OBJDUMP" >&6; }
5323 else
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 printf "%s\n" "no" >&6; }
5326 fi
5327
5328
5329 fi
5330 if test -z "$ac_cv_prog_OBJDUMP"; then
5331 ac_ct_OBJDUMP=$OBJDUMP
5332 # Extract the first word of "objdump", so it can be a program name with args.
5333 set dummy objdump; ac_word=$2
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 printf %s "checking for $ac_word... " >&6; }
5336 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5337 then :
5338 printf %s "(cached) " >&6
5339 else case e in #(
5340 e) if test -n "$ac_ct_OBJDUMP"; then
5341 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346 IFS=$as_save_IFS
5347 case $as_dir in #(((
5348 '') as_dir=./ ;;
5349 */) ;;
5350 *) as_dir=$as_dir/ ;;
5351 esac
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 fi ;;
5363 esac
5364 fi
5365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5366 if test -n "$ac_ct_OBJDUMP"; then
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5368 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5369 else
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 printf "%s\n" "no" >&6; }
5372 fi
5373
5374 if test "x$ac_ct_OBJDUMP" = x; then
5375 OBJDUMP="false"
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 OBJDUMP=$ac_ct_OBJDUMP
5384 fi
5385 else
5386 OBJDUMP="$ac_cv_prog_OBJDUMP"
5387 fi
5388
5389 test -z "$OBJDUMP" && OBJDUMP=objdump
5390
5391
5392
5393
5394
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5397 printf %s "checking how to recognize dependent libraries... " >&6; }
5398 if test ${lt_cv_deplibs_check_method+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else case e in #(
5402 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
5403 lt_cv_file_magic_test_file=
5404 lt_cv_deplibs_check_method='unknown'
5405 # Need to set the preceding variable on all platforms that support
5406 # interlibrary dependencies.
5407 # 'none' -- dependencies not supported.
5408 # 'unknown' -- same as none, but documents that we really don't know.
5409 # 'pass_all' -- all dependencies passed with no checks.
5410 # 'file_magic [[regex]]' -- check by looking for files in library path
5411 # that responds to the $file_magic_cmd with a given extended regex.
5412 # If you have 'file' or equivalent on your system and you're not sure
5413 # whether 'pass_all' will *always* work, you probably want this one.
5414
5415 case $host_os in
5416 aix[4-9]*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420 beos*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424 bsdi[45]*)
5425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5426 lt_cv_file_magic_cmd='$FILECMD -L'
5427 lt_cv_file_magic_test_file=/shlib/libc.so
5428 ;;
5429
5430 cygwin*)
5431 # func_win32_libid is a shell function defined in ltmain.sh
5432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433 lt_cv_file_magic_cmd='func_win32_libid'
5434 ;;
5435
5436 mingw* | windows* | pw32*)
5437 # Base MSYS/MinGW do not provide the 'file' command needed by
5438 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5439 # unless we find 'file', for example because we are cross-compiling.
5440 if ( file / ) >/dev/null 2>&1; then
5441 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5442 lt_cv_file_magic_cmd='func_win32_libid'
5443 else
5444 # Keep this pattern in sync with the one in func_win32_libid.
5445 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
5446 lt_cv_file_magic_cmd='$OBJDUMP -f'
5447 fi
5448 ;;
5449
5450 cegcc*)
5451 # use the weaker test based on 'objdump'. See mingw*.
5452 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5453 lt_cv_file_magic_cmd='$OBJDUMP -f'
5454 ;;
5455
5456 darwin* | rhapsody*)
5457 lt_cv_deplibs_check_method=pass_all
5458 ;;
5459
5460 freebsd* | dragonfly* | midnightbsd*)
5461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5462 case $host_cpu in
5463 i*86 )
5464 # Not sure whether the presence of OpenBSD here was a mistake.
5465 # Let's accept both of them until this is cleared up.
5466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5467 lt_cv_file_magic_cmd=$FILECMD
5468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5469 ;;
5470 esac
5471 else
5472 lt_cv_deplibs_check_method=pass_all
5473 fi
5474 ;;
5475
5476 haiku*)
5477 lt_cv_deplibs_check_method=pass_all
5478 ;;
5479
5480 hpux10.20* | hpux11*)
5481 lt_cv_file_magic_cmd=$FILECMD
5482 case $host_cpu in
5483 ia64*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5486 ;;
5487 hppa*64*)
5488 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]'
5489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5490 ;;
5491 *)
5492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5494 ;;
5495 esac
5496 ;;
5497
5498 interix[3-9]*)
5499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5501 ;;
5502
5503 irix5* | irix6* | nonstopux*)
5504 case $LD in
5505 *-32|*"-32 ") libmagic=32-bit;;
5506 *-n32|*"-n32 ") libmagic=N32;;
5507 *-64|*"-64 ") libmagic=64-bit;;
5508 *) libmagic=never-match;;
5509 esac
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513 # This must be glibc/ELF.
5514 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517
5518 *-mlibc)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522 netbsd* | netbsdelf*-gnu)
5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525 else
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5527 fi
5528 ;;
5529
5530 newos6*)
5531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5532 lt_cv_file_magic_cmd=$FILECMD
5533 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5534 ;;
5535
5536 *nto* | *qnx*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540 openbsd*)
5541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5543 else
5544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5545 fi
5546 ;;
5547
5548 osf3* | osf4* | osf5*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552 rdos*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
5556 serenity*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559
5560 solaris*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5565 lt_cv_deplibs_check_method=pass_all
5566 ;;
5567
5568 sysv4 | sysv4.3*)
5569 case $host_vendor in
5570 motorola)
5571 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]'
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5573 ;;
5574 ncr)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577 sequent)
5578 lt_cv_file_magic_cmd='/bin/file'
5579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5580 ;;
5581 sni)
5582 lt_cv_file_magic_cmd='/bin/file'
5583 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5584 lt_cv_file_magic_test_file=/lib/libc.so
5585 ;;
5586 siemens)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589 pc)
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592 esac
5593 ;;
5594
5595 tpf*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598 os2*)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601 esac
5602 ;;
5603 esac
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5606 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5607
5608 file_magic_glob=
5609 want_nocaseglob=no
5610 if test "$build" = "$host"; then
5611 case $host_os in
5612 mingw* | windows* | pw32*)
5613 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5614 want_nocaseglob=yes
5615 else
5616 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5617 fi
5618 ;;
5619 esac
5620 fi
5621
5622 file_magic_cmd=$lt_cv_file_magic_cmd
5623 deplibs_check_method=$lt_cv_deplibs_check_method
5624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 if test -n "$ac_tool_prefix"; then
5648 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 printf %s "checking for $ac_word... " >&6; }
5652 if test ${ac_cv_prog_DLLTOOL+y}
5653 then :
5654 printf %s "(cached) " >&6
5655 else case e in #(
5656 e) if test -n "$DLLTOOL"; then
5657 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 case $as_dir in #(((
5664 '') as_dir=./ ;;
5665 */) ;;
5666 *) as_dir=$as_dir/ ;;
5667 esac
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi ;;
5679 esac
5680 fi
5681 DLLTOOL=$ac_cv_prog_DLLTOOL
5682 if test -n "$DLLTOOL"; then
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5684 printf "%s\n" "$DLLTOOL" >&6; }
5685 else
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 printf "%s\n" "no" >&6; }
5688 fi
5689
5690
5691 fi
5692 if test -z "$ac_cv_prog_DLLTOOL"; then
5693 ac_ct_DLLTOOL=$DLLTOOL
5694 # Extract the first word of "dlltool", so it can be a program name with args.
5695 set dummy dlltool; ac_word=$2
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 printf %s "checking for $ac_word... " >&6; }
5698 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else case e in #(
5702 e) if test -n "$ac_ct_DLLTOOL"; then
5703 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 case $as_dir in #(((
5710 '') as_dir=./ ;;
5711 */) ;;
5712 *) as_dir=$as_dir/ ;;
5713 esac
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi ;;
5725 esac
5726 fi
5727 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5728 if test -n "$ac_ct_DLLTOOL"; then
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5730 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5731 else
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 printf "%s\n" "no" >&6; }
5734 fi
5735
5736 if test "x$ac_ct_DLLTOOL" = x; then
5737 DLLTOOL="false"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745 DLLTOOL=$ac_ct_DLLTOOL
5746 fi
5747 else
5748 DLLTOOL="$ac_cv_prog_DLLTOOL"
5749 fi
5750
5751 test -z "$DLLTOOL" && DLLTOOL=dlltool
5752
5753
5754
5755
5756
5757
5758
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5760 printf %s "checking how to associate runtime and link libraries... " >&6; }
5761 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else case e in #(
5765 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
5766
5767 case $host_os in
5768 cygwin* | mingw* | windows* | pw32* | cegcc*)
5769 # two different shell functions defined in ltmain.sh;
5770 # decide which one to use based on capabilities of $DLLTOOL
5771 case `$DLLTOOL --help 2>&1` in
5772 *--identify-strict*)
5773 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5774 ;;
5775 *)
5776 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5777 ;;
5778 esac
5779 ;;
5780 *)
5781 # fallback: assume linklib IS sharedlib
5782 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5783 ;;
5784 esac
5785 ;;
5786 esac
5787 fi
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5789 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5790 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5791 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5792
5793
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 printf %s "checking for $ac_word... " >&6; }
5805 if test ${ac_cv_prog_RANLIB+y}
5806 then :
5807 printf %s "(cached) " >&6
5808 else case e in #(
5809 e) if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 case $as_dir in #(((
5817 '') as_dir=./ ;;
5818 */) ;;
5819 *) as_dir=$as_dir/ ;;
5820 esac
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 fi ;;
5832 esac
5833 fi
5834 RANLIB=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5837 printf "%s\n" "$RANLIB" >&6; }
5838 else
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 printf "%s\n" "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 printf %s "checking for $ac_word... " >&6; }
5851 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5852 then :
5853 printf %s "(cached) " >&6
5854 else case e in #(
5855 e) if test -n "$ac_ct_RANLIB"; then
5856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 case $as_dir in #(((
5863 '') as_dir=./ ;;
5864 */) ;;
5865 *) as_dir=$as_dir/ ;;
5866 esac
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_RANLIB="ranlib"
5870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi ;;
5878 esac
5879 fi
5880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5881 if test -n "$ac_ct_RANLIB"; then
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5883 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5884 else
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 printf "%s\n" "no" >&6; }
5887 fi
5888
5889 if test "x$ac_ct_RANLIB" = x; then
5890 RANLIB=":"
5891 else
5892 case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896 ac_tool_warned=yes ;;
5897 esac
5898 RANLIB=$ac_ct_RANLIB
5899 fi
5900 else
5901 RANLIB="$ac_cv_prog_RANLIB"
5902 fi
5903
5904 if test -n "$ac_tool_prefix"; then
5905 for ac_prog in ar
5906 do
5907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 printf %s "checking for $ac_word... " >&6; }
5911 if test ${ac_cv_prog_AR+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else case e in #(
5915 e) if test -n "$AR"; then
5916 ac_cv_prog_AR="$AR" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 case $as_dir in #(((
5923 '') as_dir=./ ;;
5924 */) ;;
5925 *) as_dir=$as_dir/ ;;
5926 esac
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi ;;
5938 esac
5939 fi
5940 AR=$ac_cv_prog_AR
5941 if test -n "$AR"; then
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5943 printf "%s\n" "$AR" >&6; }
5944 else
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 printf "%s\n" "no" >&6; }
5947 fi
5948
5949
5950 test -n "$AR" && break
5951 done
5952 fi
5953 if test -z "$AR"; then
5954 ac_ct_AR=$AR
5955 for ac_prog in ar
5956 do
5957 # Extract the first word of "$ac_prog", so it can be a program name with args.
5958 set dummy $ac_prog; ac_word=$2
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 printf %s "checking for $ac_word... " >&6; }
5961 if test ${ac_cv_prog_ac_ct_AR+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else case e in #(
5965 e) if test -n "$ac_ct_AR"; then
5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 case $as_dir in #(((
5973 '') as_dir=./ ;;
5974 */) ;;
5975 *) as_dir=$as_dir/ ;;
5976 esac
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_AR="$ac_prog"
5980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5986
5987 fi ;;
5988 esac
5989 fi
5990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5991 if test -n "$ac_ct_AR"; then
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5993 printf "%s\n" "$ac_ct_AR" >&6; }
5994 else
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 printf "%s\n" "no" >&6; }
5997 fi
5998
5999
6000 test -n "$ac_ct_AR" && break
6001 done
6002
6003 if test "x$ac_ct_AR" = x; then
6004 AR="false"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012 AR=$ac_ct_AR
6013 fi
6014 fi
6015
6016 : ${AR=ar}
6017
6018
6019
6020
6021
6022
6023 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6024 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6025 # higher priority because that's what people were doing historically (setting
6026 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6027 # variable obsoleted/removed.
6028
6029 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6030 lt_ar_flags=$AR_FLAGS
6031
6032
6033
6034
6035
6036
6037 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6038 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6039
6040
6041
6042
6043
6044
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6046 printf %s "checking for archiver @FILE support... " >&6; }
6047 if test ${lt_cv_ar_at_file+y}
6048 then :
6049 printf %s "(cached) " >&6
6050 else case e in #(
6051 e) lt_cv_ar_at_file=no
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054
6055 int
6056 main (void)
6057 {
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"
6064 then :
6065 echo conftest.$ac_objext > conftest.lst
6066 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6068 (eval $lt_ar_try) 2>&5
6069 ac_status=$?
6070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }
6072 if test 0 -eq "$ac_status"; then
6073 # Ensure the archiver fails upon bogus file names.
6074 rm -f conftest.$ac_objext libconftest.a
6075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6076 (eval $lt_ar_try) 2>&5
6077 ac_status=$?
6078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }
6080 if test 0 -ne "$ac_status"; then
6081 lt_cv_ar_at_file=@
6082 fi
6083 fi
6084 rm -f conftest.* libconftest.a
6085
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6088 ;;
6089 esac
6090 fi
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6092 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6093
6094 if test no = "$lt_cv_ar_at_file"; then
6095 archiver_list_spec=
6096 else
6097 archiver_list_spec=$lt_cv_ar_at_file
6098 fi
6099
6100
6101
6102
6103
6104
6105
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}strip; ac_word=$2
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 printf %s "checking for $ac_word... " >&6; }
6111 if test ${ac_cv_prog_STRIP+y}
6112 then :
6113 printf %s "(cached) " >&6
6114 else case e in #(
6115 e) if test -n "$STRIP"; then
6116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 case $as_dir in #(((
6123 '') as_dir=./ ;;
6124 */) ;;
6125 *) as_dir=$as_dir/ ;;
6126 esac
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi ;;
6138 esac
6139 fi
6140 STRIP=$ac_cv_prog_STRIP
6141 if test -n "$STRIP"; then
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6143 printf "%s\n" "$STRIP" >&6; }
6144 else
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 printf "%s\n" "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_STRIP"; then
6152 ac_ct_STRIP=$STRIP
6153 # Extract the first word of "strip", so it can be a program name with args.
6154 set dummy strip; ac_word=$2
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 printf %s "checking for $ac_word... " >&6; }
6157 if test ${ac_cv_prog_ac_ct_STRIP+y}
6158 then :
6159 printf %s "(cached) " >&6
6160 else case e in #(
6161 e) if test -n "$ac_ct_STRIP"; then
6162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 case $as_dir in #(((
6169 '') as_dir=./ ;;
6170 */) ;;
6171 *) as_dir=$as_dir/ ;;
6172 esac
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_STRIP="strip"
6176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi ;;
6184 esac
6185 fi
6186 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6187 if test -n "$ac_ct_STRIP"; then
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6189 printf "%s\n" "$ac_ct_STRIP" >&6; }
6190 else
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 printf "%s\n" "no" >&6; }
6193 fi
6194
6195 if test "x$ac_ct_STRIP" = x; then
6196 STRIP=":"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199 yes:)
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202 ac_tool_warned=yes ;;
6203 esac
6204 STRIP=$ac_ct_STRIP
6205 fi
6206 else
6207 STRIP="$ac_cv_prog_STRIP"
6208 fi
6209
6210 test -z "$STRIP" && STRIP=:
6211
6212
6213
6214
6215
6216
6217
6218 test -z "$RANLIB" && RANLIB=:
6219
6220
6221
6222
6223
6224
6225 # Determine commands to create old-style static archives.
6226 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6227 old_postinstall_cmds='chmod 644 $oldlib'
6228 old_postuninstall_cmds=
6229
6230 if test -n "$RANLIB"; then
6231 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6232 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6233 fi
6234
6235 case $host_os in
6236 darwin*)
6237 lock_old_archive_extraction=yes ;;
6238 *)
6239 lock_old_archive_extraction=no ;;
6240 esac
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 for ac_prog in gawk mawk nawk awk
6263 do
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 printf %s "checking for $ac_word... " >&6; }
6268 if test ${ac_cv_prog_AWK+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) if test -n "$AWK"; then
6273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278 IFS=$as_save_IFS
6279 case $as_dir in #(((
6280 '') as_dir=./ ;;
6281 */) ;;
6282 *) as_dir=$as_dir/ ;;
6283 esac
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_AWK="$ac_prog"
6287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi ;;
6295 esac
6296 fi
6297 AWK=$ac_cv_prog_AWK
6298 if test -n "$AWK"; then
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6300 printf "%s\n" "$AWK" >&6; }
6301 else
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 printf "%s\n" "no" >&6; }
6304 fi
6305
6306
6307 test -n "$AWK" && break
6308 done
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # If no C compiler was specified, use CC.
6329 LTCC=${LTCC-"$CC"}
6330
6331 # If no C compiler flags were specified, use CFLAGS.
6332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6333
6334 # Allow CC to be a program name with arguments.
6335 compiler=$CC
6336
6337
6338 # Check for command to grab the raw symbol name followed by C symbol from nm.
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6340 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6341 if test ${lt_cv_sys_global_symbol_pipe+y}
6342 then :
6343 printf %s "(cached) " >&6
6344 else case e in #(
6345 e)
6346 # These are sane defaults that work on at least a few old systems.
6347 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6348
6349 # Character class describing NM global symbol codes.
6350 symcode='[BCDEGRST]'
6351
6352 # Regexp to match symbols that can be accessed directly from C.
6353 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6354
6355 # Define system-specific variables.
6356 case $host_os in
6357 aix*)
6358 symcode='[BCDT]'
6359 ;;
6360 cygwin* | mingw* | windows* | pw32* | cegcc*)
6361 symcode='[ABCDGISTW]'
6362 ;;
6363 hpux*)
6364 if test ia64 = "$host_cpu"; then
6365 symcode='[ABCDEGRST]'
6366 fi
6367 ;;
6368 irix* | nonstopux*)
6369 symcode='[BCDEGRST]'
6370 ;;
6371 osf*)
6372 symcode='[BCDEGQRST]'
6373 ;;
6374 solaris*)
6375 symcode='[BCDRT]'
6376 ;;
6377 sco3.2v5*)
6378 symcode='[DT]'
6379 ;;
6380 sysv4.2uw2*)
6381 symcode='[DT]'
6382 ;;
6383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384 symcode='[ABDT]'
6385 ;;
6386 sysv4)
6387 symcode='[DFNSTU]'
6388 ;;
6389 esac
6390
6391 # If we're using GNU nm, then use its standard symbol codes.
6392 case `$NM -V 2>&1` in
6393 *GNU* | *'with BFD'*)
6394 symcode='[ABCDGIRSTW]' ;;
6395 esac
6396
6397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6398 # Gets list of data symbols to import.
6399 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6400 # Adjust the below global symbol transforms to fixup imported variables.
6401 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6402 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6403 lt_c_name_lib_hook="\
6404 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6405 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6406 else
6407 # Disable hooks by default.
6408 lt_cv_sys_global_symbol_to_import=
6409 lt_cdecl_hook=
6410 lt_c_name_hook=
6411 lt_c_name_lib_hook=
6412 fi
6413
6414 # Transform an extracted symbol line into a proper C declaration.
6415 # Some systems (esp. on ia64) link data and code symbols differently,
6416 # so use this general approach.
6417 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6418 $lt_cdecl_hook\
6419 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6420 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6421
6422 # Transform an extracted symbol line into symbol name and symbol address
6423 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6424 $lt_c_name_hook\
6425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6426 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6427
6428 # Transform an extracted symbol line into symbol name with lib prefix and
6429 # symbol address.
6430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6431 $lt_c_name_lib_hook\
6432 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6433 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6434 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6435
6436 # Handle CRLF in mingw tool chain
6437 opt_cr=
6438 case $build_os in
6439 mingw* | windows*)
6440 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6441 ;;
6442 esac
6443
6444 # Try without a prefix underscore, then with it.
6445 for ac_symprfx in "" "_"; do
6446
6447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6448 symxfrm="\\1 $ac_symprfx\\2 \\2"
6449
6450 # Write the raw and C identifiers.
6451 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6452 # Fake it for dumpbin and say T for any non-static function,
6453 # D for any global variable and I for any imported variable.
6454 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6455 # which start with @ or ?.
6456 lt_cv_sys_global_symbol_pipe="$AWK '"\
6457 " {last_section=section; section=\$ 3};"\
6458 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6459 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6460 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6461 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6462 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6463 " \$ 0!~/External *\|/{next};"\
6464 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6465 " {if(hide[section]) next};"\
6466 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6467 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6468 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6469 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6470 " ' prfx=^$ac_symprfx"
6471 else
6472 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6473 fi
6474 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6475
6476 # Check to see that the pipe works correctly.
6477 pipe_works=no
6478
6479 rm -f conftest*
6480 cat > conftest.$ac_ext <<_LT_EOF
6481 #ifdef __cplusplus
6482 extern "C" {
6483 #endif
6484 char nm_test_var;
6485 void nm_test_func(void);
6486 void nm_test_func(void){}
6487 #ifdef __cplusplus
6488 }
6489 #endif
6490 int main(void){nm_test_var='a';nm_test_func();return(0);}
6491 _LT_EOF
6492
6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497 test $ac_status = 0; }; then
6498 # Now try to grab the symbols.
6499 nlist=conftest.nm
6500 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6501 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6502 # Try sorting and uniquifying the output.
6503 if sort "$nlist" | uniq > "$nlist"T; then
6504 mv -f "$nlist"T "$nlist"
6505 else
6506 rm -f "$nlist"T
6507 fi
6508
6509 # Make sure that we snagged all the symbols we need.
6510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6512 cat <<_LT_EOF > conftest.$ac_ext
6513 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6514 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6515 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6516 relocations are performed -- see ld's documentation on pseudo-relocs. */
6517 # define LT_DLSYM_CONST
6518 #elif defined __osf__
6519 /* This system does not cope well with relocations in const data. */
6520 # define LT_DLSYM_CONST
6521 #else
6522 # define LT_DLSYM_CONST const
6523 #endif
6524
6525 #ifdef __cplusplus
6526 extern "C" {
6527 #endif
6528
6529 _LT_EOF
6530 # Now generate the symbol file.
6531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6532
6533 cat <<_LT_EOF >> conftest.$ac_ext
6534
6535 /* The mapping between symbol names and symbols. */
6536 LT_DLSYM_CONST struct {
6537 const char *name;
6538 void *address;
6539 }
6540 lt__PROGRAM__LTX_preloaded_symbols[] =
6541 {
6542 { "@PROGRAM@", (void *) 0 },
6543 _LT_EOF
6544 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6545 cat <<\_LT_EOF >> conftest.$ac_ext
6546 {0, (void *) 0}
6547 };
6548
6549 /* This works around a problem in FreeBSD linker */
6550 #ifdef FREEBSD_WORKAROUND
6551 static const void *lt_preloaded_setup() {
6552 return lt__PROGRAM__LTX_preloaded_symbols;
6553 }
6554 #endif
6555
6556 #ifdef __cplusplus
6557 }
6558 #endif
6559 _LT_EOF
6560 # Now try linking the two files.
6561 mv conftest.$ac_objext conftstm.$ac_objext
6562 lt_globsym_save_LIBS=$LIBS
6563 lt_globsym_save_CFLAGS=$CFLAGS
6564 LIBS=conftstm.$ac_objext
6565 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6567 (eval $ac_link) 2>&5
6568 ac_status=$?
6569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6571 pipe_works=yes
6572 fi
6573 LIBS=$lt_globsym_save_LIBS
6574 CFLAGS=$lt_globsym_save_CFLAGS
6575 else
6576 echo "cannot find nm_test_func in $nlist" >&5
6577 fi
6578 else
6579 echo "cannot find nm_test_var in $nlist" >&5
6580 fi
6581 else
6582 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6583 fi
6584 else
6585 echo "$progname: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 fi
6588 rm -rf conftest* conftst*
6589
6590 # Do not use the global_symbol_pipe unless it works.
6591 if test yes = "$pipe_works"; then
6592 break
6593 else
6594 lt_cv_sys_global_symbol_pipe=
6595 fi
6596 done
6597 ;;
6598 esac
6599 fi
6600
6601 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6602 lt_cv_sys_global_symbol_to_cdecl=
6603 fi
6604 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6606 printf "%s\n" "failed" >&6; }
6607 else
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6609 printf "%s\n" "ok" >&6; }
6610 fi
6611
6612 # Response file support.
6613 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6614 nm_file_list_spec='@'
6615 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6616 nm_file_list_spec='@'
6617 fi
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6656 printf %s "checking for sysroot... " >&6; }
6657
6658 # Check whether --with-sysroot was given.
6659 if test ${with_sysroot+y}
6660 then :
6661 withval=$with_sysroot;
6662 else case e in #(
6663 e) with_sysroot=no ;;
6664 esac
6665 fi
6666
6667
6668 lt_sysroot=
6669 case $with_sysroot in #(
6670 yes)
6671 if test yes = "$GCC"; then
6672 # Trim trailing / since we'll always append absolute paths and we want
6673 # to avoid //, if only for less confusing output for the user.
6674 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
6675 fi
6676 ;; #(
6677 /*)
6678 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6679 ;; #(
6680 no|'')
6681 ;; #(
6682 *)
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6684 printf "%s\n" "$with_sysroot" >&6; }
6685 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6686 ;;
6687 esac
6688
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6690 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6691
6692
6693
6694
6695
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6697 printf %s "checking for a working dd... " >&6; }
6698 if test ${ac_cv_path_lt_DD+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) printf 0123456789abcdef0123456789abcdef >conftest.i
6703 cat conftest.i conftest.i >conftest2.i
6704 : ${lt_DD:=$DD}
6705 if test -z "$lt_DD"; then
6706 ac_path_lt_DD_found=false
6707 # Loop through the user's path and test for each of PROGNAME-LIST
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 case $as_dir in #(((
6713 '') as_dir=./ ;;
6714 */) ;;
6715 *) as_dir=$as_dir/ ;;
6716 esac
6717 for ac_prog in dd
6718 do
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6721 as_fn_executable_p "$ac_path_lt_DD" || continue
6722 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6723 cmp -s conftest.i conftest.out \
6724 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6725 fi
6726 $ac_path_lt_DD_found && break 3
6727 done
6728 done
6729 done
6730 IFS=$as_save_IFS
6731 if test -z "$ac_cv_path_lt_DD"; then
6732 :
6733 fi
6734 else
6735 ac_cv_path_lt_DD=$lt_DD
6736 fi
6737
6738 rm -f conftest.i conftest2.i conftest.out ;;
6739 esac
6740 fi
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6742 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6743
6744
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6746 printf %s "checking how to truncate binary pipes... " >&6; }
6747 if test ${lt_cv_truncate_bin+y}
6748 then :
6749 printf %s "(cached) " >&6
6750 else case e in #(
6751 e) printf 0123456789abcdef0123456789abcdef >conftest.i
6752 cat conftest.i conftest.i >conftest2.i
6753 lt_cv_truncate_bin=
6754 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6755 cmp -s conftest.i conftest.out \
6756 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6757 fi
6758 rm -f conftest.i conftest2.i conftest.out
6759 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
6760 esac
6761 fi
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6763 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6764
6765
6766
6767
6768
6769
6770
6771 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6772 func_cc_basename ()
6773 {
6774 for cc_temp in $*""; do
6775 case $cc_temp in
6776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6778 \-*) ;;
6779 *) break;;
6780 esac
6781 done
6782 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6783 }
6784
6785 # Check whether --enable-libtool-lock was given.
6786 if test ${enable_libtool_lock+y}
6787 then :
6788 enableval=$enable_libtool_lock;
6789 fi
6790
6791 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6792
6793 # Some flags need to be propagated to the compiler or linker for good
6794 # libtool support.
6795 case $host in
6796 ia64-*-hpux*)
6797 # Find out what ABI is being produced by ac_compile, and set mode
6798 # options accordingly.
6799 echo 'int i;' > conftest.$ac_ext
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6802 ac_status=$?
6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 case `$FILECMD conftest.$ac_objext` in
6806 *ELF-32*)
6807 HPUX_IA64_MODE=32
6808 ;;
6809 *ELF-64*)
6810 HPUX_IA64_MODE=64
6811 ;;
6812 esac
6813 fi
6814 rm -rf conftest*
6815 ;;
6816 *-*-irix6*)
6817 # Find out what ABI is being produced by ac_compile, and set linker
6818 # options accordingly.
6819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6821 (eval $ac_compile) 2>&5
6822 ac_status=$?
6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; }; then
6825 if test yes = "$lt_cv_prog_gnu_ld"; then
6826 case `$FILECMD conftest.$ac_objext` in
6827 *32-bit*)
6828 LD="${LD-ld} -melf32bsmip"
6829 ;;
6830 *N32*)
6831 LD="${LD-ld} -melf32bmipn32"
6832 ;;
6833 *64-bit*)
6834 LD="${LD-ld} -melf64bmip"
6835 ;;
6836 esac
6837 else
6838 case `$FILECMD conftest.$ac_objext` in
6839 *32-bit*)
6840 LD="${LD-ld} -32"
6841 ;;
6842 *N32*)
6843 LD="${LD-ld} -n32"
6844 ;;
6845 *64-bit*)
6846 LD="${LD-ld} -64"
6847 ;;
6848 esac
6849 fi
6850 fi
6851 rm -rf conftest*
6852 ;;
6853
6854 mips64*-*linux*)
6855 # Find out what ABI is being produced by ac_compile, and set linker
6856 # options accordingly.
6857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 emul=elf
6864 case `$FILECMD conftest.$ac_objext` in
6865 *32-bit*)
6866 emul="${emul}32"
6867 ;;
6868 *64-bit*)
6869 emul="${emul}64"
6870 ;;
6871 esac
6872 case `$FILECMD conftest.$ac_objext` in
6873 *MSB*)
6874 emul="${emul}btsmip"
6875 ;;
6876 *LSB*)
6877 emul="${emul}ltsmip"
6878 ;;
6879 esac
6880 case `$FILECMD conftest.$ac_objext` in
6881 *N32*)
6882 emul="${emul}n32"
6883 ;;
6884 esac
6885 LD="${LD-ld} -m $emul"
6886 fi
6887 rm -rf conftest*
6888 ;;
6889
6890 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6891 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
6892 # Find out what ABI is being produced by ac_compile, and set linker
6893 # options accordingly. Note that the listed cases only cover the
6894 # situations where additional linker options are needed (such as when
6895 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6896 # vice versa); the common cases where no linker options are needed do
6897 # not appear in the list.
6898 echo 'int i;' > conftest.$ac_ext
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; }; then
6904 case `$FILECMD conftest.o` in
6905 *32-bit*)
6906 case $host in
6907 x86_64-*kfreebsd*-gnu)
6908 LD="${LD-ld} -m elf_i386_fbsd"
6909 ;;
6910 x86_64-*linux*|x86_64-gnu*)
6911 case `$FILECMD conftest.o` in
6912 *x86-64*)
6913 LD="${LD-ld} -m elf32_x86_64"
6914 ;;
6915 *)
6916 LD="${LD-ld} -m elf_i386"
6917 ;;
6918 esac
6919 ;;
6920 powerpc64le-*linux*)
6921 LD="${LD-ld} -m elf32lppclinux"
6922 ;;
6923 powerpc64-*linux*)
6924 LD="${LD-ld} -m elf32ppclinux"
6925 ;;
6926 s390x-*linux*)
6927 LD="${LD-ld} -m elf_s390"
6928 ;;
6929 sparc64-*linux*)
6930 LD="${LD-ld} -m elf32_sparc"
6931 ;;
6932 esac
6933 ;;
6934 *64-bit*)
6935 case $host in
6936 x86_64-*kfreebsd*-gnu)
6937 LD="${LD-ld} -m elf_x86_64_fbsd"
6938 ;;
6939 x86_64-*linux*|x86_64-gnu*)
6940 LD="${LD-ld} -m elf_x86_64"
6941 ;;
6942 powerpcle-*linux*)
6943 LD="${LD-ld} -m elf64lppc"
6944 ;;
6945 powerpc-*linux*)
6946 LD="${LD-ld} -m elf64ppc"
6947 ;;
6948 s390*-*linux*|s390*-*tpf*)
6949 LD="${LD-ld} -m elf64_s390"
6950 ;;
6951 sparc*-*linux*)
6952 LD="${LD-ld} -m elf64_sparc"
6953 ;;
6954 esac
6955 ;;
6956 esac
6957 fi
6958 rm -rf conftest*
6959 ;;
6960
6961 *-*-sco3.2v5*)
6962 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6963 SAVE_CFLAGS=$CFLAGS
6964 CFLAGS="$CFLAGS -belf"
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6966 printf %s "checking whether the C compiler needs -belf... " >&6; }
6967 if test ${lt_cv_cc_needs_belf+y}
6968 then :
6969 printf %s "(cached) " >&6
6970 else case e in #(
6971 e) ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979
6980 int
6981 main (void)
6982 {
6983
6984 ;
6985 return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"
6989 then :
6990 lt_cv_cc_needs_belf=yes
6991 else case e in #(
6992 e) lt_cv_cc_needs_belf=no ;;
6993 esac
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6996 conftest$ac_exeext conftest.$ac_ext
6997 ac_ext=c
6998 ac_cpp='$CPP $CPPFLAGS'
6999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002 ;;
7003 esac
7004 fi
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7006 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7007 if test yes != "$lt_cv_cc_needs_belf"; then
7008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7009 CFLAGS=$SAVE_CFLAGS
7010 fi
7011 ;;
7012 *-*solaris*)
7013 # Find out what ABI is being produced by ac_compile, and set linker
7014 # options accordingly.
7015 echo 'int i;' > conftest.$ac_ext
7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7017 (eval $ac_compile) 2>&5
7018 ac_status=$?
7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020 test $ac_status = 0; }; then
7021 case `$FILECMD conftest.o` in
7022 *64-bit*)
7023 case $lt_cv_prog_gnu_ld in
7024 yes*)
7025 case $host in
7026 i?86-*-solaris*|x86_64-*-solaris*)
7027 LD="${LD-ld} -m elf_x86_64"
7028 ;;
7029 sparc*-*-solaris*)
7030 LD="${LD-ld} -m elf64_sparc"
7031 ;;
7032 esac
7033 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7034 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7035 LD=${LD-ld}_sol2
7036 fi
7037 ;;
7038 *)
7039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7040 LD="${LD-ld} -64"
7041 fi
7042 ;;
7043 esac
7044 ;;
7045 esac
7046 fi
7047 rm -rf conftest*
7048 ;;
7049 esac
7050
7051 need_locks=$enable_libtool_lock
7052
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}mt; ac_word=$2
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 printf %s "checking for $ac_word... " >&6; }
7058 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) if test -n "$MANIFEST_TOOL"; then
7063 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi ;;
7085 esac
7086 fi
7087 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7088 if test -n "$MANIFEST_TOOL"; then
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7090 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7091 else
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 printf "%s\n" "no" >&6; }
7094 fi
7095
7096
7097 fi
7098 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7099 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7100 # Extract the first word of "mt", so it can be a program name with args.
7101 set dummy mt; ac_word=$2
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 printf %s "checking for $ac_word... " >&6; }
7104 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7105 then :
7106 printf %s "(cached) " >&6
7107 else case e in #(
7108 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7109 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114 IFS=$as_save_IFS
7115 case $as_dir in #(((
7116 '') as_dir=./ ;;
7117 */) ;;
7118 *) as_dir=$as_dir/ ;;
7119 esac
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 fi ;;
7131 esac
7132 fi
7133 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7134 if test -n "$ac_ct_MANIFEST_TOOL"; then
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7136 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7137 else
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 printf "%s\n" "no" >&6; }
7140 fi
7141
7142 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7143 MANIFEST_TOOL=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7152 fi
7153 else
7154 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7155 fi
7156
7157 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7159 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7160 if test ${lt_cv_path_manifest_tool+y}
7161 then :
7162 printf %s "(cached) " >&6
7163 else case e in #(
7164 e) lt_cv_path_manifest_tool=no
7165 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7166 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7167 cat conftest.err >&5
7168 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7169 lt_cv_path_manifest_tool=yes
7170 fi
7171 rm -f conftest* ;;
7172 esac
7173 fi
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7175 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7176 if test yes != "$lt_cv_path_manifest_tool"; then
7177 MANIFEST_TOOL=:
7178 fi
7179
7180
7181
7182
7183
7184
7185 case $host_os in
7186 rhapsody* | darwin*)
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 printf %s "checking for $ac_word... " >&6; }
7192 if test ${ac_cv_prog_DSYMUTIL+y}
7193 then :
7194 printf %s "(cached) " >&6
7195 else case e in #(
7196 e) if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 case $as_dir in #(((
7204 '') as_dir=./ ;;
7205 */) ;;
7206 *) as_dir=$as_dir/ ;;
7207 esac
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218 fi ;;
7219 esac
7220 fi
7221 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7222 if test -n "$DSYMUTIL"; then
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7224 printf "%s\n" "$DSYMUTIL" >&6; }
7225 else
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 printf "%s\n" "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_DSYMUTIL"; then
7233 ac_ct_DSYMUTIL=$DSYMUTIL
7234 # Extract the first word of "dsymutil", so it can be a program name with args.
7235 set dummy dsymutil; ac_word=$2
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 printf %s "checking for $ac_word... " >&6; }
7238 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7239 then :
7240 printf %s "(cached) " >&6
7241 else case e in #(
7242 e) if test -n "$ac_ct_DSYMUTIL"; then
7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 case $as_dir in #(((
7250 '') as_dir=./ ;;
7251 */) ;;
7252 *) as_dir=$as_dir/ ;;
7253 esac
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264 fi ;;
7265 esac
7266 fi
7267 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7268 if test -n "$ac_ct_DSYMUTIL"; then
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7270 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7271 else
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 printf "%s\n" "no" >&6; }
7274 fi
7275
7276 if test "x$ac_ct_DSYMUTIL" = x; then
7277 DSYMUTIL=":"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 DSYMUTIL=$ac_ct_DSYMUTIL
7286 fi
7287 else
7288 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7289 fi
7290
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 printf %s "checking for $ac_word... " >&6; }
7296 if test ${ac_cv_prog_NMEDIT+y}
7297 then :
7298 printf %s "(cached) " >&6
7299 else case e in #(
7300 e) if test -n "$NMEDIT"; then
7301 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 case $as_dir in #(((
7308 '') as_dir=./ ;;
7309 */) ;;
7310 *) as_dir=$as_dir/ ;;
7311 esac
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322 fi ;;
7323 esac
7324 fi
7325 NMEDIT=$ac_cv_prog_NMEDIT
7326 if test -n "$NMEDIT"; then
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7328 printf "%s\n" "$NMEDIT" >&6; }
7329 else
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 printf "%s\n" "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_NMEDIT"; then
7337 ac_ct_NMEDIT=$NMEDIT
7338 # Extract the first word of "nmedit", so it can be a program name with args.
7339 set dummy nmedit; ac_word=$2
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 printf %s "checking for $ac_word... " >&6; }
7342 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7343 then :
7344 printf %s "(cached) " >&6
7345 else case e in #(
7346 e) if test -n "$ac_ct_NMEDIT"; then
7347 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 case $as_dir in #(((
7354 '') as_dir=./ ;;
7355 */) ;;
7356 *) as_dir=$as_dir/ ;;
7357 esac
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi ;;
7369 esac
7370 fi
7371 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7372 if test -n "$ac_ct_NMEDIT"; then
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7374 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7375 else
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 printf "%s\n" "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_NMEDIT" = x; then
7381 NMEDIT=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 NMEDIT=$ac_ct_NMEDIT
7390 fi
7391 else
7392 NMEDIT="$ac_cv_prog_NMEDIT"
7393 fi
7394
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 printf %s "checking for $ac_word... " >&6; }
7400 if test ${ac_cv_prog_LIPO+y}
7401 then :
7402 printf %s "(cached) " >&6
7403 else case e in #(
7404 e) if test -n "$LIPO"; then
7405 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 case $as_dir in #(((
7412 '') as_dir=./ ;;
7413 */) ;;
7414 *) as_dir=$as_dir/ ;;
7415 esac
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi ;;
7427 esac
7428 fi
7429 LIPO=$ac_cv_prog_LIPO
7430 if test -n "$LIPO"; then
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7432 printf "%s\n" "$LIPO" >&6; }
7433 else
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 printf "%s\n" "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_LIPO"; then
7441 ac_ct_LIPO=$LIPO
7442 # Extract the first word of "lipo", so it can be a program name with args.
7443 set dummy lipo; ac_word=$2
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 printf %s "checking for $ac_word... " >&6; }
7446 if test ${ac_cv_prog_ac_ct_LIPO+y}
7447 then :
7448 printf %s "(cached) " >&6
7449 else case e in #(
7450 e) if test -n "$ac_ct_LIPO"; then
7451 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 case $as_dir in #(((
7458 '') as_dir=./ ;;
7459 */) ;;
7460 *) as_dir=$as_dir/ ;;
7461 esac
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_LIPO="lipo"
7465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi ;;
7473 esac
7474 fi
7475 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7476 if test -n "$ac_ct_LIPO"; then
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7478 printf "%s\n" "$ac_ct_LIPO" >&6; }
7479 else
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 printf "%s\n" "no" >&6; }
7482 fi
7483
7484 if test "x$ac_ct_LIPO" = x; then
7485 LIPO=":"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493 LIPO=$ac_ct_LIPO
7494 fi
7495 else
7496 LIPO="$ac_cv_prog_LIPO"
7497 fi
7498
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}otool; ac_word=$2
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 printf %s "checking for $ac_word... " >&6; }
7504 if test ${ac_cv_prog_OTOOL+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else case e in #(
7508 e) if test -n "$OTOOL"; then
7509 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514 IFS=$as_save_IFS
7515 case $as_dir in #(((
7516 '') as_dir=./ ;;
7517 */) ;;
7518 *) as_dir=$as_dir/ ;;
7519 esac
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi ;;
7531 esac
7532 fi
7533 OTOOL=$ac_cv_prog_OTOOL
7534 if test -n "$OTOOL"; then
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7536 printf "%s\n" "$OTOOL" >&6; }
7537 else
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 printf "%s\n" "no" >&6; }
7540 fi
7541
7542
7543 fi
7544 if test -z "$ac_cv_prog_OTOOL"; then
7545 ac_ct_OTOOL=$OTOOL
7546 # Extract the first word of "otool", so it can be a program name with args.
7547 set dummy otool; ac_word=$2
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 printf %s "checking for $ac_word... " >&6; }
7550 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else case e in #(
7554 e) if test -n "$ac_ct_OTOOL"; then
7555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 case $as_dir in #(((
7562 '') as_dir=./ ;;
7563 */) ;;
7564 *) as_dir=$as_dir/ ;;
7565 esac
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_ac_ct_OTOOL="otool"
7569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi ;;
7577 esac
7578 fi
7579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7580 if test -n "$ac_ct_OTOOL"; then
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7582 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7583 else
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 printf "%s\n" "no" >&6; }
7586 fi
7587
7588 if test "x$ac_ct_OTOOL" = x; then
7589 OTOOL=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 OTOOL=$ac_ct_OTOOL
7598 fi
7599 else
7600 OTOOL="$ac_cv_prog_OTOOL"
7601 fi
7602
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 printf %s "checking for $ac_word... " >&6; }
7608 if test ${ac_cv_prog_OTOOL64+y}
7609 then :
7610 printf %s "(cached) " >&6
7611 else case e in #(
7612 e) if test -n "$OTOOL64"; then
7613 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 case $as_dir in #(((
7620 '') as_dir=./ ;;
7621 */) ;;
7622 *) as_dir=$as_dir/ ;;
7623 esac
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634 fi ;;
7635 esac
7636 fi
7637 OTOOL64=$ac_cv_prog_OTOOL64
7638 if test -n "$OTOOL64"; then
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7640 printf "%s\n" "$OTOOL64" >&6; }
7641 else
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 printf "%s\n" "no" >&6; }
7644 fi
7645
7646
7647 fi
7648 if test -z "$ac_cv_prog_OTOOL64"; then
7649 ac_ct_OTOOL64=$OTOOL64
7650 # Extract the first word of "otool64", so it can be a program name with args.
7651 set dummy otool64; ac_word=$2
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 printf %s "checking for $ac_word... " >&6; }
7654 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7655 then :
7656 printf %s "(cached) " >&6
7657 else case e in #(
7658 e) if test -n "$ac_ct_OTOOL64"; then
7659 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664 IFS=$as_save_IFS
7665 case $as_dir in #(((
7666 '') as_dir=./ ;;
7667 */) ;;
7668 *) as_dir=$as_dir/ ;;
7669 esac
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_ac_ct_OTOOL64="otool64"
7673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 fi ;;
7681 esac
7682 fi
7683 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7684 if test -n "$ac_ct_OTOOL64"; then
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7686 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7687 else
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 printf "%s\n" "no" >&6; }
7690 fi
7691
7692 if test "x$ac_ct_OTOOL64" = x; then
7693 OTOOL64=":"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701 OTOOL64=$ac_ct_OTOOL64
7702 fi
7703 else
7704 OTOOL64="$ac_cv_prog_OTOOL64"
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7734 printf %s "checking for -single_module linker flag... " >&6; }
7735 if test ${lt_cv_apple_cc_single_mod+y}
7736 then :
7737 printf %s "(cached) " >&6
7738 else case e in #(
7739 e) lt_cv_apple_cc_single_mod=no
7740 if test -z "$LT_MULTI_MODULE"; then
7741 # By default we will add the -single_module flag. You can override
7742 # by either setting the environment variable LT_MULTI_MODULE
7743 # non-empty at configure time, or by adding -multi_module to the
7744 # link flags.
7745 rm -rf libconftest.dylib*
7746 echo "int foo(void){return 1;}" > conftest.c
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7751 _lt_result=$?
7752 # If there is a non-empty error log, and "single_module"
7753 # appears in it, assume the flag caused a linker warning
7754 if test -s conftest.err && $GREP single_module conftest.err; then
7755 cat conftest.err >&5
7756 # Otherwise, if the output was created with a 0 exit code from
7757 # the compiler, it worked.
7758 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7759 lt_cv_apple_cc_single_mod=yes
7760 else
7761 cat conftest.err >&5
7762 fi
7763 rm -rf libconftest.dylib*
7764 rm -f conftest.*
7765 fi ;;
7766 esac
7767 fi
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7769 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7770
7771 # Feature test to disable chained fixups since it is not
7772 # compatible with '-undefined dynamic_lookup'
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
7774 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
7775 if test ${lt_cv_support_no_fixup_chains+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else case e in #(
7779 e) save_LDFLAGS=$LDFLAGS
7780 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main (void)
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"
7793 then :
7794 lt_cv_support_no_fixup_chains=yes
7795 else case e in #(
7796 e) lt_cv_support_no_fixup_chains=no
7797 ;;
7798 esac
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7801 conftest$ac_exeext conftest.$ac_ext
7802 LDFLAGS=$save_LDFLAGS
7803
7804 ;;
7805 esac
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
7808 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
7809
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7811 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7812 if test ${lt_cv_ld_exported_symbols_list+y}
7813 then :
7814 printf %s "(cached) " >&6
7815 else case e in #(
7816 e) lt_cv_ld_exported_symbols_list=no
7817 save_LDFLAGS=$LDFLAGS
7818 echo "_main" > conftest.sym
7819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7822
7823 int
7824 main (void)
7825 {
7826
7827 ;
7828 return 0;
7829 }
7830 _ACEOF
7831 if ac_fn_c_try_link "$LINENO"
7832 then :
7833 lt_cv_ld_exported_symbols_list=yes
7834 else case e in #(
7835 e) lt_cv_ld_exported_symbols_list=no ;;
7836 esac
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7839 conftest$ac_exeext conftest.$ac_ext
7840 LDFLAGS=$save_LDFLAGS
7841 ;;
7842 esac
7843 fi
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7845 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7846
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7848 printf %s "checking for -force_load linker flag... " >&6; }
7849 if test ${lt_cv_ld_force_load+y}
7850 then :
7851 printf %s "(cached) " >&6
7852 else case e in #(
7853 e) lt_cv_ld_force_load=no
7854 cat > conftest.c << _LT_EOF
7855 int forced_loaded() { return 2;}
7856 _LT_EOF
7857 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7858 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7859 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7860 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7861 echo "$RANLIB libconftest.a" >&5
7862 $RANLIB libconftest.a 2>&5
7863 cat > conftest.c << _LT_EOF
7864 int main(void) { return 0;}
7865 _LT_EOF
7866 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7867 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7868 _lt_result=$?
7869 if test -s conftest.err && $GREP force_load conftest.err; then
7870 cat conftest.err >&5
7871 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7872 lt_cv_ld_force_load=yes
7873 else
7874 cat conftest.err >&5
7875 fi
7876 rm -f conftest.err libconftest.a conftest conftest.c
7877 rm -rf conftest.dSYM
7878 ;;
7879 esac
7880 fi
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7882 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7883 case $host_os in
7884 rhapsody* | darwin1.[012])
7885 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7886 darwin1.*)
7887 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7888 darwin*)
7889 case $MACOSX_DEPLOYMENT_TARGET,$host in
7890 10.[012],*|,*powerpc*-darwin[5-8]*)
7891 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7892 *)
7893 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
7894 if test yes = "$lt_cv_support_no_fixup_chains"; then
7895 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
7896 fi
7897 ;;
7898 esac
7899 ;;
7900 esac
7901 if test yes = "$lt_cv_apple_cc_single_mod"; then
7902 _lt_dar_single_mod='$single_module'
7903 fi
7904 _lt_dar_needs_single_mod=no
7905 case $host_os in
7906 rhapsody* | darwin1.*)
7907 _lt_dar_needs_single_mod=yes ;;
7908 darwin*)
7909 # When targeting Mac OS X 10.4 (darwin 8) or later,
7910 # -single_module is the default and -multi_module is unsupported.
7911 # The toolchain on macOS 10.14 (darwin 18) and later cannot
7912 # target any OS version that needs -single_module.
7913 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7914 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
7915 _lt_dar_needs_single_mod=yes ;;
7916 esac
7917 ;;
7918 esac
7919 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7920 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7921 else
7922 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7923 fi
7924 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7925 _lt_dsymutil='~$DSYMUTIL $lib || :'
7926 else
7927 _lt_dsymutil=
7928 fi
7929 ;;
7930 esac
7931
7932 # func_munge_path_list VARIABLE PATH
7933 # -----------------------------------
7934 # VARIABLE is name of variable containing _space_ separated list of
7935 # directories to be munged by the contents of PATH, which is string
7936 # having a format:
7937 # "DIR[:DIR]:"
7938 # string "DIR[ DIR]" will be prepended to VARIABLE
7939 # ":DIR[:DIR]"
7940 # string "DIR[ DIR]" will be appended to VARIABLE
7941 # "DIRP[:DIRP]::[DIRA:]DIRA"
7942 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7943 # "DIRA[ DIRA]" will be appended to VARIABLE
7944 # "DIR[:DIR]"
7945 # VARIABLE will be replaced by "DIR[ DIR]"
7946 func_munge_path_list ()
7947 {
7948 case x$2 in
7949 x)
7950 ;;
7951 *:)
7952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7953 ;;
7954 x:*)
7955 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7956 ;;
7957 *::*)
7958 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7959 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7960 ;;
7961 *)
7962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7963 ;;
7964 esac
7965 }
7966
7967 ac_header= ac_cache=
7968 for ac_item in $ac_header_c_list
7969 do
7970 if test $ac_cache; then
7971 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7972 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7973 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7974 fi
7975 ac_header= ac_cache=
7976 elif test $ac_header; then
7977 ac_cache=$ac_item
7978 else
7979 ac_header=$ac_item
7980 fi
7981 done
7982
7983
7984
7985
7986
7987
7988
7989
7990 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7991 then :
7992
7993 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7994
7995 fi
7996 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7997 "
7998 if test "x$ac_cv_header_dlfcn_h" = xyes
7999 then :
8000 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8001
8002 fi
8003
8004
8005
8006
8007
8008 # Set options
8009 enable_win32_dll=yes
8010
8011 case $host in
8012 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}as; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_AS+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else case e in #(
8022 e) if test -n "$AS"; then
8023 ac_cv_prog_AS="$AS" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_AS="${ac_tool_prefix}as"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi ;;
8045 esac
8046 fi
8047 AS=$ac_cv_prog_AS
8048 if test -n "$AS"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8050 printf "%s\n" "$AS" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_AS"; then
8059 ac_ct_AS=$AS
8060 # Extract the first word of "as", so it can be a program name with args.
8061 set dummy as; ac_word=$2
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 printf %s "checking for $ac_word... " >&6; }
8064 if test ${ac_cv_prog_ac_ct_AS+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else case e in #(
8068 e) if test -n "$ac_ct_AS"; then
8069 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 case $as_dir in #(((
8076 '') as_dir=./ ;;
8077 */) ;;
8078 *) as_dir=$as_dir/ ;;
8079 esac
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_AS="as"
8083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi ;;
8091 esac
8092 fi
8093 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8094 if test -n "$ac_ct_AS"; then
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8096 printf "%s\n" "$ac_ct_AS" >&6; }
8097 else
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 printf "%s\n" "no" >&6; }
8100 fi
8101
8102 if test "x$ac_ct_AS" = x; then
8103 AS="false"
8104 else
8105 case $cross_compiling:$ac_tool_warned in
8106 yes:)
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109 ac_tool_warned=yes ;;
8110 esac
8111 AS=$ac_ct_AS
8112 fi
8113 else
8114 AS="$ac_cv_prog_AS"
8115 fi
8116
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 printf %s "checking for $ac_word... " >&6; }
8122 if test ${ac_cv_prog_DLLTOOL+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else case e in #(
8126 e) if test -n "$DLLTOOL"; then
8127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 case $as_dir in #(((
8134 '') as_dir=./ ;;
8135 */) ;;
8136 *) as_dir=$as_dir/ ;;
8137 esac
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi ;;
8149 esac
8150 fi
8151 DLLTOOL=$ac_cv_prog_DLLTOOL
8152 if test -n "$DLLTOOL"; then
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8154 printf "%s\n" "$DLLTOOL" >&6; }
8155 else
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 printf "%s\n" "no" >&6; }
8158 fi
8159
8160
8161 fi
8162 if test -z "$ac_cv_prog_DLLTOOL"; then
8163 ac_ct_DLLTOOL=$DLLTOOL
8164 # Extract the first word of "dlltool", so it can be a program name with args.
8165 set dummy dlltool; ac_word=$2
8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 printf %s "checking for $ac_word... " >&6; }
8168 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8169 then :
8170 printf %s "(cached) " >&6
8171 else case e in #(
8172 e) if test -n "$ac_ct_DLLTOOL"; then
8173 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 case $as_dir in #(((
8180 '') as_dir=./ ;;
8181 */) ;;
8182 *) as_dir=$as_dir/ ;;
8183 esac
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi ;;
8195 esac
8196 fi
8197 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8198 if test -n "$ac_ct_DLLTOOL"; then
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8200 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8201 else
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 printf "%s\n" "no" >&6; }
8204 fi
8205
8206 if test "x$ac_ct_DLLTOOL" = x; then
8207 DLLTOOL="false"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215 DLLTOOL=$ac_ct_DLLTOOL
8216 fi
8217 else
8218 DLLTOOL="$ac_cv_prog_DLLTOOL"
8219 fi
8220
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 printf %s "checking for $ac_word... " >&6; }
8226 if test ${ac_cv_prog_OBJDUMP+y}
8227 then :
8228 printf %s "(cached) " >&6
8229 else case e in #(
8230 e) if test -n "$OBJDUMP"; then
8231 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 case $as_dir in #(((
8238 '') as_dir=./ ;;
8239 */) ;;
8240 *) as_dir=$as_dir/ ;;
8241 esac
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248 done
8249 done
8250 IFS=$as_save_IFS
8251
8252 fi ;;
8253 esac
8254 fi
8255 OBJDUMP=$ac_cv_prog_OBJDUMP
8256 if test -n "$OBJDUMP"; then
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8258 printf "%s\n" "$OBJDUMP" >&6; }
8259 else
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 printf "%s\n" "no" >&6; }
8262 fi
8263
8264
8265 fi
8266 if test -z "$ac_cv_prog_OBJDUMP"; then
8267 ac_ct_OBJDUMP=$OBJDUMP
8268 # Extract the first word of "objdump", so it can be a program name with args.
8269 set dummy objdump; ac_word=$2
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 printf %s "checking for $ac_word... " >&6; }
8272 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8273 then :
8274 printf %s "(cached) " >&6
8275 else case e in #(
8276 e) if test -n "$ac_ct_OBJDUMP"; then
8277 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282 IFS=$as_save_IFS
8283 case $as_dir in #(((
8284 '') as_dir=./ ;;
8285 */) ;;
8286 *) as_dir=$as_dir/ ;;
8287 esac
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8292 break 2
8293 fi
8294 done
8295 done
8296 IFS=$as_save_IFS
8297
8298 fi ;;
8299 esac
8300 fi
8301 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8302 if test -n "$ac_ct_OBJDUMP"; then
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8304 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8305 else
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 printf "%s\n" "no" >&6; }
8308 fi
8309
8310 if test "x$ac_ct_OBJDUMP" = x; then
8311 OBJDUMP="false"
8312 else
8313 case $cross_compiling:$ac_tool_warned in
8314 yes:)
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8317 ac_tool_warned=yes ;;
8318 esac
8319 OBJDUMP=$ac_ct_OBJDUMP
8320 fi
8321 else
8322 OBJDUMP="$ac_cv_prog_OBJDUMP"
8323 fi
8324
8325 ;;
8326 esac
8327
8328 test -z "$AS" && AS=as
8329
8330
8331
8332
8333
8334 test -z "$DLLTOOL" && DLLTOOL=dlltool
8335
8336
8337
8338
8339
8340 test -z "$OBJDUMP" && OBJDUMP=objdump
8341
8342
8343
8344
8345
8346
8347
8348 enable_dlopen=no
8349
8350
8351
8352 # Check whether --enable-shared was given.
8353 if test ${enable_shared+y}
8354 then :
8355 enableval=$enable_shared; p=${PACKAGE-default}
8356 case $enableval in
8357 yes) enable_shared=yes ;;
8358 no) enable_shared=no ;;
8359 *)
8360 enable_shared=no
8361 # Look at the argument we got. We use all the common list separators.
8362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8363 for pkg in $enableval; do
8364 IFS=$lt_save_ifs
8365 if test "X$pkg" = "X$p"; then
8366 enable_shared=yes
8367 fi
8368 done
8369 IFS=$lt_save_ifs
8370 ;;
8371 esac
8372 else case e in #(
8373 e) enable_shared=yes ;;
8374 esac
8375 fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385 # Check whether --enable-static was given.
8386 if test ${enable_static+y}
8387 then :
8388 enableval=$enable_static; p=${PACKAGE-default}
8389 case $enableval in
8390 yes) enable_static=yes ;;
8391 no) enable_static=no ;;
8392 *)
8393 enable_static=no
8394 # Look at the argument we got. We use all the common list separators.
8395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8396 for pkg in $enableval; do
8397 IFS=$lt_save_ifs
8398 if test "X$pkg" = "X$p"; then
8399 enable_static=yes
8400 fi
8401 done
8402 IFS=$lt_save_ifs
8403 ;;
8404 esac
8405 else case e in #(
8406 e) enable_static=yes ;;
8407 esac
8408 fi
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418 # Check whether --enable-pic was given.
8419 if test ${enable_pic+y}
8420 then :
8421 enableval=$enable_pic; lt_p=${PACKAGE-default}
8422 case $enableval in
8423 yes|no) pic_mode=$enableval ;;
8424 *)
8425 pic_mode=default
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8428 for lt_pkg in $enableval; do
8429 IFS=$lt_save_ifs
8430 if test "X$lt_pkg" = "X$lt_p"; then
8431 pic_mode=yes
8432 fi
8433 done
8434 IFS=$lt_save_ifs
8435 ;;
8436 esac
8437 else case e in #(
8438 e) # Check whether --with-pic was given.
8439 if test ${with_pic+y}
8440 then :
8441 withval=$with_pic; lt_p=${PACKAGE-default}
8442 case $withval in
8443 yes|no) pic_mode=$withval ;;
8444 *)
8445 pic_mode=default
8446 # Look at the argument we got. We use all the common list separators.
8447 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8448 for lt_pkg in $withval; do
8449 IFS=$lt_save_ifs
8450 if test "X$lt_pkg" = "X$lt_p"; then
8451 pic_mode=yes
8452 fi
8453 done
8454 IFS=$lt_save_ifs
8455 ;;
8456 esac
8457 else case e in #(
8458 e) pic_mode=default ;;
8459 esac
8460 fi
8461
8462 ;;
8463 esac
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473 # Check whether --enable-fast-install was given.
8474 if test ${enable_fast_install+y}
8475 then :
8476 enableval=$enable_fast_install; p=${PACKAGE-default}
8477 case $enableval in
8478 yes) enable_fast_install=yes ;;
8479 no) enable_fast_install=no ;;
8480 *)
8481 enable_fast_install=no
8482 # Look at the argument we got. We use all the common list separators.
8483 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8484 for pkg in $enableval; do
8485 IFS=$lt_save_ifs
8486 if test "X$pkg" = "X$p"; then
8487 enable_fast_install=yes
8488 fi
8489 done
8490 IFS=$lt_save_ifs
8491 ;;
8492 esac
8493 else case e in #(
8494 e) enable_fast_install=yes ;;
8495 esac
8496 fi
8497
8498
8499
8500
8501
8502
8503
8504
8505 shared_archive_member_spec=
8506 case $host,$enable_shared in
8507 power*-*-aix[5-9]*,yes)
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8509 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8510 # Check whether --enable-aix-soname was given.
8511 if test ${enable_aix_soname+y}
8512 then :
8513 enableval=$enable_aix_soname; case $enableval in
8514 aix|svr4|both)
8515 ;;
8516 *)
8517 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8518 ;;
8519 esac
8520 lt_cv_with_aix_soname=$enable_aix_soname
8521 else case e in #(
8522 e) # Check whether --with-aix-soname was given.
8523 if test ${with_aix_soname+y}
8524 then :
8525 withval=$with_aix_soname; case $withval in
8526 aix|svr4|both)
8527 ;;
8528 *)
8529 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8530 ;;
8531 esac
8532 lt_cv_with_aix_soname=$with_aix_soname
8533 else case e in #(
8534 e) if test ${lt_cv_with_aix_soname+y}
8535 then :
8536 printf %s "(cached) " >&6
8537 else case e in #(
8538 e) lt_cv_with_aix_soname=aix ;;
8539 esac
8540 fi
8541 ;;
8542 esac
8543 fi
8544
8545 enable_aix_soname=$lt_cv_with_aix_soname ;;
8546 esac
8547 fi
8548
8549 with_aix_soname=$enable_aix_soname
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8551 printf "%s\n" "$with_aix_soname" >&6; }
8552 if test aix != "$with_aix_soname"; then
8553 # For the AIX way of multilib, we name the shared archive member
8554 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8555 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8556 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8557 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8558 if test 64 = "${OBJECT_MODE-32}"; then
8559 shared_archive_member_spec=shr_64
8560 else
8561 shared_archive_member_spec=shr
8562 fi
8563 fi
8564 ;;
8565 *)
8566 with_aix_soname=aix
8567 ;;
8568 esac
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 # This can be used to rebuild libtool when needed
8580 LIBTOOL_DEPS=$ltmain
8581
8582 # Always use our own libtool.
8583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614 test -z "$LN_S" && LN_S="ln -s"
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 if test -n "${ZSH_VERSION+set}"; then
8630 setopt NO_GLOB_SUBST
8631 fi
8632
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8634 printf %s "checking for objdir... " >&6; }
8635 if test ${lt_cv_objdir+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else case e in #(
8639 e) rm -f .libs 2>/dev/null
8640 mkdir .libs 2>/dev/null
8641 if test -d .libs; then
8642 lt_cv_objdir=.libs
8643 else
8644 # MS-DOS does not allow filenames that begin with a dot.
8645 lt_cv_objdir=_libs
8646 fi
8647 rmdir .libs 2>/dev/null ;;
8648 esac
8649 fi
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8651 printf "%s\n" "$lt_cv_objdir" >&6; }
8652 objdir=$lt_cv_objdir
8653
8654
8655
8656
8657
8658 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8659
8660
8661
8662
8663 case $host_os in
8664 aix3*)
8665 # AIX sometimes has problems with the GCC collect2 program. For some
8666 # reason, if we set the COLLECT_NAMES environment variable, the problems
8667 # vanish in a puff of smoke.
8668 if test set != "${COLLECT_NAMES+set}"; then
8669 COLLECT_NAMES=
8670 export COLLECT_NAMES
8671 fi
8672 ;;
8673 esac
8674
8675 # Global variables:
8676 ofile=libtool
8677 can_build_shared=yes
8678
8679 # All known linkers require a '.a' archive for static linking (except MSVC and
8680 # ICC, which need '.lib').
8681 libext=a
8682
8683 with_gnu_ld=$lt_cv_prog_gnu_ld
8684
8685 old_CC=$CC
8686 old_CFLAGS=$CFLAGS
8687
8688 # Set sane defaults for various variables
8689 test -z "$CC" && CC=cc
8690 test -z "$LTCC" && LTCC=$CC
8691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8692 test -z "$LD" && LD=ld
8693 test -z "$ac_objext" && ac_objext=o
8694
8695 func_cc_basename $compiler
8696 cc_basename=$func_cc_basename_result
8697
8698
8699 # Only perform the check for file, if the check method requires it
8700 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8701 case $deplibs_check_method in
8702 file_magic*)
8703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8705 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8706 if test ${lt_cv_path_MAGIC_CMD+y}
8707 then :
8708 printf %s "(cached) " >&6
8709 else case e in #(
8710 e) case $MAGIC_CMD in
8711 [\\/*] | ?:[\\/]*)
8712 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8713 ;;
8714 *)
8715 lt_save_MAGIC_CMD=$MAGIC_CMD
8716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8717 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8718 for ac_dir in $ac_dummy; do
8719 IFS=$lt_save_ifs
8720 test -z "$ac_dir" && ac_dir=.
8721 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8722 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8723 if test -n "$file_magic_test_file"; then
8724 case $deplibs_check_method in
8725 "file_magic "*)
8726 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8727 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8728 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8729 $EGREP "$file_magic_regex" > /dev/null; then
8730 :
8731 else
8732 cat <<_LT_EOF 1>&2
8733
8734 *** Warning: the command libtool uses to detect shared libraries,
8735 *** $file_magic_cmd, produces output that libtool cannot recognize.
8736 *** The result is that libtool may fail to recognize shared libraries
8737 *** as such. This will affect the creation of libtool libraries that
8738 *** depend on shared libraries, but programs linked with such libtool
8739 *** libraries will work regardless of this problem. Nevertheless, you
8740 *** may want to report the problem to your system manager and/or to
8741 *** [email protected]
8742
8743 _LT_EOF
8744 fi ;;
8745 esac
8746 fi
8747 break
8748 fi
8749 done
8750 IFS=$lt_save_ifs
8751 MAGIC_CMD=$lt_save_MAGIC_CMD
8752 ;;
8753 esac ;;
8754 esac
8755 fi
8756
8757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8758 if test -n "$MAGIC_CMD"; then
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8760 printf "%s\n" "$MAGIC_CMD" >&6; }
8761 else
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 printf "%s\n" "no" >&6; }
8764 fi
8765
8766
8767
8768
8769
8770 if test -z "$lt_cv_path_MAGIC_CMD"; then
8771 if test -n "$ac_tool_prefix"; then
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8773 printf %s "checking for file... " >&6; }
8774 if test ${lt_cv_path_MAGIC_CMD+y}
8775 then :
8776 printf %s "(cached) " >&6
8777 else case e in #(
8778 e) case $MAGIC_CMD in
8779 [\\/*] | ?:[\\/]*)
8780 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8781 ;;
8782 *)
8783 lt_save_MAGIC_CMD=$MAGIC_CMD
8784 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8786 for ac_dir in $ac_dummy; do
8787 IFS=$lt_save_ifs
8788 test -z "$ac_dir" && ac_dir=.
8789 if test -f "$ac_dir/file"; then
8790 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8791 if test -n "$file_magic_test_file"; then
8792 case $deplibs_check_method in
8793 "file_magic "*)
8794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8795 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8797 $EGREP "$file_magic_regex" > /dev/null; then
8798 :
8799 else
8800 cat <<_LT_EOF 1>&2
8801
8802 *** Warning: the command libtool uses to detect shared libraries,
8803 *** $file_magic_cmd, produces output that libtool cannot recognize.
8804 *** The result is that libtool may fail to recognize shared libraries
8805 *** as such. This will affect the creation of libtool libraries that
8806 *** depend on shared libraries, but programs linked with such libtool
8807 *** libraries will work regardless of this problem. Nevertheless, you
8808 *** may want to report the problem to your system manager and/or to
8809 *** [email protected]
8810
8811 _LT_EOF
8812 fi ;;
8813 esac
8814 fi
8815 break
8816 fi
8817 done
8818 IFS=$lt_save_ifs
8819 MAGIC_CMD=$lt_save_MAGIC_CMD
8820 ;;
8821 esac ;;
8822 esac
8823 fi
8824
8825 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8826 if test -n "$MAGIC_CMD"; then
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8828 printf "%s\n" "$MAGIC_CMD" >&6; }
8829 else
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 printf "%s\n" "no" >&6; }
8832 fi
8833
8834
8835 else
8836 MAGIC_CMD=:
8837 fi
8838 fi
8839
8840 fi
8841 ;;
8842 esac
8843
8844 # Use C for the default configuration in the libtool script
8845
8846 lt_save_CC=$CC
8847 ac_ext=c
8848 ac_cpp='$CPP $CPPFLAGS'
8849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8852
8853
8854 # Source file extension for C test sources.
8855 ac_ext=c
8856
8857 # Object file extension for compiled C test sources.
8858 objext=o
8859 objext=$objext
8860
8861 # Code to be used in simple compile tests
8862 lt_simple_compile_test_code="int some_variable = 0;"
8863
8864 # Code to be used in simple link tests
8865 lt_simple_link_test_code='int main(void){return(0);}'
8866
8867
8868
8869
8870
8871
8872
8873 # If no C compiler was specified, use CC.
8874 LTCC=${LTCC-"$CC"}
8875
8876 # If no C compiler flags were specified, use CFLAGS.
8877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8878
8879 # Allow CC to be a program name with arguments.
8880 compiler=$CC
8881
8882 # Save the default compiler, since it gets overwritten when the other
8883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8884 compiler_DEFAULT=$CC
8885
8886 # save warnings/boilerplate of simple test code
8887 ac_outfile=conftest.$ac_objext
8888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890 _lt_compiler_boilerplate=`cat conftest.err`
8891 $RM conftest*
8892
8893 ac_outfile=conftest.$ac_objext
8894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896 _lt_linker_boilerplate=`cat conftest.err`
8897 $RM -r conftest*
8898
8899
8900 if test -n "$compiler"; then
8901
8902 lt_prog_compiler_no_builtin_flag=
8903
8904 if test yes = "$GCC"; then
8905 case $cc_basename in
8906 nvcc*)
8907 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8908 *)
8909 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8910 esac
8911
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8913 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8914 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8915 then :
8916 printf %s "(cached) " >&6
8917 else case e in #(
8918 e) lt_cv_prog_compiler_rtti_exceptions=no
8919 ac_outfile=conftest.$ac_objext
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 # The option is referenced via a variable to avoid confusing sed.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>conftest.err)
8933 ac_status=$?
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s "$ac_outfile"; then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings other than the usual output.
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_rtti_exceptions=yes
8943 fi
8944 fi
8945 $RM conftest*
8946 ;;
8947 esac
8948 fi
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8950 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8951
8952 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8953 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8954 else
8955 :
8956 fi
8957
8958 fi
8959
8960
8961
8962
8963
8964
8965 lt_prog_compiler_wl=
8966 lt_prog_compiler_pic=
8967 lt_prog_compiler_static=
8968
8969
8970 if test yes = "$GCC"; then
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_static='-static'
8973
8974 case $host_os in
8975 aix*)
8976 # All AIX code is PIC.
8977 if test ia64 = "$host_cpu"; then
8978 # AIX 5 now supports IA64 processor
8979 lt_prog_compiler_static='-Bstatic'
8980 fi
8981 lt_prog_compiler_pic='-fPIC'
8982 ;;
8983
8984 amigaos*)
8985 case $host_cpu in
8986 powerpc)
8987 # see comment about AmigaOS4 .so support
8988 lt_prog_compiler_pic='-fPIC'
8989 ;;
8990 m68k)
8991 # FIXME: we need at least 68020 code to build shared libraries, but
8992 # adding the '-m68020' flag to GCC prevents building anything better,
8993 # like '-m68040'.
8994 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8995 ;;
8996 esac
8997 ;;
8998
8999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9000 # PIC is the default for these OSes.
9001 ;;
9002
9003 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9004 # This hack is so that the source file can tell whether it is being
9005 # built for inclusion in a dll (and should export symbols for example).
9006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9007 # (--disable-auto-import) libraries
9008 lt_prog_compiler_pic='-DDLL_EXPORT'
9009 case $host_os in
9010 os2*)
9011 lt_prog_compiler_static='$wl-static'
9012 ;;
9013 esac
9014 ;;
9015
9016 darwin* | rhapsody*)
9017 # PIC is the default on this platform
9018 # Common symbols not allowed in MH_DYLIB files
9019 lt_prog_compiler_pic='-fno-common'
9020 ;;
9021
9022 haiku*)
9023 # PIC is the default for Haiku.
9024 # The "-static" flag exists, but is broken.
9025 lt_prog_compiler_static=
9026 ;;
9027
9028 hpux*)
9029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9031 # sets the default TLS model and affects inlining.
9032 case $host_cpu in
9033 hppa*64*)
9034 # +Z the default
9035 ;;
9036 *)
9037 lt_prog_compiler_pic='-fPIC'
9038 ;;
9039 esac
9040 ;;
9041
9042 interix[3-9]*)
9043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9044 # Instead, we relocate shared libraries at runtime.
9045 ;;
9046
9047 msdosdjgpp*)
9048 # Just because we use GCC doesn't mean we suddenly get shared libraries
9049 # on systems that don't support them.
9050 lt_prog_compiler_can_build_shared=no
9051 enable_shared=no
9052 ;;
9053
9054 *nto* | *qnx*)
9055 # QNX uses GNU C++, but need to define -shared option too, otherwise
9056 # it will coredump.
9057 lt_prog_compiler_pic='-fPIC -shared'
9058 ;;
9059
9060 sysv4*MP*)
9061 if test -d /usr/nec; then
9062 lt_prog_compiler_pic=-Kconform_pic
9063 fi
9064 ;;
9065
9066 *)
9067 lt_prog_compiler_pic='-fPIC'
9068 ;;
9069 esac
9070
9071 case $cc_basename in
9072 nvcc*) # Cuda Compiler Driver 2.2
9073 lt_prog_compiler_wl='-Xlinker '
9074 if test -n "$lt_prog_compiler_pic"; then
9075 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9076 fi
9077 ;;
9078 esac
9079 else
9080 # PORTME Check for flag to pass linker flags through the system compiler.
9081 case $host_os in
9082 aix*)
9083 lt_prog_compiler_wl='-Wl,'
9084 if test ia64 = "$host_cpu"; then
9085 # AIX 5 now supports IA64 processor
9086 lt_prog_compiler_static='-Bstatic'
9087 else
9088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9089 fi
9090 ;;
9091
9092 darwin* | rhapsody*)
9093 # PIC is the default on this platform
9094 # Common symbols not allowed in MH_DYLIB files
9095 lt_prog_compiler_pic='-fno-common'
9096 case $cc_basename in
9097 nagfor*)
9098 # NAG Fortran compiler
9099 lt_prog_compiler_wl='-Wl,-Wl,,'
9100 lt_prog_compiler_pic='-PIC'
9101 lt_prog_compiler_static='-Bstatic'
9102 ;;
9103 esac
9104 ;;
9105
9106 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9107 # This hack is so that the source file can tell whether it is being
9108 # built for inclusion in a dll (and should export symbols for example).
9109 lt_prog_compiler_pic='-DDLL_EXPORT'
9110 case $host_os in
9111 os2*)
9112 lt_prog_compiler_static='$wl-static'
9113 ;;
9114 esac
9115 ;;
9116
9117 hpux9* | hpux10* | hpux11*)
9118 lt_prog_compiler_wl='-Wl,'
9119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9120 # not for PA HP-UX.
9121 case $host_cpu in
9122 hppa*64*|ia64*)
9123 # +Z the default
9124 ;;
9125 *)
9126 lt_prog_compiler_pic='+Z'
9127 ;;
9128 esac
9129 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9130 lt_prog_compiler_static='$wl-a ${wl}archive'
9131 ;;
9132
9133 irix5* | irix6* | nonstopux*)
9134 lt_prog_compiler_wl='-Wl,'
9135 # PIC (with -KPIC) is the default.
9136 lt_prog_compiler_static='-non_shared'
9137 ;;
9138
9139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9140 case $cc_basename in
9141 # old Intel for x86_64, which still supported -KPIC.
9142 ecc*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-static'
9146 ;;
9147 *flang* | ftn | f18* | f95*)
9148 # Flang compiler.
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='-fPIC'
9151 lt_prog_compiler_static='-static'
9152 ;;
9153 # icc used to be incompatible with GCC.
9154 # ICC 10 doesn't accept -KPIC any more.
9155 icc* | ifort*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-fPIC'
9158 lt_prog_compiler_static='-static'
9159 ;;
9160 # Lahey Fortran 8.1.
9161 lf95*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='--shared'
9164 lt_prog_compiler_static='--static'
9165 ;;
9166 nagfor*)
9167 # NAG Fortran compiler
9168 lt_prog_compiler_wl='-Wl,-Wl,,'
9169 lt_prog_compiler_pic='-PIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 ;;
9172 tcc*)
9173 # Fabrice Bellard et al's Tiny C Compiler
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-fPIC'
9176 lt_prog_compiler_static='-static'
9177 ;;
9178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9179 # Portland Group compilers (*not* the Pentium gcc compiler,
9180 # which looks to be a dead project)
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-fpic'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185 ccc*)
9186 lt_prog_compiler_wl='-Wl,'
9187 # All Alpha code is PIC.
9188 lt_prog_compiler_static='-non_shared'
9189 ;;
9190 xl* | bgxl* | bgf* | mpixl*)
9191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9192 lt_prog_compiler_wl='-Wl,'
9193 lt_prog_compiler_pic='-qpic'
9194 lt_prog_compiler_static='-qstaticlink'
9195 ;;
9196 *)
9197 case `$CC -V 2>&1 | $SED 5q` in
9198 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9200 lt_prog_compiler_pic='-KPIC'
9201 lt_prog_compiler_static='-Bstatic'
9202 lt_prog_compiler_wl=''
9203 ;;
9204 *Sun\ F* | *Sun*Fortran*)
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_wl='-Qoption ld '
9208 ;;
9209 *Sun\ C*)
9210 # Sun C 5.9
9211 lt_prog_compiler_pic='-KPIC'
9212 lt_prog_compiler_static='-Bstatic'
9213 lt_prog_compiler_wl='-Wl,'
9214 ;;
9215 *Intel*\ [CF]*Compiler*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-fPIC'
9218 lt_prog_compiler_static='-static'
9219 ;;
9220 *Portland\ Group*)
9221 lt_prog_compiler_wl='-Wl,'
9222 lt_prog_compiler_pic='-fpic'
9223 lt_prog_compiler_static='-Bstatic'
9224 ;;
9225 esac
9226 ;;
9227 esac
9228 ;;
9229
9230 newsos6)
9231 lt_prog_compiler_pic='-KPIC'
9232 lt_prog_compiler_static='-Bstatic'
9233 ;;
9234
9235 *-mlibc)
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_pic='-fPIC'
9238 lt_prog_compiler_static='-static'
9239 ;;
9240
9241 *nto* | *qnx*)
9242 # QNX uses GNU C++, but need to define -shared option too, otherwise
9243 # it will coredump.
9244 lt_prog_compiler_pic='-fPIC -shared'
9245 ;;
9246
9247 osf3* | osf4* | osf5*)
9248 lt_prog_compiler_wl='-Wl,'
9249 # All OSF/1 code is PIC.
9250 lt_prog_compiler_static='-non_shared'
9251 ;;
9252
9253 rdos*)
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
9256
9257 serenity*)
9258 ;;
9259
9260 solaris*)
9261 lt_prog_compiler_pic='-KPIC'
9262 lt_prog_compiler_static='-Bstatic'
9263 case $cc_basename in
9264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9265 lt_prog_compiler_wl='-Qoption ld ';;
9266 *)
9267 lt_prog_compiler_wl='-Wl,';;
9268 esac
9269 ;;
9270
9271 sunos4*)
9272 lt_prog_compiler_wl='-Qoption ld '
9273 lt_prog_compiler_pic='-PIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276
9277 sysv4 | sysv4.2uw2* | sysv4.3*)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 ;;
9282
9283 sysv4*MP*)
9284 if test -d /usr/nec; then
9285 lt_prog_compiler_pic='-Kconform_pic'
9286 lt_prog_compiler_static='-Bstatic'
9287 fi
9288 ;;
9289
9290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 ;;
9295
9296 unicos*)
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_can_build_shared=no
9299 ;;
9300
9301 uts4*)
9302 lt_prog_compiler_pic='-pic'
9303 lt_prog_compiler_static='-Bstatic'
9304 ;;
9305
9306 *)
9307 lt_prog_compiler_can_build_shared=no
9308 ;;
9309 esac
9310 fi
9311
9312 case $host_os in
9313 # For platforms that do not support PIC, -DPIC is meaningless:
9314 *djgpp*)
9315 lt_prog_compiler_pic=
9316 ;;
9317 *)
9318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9319 ;;
9320 esac
9321
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9323 printf %s "checking for $compiler option to produce PIC... " >&6; }
9324 if test ${lt_cv_prog_compiler_pic+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else case e in #(
9328 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9329 esac
9330 fi
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9332 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9334
9335 #
9336 # Check to make sure the PIC flag actually works.
9337 #
9338 if test -n "$lt_prog_compiler_pic"; then
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9340 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9341 if test ${lt_cv_prog_compiler_pic_works+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else case e in #(
9345 e) lt_cv_prog_compiler_pic_works=no
9346 ac_outfile=conftest.$ac_objext
9347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9349 # Insert the option either (1) after the last *FLAGS variable, or
9350 # (2) before a word containing "conftest.", or (3) at the end.
9351 # Note that $ac_compile itself does not contain backslashes and begins
9352 # with a dollar sign (not a hyphen), so the echo should work correctly.
9353 # The option is referenced via a variable to avoid confusing sed.
9354 lt_compile=`echo "$ac_compile" | $SED \
9355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9357 -e 's:$: $lt_compiler_flag:'`
9358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9359 (eval "$lt_compile" 2>conftest.err)
9360 ac_status=$?
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 if (exit $ac_status) && test -s "$ac_outfile"; then
9364 # The compiler can only warn and ignore the option if not recognized
9365 # So say no if there are warnings other than the usual output.
9366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9369 lt_cv_prog_compiler_pic_works=yes
9370 fi
9371 fi
9372 $RM conftest*
9373 ;;
9374 esac
9375 fi
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9377 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9378
9379 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9380 case $lt_prog_compiler_pic in
9381 "" | " "*) ;;
9382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9383 esac
9384 else
9385 lt_prog_compiler_pic=
9386 lt_prog_compiler_can_build_shared=no
9387 fi
9388
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401 #
9402 # Check to make sure the static flag actually works.
9403 #
9404 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9406 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9407 if test ${lt_cv_prog_compiler_static_works+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else case e in #(
9411 e) lt_cv_prog_compiler_static_works=no
9412 save_LDFLAGS=$LDFLAGS
9413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9416 # The linker can only warn and ignore the option if not recognized
9417 # So say no if there are warnings
9418 if test -s conftest.err; then
9419 # Append any errors to the config.log.
9420 cat conftest.err 1>&5
9421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423 if diff conftest.exp conftest.er2 >/dev/null; then
9424 lt_cv_prog_compiler_static_works=yes
9425 fi
9426 else
9427 lt_cv_prog_compiler_static_works=yes
9428 fi
9429 fi
9430 $RM -r conftest*
9431 LDFLAGS=$save_LDFLAGS
9432 ;;
9433 esac
9434 fi
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9436 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9437
9438 if test yes = "$lt_cv_prog_compiler_static_works"; then
9439 :
9440 else
9441 lt_prog_compiler_static=
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9451 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9452 if test ${lt_cv_prog_compiler_c_o+y}
9453 then :
9454 printf %s "(cached) " >&6
9455 else case e in #(
9456 e) lt_cv_prog_compiler_c_o=no
9457 $RM -r conftest 2>/dev/null
9458 mkdir conftest
9459 cd conftest
9460 mkdir out
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462
9463 lt_compiler_flag="-o out/conftest2.$ac_objext"
9464 # Insert the option either (1) after the last *FLAGS variable, or
9465 # (2) before a word containing "conftest.", or (3) at the end.
9466 # Note that $ac_compile itself does not contain backslashes and begins
9467 # with a dollar sign (not a hyphen), so the echo should work correctly.
9468 lt_compile=`echo "$ac_compile" | $SED \
9469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471 -e 's:$: $lt_compiler_flag:'`
9472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9473 (eval "$lt_compile" 2>out/conftest.err)
9474 ac_status=$?
9475 cat out/conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9478 then
9479 # The compiler can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484 lt_cv_prog_compiler_c_o=yes
9485 fi
9486 fi
9487 chmod u+w . 2>&5
9488 $RM conftest*
9489 # SGI C++ compiler will create directory out/ii_files/ for
9490 # template instantiation
9491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9492 $RM out/* && rmdir out
9493 cd ..
9494 $RM -r conftest
9495 $RM conftest*
9496 ;;
9497 esac
9498 fi
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9500 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9501
9502
9503
9504
9505
9506
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9508 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9509 if test ${lt_cv_prog_compiler_c_o+y}
9510 then :
9511 printf %s "(cached) " >&6
9512 else case e in #(
9513 e) lt_cv_prog_compiler_c_o=no
9514 $RM -r conftest 2>/dev/null
9515 mkdir conftest
9516 cd conftest
9517 mkdir out
9518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9519
9520 lt_compiler_flag="-o out/conftest2.$ac_objext"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 lt_compile=`echo "$ac_compile" | $SED \
9526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9528 -e 's:$: $lt_compiler_flag:'`
9529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9530 (eval "$lt_compile" 2>out/conftest.err)
9531 ac_status=$?
9532 cat out/conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9535 then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_c_o=yes
9542 fi
9543 fi
9544 chmod u+w . 2>&5
9545 $RM conftest*
9546 # SGI C++ compiler will create directory out/ii_files/ for
9547 # template instantiation
9548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9549 $RM out/* && rmdir out
9550 cd ..
9551 $RM -r conftest
9552 $RM conftest*
9553 ;;
9554 esac
9555 fi
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9557 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9558
9559
9560
9561
9562 hard_links=nottested
9563 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9564 # do not overwrite the value of need_locks provided by the user
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9566 printf %s "checking if we can lock with hard links... " >&6; }
9567 hard_links=yes
9568 $RM conftest*
9569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9570 touch conftest.a
9571 ln conftest.a conftest.b 2>&5 || hard_links=no
9572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9574 printf "%s\n" "$hard_links" >&6; }
9575 if test no = "$hard_links"; then
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9577 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9578 need_locks=warn
9579 fi
9580 else
9581 need_locks=no
9582 fi
9583
9584
9585
9586
9587
9588
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9590 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9591
9592 runpath_var=
9593 allow_undefined_flag=
9594 always_export_symbols=no
9595 archive_cmds=
9596 archive_expsym_cmds=
9597 compiler_needs_object=no
9598 enable_shared_with_static_runtimes=no
9599 export_dynamic_flag_spec=
9600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9601 hardcode_automatic=no
9602 hardcode_direct=no
9603 hardcode_direct_absolute=no
9604 hardcode_libdir_flag_spec=
9605 hardcode_libdir_separator=
9606 hardcode_minus_L=no
9607 hardcode_shlibpath_var=unsupported
9608 inherit_rpath=no
9609 link_all_deplibs=unknown
9610 module_cmds=
9611 module_expsym_cmds=
9612 old_archive_from_new_cmds=
9613 old_archive_from_expsyms_cmds=
9614 thread_safe_flag_spec=
9615 whole_archive_flag_spec=
9616 # include_expsyms should be a list of space-separated symbols to be *always*
9617 # included in the symbol list
9618 include_expsyms=
9619 # exclude_expsyms can be an extended regexp of symbols to exclude
9620 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9621 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9622 # as well as any symbol that contains 'd'.
9623 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9625 # platforms (ab)use it in PIC code, but their linkers get confused if
9626 # the symbol is explicitly referenced. Since portable code cannot
9627 # rely on this symbol name, it's probably fine to never include it in
9628 # preloaded symbol tables.
9629 # Exclude shared library initialization/finalization symbols.
9630 extract_expsyms_cmds=
9631
9632 case $host_os in
9633 cygwin* | mingw* | windows* | pw32* | cegcc*)
9634 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9635 # When not using gcc, we currently assume that we are using
9636 # Microsoft Visual C++ or Intel C++ Compiler.
9637 if test yes != "$GCC"; then
9638 with_gnu_ld=no
9639 fi
9640 ;;
9641 interix*)
9642 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9643 with_gnu_ld=yes
9644 ;;
9645 esac
9646
9647 ld_shlibs=yes
9648
9649 # On some targets, GNU ld is compatible enough with the native linker
9650 # that we're better off using the native interface for both.
9651 lt_use_gnu_ld_interface=no
9652 if test yes = "$with_gnu_ld"; then
9653 case $host_os in
9654 aix*)
9655 # The AIX port of GNU ld has always aspired to compatibility
9656 # with the native linker. However, as the warning in the GNU ld
9657 # block says, versions before 2.19.5* couldn't really create working
9658 # shared libraries, regardless of the interface used.
9659 case `$LD -v 2>&1` in
9660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9661 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9662 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9663 *)
9664 lt_use_gnu_ld_interface=yes
9665 ;;
9666 esac
9667 ;;
9668 *)
9669 lt_use_gnu_ld_interface=yes
9670 ;;
9671 esac
9672 fi
9673
9674 if test yes = "$lt_use_gnu_ld_interface"; then
9675 # If archive_cmds runs LD, not CC, wlarc should be empty
9676 wlarc='$wl'
9677
9678 # Set some defaults for GNU ld with shared library support. These
9679 # are reset later if shared libraries are not supported. Putting them
9680 # here allows them to be overridden if necessary.
9681 runpath_var=LD_RUN_PATH
9682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9683 export_dynamic_flag_spec='$wl--export-dynamic'
9684 # ancient GNU ld didn't support --whole-archive et. al.
9685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9686 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9687 else
9688 whole_archive_flag_spec=
9689 fi
9690 supports_anon_versioning=no
9691 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9692 *GNU\ gold*) supports_anon_versioning=yes ;;
9693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9696 *\ 2.11.*) ;; # other 2.11 versions
9697 *) supports_anon_versioning=yes ;;
9698 esac
9699
9700 # See if GNU ld supports shared libraries.
9701 case $host_os in
9702 aix[3-9]*)
9703 # On AIX/PPC, the GNU linker is very broken
9704 if test ia64 != "$host_cpu"; then
9705 ld_shlibs=no
9706 cat <<_LT_EOF 1>&2
9707
9708 *** Warning: the GNU linker, at least up to release 2.19, is reported
9709 *** to be unable to reliably create shared libraries on AIX.
9710 *** Therefore, libtool is disabling shared libraries support. If you
9711 *** really care for shared libraries, you may want to install binutils
9712 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9713 *** You will then need to restart the configuration process.
9714
9715 _LT_EOF
9716 fi
9717 ;;
9718
9719 amigaos*)
9720 case $host_cpu in
9721 powerpc)
9722 # see comment about AmigaOS4 .so support
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9724 archive_expsym_cmds=''
9725 ;;
9726 m68k)
9727 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)'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 ;;
9731 esac
9732 ;;
9733
9734 beos*)
9735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9736 allow_undefined_flag=unsupported
9737 # Joseph Beckenbach <[email protected]> says some releases of gcc
9738 # support --undefined. This deserves some investigation. FIXME
9739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740 else
9741 ld_shlibs=no
9742 fi
9743 ;;
9744
9745 cygwin* | mingw* | windows* | pw32* | cegcc*)
9746 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9747 # as there is no search path for DLLs.
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 export_dynamic_flag_spec='$wl--export-all-symbols'
9750 allow_undefined_flag=unsupported
9751 always_export_symbols=no
9752 enable_shared_with_static_runtimes=yes
9753 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'
9754 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9755 file_list_spec='@'
9756
9757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9759 # If the export-symbols file already is a .def file, use it as
9760 # is; otherwise, prepend EXPORTS...
9761 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9762 cp $export_symbols $output_objdir/$soname.def;
9763 else
9764 echo EXPORTS > $output_objdir/$soname.def;
9765 cat $export_symbols >> $output_objdir/$soname.def;
9766 fi~
9767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9768 else
9769 ld_shlibs=no
9770 fi
9771 ;;
9772
9773 haiku*)
9774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9775 link_all_deplibs=no
9776 ;;
9777
9778 os2*)
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_minus_L=yes
9781 allow_undefined_flag=unsupported
9782 shrext_cmds=.dll
9783 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9784 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9785 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9786 $ECHO EXPORTS >> $output_objdir/$libname.def~
9787 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9789 emximp -o $lib $output_objdir/$libname.def'
9790 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9791 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9792 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9793 $ECHO EXPORTS >> $output_objdir/$libname.def~
9794 prefix_cmds="$SED"~
9795 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9796 prefix_cmds="$prefix_cmds -e 1d";
9797 fi~
9798 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9799 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9800 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9801 emximp -o $lib $output_objdir/$libname.def'
9802 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9803 enable_shared_with_static_runtimes=yes
9804 file_list_spec='@'
9805 ;;
9806
9807 interix[3-9]*)
9808 hardcode_direct=no
9809 hardcode_shlibpath_var=no
9810 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9811 export_dynamic_flag_spec='$wl-E'
9812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9813 # Instead, shared libraries are loaded at an image base (0x10000000 by
9814 # default) and relocated if they conflict, which is a slow very memory
9815 # consuming and fragmenting process. To avoid this, we pick a random,
9816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9819 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'
9820 ;;
9821
9822 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9823 tmp_diet=no
9824 if test linux-dietlibc = "$host_os"; then
9825 case $cc_basename in
9826 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9827 esac
9828 fi
9829 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9830 && test no = "$tmp_diet"
9831 then
9832 tmp_addflag=' $pic_flag'
9833 tmp_sharedflag='-shared'
9834 case $cc_basename,$host_cpu in
9835 pgcc*) # Portland Group C compiler
9836 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'
9837 tmp_addflag=' $pic_flag'
9838 ;;
9839 pgf77* | pgf90* | pgf95* | pgfortran*)
9840 # Portland Group f77 and f90 compilers
9841 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'
9842 tmp_addflag=' $pic_flag -Mnomain' ;;
9843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9844 tmp_addflag=' -i_dynamic' ;;
9845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9846 tmp_addflag=' -i_dynamic -nofor_main' ;;
9847 ifc* | ifort*) # Intel Fortran compiler
9848 tmp_addflag=' -nofor_main' ;;
9849 lf95*) # Lahey Fortran 8.1
9850 whole_archive_flag_spec=
9851 tmp_sharedflag='--shared' ;;
9852 nagfor*) # NAGFOR 5.3
9853 tmp_sharedflag='-Wl,-shared' ;;
9854 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9855 tmp_sharedflag='-qmkshrobj'
9856 tmp_addflag= ;;
9857 nvcc*) # Cuda Compiler Driver 2.2
9858 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'
9859 compiler_needs_object=yes
9860 ;;
9861 esac
9862 case `$CC -V 2>&1 | $SED 5q` in
9863 *Sun\ C*) # Sun C 5.9
9864 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'
9865 compiler_needs_object=yes
9866 tmp_sharedflag='-G' ;;
9867 *Sun\ F*) # Sun Fortran 8.3
9868 tmp_sharedflag='-G' ;;
9869 esac
9870 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9871
9872 if test yes = "$supports_anon_versioning"; then
9873 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9874 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9875 echo "local: *; };" >> $output_objdir/$libname.ver~
9876 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9877 fi
9878
9879 case $cc_basename in
9880 tcc*)
9881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9882 export_dynamic_flag_spec='-rdynamic'
9883 ;;
9884 xlf* | bgf* | bgxlf* | mpixlf*)
9885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9887 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9888 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9889 if test yes = "$supports_anon_versioning"; then
9890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9891 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9892 echo "local: *; };" >> $output_objdir/$libname.ver~
9893 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9894 fi
9895 ;;
9896 esac
9897 else
9898 ld_shlibs=no
9899 fi
9900 ;;
9901
9902 *-mlibc)
9903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9905 ;;
9906
9907 netbsd* | netbsdelf*-gnu)
9908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9909 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9910 wlarc=
9911 else
9912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9913 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9914 fi
9915 ;;
9916
9917 solaris*)
9918 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9919 ld_shlibs=no
9920 cat <<_LT_EOF 1>&2
9921
9922 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9923 *** create shared libraries on Solaris systems. Therefore, libtool
9924 *** is disabling shared libraries support. We urge you to upgrade GNU
9925 *** binutils to release 2.9.1 or newer. Another option is to modify
9926 *** your PATH or compiler configuration so that the native linker is
9927 *** used, and then restart.
9928
9929 _LT_EOF
9930 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9933 else
9934 ld_shlibs=no
9935 fi
9936 ;;
9937
9938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9939 case `$LD -v 2>&1` in
9940 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9941 ld_shlibs=no
9942 cat <<_LT_EOF 1>&2
9943
9944 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9945 *** reliably create shared libraries on SCO systems. Therefore, libtool
9946 *** is disabling shared libraries support. We urge you to upgrade GNU
9947 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9948 *** your PATH or compiler configuration so that the native linker is
9949 *** used, and then restart.
9950
9951 _LT_EOF
9952 ;;
9953 *)
9954 # For security reasons, it is highly recommended that you always
9955 # use absolute paths for naming shared libraries, and exclude the
9956 # DT_RUNPATH tag from executables and libraries. But doing so
9957 # requires that you compile everything twice, which is a pain.
9958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9959 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9962 else
9963 ld_shlibs=no
9964 fi
9965 ;;
9966 esac
9967 ;;
9968
9969 sunos4*)
9970 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9971 wlarc=
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 *)
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9980 else
9981 ld_shlibs=no
9982 fi
9983 ;;
9984 esac
9985
9986 if test no = "$ld_shlibs"; then
9987 runpath_var=
9988 hardcode_libdir_flag_spec=
9989 export_dynamic_flag_spec=
9990 whole_archive_flag_spec=
9991 fi
9992 else
9993 # PORTME fill in a description of your system's linker (not GNU ld)
9994 case $host_os in
9995 aix3*)
9996 allow_undefined_flag=unsupported
9997 always_export_symbols=yes
9998 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'
9999 # Note: this linker hardcodes the directories in LIBPATH if there
10000 # are no directories specified by -L.
10001 hardcode_minus_L=yes
10002 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10003 # Neither direct hardcoding nor static linking is supported with a
10004 # broken collect2.
10005 hardcode_direct=unsupported
10006 fi
10007 ;;
10008
10009 aix[4-9]*)
10010 if test ia64 = "$host_cpu"; then
10011 # On IA64, the linker does run time linking by default, so we don't
10012 # have to do anything special.
10013 aix_use_runtimelinking=no
10014 exp_sym_flag='-Bexport'
10015 no_entry_flag=
10016 else
10017 # If we're using GNU nm, then we don't want the "-C" option.
10018 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10019 # Without the "-l" option, or with the "-B" option, AIX nm treats
10020 # weak defined symbols like other global defined symbols, whereas
10021 # GNU nm marks them as "W".
10022 # While the 'weak' keyword is ignored in the Export File, we need
10023 # it in the Import File for the 'aix-soname' feature, so we have
10024 # to replace the "-B" option with "-P" for AIX nm.
10025 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10026 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'
10027 else
10028 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'
10029 fi
10030 aix_use_runtimelinking=no
10031
10032 # Test if we are trying to use run time linking or normal
10033 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10034 # have runtime linking enabled, and use it for executables.
10035 # For shared libraries, we enable/disable runtime linking
10036 # depending on the kind of the shared library created -
10037 # when "with_aix_soname,aix_use_runtimelinking" is:
10038 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10039 # "aix,yes" lib.so shared, rtl:yes, for executables
10040 # lib.a static archive
10041 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10042 # lib.a(lib.so.V) shared, rtl:no, for executables
10043 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10044 # lib.a(lib.so.V) shared, rtl:no
10045 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10046 # lib.a static archive
10047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10048 for ld_flag in $LDFLAGS; do
10049 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10050 aix_use_runtimelinking=yes
10051 break
10052 fi
10053 done
10054 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10055 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10056 # so we don't have lib.a shared libs to link our executables.
10057 # We have to force runtime linking in this case.
10058 aix_use_runtimelinking=yes
10059 LDFLAGS="$LDFLAGS -Wl,-brtl"
10060 fi
10061 ;;
10062 esac
10063
10064 exp_sym_flag='-bexport'
10065 no_entry_flag='-bnoentry'
10066 fi
10067
10068 # When large executables or shared objects are built, AIX ld can
10069 # have problems creating the table of contents. If linking a library
10070 # or program results in "error TOC overflow" add -mminimal-toc to
10071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10073
10074 archive_cmds=''
10075 hardcode_direct=yes
10076 hardcode_direct_absolute=yes
10077 hardcode_libdir_separator=':'
10078 link_all_deplibs=yes
10079 file_list_spec='$wl-f,'
10080 case $with_aix_soname,$aix_use_runtimelinking in
10081 aix,*) ;; # traditional, no import file
10082 svr4,* | *,yes) # use import file
10083 # The Import File defines what to hardcode.
10084 hardcode_direct=no
10085 hardcode_direct_absolute=no
10086 ;;
10087 esac
10088
10089 if test yes = "$GCC"; then
10090 case $host_os in aix4.[012]|aix4.[012].*)
10091 # We only want to do this on AIX 4.2 and lower, the check
10092 # below for broken collect2 doesn't work under 4.3+
10093 collect2name=`$CC -print-prog-name=collect2`
10094 if test -f "$collect2name" &&
10095 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10096 then
10097 # We have reworked collect2
10098 :
10099 else
10100 # We have old collect2
10101 hardcode_direct=unsupported
10102 # It fails to find uninstalled libraries when the uninstalled
10103 # path is not listed in the libpath. Setting hardcode_minus_L
10104 # to unsupported forces relinking
10105 hardcode_minus_L=yes
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_libdir_separator=
10108 fi
10109 ;;
10110 esac
10111 shared_flag='-shared'
10112 if test yes = "$aix_use_runtimelinking"; then
10113 shared_flag="$shared_flag "'$wl-G'
10114 fi
10115 # Need to ensure runtime linking is disabled for the traditional
10116 # shared library, or the linker may eventually find shared libraries
10117 # /with/ Import File - we do not want to mix them.
10118 shared_flag_aix='-shared'
10119 shared_flag_svr4='-shared $wl-G'
10120 else
10121 # not using gcc
10122 if test ia64 = "$host_cpu"; then
10123 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10124 # chokes on -Wl,-G. The following line is correct:
10125 shared_flag='-G'
10126 else
10127 if test yes = "$aix_use_runtimelinking"; then
10128 shared_flag='$wl-G'
10129 else
10130 shared_flag='$wl-bM:SRE'
10131 fi
10132 shared_flag_aix='$wl-bM:SRE'
10133 shared_flag_svr4='$wl-G'
10134 fi
10135 fi
10136
10137 export_dynamic_flag_spec='$wl-bexpall'
10138 # It seems that -bexpall does not export symbols beginning with
10139 # underscore (_), so it is better to generate a list of symbols to export.
10140 always_export_symbols=yes
10141 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10142 # Warning - without using the other runtime loading flags (-brtl),
10143 # -berok will link without error, but may produce a broken library.
10144 allow_undefined_flag='-berok'
10145 # Determine the default libpath from the value encoded in an
10146 # empty executable.
10147 if test set = "${lt_cv_aix_libpath+set}"; then
10148 aix_libpath=$lt_cv_aix_libpath
10149 else
10150 if test ${lt_cv_aix_libpath_+y}
10151 then :
10152 printf %s "(cached) " >&6
10153 else case e in #(
10154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156
10157 int
10158 main (void)
10159 {
10160
10161 ;
10162 return 0;
10163 }
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"
10166 then :
10167
10168 lt_aix_libpath_sed='
10169 /Import File Strings/,/^$/ {
10170 /^0/ {
10171 s/^0 *\([^ ]*\) *$/\1/
10172 p
10173 }
10174 }'
10175 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10176 # Check for a 64-bit object if we didn't find anything.
10177 if test -z "$lt_cv_aix_libpath_"; then
10178 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10179 fi
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10182 conftest$ac_exeext conftest.$ac_ext
10183 if test -z "$lt_cv_aix_libpath_"; then
10184 lt_cv_aix_libpath_=/usr/lib:/lib
10185 fi
10186 ;;
10187 esac
10188 fi
10189
10190 aix_libpath=$lt_cv_aix_libpath_
10191 fi
10192
10193 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10194 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
10195 else
10196 if test ia64 = "$host_cpu"; then
10197 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10198 allow_undefined_flag="-z nodefs"
10199 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"
10200 else
10201 # Determine the default libpath from the value encoded in an
10202 # empty executable.
10203 if test set = "${lt_cv_aix_libpath+set}"; then
10204 aix_libpath=$lt_cv_aix_libpath
10205 else
10206 if test ${lt_cv_aix_libpath_+y}
10207 then :
10208 printf %s "(cached) " >&6
10209 else case e in #(
10210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212
10213 int
10214 main (void)
10215 {
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"
10222 then :
10223
10224 lt_aix_libpath_sed='
10225 /Import File Strings/,/^$/ {
10226 /^0/ {
10227 s/^0 *\([^ ]*\) *$/\1/
10228 p
10229 }
10230 }'
10231 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10232 # Check for a 64-bit object if we didn't find anything.
10233 if test -z "$lt_cv_aix_libpath_"; then
10234 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10235 fi
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10238 conftest$ac_exeext conftest.$ac_ext
10239 if test -z "$lt_cv_aix_libpath_"; then
10240 lt_cv_aix_libpath_=/usr/lib:/lib
10241 fi
10242 ;;
10243 esac
10244 fi
10245
10246 aix_libpath=$lt_cv_aix_libpath_
10247 fi
10248
10249 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10250 # Warning - without using the other run time loading flags,
10251 # -berok will link without error, but may produce a broken library.
10252 no_undefined_flag=' $wl-bernotok'
10253 allow_undefined_flag=' $wl-berok'
10254 if test yes = "$with_gnu_ld"; then
10255 # We only use this code for GNU lds that support --whole-archive.
10256 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10257 else
10258 # Exported symbols can be pulled into shared objects from archives
10259 whole_archive_flag_spec='$convenience'
10260 fi
10261 archive_cmds_need_lc=yes
10262 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10263 # -brtl affects multiple linker settings, -berok does not and is overridden later
10264 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10265 if test svr4 != "$with_aix_soname"; then
10266 # This is similar to how AIX traditionally builds its shared libraries.
10267 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'
10268 fi
10269 if test aix != "$with_aix_soname"; then
10270 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'
10271 else
10272 # used by -dlpreopen to get the symbols
10273 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10274 fi
10275 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10276 fi
10277 fi
10278 ;;
10279
10280 amigaos*)
10281 case $host_cpu in
10282 powerpc)
10283 # see comment about AmigaOS4 .so support
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10285 archive_expsym_cmds=''
10286 ;;
10287 m68k)
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10291 ;;
10292 esac
10293 ;;
10294
10295 bsdi[45]*)
10296 export_dynamic_flag_spec=-rdynamic
10297 ;;
10298
10299 cygwin* | mingw* | windows* | pw32* | cegcc*)
10300 # When not using gcc, we currently assume that we are using
10301 # Microsoft Visual C++ or Intel C++ Compiler.
10302 # hardcode_libdir_flag_spec is actually meaningless, as there is
10303 # no search path for DLLs.
10304 case $cc_basename in
10305 cl* | icl*)
10306 # Native MSVC or ICC
10307 hardcode_libdir_flag_spec=' '
10308 allow_undefined_flag=unsupported
10309 always_export_symbols=yes
10310 file_list_spec='@'
10311 # Tell ltmain to make .lib files, not .a files.
10312 libext=lib
10313 # Tell ltmain to make .dll files, not .so files.
10314 shrext_cmds=.dll
10315 # FIXME: Setting linknames here is a bad hack.
10316 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10318 cp "$export_symbols" "$output_objdir/$soname.def";
10319 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10320 else
10321 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10322 fi~
10323 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10324 linknames='
10325 # The linker will not automatically build a static lib if we build a DLL.
10326 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10327 enable_shared_with_static_runtimes=yes
10328 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10330 # Don't use ranlib
10331 old_postinstall_cmds='chmod 644 $oldlib'
10332 postlink_cmds='lt_outputfile="@OUTPUT@"~
10333 lt_tool_outputfile="@TOOL_OUTPUT@"~
10334 case $lt_outputfile in
10335 *.exe|*.EXE) ;;
10336 *)
10337 lt_outputfile=$lt_outputfile.exe
10338 lt_tool_outputfile=$lt_tool_outputfile.exe
10339 ;;
10340 esac~
10341 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10343 $RM "$lt_outputfile.manifest";
10344 fi'
10345 ;;
10346 *)
10347 # Assume MSVC and ICC wrapper
10348 hardcode_libdir_flag_spec=' '
10349 allow_undefined_flag=unsupported
10350 # Tell ltmain to make .lib files, not .a files.
10351 libext=lib
10352 # Tell ltmain to make .dll files, not .so files.
10353 shrext_cmds=.dll
10354 # FIXME: Setting linknames here is a bad hack.
10355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10356 # The linker will automatically build a .lib file if we build a DLL.
10357 old_archive_from_new_cmds='true'
10358 # FIXME: Should let the user specify the lib program.
10359 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10360 enable_shared_with_static_runtimes=yes
10361 ;;
10362 esac
10363 ;;
10364
10365 darwin* | rhapsody*)
10366
10367
10368 archive_cmds_need_lc=no
10369 hardcode_direct=no
10370 hardcode_automatic=yes
10371 hardcode_shlibpath_var=unsupported
10372 if test yes = "$lt_cv_ld_force_load"; then
10373 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\"`'
10374
10375 else
10376 whole_archive_flag_spec=''
10377 fi
10378 link_all_deplibs=yes
10379 allow_undefined_flag=$_lt_dar_allow_undefined
10380 case $cc_basename in
10381 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10382 *) _lt_dar_can_shared=$GCC ;;
10383 esac
10384 if test yes = "$_lt_dar_can_shared"; then
10385 output_verbose_link_cmd=func_echo_all
10386 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10387 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10388 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"
10389 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"
10390
10391 else
10392 ld_shlibs=no
10393 fi
10394
10395 ;;
10396
10397 dgux*)
10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_libdir_flag_spec='-L$libdir'
10400 hardcode_shlibpath_var=no
10401 ;;
10402
10403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10404 # support. Future versions do this automatically, but an explicit c++rt0.o
10405 # does not break anything, and helps significantly (at the cost of a little
10406 # extra space).
10407 freebsd2.2*)
10408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10409 hardcode_libdir_flag_spec='-R$libdir'
10410 hardcode_direct=yes
10411 hardcode_shlibpath_var=no
10412 ;;
10413
10414 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10415 freebsd2.*)
10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_direct=yes
10418 hardcode_minus_L=yes
10419 hardcode_shlibpath_var=no
10420 ;;
10421
10422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10423 freebsd* | dragonfly* | midnightbsd*)
10424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10425 hardcode_libdir_flag_spec='-R$libdir'
10426 hardcode_direct=yes
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 hpux9*)
10431 if test yes = "$GCC"; then
10432 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'
10433 else
10434 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'
10435 fi
10436 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10437 hardcode_libdir_separator=:
10438 hardcode_direct=yes
10439
10440 # hardcode_minus_L: Not really in the search PATH,
10441 # but as the default location of the library.
10442 hardcode_minus_L=yes
10443 export_dynamic_flag_spec='$wl-E'
10444 ;;
10445
10446 hpux10*)
10447 if test yes,no = "$GCC,$with_gnu_ld"; then
10448 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10449 else
10450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10451 fi
10452 if test no = "$with_gnu_ld"; then
10453 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10454 hardcode_libdir_separator=:
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 export_dynamic_flag_spec='$wl-E'
10458 # hardcode_minus_L: Not really in the search PATH,
10459 # but as the default location of the library.
10460 hardcode_minus_L=yes
10461 fi
10462 ;;
10463
10464 hpux11*)
10465 if test yes,no = "$GCC,$with_gnu_ld"; then
10466 case $host_cpu in
10467 hppa*64*)
10468 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 ia64*)
10471 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10472 ;;
10473 *)
10474 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 esac
10477 else
10478 case $host_cpu in
10479 hppa*64*)
10480 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 ;;
10482 ia64*)
10483 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10484 ;;
10485 *)
10486
10487 # Older versions of the 11.00 compiler do not understand -b yet
10488 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10490 printf %s "checking if $CC understands -b... " >&6; }
10491 if test ${lt_cv_prog_compiler__b+y}
10492 then :
10493 printf %s "(cached) " >&6
10494 else case e in #(
10495 e) lt_cv_prog_compiler__b=no
10496 save_LDFLAGS=$LDFLAGS
10497 LDFLAGS="$LDFLAGS -b"
10498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10500 # The linker can only warn and ignore the option if not recognized
10501 # So say no if there are warnings
10502 if test -s conftest.err; then
10503 # Append any errors to the config.log.
10504 cat conftest.err 1>&5
10505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10507 if diff conftest.exp conftest.er2 >/dev/null; then
10508 lt_cv_prog_compiler__b=yes
10509 fi
10510 else
10511 lt_cv_prog_compiler__b=yes
10512 fi
10513 fi
10514 $RM -r conftest*
10515 LDFLAGS=$save_LDFLAGS
10516 ;;
10517 esac
10518 fi
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10520 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10521
10522 if test yes = "$lt_cv_prog_compiler__b"; then
10523 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10524 else
10525 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10526 fi
10527
10528 ;;
10529 esac
10530 fi
10531 if test no = "$with_gnu_ld"; then
10532 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10533 hardcode_libdir_separator=:
10534
10535 case $host_cpu in
10536 hppa*64*|ia64*)
10537 hardcode_direct=no
10538 hardcode_shlibpath_var=no
10539 ;;
10540 *)
10541 hardcode_direct=yes
10542 hardcode_direct_absolute=yes
10543 export_dynamic_flag_spec='$wl-E'
10544
10545 # hardcode_minus_L: Not really in the search PATH,
10546 # but as the default location of the library.
10547 hardcode_minus_L=yes
10548 ;;
10549 esac
10550 fi
10551 ;;
10552
10553 irix5* | irix6* | nonstopux*)
10554 if test yes = "$GCC"; then
10555 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'
10556 # Try to use the -exported_symbol ld option, if it does not
10557 # work, assume that -exports_file does not work either and
10558 # implicitly export all symbols.
10559 # This should be the same for all languages, so no per-tag cache variable.
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10561 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10562 if test ${lt_cv_irix_exported_symbol+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else case e in #(
10566 e) save_LDFLAGS=$LDFLAGS
10567 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 int foo (void) { return 0; }
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"
10573 then :
10574 lt_cv_irix_exported_symbol=yes
10575 else case e in #(
10576 e) lt_cv_irix_exported_symbol=no ;;
10577 esac
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LDFLAGS=$save_LDFLAGS ;;
10582 esac
10583 fi
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10585 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10586 if test yes = "$lt_cv_irix_exported_symbol"; then
10587 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'
10588 fi
10589 else
10590 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'
10591 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'
10592 fi
10593 archive_cmds_need_lc='no'
10594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10595 hardcode_libdir_separator=:
10596 inherit_rpath=yes
10597 link_all_deplibs=yes
10598 ;;
10599
10600 linux*)
10601 case $cc_basename in
10602 tcc*)
10603 # Fabrice Bellard et al's Tiny C Compiler
10604 ld_shlibs=yes
10605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10607 ;;
10608 esac
10609 ;;
10610
10611 *-mlibc)
10612 ;;
10613
10614 netbsd* | netbsdelf*-gnu)
10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10617 else
10618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10619 fi
10620 hardcode_libdir_flag_spec='-R$libdir'
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 ;;
10624
10625 newsos6)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_direct=yes
10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_shlibpath_var=no
10631 ;;
10632
10633 *nto* | *qnx*)
10634 ;;
10635
10636 openbsd*)
10637 if test -f /usr/libexec/ld.so; then
10638 hardcode_direct=yes
10639 hardcode_shlibpath_var=no
10640 hardcode_direct_absolute=yes
10641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10644 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10645 export_dynamic_flag_spec='$wl-E'
10646 else
10647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10648 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10649 fi
10650 else
10651 ld_shlibs=no
10652 fi
10653 ;;
10654
10655 os2*)
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_minus_L=yes
10658 allow_undefined_flag=unsupported
10659 shrext_cmds=.dll
10660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10663 $ECHO EXPORTS >> $output_objdir/$libname.def~
10664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10666 emximp -o $lib $output_objdir/$libname.def'
10667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10670 $ECHO EXPORTS >> $output_objdir/$libname.def~
10671 prefix_cmds="$SED"~
10672 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10673 prefix_cmds="$prefix_cmds -e 1d";
10674 fi~
10675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10678 emximp -o $lib $output_objdir/$libname.def'
10679 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10680 enable_shared_with_static_runtimes=yes
10681 file_list_spec='@'
10682 ;;
10683
10684 osf3*)
10685 if test yes = "$GCC"; then
10686 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10687 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'
10688 else
10689 allow_undefined_flag=' -expect_unresolved \*'
10690 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'
10691 fi
10692 archive_cmds_need_lc='no'
10693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10694 hardcode_libdir_separator=:
10695 ;;
10696
10697 osf4* | osf5*) # as osf3* with the addition of -msym flag
10698 if test yes = "$GCC"; then
10699 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10700 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'
10701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10702 else
10703 allow_undefined_flag=' -expect_unresolved \*'
10704 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'
10705 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~
10706 $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'
10707
10708 # Both c and cxx compiler support -rpath directly
10709 hardcode_libdir_flag_spec='-rpath $libdir'
10710 fi
10711 archive_cmds_need_lc='no'
10712 hardcode_libdir_separator=:
10713 ;;
10714
10715 serenity*)
10716 ;;
10717
10718 solaris*)
10719 no_undefined_flag=' -z defs'
10720 if test yes = "$GCC"; then
10721 wlarc='$wl'
10722 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10724 $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'
10725 else
10726 case `$CC -V 2>&1` in
10727 *"Compilers 5.0"*)
10728 wlarc=''
10729 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10731 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10732 ;;
10733 *)
10734 wlarc='$wl'
10735 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10737 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10738 ;;
10739 esac
10740 fi
10741 hardcode_libdir_flag_spec='-R$libdir'
10742 hardcode_shlibpath_var=no
10743 case $host_os in
10744 solaris2.[0-5] | solaris2.[0-5].*) ;;
10745 *)
10746 # The compiler driver will combine and reorder linker options,
10747 # but understands '-z linker_flag'. GCC discards it without '$wl',
10748 # but is careful enough not to reorder.
10749 # Supported since Solaris 2.6 (maybe 2.5.1?)
10750 if test yes = "$GCC"; then
10751 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10752 else
10753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10754 fi
10755 ;;
10756 esac
10757 link_all_deplibs=yes
10758 ;;
10759
10760 sunos4*)
10761 if test sequent = "$host_vendor"; then
10762 # Use $CC to link under sequent, because it throws in some extra .o
10763 # files that make .init and .fini sections work.
10764 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10765 else
10766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10767 fi
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_direct=yes
10770 hardcode_minus_L=yes
10771 hardcode_shlibpath_var=no
10772 ;;
10773
10774 sysv4)
10775 case $host_vendor in
10776 sni)
10777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_direct=yes # is this really true???
10779 ;;
10780 siemens)
10781 ## LD is ld it makes a PLAMLIB
10782 ## CC just makes a GrossModule.
10783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10784 reload_cmds='$CC -r -o $output$reload_objs'
10785 hardcode_direct=no
10786 ;;
10787 motorola)
10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10790 ;;
10791 esac
10792 runpath_var='LD_RUN_PATH'
10793 hardcode_shlibpath_var=no
10794 ;;
10795
10796 sysv4.3*)
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_shlibpath_var=no
10799 export_dynamic_flag_spec='-Bexport'
10800 ;;
10801
10802 sysv4*MP*)
10803 if test -d /usr/nec; then
10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_shlibpath_var=no
10806 runpath_var=LD_RUN_PATH
10807 hardcode_runpath_var=yes
10808 ld_shlibs=yes
10809 fi
10810 ;;
10811
10812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10813 no_undefined_flag='$wl-z,text'
10814 archive_cmds_need_lc=no
10815 hardcode_shlibpath_var=no
10816 runpath_var='LD_RUN_PATH'
10817
10818 if test yes = "$GCC"; then
10819 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 else
10822 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10824 fi
10825 ;;
10826
10827 sysv5* | sco3.2v5* | sco5v6*)
10828 # Note: We CANNOT use -z defs as we might desire, because we do not
10829 # link with -lc, and that would cause any symbols used from libc to
10830 # always be unresolved, which means just about no library would
10831 # ever link correctly. If we're not using GNU ld we use -z text
10832 # though, which does catch some bad symbols but isn't as heavy-handed
10833 # as -z defs.
10834 no_undefined_flag='$wl-z,text'
10835 allow_undefined_flag='$wl-z,nodefs'
10836 archive_cmds_need_lc=no
10837 hardcode_shlibpath_var=no
10838 hardcode_libdir_flag_spec='$wl-R,$libdir'
10839 hardcode_libdir_separator=':'
10840 link_all_deplibs=yes
10841 export_dynamic_flag_spec='$wl-Bexport'
10842 runpath_var='LD_RUN_PATH'
10843
10844 if test yes = "$GCC"; then
10845 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 else
10848 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 fi
10851 ;;
10852
10853 uts4*)
10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 hardcode_libdir_flag_spec='-L$libdir'
10856 hardcode_shlibpath_var=no
10857 ;;
10858
10859 *)
10860 ld_shlibs=no
10861 ;;
10862 esac
10863
10864 if test sni = "$host_vendor"; then
10865 case $host in
10866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10867 export_dynamic_flag_spec='$wl-Blargedynsym'
10868 ;;
10869 esac
10870 fi
10871 fi
10872
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10874 printf "%s\n" "$ld_shlibs" >&6; }
10875 test no = "$ld_shlibs" && can_build_shared=no
10876
10877 with_gnu_ld=$with_gnu_ld
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893 #
10894 # Do we need to explicitly link libc?
10895 #
10896 case "x$archive_cmds_need_lc" in
10897 x|xyes)
10898 # Assume -lc should be added
10899 archive_cmds_need_lc=yes
10900
10901 if test yes,yes = "$GCC,$enable_shared"; then
10902 case $archive_cmds in
10903 *'~'*)
10904 # FIXME: we may have to deal with multi-command sequences.
10905 ;;
10906 '$CC '*)
10907 # Test whether the compiler implicitly links with -lc since on some
10908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10909 # to ld, don't add -lc before -lgcc.
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10911 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10912 if test ${lt_cv_archive_cmds_need_lc+y}
10913 then :
10914 printf %s "(cached) " >&6
10915 else case e in #(
10916 e) $RM conftest*
10917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10918
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10920 (eval $ac_compile) 2>&5
10921 ac_status=$?
10922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; } 2>conftest.err; then
10924 soname=conftest
10925 lib=conftest
10926 libobjs=conftest.$ac_objext
10927 deplibs=
10928 wl=$lt_prog_compiler_wl
10929 pic_flag=$lt_prog_compiler_pic
10930 compiler_flags=-v
10931 linker_flags=-v
10932 verstring=
10933 output_objdir=.
10934 libname=conftest
10935 lt_save_allow_undefined_flag=$allow_undefined_flag
10936 allow_undefined_flag=
10937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10939 ac_status=$?
10940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941 test $ac_status = 0; }
10942 then
10943 lt_cv_archive_cmds_need_lc=no
10944 else
10945 lt_cv_archive_cmds_need_lc=yes
10946 fi
10947 allow_undefined_flag=$lt_save_allow_undefined_flag
10948 else
10949 cat conftest.err 1>&5
10950 fi
10951 $RM conftest*
10952 ;;
10953 esac
10954 fi
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10956 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10957 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10958 ;;
10959 esac
10960 fi
10961 ;;
10962 esac
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11116 printf %s "checking dynamic linker characteristics... " >&6; }
11117
11118 if test yes = "$GCC"; then
11119 case $host_os in
11120 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11121 *) lt_awk_arg='/^libraries:/' ;;
11122 esac
11123 case $host_os in
11124 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11125 *) lt_sed_strip_eq='s|=/|/|g' ;;
11126 esac
11127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11128 case $lt_search_path_spec in
11129 *\;*)
11130 # if the path contains ";" then we assume it to be the separator
11131 # otherwise default to the standard path separator (i.e. ":") - it is
11132 # assumed that no part of a normal pathname contains ";" but that should
11133 # okay in the real world where ";" in dirpaths is itself problematic.
11134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11135 ;;
11136 *)
11137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11138 ;;
11139 esac
11140 # Ok, now we have the path, separated by spaces, we can step through it
11141 # and add multilib dir if necessary...
11142 lt_tmp_lt_search_path_spec=
11143 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11144 # ...but if some path component already ends with the multilib dir we assume
11145 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11146 case "$lt_multi_os_dir; $lt_search_path_spec " in
11147 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11148 lt_multi_os_dir=
11149 ;;
11150 esac
11151 for lt_sys_path in $lt_search_path_spec; do
11152 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11154 elif test -n "$lt_multi_os_dir"; then
11155 test -d "$lt_sys_path" && \
11156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11157 fi
11158 done
11159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11160 BEGIN {RS = " "; FS = "/|\n";} {
11161 lt_foo = "";
11162 lt_count = 0;
11163 for (lt_i = NF; lt_i > 0; lt_i--) {
11164 if ($lt_i != "" && $lt_i != ".") {
11165 if ($lt_i == "..") {
11166 lt_count++;
11167 } else {
11168 if (lt_count == 0) {
11169 lt_foo = "/" $lt_i lt_foo;
11170 } else {
11171 lt_count--;
11172 }
11173 }
11174 }
11175 }
11176 if (lt_foo != "") { lt_freq[lt_foo]++; }
11177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11178 }'`
11179 # AWK program above erroneously prepends '/' to C:/dos/paths
11180 # for these hosts.
11181 case $host_os in
11182 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11183 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11184 esac
11185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11186 else
11187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11188 fi
11189 library_names_spec=
11190 libname_spec='lib$name'
11191 soname_spec=
11192 shrext_cmds=.so
11193 postinstall_cmds=
11194 postuninstall_cmds=
11195 finish_cmds=
11196 finish_eval=
11197 shlibpath_var=
11198 shlibpath_overrides_runpath=unknown
11199 version_type=none
11200 dynamic_linker="$host_os ld.so"
11201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11202 need_lib_prefix=unknown
11203 hardcode_into_libs=no
11204
11205 # when you set need_version to no, make sure it does not cause -set_version
11206 # flags to be left without arguments
11207 need_version=unknown
11208
11209
11210
11211 case $host_os in
11212 aix3*)
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11215 shlibpath_var=LIBPATH
11216
11217 # AIX 3 has no versioning support, so we append a major version to the name.
11218 soname_spec='$libname$release$shared_ext$major'
11219 ;;
11220
11221 aix[4-9]*)
11222 version_type=linux # correct to gnu/linux during the next big refactor
11223 need_lib_prefix=no
11224 need_version=no
11225 hardcode_into_libs=yes
11226 if test ia64 = "$host_cpu"; then
11227 # AIX 5 supports IA64
11228 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 else
11231 # With GCC up to 2.95.x, collect2 would create an import file
11232 # for dependence libraries. The import file would start with
11233 # the line '#! .'. This would cause the generated library to
11234 # depend on '.', always an invalid library. This was fixed in
11235 # development snapshots of GCC prior to 3.0.
11236 case $host_os in
11237 aix4 | aix4.[01] | aix4.[01].*)
11238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11239 echo ' yes '
11240 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11241 :
11242 else
11243 can_build_shared=no
11244 fi
11245 ;;
11246 esac
11247 # Using Import Files as archive members, it is possible to support
11248 # filename-based versioning of shared library archives on AIX. While
11249 # this would work for both with and without runtime linking, it will
11250 # prevent static linking of such archives. So we do filename-based
11251 # shared library versioning with .so extension only, which is used
11252 # when both runtime linking and shared linking is enabled.
11253 # Unfortunately, runtime linking may impact performance, so we do
11254 # not want this to be the default eventually. Also, we use the
11255 # versioned .so libs for executables only if there is the -brtl
11256 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11257 # To allow for filename-based versioning support, we need to create
11258 # libNAME.so.V as an archive file, containing:
11259 # *) an Import File, referring to the versioned filename of the
11260 # archive as well as the shared archive member, telling the
11261 # bitwidth (32 or 64) of that shared object, and providing the
11262 # list of exported symbols of that shared object, eventually
11263 # decorated with the 'weak' keyword
11264 # *) the shared object with the F_LOADONLY flag set, to really avoid
11265 # it being seen by the linker.
11266 # At run time we better use the real file rather than another symlink,
11267 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11268
11269 case $with_aix_soname,$aix_use_runtimelinking in
11270 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11271 # soname into executable. Probably we can add versioning support to
11272 # collect2, so additional links can be useful in future.
11273 aix,yes) # traditional libtool
11274 dynamic_linker='AIX unversionable lib.so'
11275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11276 # instead of lib<name>.a to let people know that these are not
11277 # typical AIX shared libraries.
11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279 ;;
11280 aix,no) # traditional AIX only
11281 dynamic_linker='AIX lib.a(lib.so.V)'
11282 # We preserve .a as extension for shared libraries through AIX4.2
11283 # and later when we are not doing run time linking.
11284 library_names_spec='$libname$release.a $libname.a'
11285 soname_spec='$libname$release$shared_ext$major'
11286 ;;
11287 svr4,*) # full svr4 only
11288 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11289 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11290 # We do not specify a path in Import Files, so LIBPATH fires.
11291 shlibpath_overrides_runpath=yes
11292 ;;
11293 *,yes) # both, prefer svr4
11294 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11295 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11296 # unpreferred sharedlib libNAME.a needs extra handling
11297 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"'
11298 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"'
11299 # We do not specify a path in Import Files, so LIBPATH fires.
11300 shlibpath_overrides_runpath=yes
11301 ;;
11302 *,no) # both, prefer aix
11303 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11304 library_names_spec='$libname$release.a $libname.a'
11305 soname_spec='$libname$release$shared_ext$major'
11306 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11307 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)'
11308 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"'
11309 ;;
11310 esac
11311 shlibpath_var=LIBPATH
11312 fi
11313 ;;
11314
11315 amigaos*)
11316 case $host_cpu in
11317 powerpc)
11318 # Since July 2007 AmigaOS4 officially supports .so libraries.
11319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321 ;;
11322 m68k)
11323 library_names_spec='$libname.ixlibrary $libname.a'
11324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11325 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'
11326 ;;
11327 esac
11328 ;;
11329
11330 beos*)
11331 library_names_spec='$libname$shared_ext'
11332 dynamic_linker="$host_os ld.so"
11333 shlibpath_var=LIBRARY_PATH
11334 ;;
11335
11336 bsdi[45]*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 need_version=no
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 soname_spec='$libname$release$shared_ext$major'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11345 # the default ld.so.conf also contains /usr/contrib/lib and
11346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11347 # libtool to hard-code these into programs
11348 ;;
11349
11350 cygwin* | mingw* | windows* | pw32* | cegcc*)
11351 version_type=windows
11352 shrext_cmds=.dll
11353 need_version=no
11354 need_lib_prefix=no
11355
11356 case $GCC,$cc_basename in
11357 yes,*)
11358 # gcc
11359 library_names_spec='$libname.dll.a'
11360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11361 # If user builds GCC with multilib enabled,
11362 # it should just install on $(libdir)
11363 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11364 if test xyes = x"$multilib"; then
11365 postinstall_cmds='base_file=`basename \$file`~
11366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11367 dldir=$destdir/`dirname \$dlpath`~
11368 $install_prog $dir/$dlname $destdir/$dlname~
11369 chmod a+x $destdir/$dlname~
11370 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11371 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11372 fi'
11373 else
11374 postinstall_cmds='base_file=`basename \$file`~
11375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11376 dldir=$destdir/`dirname \$dlpath`~
11377 test -d \$dldir || mkdir -p \$dldir~
11378 $install_prog $dir/$dlname \$dldir/$dlname~
11379 chmod a+x \$dldir/$dlname~
11380 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11381 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11382 fi'
11383 fi
11384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385 dlpath=$dir/\$dldll~
11386 $RM \$dlpath'
11387 shlibpath_overrides_runpath=yes
11388
11389 case $host_os in
11390 cygwin*)
11391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11392 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11393
11394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11395 ;;
11396 mingw* | windows* | cegcc*)
11397 # MinGW DLLs use traditional 'lib' prefix
11398 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11399 ;;
11400 pw32*)
11401 # pw32 DLLs use 'pw' prefix rather than 'lib'
11402 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11403 ;;
11404 esac
11405 dynamic_linker='Win32 ld.exe'
11406 ;;
11407
11408 *,cl* | *,icl*)
11409 # Native MSVC or ICC
11410 libname_spec='$name'
11411 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11412 library_names_spec='$libname.dll.lib'
11413
11414 case $build_os in
11415 mingw* | windows*)
11416 sys_lib_search_path_spec=
11417 lt_save_ifs=$IFS
11418 IFS=';'
11419 for lt_path in $LIB
11420 do
11421 IFS=$lt_save_ifs
11422 # Let DOS variable expansion print the short 8.3 style file name.
11423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11425 done
11426 IFS=$lt_save_ifs
11427 # Convert to MSYS style.
11428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11429 ;;
11430 cygwin*)
11431 # Convert to unix form, then to dos form, then back to unix form
11432 # but this time dos style (no spaces!) so that the unix form looks
11433 # like /cygdrive/c/PROGRA~1:/cygdr...
11434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11437 ;;
11438 *)
11439 sys_lib_search_path_spec=$LIB
11440 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11441 # It is most probably a Windows format PATH.
11442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11443 else
11444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11445 fi
11446 # FIXME: find the short name or the path components, as spaces are
11447 # common. (e.g. "Program Files" -> "PROGRA~1")
11448 ;;
11449 esac
11450
11451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11452 postinstall_cmds='base_file=`basename \$file`~
11453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11454 dldir=$destdir/`dirname \$dlpath`~
11455 test -d \$dldir || mkdir -p \$dldir~
11456 $install_prog $dir/$dlname \$dldir/$dlname'
11457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458 dlpath=$dir/\$dldll~
11459 $RM \$dlpath'
11460 shlibpath_overrides_runpath=yes
11461 dynamic_linker='Win32 link.exe'
11462 ;;
11463
11464 *)
11465 # Assume MSVC and ICC wrapper
11466 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11467 dynamic_linker='Win32 ld.exe'
11468 ;;
11469 esac
11470 # FIXME: first we should search . and the directory the executable is in
11471 shlibpath_var=PATH
11472 ;;
11473
11474 darwin* | rhapsody*)
11475 dynamic_linker="$host_os dyld"
11476 version_type=darwin
11477 need_lib_prefix=no
11478 need_version=no
11479 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11480 soname_spec='$libname$release$major$shared_ext'
11481 shlibpath_overrides_runpath=yes
11482 shlibpath_var=DYLD_LIBRARY_PATH
11483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11484
11485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11487 ;;
11488
11489 dgux*)
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11494 soname_spec='$libname$release$shared_ext$major'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 ;;
11497
11498 freebsd* | dragonfly* | midnightbsd*)
11499 # DragonFly does not have aout. When/if they implement a new
11500 # versioning mechanism, adjust this.
11501 if test -x /usr/bin/objformat; then
11502 objformat=`/usr/bin/objformat`
11503 else
11504 case $host_os in
11505 freebsd[23].*) objformat=aout ;;
11506 *) objformat=elf ;;
11507 esac
11508 fi
11509 version_type=freebsd-$objformat
11510 case $version_type in
11511 freebsd-elf*)
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 need_version=no
11515 need_lib_prefix=no
11516 ;;
11517 freebsd-*)
11518 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11519 need_version=yes
11520 ;;
11521 esac
11522 case $host_cpu in
11523 powerpc64)
11524 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11525 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 int test_pointer_size[sizeof (void *) - 5];
11529
11530 _ACEOF
11531 if ac_fn_c_try_compile "$LINENO"
11532 then :
11533 shlibpath_var=LD_LIBRARY_PATH
11534 else case e in #(
11535 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11536 esac
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11539 ;;
11540 *)
11541 shlibpath_var=LD_LIBRARY_PATH
11542 ;;
11543 esac
11544 case $host_os in
11545 freebsd2.*)
11546 shlibpath_overrides_runpath=yes
11547 ;;
11548 freebsd3.[01]* | freebsdelf3.[01]*)
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 ;;
11552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11554 shlibpath_overrides_runpath=no
11555 hardcode_into_libs=yes
11556 ;;
11557 *) # from 4.6 on, and DragonFly
11558 shlibpath_overrides_runpath=yes
11559 hardcode_into_libs=yes
11560 ;;
11561 esac
11562 ;;
11563
11564 haiku*)
11565 version_type=linux # correct to gnu/linux during the next big refactor
11566 need_lib_prefix=no
11567 need_version=no
11568 dynamic_linker="$host_os runtime_loader"
11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570 soname_spec='$libname$release$shared_ext$major'
11571 shlibpath_var=LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11574 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11575 hardcode_into_libs=no
11576 ;;
11577
11578 hpux9* | hpux10* | hpux11*)
11579 # Give a soname corresponding to the major version so that dld.sl refuses to
11580 # link against other versions.
11581 version_type=sunos
11582 need_lib_prefix=no
11583 need_version=no
11584 case $host_cpu in
11585 ia64*)
11586 shrext_cmds='.so'
11587 hardcode_into_libs=yes
11588 dynamic_linker="$host_os dld.so"
11589 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592 soname_spec='$libname$release$shared_ext$major'
11593 if test 32 = "$HPUX_IA64_MODE"; then
11594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11595 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11596 else
11597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11598 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11599 fi
11600 ;;
11601 hppa*64*)
11602 shrext_cmds='.sl'
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.sl"
11605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608 soname_spec='$libname$release$shared_ext$major'
11609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611 ;;
11612 *)
11613 shrext_cmds='.sl'
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=SHLIB_PATH
11616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 ;;
11620 esac
11621 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11622 postinstall_cmds='chmod 555 $lib'
11623 # or fails outright, so override atomically:
11624 install_override_mode=555
11625 ;;
11626
11627 interix[3-9]*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 need_lib_prefix=no
11630 need_version=no
11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632 soname_spec='$libname$release$shared_ext$major'
11633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 ;;
11638
11639 irix5* | irix6* | nonstopux*)
11640 case $host_os in
11641 nonstopux*) version_type=nonstopux ;;
11642 *)
11643 if test yes = "$lt_cv_prog_gnu_ld"; then
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 else
11646 version_type=irix
11647 fi ;;
11648 esac
11649 need_lib_prefix=no
11650 need_version=no
11651 soname_spec='$libname$release$shared_ext$major'
11652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11653 case $host_os in
11654 irix5* | nonstopux*)
11655 libsuff= shlibsuff=
11656 ;;
11657 *)
11658 case $LD in # libtool.m4 will add one of these switches to LD
11659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11660 libsuff= shlibsuff= libmagic=32-bit;;
11661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11662 libsuff=32 shlibsuff=N32 libmagic=N32;;
11663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11665 *) libsuff= shlibsuff= libmagic=never-match;;
11666 esac
11667 ;;
11668 esac
11669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11670 shlibpath_overrides_runpath=no
11671 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11672 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11673 hardcode_into_libs=yes
11674 ;;
11675
11676 # No shared lib support for Linux oldld, aout, or coff.
11677 linux*oldld* | linux*aout* | linux*coff*)
11678 dynamic_linker=no
11679 ;;
11680
11681 linux*android*)
11682 version_type=none # Android doesn't support versioned libraries.
11683 need_lib_prefix=no
11684 need_version=no
11685 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
11686 soname_spec='$libname$release$shared_ext'
11687 finish_cmds=
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=yes
11690
11691 # This implies no fast_install, which is unacceptable.
11692 # Some rework will be needed to allow for fast_install
11693 # before this can be enabled.
11694 hardcode_into_libs=yes
11695
11696 dynamic_linker='Android linker'
11697 # -rpath works at least for libraries that are not overridden by
11698 # libraries installed in system locations.
11699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700 ;;
11701
11702 # This must be glibc/ELF.
11703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 need_lib_prefix=no
11706 need_version=no
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=no
11712
11713 # Some binutils ld are patched to set DT_RUNPATH
11714 if test ${lt_cv_shlibpath_overrides_runpath+y}
11715 then :
11716 printf %s "(cached) " >&6
11717 else case e in #(
11718 e) lt_cv_shlibpath_overrides_runpath=no
11719 save_LDFLAGS=$LDFLAGS
11720 save_libdir=$libdir
11721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725
11726 int
11727 main (void)
11728 {
11729
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"
11735 then :
11736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11737 then :
11738 lt_cv_shlibpath_overrides_runpath=yes
11739 fi
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LDFLAGS=$save_LDFLAGS
11744 libdir=$save_libdir
11745 ;;
11746 esac
11747 fi
11748
11749 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11750
11751 # This implies no fast_install, which is unacceptable.
11752 # Some rework will be needed to allow for fast_install
11753 # before this can be enabled.
11754 hardcode_into_libs=yes
11755
11756 # Ideally, we could use ldconfig to report *all* directories which are
11757 # searched for libraries, however this is still not possible. Aside from not
11758 # being certain /sbin/ldconfig is available, command
11759 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11760 # even though it is searched at run-time. Try to do the best guess by
11761 # appending ld.so.conf contents (and includes) to the search path.
11762 if test -f /etc/ld.so.conf; then
11763 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11765 fi
11766
11767 # We used to test for /lib/ld.so.1 and disable shared libraries on
11768 # powerpc, because MkLinux only supported shared libraries with the
11769 # GNU dynamic linker. Since this was broken with cross compilers,
11770 # most powerpc-linux boxes support dynamic linking these days and
11771 # people can always --disable-shared, the test was removed, and we
11772 # assume the GNU/Linux dynamic linker is in use.
11773 dynamic_linker='GNU/Linux ld.so'
11774 ;;
11775
11776 netbsdelf*-gnu)
11777 version_type=linux
11778 need_lib_prefix=no
11779 need_version=no
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 dynamic_linker='NetBSD ld.elf_so'
11786 ;;
11787
11788 netbsd*)
11789 version_type=sunos
11790 need_lib_prefix=no
11791 need_version=no
11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11795 dynamic_linker='NetBSD (a.out) ld.so'
11796 else
11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11798 soname_spec='$libname$release$shared_ext$major'
11799 dynamic_linker='NetBSD ld.elf_so'
11800 fi
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 hardcode_into_libs=yes
11804 ;;
11805
11806 *-mlibc)
11807 version_type=linux # correct to gnu/linux during the next big refactor
11808 need_lib_prefix=no
11809 need_version=no
11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811 soname_spec='$libname$release$shared_ext$major'
11812 dynamic_linker='mlibc ld.so'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=no
11815 hardcode_into_libs=yes
11816 ;;
11817
11818 newsos6)
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11823 ;;
11824
11825 *nto* | *qnx*)
11826 version_type=qnx
11827 need_lib_prefix=no
11828 need_version=no
11829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11830 soname_spec='$libname$release$shared_ext$major'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=no
11833 hardcode_into_libs=yes
11834 dynamic_linker='ldqnx.so'
11835 ;;
11836
11837 openbsd*)
11838 version_type=sunos
11839 sys_lib_dlsearch_path_spec=/usr/lib
11840 need_lib_prefix=no
11841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11842 need_version=no
11843 else
11844 need_version=yes
11845 fi
11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath=yes
11850 ;;
11851
11852 os2*)
11853 libname_spec='$name'
11854 version_type=windows
11855 shrext_cmds=.dll
11856 need_version=no
11857 need_lib_prefix=no
11858 # OS/2 can only load a DLL with a base name of 8 characters or less.
11859 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11860 v=$($ECHO $release$versuffix | tr -d .-);
11861 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11862 $ECHO $n$v`$shared_ext'
11863 library_names_spec='${libname}_dll.$libext'
11864 dynamic_linker='OS/2 ld.exe'
11865 shlibpath_var=BEGINLIBPATH
11866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11868 postinstall_cmds='base_file=`basename \$file`~
11869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11870 dldir=$destdir/`dirname \$dlpath`~
11871 test -d \$dldir || mkdir -p \$dldir~
11872 $install_prog $dir/$dlname \$dldir/$dlname~
11873 chmod a+x \$dldir/$dlname~
11874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11876 fi'
11877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11878 dlpath=$dir/\$dldll~
11879 $RM \$dlpath'
11880 ;;
11881
11882 osf3* | osf4* | osf5*)
11883 version_type=osf
11884 need_lib_prefix=no
11885 need_version=no
11886 soname_spec='$libname$release$shared_ext$major'
11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11891 ;;
11892
11893 rdos*)
11894 dynamic_linker=no
11895 ;;
11896
11897 serenity*)
11898 version_type=linux # correct to gnu/linux during the next big refactor
11899 need_lib_prefix=no
11900 need_version=no
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902 soname_spec='$libname$release$shared_ext$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=no
11905 dynamic_linker='SerenityOS LibELF'
11906 ;;
11907
11908 solaris*)
11909 version_type=linux # correct to gnu/linux during the next big refactor
11910 need_lib_prefix=no
11911 need_version=no
11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11913 soname_spec='$libname$release$shared_ext$major'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 shlibpath_overrides_runpath=yes
11916 hardcode_into_libs=yes
11917 # ldd complains unless libraries are executable
11918 postinstall_cmds='chmod +x $lib'
11919 ;;
11920
11921 sunos4*)
11922 version_type=sunos
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes
11927 if test yes = "$with_gnu_ld"; then
11928 need_lib_prefix=no
11929 fi
11930 need_version=yes
11931 ;;
11932
11933 sysv4 | sysv4.3*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936 soname_spec='$libname$release$shared_ext$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 case $host_vendor in
11939 sni)
11940 shlibpath_overrides_runpath=no
11941 need_lib_prefix=no
11942 runpath_var=LD_RUN_PATH
11943 ;;
11944 siemens)
11945 need_lib_prefix=no
11946 ;;
11947 motorola)
11948 need_lib_prefix=no
11949 need_version=no
11950 shlibpath_overrides_runpath=no
11951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11952 ;;
11953 esac
11954 ;;
11955
11956 sysv4*MP*)
11957 if test -d /usr/nec; then
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11960 soname_spec='$libname$shared_ext.$major'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 fi
11963 ;;
11964
11965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11966 version_type=sco
11967 need_lib_prefix=no
11968 need_version=no
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11970 soname_spec='$libname$release$shared_ext$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes
11973 hardcode_into_libs=yes
11974 if test yes = "$with_gnu_ld"; then
11975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11976 else
11977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11978 case $host_os in
11979 sco3.2v5*)
11980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11981 ;;
11982 esac
11983 fi
11984 sys_lib_dlsearch_path_spec='/usr/lib'
11985 ;;
11986
11987 tpf*)
11988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11989 version_type=linux # correct to gnu/linux during the next big refactor
11990 need_lib_prefix=no
11991 need_version=no
11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 shlibpath_overrides_runpath=no
11995 hardcode_into_libs=yes
11996 ;;
11997
11998 uts4*)
11999 version_type=linux # correct to gnu/linux during the next big refactor
12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12001 soname_spec='$libname$release$shared_ext$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 ;;
12004
12005 emscripten*)
12006 version_type=none
12007 need_lib_prefix=no
12008 need_version=no
12009 library_names_spec='$libname$release$shared_ext'
12010 soname_spec='$libname$release$shared_ext'
12011 finish_cmds=
12012 dynamic_linker="Emscripten linker"
12013 lt_prog_compiler_wl=
12014 lt_prog_compiler_pic=
12015 lt_prog_compiler_static=
12016
12017
12018 if test yes = "$GCC"; then
12019 lt_prog_compiler_wl='-Wl,'
12020 lt_prog_compiler_static='-static'
12021
12022 case $host_os in
12023 aix*)
12024 # All AIX code is PIC.
12025 if test ia64 = "$host_cpu"; then
12026 # AIX 5 now supports IA64 processor
12027 lt_prog_compiler_static='-Bstatic'
12028 fi
12029 lt_prog_compiler_pic='-fPIC'
12030 ;;
12031
12032 amigaos*)
12033 case $host_cpu in
12034 powerpc)
12035 # see comment about AmigaOS4 .so support
12036 lt_prog_compiler_pic='-fPIC'
12037 ;;
12038 m68k)
12039 # FIXME: we need at least 68020 code to build shared libraries, but
12040 # adding the '-m68020' flag to GCC prevents building anything better,
12041 # like '-m68040'.
12042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12043 ;;
12044 esac
12045 ;;
12046
12047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12048 # PIC is the default for these OSes.
12049 ;;
12050
12051 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12052 # This hack is so that the source file can tell whether it is being
12053 # built for inclusion in a dll (and should export symbols for example).
12054 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12055 # (--disable-auto-import) libraries
12056 lt_prog_compiler_pic='-DDLL_EXPORT'
12057 case $host_os in
12058 os2*)
12059 lt_prog_compiler_static='$wl-static'
12060 ;;
12061 esac
12062 ;;
12063
12064 darwin* | rhapsody*)
12065 # PIC is the default on this platform
12066 # Common symbols not allowed in MH_DYLIB files
12067 lt_prog_compiler_pic='-fno-common'
12068 ;;
12069
12070 haiku*)
12071 # PIC is the default for Haiku.
12072 # The "-static" flag exists, but is broken.
12073 lt_prog_compiler_static=
12074 ;;
12075
12076 hpux*)
12077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12079 # sets the default TLS model and affects inlining.
12080 case $host_cpu in
12081 hppa*64*)
12082 # +Z the default
12083 ;;
12084 *)
12085 lt_prog_compiler_pic='-fPIC'
12086 ;;
12087 esac
12088 ;;
12089
12090 interix[3-9]*)
12091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12092 # Instead, we relocate shared libraries at runtime.
12093 ;;
12094
12095 msdosdjgpp*)
12096 # Just because we use GCC doesn't mean we suddenly get shared libraries
12097 # on systems that don't support them.
12098 lt_prog_compiler_can_build_shared=no
12099 enable_shared=no
12100 ;;
12101
12102 *nto* | *qnx*)
12103 # QNX uses GNU C++, but need to define -shared option too, otherwise
12104 # it will coredump.
12105 lt_prog_compiler_pic='-fPIC -shared'
12106 ;;
12107
12108 sysv4*MP*)
12109 if test -d /usr/nec; then
12110 lt_prog_compiler_pic=-Kconform_pic
12111 fi
12112 ;;
12113
12114 *)
12115 lt_prog_compiler_pic='-fPIC'
12116 ;;
12117 esac
12118
12119 case $cc_basename in
12120 nvcc*) # Cuda Compiler Driver 2.2
12121 lt_prog_compiler_wl='-Xlinker '
12122 if test -n "$lt_prog_compiler_pic"; then
12123 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12124 fi
12125 ;;
12126 esac
12127 else
12128 # PORTME Check for flag to pass linker flags through the system compiler.
12129 case $host_os in
12130 aix*)
12131 lt_prog_compiler_wl='-Wl,'
12132 if test ia64 = "$host_cpu"; then
12133 # AIX 5 now supports IA64 processor
12134 lt_prog_compiler_static='-Bstatic'
12135 else
12136 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12137 fi
12138 ;;
12139
12140 darwin* | rhapsody*)
12141 # PIC is the default on this platform
12142 # Common symbols not allowed in MH_DYLIB files
12143 lt_prog_compiler_pic='-fno-common'
12144 case $cc_basename in
12145 nagfor*)
12146 # NAG Fortran compiler
12147 lt_prog_compiler_wl='-Wl,-Wl,,'
12148 lt_prog_compiler_pic='-PIC'
12149 lt_prog_compiler_static='-Bstatic'
12150 ;;
12151 esac
12152 ;;
12153
12154 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12155 # This hack is so that the source file can tell whether it is being
12156 # built for inclusion in a dll (and should export symbols for example).
12157 lt_prog_compiler_pic='-DDLL_EXPORT'
12158 case $host_os in
12159 os2*)
12160 lt_prog_compiler_static='$wl-static'
12161 ;;
12162 esac
12163 ;;
12164
12165 hpux9* | hpux10* | hpux11*)
12166 lt_prog_compiler_wl='-Wl,'
12167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12168 # not for PA HP-UX.
12169 case $host_cpu in
12170 hppa*64*|ia64*)
12171 # +Z the default
12172 ;;
12173 *)
12174 lt_prog_compiler_pic='+Z'
12175 ;;
12176 esac
12177 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12178 lt_prog_compiler_static='$wl-a ${wl}archive'
12179 ;;
12180
12181 irix5* | irix6* | nonstopux*)
12182 lt_prog_compiler_wl='-Wl,'
12183 # PIC (with -KPIC) is the default.
12184 lt_prog_compiler_static='-non_shared'
12185 ;;
12186
12187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12188 case $cc_basename in
12189 # old Intel for x86_64, which still supported -KPIC.
12190 ecc*)
12191 lt_prog_compiler_wl='-Wl,'
12192 lt_prog_compiler_pic='-KPIC'
12193 lt_prog_compiler_static='-static'
12194 ;;
12195 *flang* | ftn | f18* | f95*)
12196 # Flang compiler.
12197 lt_prog_compiler_wl='-Wl,'
12198 lt_prog_compiler_pic='-fPIC'
12199 lt_prog_compiler_static='-static'
12200 ;;
12201 # icc used to be incompatible with GCC.
12202 # ICC 10 doesn't accept -KPIC any more.
12203 icc* | ifort*)
12204 lt_prog_compiler_wl='-Wl,'
12205 lt_prog_compiler_pic='-fPIC'
12206 lt_prog_compiler_static='-static'
12207 ;;
12208 # Lahey Fortran 8.1.
12209 lf95*)
12210 lt_prog_compiler_wl='-Wl,'
12211 lt_prog_compiler_pic='--shared'
12212 lt_prog_compiler_static='--static'
12213 ;;
12214 nagfor*)
12215 # NAG Fortran compiler
12216 lt_prog_compiler_wl='-Wl,-Wl,,'
12217 lt_prog_compiler_pic='-PIC'
12218 lt_prog_compiler_static='-Bstatic'
12219 ;;
12220 tcc*)
12221 # Fabrice Bellard et al's Tiny C Compiler
12222 lt_prog_compiler_wl='-Wl,'
12223 lt_prog_compiler_pic='-fPIC'
12224 lt_prog_compiler_static='-static'
12225 ;;
12226 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12227 # Portland Group compilers (*not* the Pentium gcc compiler,
12228 # which looks to be a dead project)
12229 lt_prog_compiler_wl='-Wl,'
12230 lt_prog_compiler_pic='-fpic'
12231 lt_prog_compiler_static='-Bstatic'
12232 ;;
12233 ccc*)
12234 lt_prog_compiler_wl='-Wl,'
12235 # All Alpha code is PIC.
12236 lt_prog_compiler_static='-non_shared'
12237 ;;
12238 xl* | bgxl* | bgf* | mpixl*)
12239 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12240 lt_prog_compiler_wl='-Wl,'
12241 lt_prog_compiler_pic='-qpic'
12242 lt_prog_compiler_static='-qstaticlink'
12243 ;;
12244 *)
12245 case `$CC -V 2>&1 | $SED 5q` in
12246 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12247 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12248 lt_prog_compiler_pic='-KPIC'
12249 lt_prog_compiler_static='-Bstatic'
12250 lt_prog_compiler_wl=''
12251 ;;
12252 *Sun\ F* | *Sun*Fortran*)
12253 lt_prog_compiler_pic='-KPIC'
12254 lt_prog_compiler_static='-Bstatic'
12255 lt_prog_compiler_wl='-Qoption ld '
12256 ;;
12257 *Sun\ C*)
12258 # Sun C 5.9
12259 lt_prog_compiler_pic='-KPIC'
12260 lt_prog_compiler_static='-Bstatic'
12261 lt_prog_compiler_wl='-Wl,'
12262 ;;
12263 *Intel*\ [CF]*Compiler*)
12264 lt_prog_compiler_wl='-Wl,'
12265 lt_prog_compiler_pic='-fPIC'
12266 lt_prog_compiler_static='-static'
12267 ;;
12268 *Portland\ Group*)
12269 lt_prog_compiler_wl='-Wl,'
12270 lt_prog_compiler_pic='-fpic'
12271 lt_prog_compiler_static='-Bstatic'
12272 ;;
12273 esac
12274 ;;
12275 esac
12276 ;;
12277
12278 newsos6)
12279 lt_prog_compiler_pic='-KPIC'
12280 lt_prog_compiler_static='-Bstatic'
12281 ;;
12282
12283 *-mlibc)
12284 lt_prog_compiler_wl='-Wl,'
12285 lt_prog_compiler_pic='-fPIC'
12286 lt_prog_compiler_static='-static'
12287 ;;
12288
12289 *nto* | *qnx*)
12290 # QNX uses GNU C++, but need to define -shared option too, otherwise
12291 # it will coredump.
12292 lt_prog_compiler_pic='-fPIC -shared'
12293 ;;
12294
12295 osf3* | osf4* | osf5*)
12296 lt_prog_compiler_wl='-Wl,'
12297 # All OSF/1 code is PIC.
12298 lt_prog_compiler_static='-non_shared'
12299 ;;
12300
12301 rdos*)
12302 lt_prog_compiler_static='-non_shared'
12303 ;;
12304
12305 serenity*)
12306 ;;
12307
12308 solaris*)
12309 lt_prog_compiler_pic='-KPIC'
12310 lt_prog_compiler_static='-Bstatic'
12311 case $cc_basename in
12312 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12313 lt_prog_compiler_wl='-Qoption ld ';;
12314 *)
12315 lt_prog_compiler_wl='-Wl,';;
12316 esac
12317 ;;
12318
12319 sunos4*)
12320 lt_prog_compiler_wl='-Qoption ld '
12321 lt_prog_compiler_pic='-PIC'
12322 lt_prog_compiler_static='-Bstatic'
12323 ;;
12324
12325 sysv4 | sysv4.2uw2* | sysv4.3*)
12326 lt_prog_compiler_wl='-Wl,'
12327 lt_prog_compiler_pic='-KPIC'
12328 lt_prog_compiler_static='-Bstatic'
12329 ;;
12330
12331 sysv4*MP*)
12332 if test -d /usr/nec; then
12333 lt_prog_compiler_pic='-Kconform_pic'
12334 lt_prog_compiler_static='-Bstatic'
12335 fi
12336 ;;
12337
12338 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12339 lt_prog_compiler_wl='-Wl,'
12340 lt_prog_compiler_pic='-KPIC'
12341 lt_prog_compiler_static='-Bstatic'
12342 ;;
12343
12344 unicos*)
12345 lt_prog_compiler_wl='-Wl,'
12346 lt_prog_compiler_can_build_shared=no
12347 ;;
12348
12349 uts4*)
12350 lt_prog_compiler_pic='-pic'
12351 lt_prog_compiler_static='-Bstatic'
12352 ;;
12353
12354 *)
12355 lt_prog_compiler_can_build_shared=no
12356 ;;
12357 esac
12358 fi
12359
12360 case $host_os in
12361 # For platforms that do not support PIC, -DPIC is meaningless:
12362 *djgpp*)
12363 lt_prog_compiler_pic=
12364 ;;
12365 *)
12366 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12367 ;;
12368 esac
12369
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12371 printf %s "checking for $compiler option to produce PIC... " >&6; }
12372 if test ${lt_cv_prog_compiler_pic+y}
12373 then :
12374 printf %s "(cached) " >&6
12375 else case e in #(
12376 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12377 esac
12378 fi
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12380 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12381 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12382
12383 #
12384 # Check to make sure the PIC flag actually works.
12385 #
12386 if test -n "$lt_prog_compiler_pic"; then
12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12388 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12389 if test ${lt_cv_prog_compiler_pic_works+y}
12390 then :
12391 printf %s "(cached) " >&6
12392 else case e in #(
12393 e) lt_cv_prog_compiler_pic_works=no
12394 ac_outfile=conftest.$ac_objext
12395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12397 # Insert the option either (1) after the last *FLAGS variable, or
12398 # (2) before a word containing "conftest.", or (3) at the end.
12399 # Note that $ac_compile itself does not contain backslashes and begins
12400 # with a dollar sign (not a hyphen), so the echo should work correctly.
12401 # The option is referenced via a variable to avoid confusing sed.
12402 lt_compile=`echo "$ac_compile" | $SED \
12403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12405 -e 's:$: $lt_compiler_flag:'`
12406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12407 (eval "$lt_compile" 2>conftest.err)
12408 ac_status=$?
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 if (exit $ac_status) && test -s "$ac_outfile"; then
12412 # The compiler can only warn and ignore the option if not recognized
12413 # So say no if there are warnings other than the usual output.
12414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12417 lt_cv_prog_compiler_pic_works=yes
12418 fi
12419 fi
12420 $RM conftest*
12421 ;;
12422 esac
12423 fi
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12425 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12426
12427 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12428 case $lt_prog_compiler_pic in
12429 "" | " "*) ;;
12430 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12431 esac
12432 else
12433 lt_prog_compiler_pic=
12434 lt_prog_compiler_can_build_shared=no
12435 fi
12436
12437 fi
12438
12439
12440
12441
12442
12443 #
12444 # Check to make sure the static flag actually works.
12445 #
12446 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12448 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12449 if test ${lt_cv_prog_compiler_static_works+y}
12450 then :
12451 printf %s "(cached) " >&6
12452 else case e in #(
12453 e) lt_cv_prog_compiler_static_works=no
12454 save_LDFLAGS=$LDFLAGS
12455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12458 # The linker can only warn and ignore the option if not recognized
12459 # So say no if there are warnings
12460 if test -s conftest.err; then
12461 # Append any errors to the config.log.
12462 cat conftest.err 1>&5
12463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12465 if diff conftest.exp conftest.er2 >/dev/null; then
12466 lt_cv_prog_compiler_static_works=yes
12467 fi
12468 else
12469 lt_cv_prog_compiler_static_works=yes
12470 fi
12471 fi
12472 $RM -r conftest*
12473 LDFLAGS=$save_LDFLAGS
12474 ;;
12475 esac
12476 fi
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12478 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12479
12480 if test yes = "$lt_cv_prog_compiler_static_works"; then
12481 :
12482 else
12483 lt_prog_compiler_static=
12484 fi
12485
12486
12487
12488 ='-fPIC'
12489 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12490 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'
12491 archive_cmds_need_lc=no
12492 no_undefined_flag=
12493 ;;
12494
12495 *)
12496 dynamic_linker=no
12497 ;;
12498 esac
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12500 printf "%s\n" "$dynamic_linker" >&6; }
12501 test no = "$dynamic_linker" && can_build_shared=no
12502
12503 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12504 if test yes = "$GCC"; then
12505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12506 fi
12507
12508 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12509 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12510 fi
12511
12512 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12513 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12514 fi
12515
12516 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12517 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12518
12519 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12520 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12521
12522 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12523 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12622 printf %s "checking how to hardcode library paths into programs... " >&6; }
12623 hardcode_action=
12624 if test -n "$hardcode_libdir_flag_spec" ||
12625 test -n "$runpath_var" ||
12626 test yes = "$hardcode_automatic"; then
12627
12628 # We can hardcode non-existent directories.
12629 if test no != "$hardcode_direct" &&
12630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12631 # have to relink, otherwise we might link with an installed library
12632 # when we should be linking with a yet-to-be-installed one
12633 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12634 test no != "$hardcode_minus_L"; then
12635 # Linking always hardcodes the temporary library directory.
12636 hardcode_action=relink
12637 else
12638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12639 hardcode_action=immediate
12640 fi
12641 else
12642 # We cannot hardcode anything, or else we can only hardcode existing
12643 # directories.
12644 hardcode_action=unsupported
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12647 printf "%s\n" "$hardcode_action" >&6; }
12648
12649 if test relink = "$hardcode_action" ||
12650 test yes = "$inherit_rpath"; then
12651 # Fast installation is not supported
12652 enable_fast_install=no
12653 elif test yes = "$shlibpath_overrides_runpath" ||
12654 test no = "$enable_shared"; then
12655 # Fast installation is not necessary
12656 enable_fast_install=needless
12657 fi
12658
12659
12660
12661
12662
12663
12664 if test yes != "$enable_dlopen"; then
12665 enable_dlopen=unknown
12666 enable_dlopen_self=unknown
12667 enable_dlopen_self_static=unknown
12668 else
12669 lt_cv_dlopen=no
12670 lt_cv_dlopen_libs=
12671
12672 case $host_os in
12673 beos*)
12674 lt_cv_dlopen=load_add_on
12675 lt_cv_dlopen_libs=
12676 lt_cv_dlopen_self=yes
12677 ;;
12678
12679 mingw* | windows* | pw32* | cegcc*)
12680 lt_cv_dlopen=LoadLibrary
12681 lt_cv_dlopen_libs=
12682 ;;
12683
12684 cygwin*)
12685 lt_cv_dlopen=dlopen
12686 lt_cv_dlopen_libs=
12687 ;;
12688
12689 darwin*)
12690 # if libdl is installed we need to link against it
12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 printf %s "checking for dlopen in -ldl... " >&6; }
12693 if test ${ac_cv_lib_dl_dlopen+y}
12694 then :
12695 printf %s "(cached) " >&6
12696 else case e in #(
12697 e) ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-ldl $LIBS"
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply.
12705 The 'extern "C"' is for builds by C++ compilers;
12706 although this is not generally supported in C code supporting it here
12707 has little cost and some practical benefit (sr 110532). */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char dlopen (void);
12712 int
12713 main (void)
12714 {
12715 return dlopen ();
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_link "$LINENO"
12721 then :
12722 ac_cv_lib_dl_dlopen=yes
12723 else case e in #(
12724 e) ac_cv_lib_dl_dlopen=no ;;
12725 esac
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS ;;
12730 esac
12731 fi
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12733 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12734 if test "x$ac_cv_lib_dl_dlopen" = xyes
12735 then :
12736 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12737 else case e in #(
12738 e)
12739 lt_cv_dlopen=dyld
12740 lt_cv_dlopen_libs=
12741 lt_cv_dlopen_self=yes
12742 ;;
12743 esac
12744 fi
12745
12746 ;;
12747
12748 tpf*)
12749 # Don't try to run any link tests for TPF. We know it's impossible
12750 # because TPF is a cross-compiler, and we know how we open DSOs.
12751 lt_cv_dlopen=dlopen
12752 lt_cv_dlopen_libs=
12753 lt_cv_dlopen_self=no
12754 ;;
12755
12756 *)
12757 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12758 if test "x$ac_cv_func_shl_load" = xyes
12759 then :
12760 lt_cv_dlopen=shl_load
12761 else case e in #(
12762 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12763 printf %s "checking for shl_load in -ldld... " >&6; }
12764 if test ${ac_cv_lib_dld_shl_load+y}
12765 then :
12766 printf %s "(cached) " >&6
12767 else case e in #(
12768 e) ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-ldld $LIBS"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply.
12776 The 'extern "C"' is for builds by C++ compilers;
12777 although this is not generally supported in C code supporting it here
12778 has little cost and some practical benefit (sr 110532). */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char shl_load (void);
12783 int
12784 main (void)
12785 {
12786 return shl_load ();
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"
12792 then :
12793 ac_cv_lib_dld_shl_load=yes
12794 else case e in #(
12795 e) ac_cv_lib_dld_shl_load=no ;;
12796 esac
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12799 conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS ;;
12801 esac
12802 fi
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12804 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12805 if test "x$ac_cv_lib_dld_shl_load" = xyes
12806 then :
12807 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12808 else case e in #(
12809 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12810 if test "x$ac_cv_func_dlopen" = xyes
12811 then :
12812 lt_cv_dlopen=dlopen
12813 else case e in #(
12814 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12815 printf %s "checking for dlopen in -ldl... " >&6; }
12816 if test ${ac_cv_lib_dl_dlopen+y}
12817 then :
12818 printf %s "(cached) " >&6
12819 else case e in #(
12820 e) ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ldl $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply.
12828 The 'extern "C"' is for builds by C++ compilers;
12829 although this is not generally supported in C code supporting it here
12830 has little cost and some practical benefit (sr 110532). */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char dlopen (void);
12835 int
12836 main (void)
12837 {
12838 return dlopen ();
12839 ;
12840 return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_link "$LINENO"
12844 then :
12845 ac_cv_lib_dl_dlopen=yes
12846 else case e in #(
12847 e) ac_cv_lib_dl_dlopen=no ;;
12848 esac
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS ;;
12853 esac
12854 fi
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12856 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12857 if test "x$ac_cv_lib_dl_dlopen" = xyes
12858 then :
12859 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12860 else case e in #(
12861 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12862 printf %s "checking for dlopen in -lsvld... " >&6; }
12863 if test ${ac_cv_lib_svld_dlopen+y}
12864 then :
12865 printf %s "(cached) " >&6
12866 else case e in #(
12867 e) ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lsvld $LIBS"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply.
12875 The 'extern "C"' is for builds by C++ compilers;
12876 although this is not generally supported in C code supporting it here
12877 has little cost and some practical benefit (sr 110532). */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char dlopen (void);
12882 int
12883 main (void)
12884 {
12885 return dlopen ();
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 if ac_fn_c_try_link "$LINENO"
12891 then :
12892 ac_cv_lib_svld_dlopen=yes
12893 else case e in #(
12894 e) ac_cv_lib_svld_dlopen=no ;;
12895 esac
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12898 conftest$ac_exeext conftest.$ac_ext
12899 LIBS=$ac_check_lib_save_LIBS ;;
12900 esac
12901 fi
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12903 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12904 if test "x$ac_cv_lib_svld_dlopen" = xyes
12905 then :
12906 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12907 else case e in #(
12908 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12909 printf %s "checking for dld_link in -ldld... " >&6; }
12910 if test ${ac_cv_lib_dld_dld_link+y}
12911 then :
12912 printf %s "(cached) " >&6
12913 else case e in #(
12914 e) ac_check_lib_save_LIBS=$LIBS
12915 LIBS="-ldld $LIBS"
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918
12919 /* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply.
12922 The 'extern "C"' is for builds by C++ compilers;
12923 although this is not generally supported in C code supporting it here
12924 has little cost and some practical benefit (sr 110532). */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char dld_link (void);
12929 int
12930 main (void)
12931 {
12932 return dld_link ();
12933 ;
12934 return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"
12938 then :
12939 ac_cv_lib_dld_dld_link=yes
12940 else case e in #(
12941 e) ac_cv_lib_dld_dld_link=no ;;
12942 esac
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS ;;
12947 esac
12948 fi
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12950 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12951 if test "x$ac_cv_lib_dld_dld_link" = xyes
12952 then :
12953 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12954 fi
12955
12956 ;;
12957 esac
12958 fi
12959
12960 ;;
12961 esac
12962 fi
12963
12964 ;;
12965 esac
12966 fi
12967
12968 ;;
12969 esac
12970 fi
12971
12972 ;;
12973 esac
12974 fi
12975
12976 ;;
12977 esac
12978
12979 if test no = "$lt_cv_dlopen"; then
12980 enable_dlopen=no
12981 else
12982 enable_dlopen=yes
12983 fi
12984
12985 case $lt_cv_dlopen in
12986 dlopen)
12987 save_CPPFLAGS=$CPPFLAGS
12988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12989
12990 save_LDFLAGS=$LDFLAGS
12991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12992
12993 save_LIBS=$LIBS
12994 LIBS="$lt_cv_dlopen_libs $LIBS"
12995
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12997 printf %s "checking whether a program can dlopen itself... " >&6; }
12998 if test ${lt_cv_dlopen_self+y}
12999 then :
13000 printf %s "(cached) " >&6
13001 else case e in #(
13002 e) if test yes = "$cross_compiling"; then :
13003 lt_cv_dlopen_self=cross
13004 else
13005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13006 lt_status=$lt_dlunknown
13007 cat > conftest.$ac_ext <<_LT_EOF
13008 #line $LINENO "configure"
13009 #include "confdefs.h"
13010
13011 #if HAVE_DLFCN_H
13012 #include <dlfcn.h>
13013 #endif
13014
13015 #include <stdio.h>
13016
13017 #ifdef RTLD_GLOBAL
13018 # define LT_DLGLOBAL RTLD_GLOBAL
13019 #else
13020 # ifdef DL_GLOBAL
13021 # define LT_DLGLOBAL DL_GLOBAL
13022 # else
13023 # define LT_DLGLOBAL 0
13024 # endif
13025 #endif
13026
13027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13028 find out it does not work in some platform. */
13029 #ifndef LT_DLLAZY_OR_NOW
13030 # ifdef RTLD_LAZY
13031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13032 # else
13033 # ifdef DL_LAZY
13034 # define LT_DLLAZY_OR_NOW DL_LAZY
13035 # else
13036 # ifdef RTLD_NOW
13037 # define LT_DLLAZY_OR_NOW RTLD_NOW
13038 # else
13039 # ifdef DL_NOW
13040 # define LT_DLLAZY_OR_NOW DL_NOW
13041 # else
13042 # define LT_DLLAZY_OR_NOW 0
13043 # endif
13044 # endif
13045 # endif
13046 # endif
13047 #endif
13048
13049 /* When -fvisibility=hidden is used, assume the code has been annotated
13050 correspondingly for the symbols needed. */
13051 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13052 int fnord (void) __attribute__((visibility("default")));
13053 #endif
13054
13055 int fnord (void) { return 42; }
13056 int main (void)
13057 {
13058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13059 int status = $lt_dlunknown;
13060
13061 if (self)
13062 {
13063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13064 else
13065 {
13066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13067 else puts (dlerror ());
13068 }
13069 /* dlclose (self); */
13070 }
13071 else
13072 puts (dlerror ());
13073
13074 return status;
13075 }
13076 _LT_EOF
13077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13078 (eval $ac_link) 2>&5
13079 ac_status=$?
13080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13081 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13082 (./conftest; exit; ) >&5 2>/dev/null
13083 lt_status=$?
13084 case x$lt_status in
13085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13088 esac
13089 else :
13090 # compilation failed
13091 lt_cv_dlopen_self=no
13092 fi
13093 fi
13094 rm -fr conftest*
13095
13096 ;;
13097 esac
13098 fi
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13100 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13101
13102 if test yes = "$lt_cv_dlopen_self"; then
13103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13105 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13106 if test ${lt_cv_dlopen_self_static+y}
13107 then :
13108 printf %s "(cached) " >&6
13109 else case e in #(
13110 e) if test yes = "$cross_compiling"; then :
13111 lt_cv_dlopen_self_static=cross
13112 else
13113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13114 lt_status=$lt_dlunknown
13115 cat > conftest.$ac_ext <<_LT_EOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118
13119 #if HAVE_DLFCN_H
13120 #include <dlfcn.h>
13121 #endif
13122
13123 #include <stdio.h>
13124
13125 #ifdef RTLD_GLOBAL
13126 # define LT_DLGLOBAL RTLD_GLOBAL
13127 #else
13128 # ifdef DL_GLOBAL
13129 # define LT_DLGLOBAL DL_GLOBAL
13130 # else
13131 # define LT_DLGLOBAL 0
13132 # endif
13133 #endif
13134
13135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13136 find out it does not work in some platform. */
13137 #ifndef LT_DLLAZY_OR_NOW
13138 # ifdef RTLD_LAZY
13139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13140 # else
13141 # ifdef DL_LAZY
13142 # define LT_DLLAZY_OR_NOW DL_LAZY
13143 # else
13144 # ifdef RTLD_NOW
13145 # define LT_DLLAZY_OR_NOW RTLD_NOW
13146 # else
13147 # ifdef DL_NOW
13148 # define LT_DLLAZY_OR_NOW DL_NOW
13149 # else
13150 # define LT_DLLAZY_OR_NOW 0
13151 # endif
13152 # endif
13153 # endif
13154 # endif
13155 #endif
13156
13157 /* When -fvisibility=hidden is used, assume the code has been annotated
13158 correspondingly for the symbols needed. */
13159 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13160 int fnord (void) __attribute__((visibility("default")));
13161 #endif
13162
13163 int fnord (void) { return 42; }
13164 int main (void)
13165 {
13166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13167 int status = $lt_dlunknown;
13168
13169 if (self)
13170 {
13171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13172 else
13173 {
13174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13175 else puts (dlerror ());
13176 }
13177 /* dlclose (self); */
13178 }
13179 else
13180 puts (dlerror ());
13181
13182 return status;
13183 }
13184 _LT_EOF
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13186 (eval $ac_link) 2>&5
13187 ac_status=$?
13188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13190 (./conftest; exit; ) >&5 2>/dev/null
13191 lt_status=$?
13192 case x$lt_status in
13193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13195 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13196 esac
13197 else :
13198 # compilation failed
13199 lt_cv_dlopen_self_static=no
13200 fi
13201 fi
13202 rm -fr conftest*
13203
13204 ;;
13205 esac
13206 fi
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13208 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13209 fi
13210
13211 CPPFLAGS=$save_CPPFLAGS
13212 LDFLAGS=$save_LDFLAGS
13213 LIBS=$save_LIBS
13214 ;;
13215 esac
13216
13217 case $lt_cv_dlopen_self in
13218 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13219 *) enable_dlopen_self=unknown ;;
13220 esac
13221
13222 case $lt_cv_dlopen_self_static in
13223 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13224 *) enable_dlopen_self_static=unknown ;;
13225 esac
13226 fi
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244 striplib=
13245 old_striplib=
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13247 printf %s "checking whether stripping libraries is possible... " >&6; }
13248 if test -z "$STRIP"; then
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 printf "%s\n" "no" >&6; }
13251 else
13252 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13253 old_striplib="$STRIP --strip-debug"
13254 striplib="$STRIP --strip-unneeded"
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 printf "%s\n" "yes" >&6; }
13257 else
13258 case $host_os in
13259 darwin*)
13260 # FIXME - insert some real tests, host_os isn't really good enough
13261 striplib="$STRIP -x"
13262 old_striplib="$STRIP -S"
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 printf "%s\n" "yes" >&6; }
13265 ;;
13266 freebsd*)
13267 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13268 old_striplib="$STRIP --strip-debug"
13269 striplib="$STRIP --strip-unneeded"
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13271 printf "%s\n" "yes" >&6; }
13272 else
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 printf "%s\n" "no" >&6; }
13275 fi
13276 ;;
13277 *)
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 printf "%s\n" "no" >&6; }
13280 ;;
13281 esac
13282 fi
13283 fi
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296 # Report what library types will actually be built
13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13298 printf %s "checking if libtool supports shared libraries... " >&6; }
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13300 printf "%s\n" "$can_build_shared" >&6; }
13301
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13303 printf %s "checking whether to build shared libraries... " >&6; }
13304 test no = "$can_build_shared" && enable_shared=no
13305
13306 # On AIX, shared libraries and static libraries use the same namespace, and
13307 # are all built from PIC.
13308 case $host_os in
13309 aix3*)
13310 test yes = "$enable_shared" && enable_static=no
13311 if test -n "$RANLIB"; then
13312 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13313 postinstall_cmds='$RANLIB $lib'
13314 fi
13315 ;;
13316
13317 aix[4-9]*)
13318 if test ia64 != "$host_cpu"; then
13319 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13320 yes,aix,yes) ;; # shared object as lib.so file only
13321 yes,svr4,*) ;; # shared object as lib.so archive member only
13322 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13323 esac
13324 fi
13325 ;;
13326 esac
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13328 printf "%s\n" "$enable_shared" >&6; }
13329
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13331 printf %s "checking whether to build static libraries... " >&6; }
13332 # Make sure either enable_shared or enable_static is yes.
13333 test yes = "$enable_shared" || enable_static=yes
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13335 printf "%s\n" "$enable_static" >&6; }
13336
13337
13338
13339
13340 fi
13341 ac_ext=c
13342 ac_cpp='$CPP $CPPFLAGS'
13343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13346
13347 CC=$lt_save_CC
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363 ac_config_commands="$ac_config_commands libtool"
13364
13365
13366
13367
13368 # Only expand once:
13369
13370
13371 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13372 if test "x$ac_cv_header_windows_h" = xyes
13373 then :
13374 if test -n "$ac_tool_prefix"; then
13375 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13376 set dummy ${ac_tool_prefix}windres; ac_word=$2
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 printf %s "checking for $ac_word... " >&6; }
13379 if test ${ac_cv_prog_RC+y}
13380 then :
13381 printf %s "(cached) " >&6
13382 else case e in #(
13383 e) if test -n "$RC"; then
13384 ac_cv_prog_RC="$RC" # Let the user override the test.
13385 else
13386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387 for as_dir in $PATH
13388 do
13389 IFS=$as_save_IFS
13390 case $as_dir in #(((
13391 '') as_dir=./ ;;
13392 */) ;;
13393 *) as_dir=$as_dir/ ;;
13394 esac
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_RC="${ac_tool_prefix}windres"
13398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13399 break 2
13400 fi
13401 done
13402 done
13403 IFS=$as_save_IFS
13404
13405 fi ;;
13406 esac
13407 fi
13408 RC=$ac_cv_prog_RC
13409 if test -n "$RC"; then
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13411 printf "%s\n" "$RC" >&6; }
13412 else
13413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 printf "%s\n" "no" >&6; }
13415 fi
13416
13417
13418 fi
13419 if test -z "$ac_cv_prog_RC"; then
13420 ac_ct_RC=$RC
13421 # Extract the first word of "windres", so it can be a program name with args.
13422 set dummy windres; ac_word=$2
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 printf %s "checking for $ac_word... " >&6; }
13425 if test ${ac_cv_prog_ac_ct_RC+y}
13426 then :
13427 printf %s "(cached) " >&6
13428 else case e in #(
13429 e) if test -n "$ac_ct_RC"; then
13430 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13431 else
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 case $as_dir in #(((
13437 '') as_dir=./ ;;
13438 */) ;;
13439 *) as_dir=$as_dir/ ;;
13440 esac
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13443 ac_cv_prog_ac_ct_RC="windres"
13444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13445 break 2
13446 fi
13447 done
13448 done
13449 IFS=$as_save_IFS
13450
13451 fi ;;
13452 esac
13453 fi
13454 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13455 if test -n "$ac_ct_RC"; then
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13457 printf "%s\n" "$ac_ct_RC" >&6; }
13458 else
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 printf "%s\n" "no" >&6; }
13461 fi
13462
13463 if test "x$ac_ct_RC" = x; then
13464 RC=""
13465 else
13466 case $cross_compiling:$ac_tool_warned in
13467 yes:)
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13469 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13470 ac_tool_warned=yes ;;
13471 esac
13472 RC=$ac_ct_RC
13473 fi
13474 else
13475 RC="$ac_cv_prog_RC"
13476 fi
13477
13478
13479
13480 # Source file extension for RC test sources.
13481 ac_ext=rc
13482
13483 # Object file extension for compiled RC test sources.
13484 objext=o
13485 objext_RC=$objext
13486
13487 # Code to be used in simple compile tests
13488 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13489
13490 # Code to be used in simple link tests
13491 lt_simple_link_test_code=$lt_simple_compile_test_code
13492
13493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13494
13495
13496
13497
13498
13499
13500 # If no C compiler was specified, use CC.
13501 LTCC=${LTCC-"$CC"}
13502
13503 # If no C compiler flags were specified, use CFLAGS.
13504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13505
13506 # Allow CC to be a program name with arguments.
13507 compiler=$CC
13508
13509
13510 # save warnings/boilerplate of simple test code
13511 ac_outfile=conftest.$ac_objext
13512 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13513 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13514 _lt_compiler_boilerplate=`cat conftest.err`
13515 $RM conftest*
13516
13517 ac_outfile=conftest.$ac_objext
13518 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13519 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13520 _lt_linker_boilerplate=`cat conftest.err`
13521 $RM -r conftest*
13522
13523
13524 # Allow CC to be a program name with arguments.
13525 lt_save_CC=$CC
13526 lt_save_CFLAGS=$CFLAGS
13527 lt_save_GCC=$GCC
13528 GCC=
13529 CC=${RC-"windres"}
13530 CFLAGS=
13531 compiler=$CC
13532 compiler_RC=$CC
13533 func_cc_basename $compiler
13534 cc_basename=$func_cc_basename_result
13535
13536 lt_cv_prog_compiler_c_o_RC=yes
13537
13538 if test -n "$compiler"; then
13539 :
13540
13541
13542
13543 fi
13544
13545 GCC=$lt_save_GCC
13546 ac_ext=c
13547 ac_cpp='$CPP $CPPFLAGS'
13548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13551
13552 CC=$lt_save_CC
13553 CFLAGS=$lt_save_CFLAGS
13554
13555 fi
13556
13557
13558
13559 # checks for native programs to generate building tool
13560
13561 if test ${cross_compiling} = yes; then
13562 # Extract the first word of "${build}-gcc", so it can be a program name with args.
13563 set dummy ${build}-gcc; ac_word=$2
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 printf %s "checking for $ac_word... " >&6; }
13566 if test ${ac_cv_prog_CC_BUILD+y}
13567 then :
13568 printf %s "(cached) " >&6
13569 else case e in #(
13570 e) if test -n "$CC_BUILD"; then
13571 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576 IFS=$as_save_IFS
13577 case $as_dir in #(((
13578 '') as_dir=./ ;;
13579 */) ;;
13580 *) as_dir=$as_dir/ ;;
13581 esac
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13584 ac_cv_prog_CC_BUILD="${build}-gcc"
13585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13586 break 2
13587 fi
13588 done
13589 done
13590 IFS=$as_save_IFS
13591
13592 fi ;;
13593 esac
13594 fi
13595 CC_BUILD=$ac_cv_prog_CC_BUILD
13596 if test -n "$CC_BUILD"; then
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
13598 printf "%s\n" "$CC_BUILD" >&6; }
13599 else
13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 printf "%s\n" "no" >&6; }
13602 fi
13603
13604
13605 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
13606 set dummy gcc; ac_word=$2
13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 printf %s "checking for $ac_word... " >&6; }
13609 if test ${ac_cv_prog_CC_BUILD+y}
13610 then :
13611 printf %s "(cached) " >&6
13612 else case e in #(
13613 e) if test -n "$CC_BUILD"; then
13614 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
13615 else
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 case $as_dir in #(((
13621 '') as_dir=./ ;;
13622 */) ;;
13623 *) as_dir=$as_dir/ ;;
13624 esac
13625 for ac_exec_ext in '' $ac_executable_extensions; do
13626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13627 ac_cv_prog_CC_BUILD="gcc"
13628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13629 break 2
13630 fi
13631 done
13632 done
13633 IFS=$as_save_IFS
13634
13635 fi ;;
13636 esac
13637 fi
13638 CC_BUILD=$ac_cv_prog_CC_BUILD
13639 if test -n "$CC_BUILD"; then
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
13641 printf "%s\n" "$CC_BUILD" >&6; }
13642 else
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 printf "%s\n" "no" >&6; }
13645 fi
13646
13647
13648 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
13649 set dummy cc; ac_word=$2
13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 printf %s "checking for $ac_word... " >&6; }
13652 if test ${ac_cv_prog_CC_BUILD+y}
13653 then :
13654 printf %s "(cached) " >&6
13655 else case e in #(
13656 e) if test -n "$CC_BUILD"; then
13657 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
13658 else
13659 ac_prog_rejected=no
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663 IFS=$as_save_IFS
13664 case $as_dir in #(((
13665 '') as_dir=./ ;;
13666 */) ;;
13667 *) as_dir=$as_dir/ ;;
13668 esac
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13671 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13672 ac_prog_rejected=yes
13673 continue
13674 fi
13675 ac_cv_prog_CC_BUILD="cc"
13676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 if test $ac_prog_rejected = yes; then
13684 # We found a bogon in the path, so make sure we never use it.
13685 set dummy $ac_cv_prog_CC_BUILD
13686 shift
13687 if test $# != 0; then
13688 # We chose a different compiler from the bogus one.
13689 # However, it has the same basename, so the bogon will be chosen
13690 # first if we set CC_BUILD to just the basename; use the full file name.
13691 shift
13692 ac_cv_prog_CC_BUILD="$as_dir$ac_word${1+' '}$@"
13693 fi
13694 fi
13695 fi ;;
13696 esac
13697 fi
13698 CC_BUILD=$ac_cv_prog_CC_BUILD
13699 if test -n "$CC_BUILD"; then
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
13701 printf "%s\n" "$CC_BUILD" >&6; }
13702 else
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 printf "%s\n" "no" >&6; }
13705 fi
13706
13707
13708 test -z "${CC_BUILD}" && # Extract the first word of "clang", so it can be a program name with args.
13709 set dummy clang; ac_word=$2
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711 printf %s "checking for $ac_word... " >&6; }
13712 if test ${ac_cv_prog_CC_BUILD+y}
13713 then :
13714 printf %s "(cached) " >&6
13715 else case e in #(
13716 e) if test -n "$CC_BUILD"; then
13717 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13721 do
13722 IFS=$as_save_IFS
13723 case $as_dir in #(((
13724 '') as_dir=./ ;;
13725 */) ;;
13726 *) as_dir=$as_dir/ ;;
13727 esac
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13730 ac_cv_prog_CC_BUILD="clang"
13731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13732 break 2
13733 fi
13734 done
13735 done
13736 IFS=$as_save_IFS
13737
13738 fi ;;
13739 esac
13740 fi
13741 CC_BUILD=$ac_cv_prog_CC_BUILD
13742 if test -n "$CC_BUILD"; then
13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
13744 printf "%s\n" "$CC_BUILD" >&6; }
13745 else
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 printf "%s\n" "no" >&6; }
13748 fi
13749
13750
13751 test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
13752
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
13754 printf %s "checking for suffix of native executables... " >&6; }
13755 rm -f a.* b.* a_out.exe conftest.*
13756 echo > conftest.c "int main(void) { return 0;}"
13757 ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
13758 rm -f conftest.c
13759 if test -x a.out -o -x b.out -o -x conftest; then
13760 EXEEXT_BUILD=""
13761 elif test -x a_out.exe -o -x conftest.exe; then
13762 EXEEXT_BUILD=".exe"
13763 elif test -x conftest.*; then
13764 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
13765 fi
13766 rm -f a.* b.* a_out.exe conftest.*
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
13768 printf "%s\n" "$EXEEXT_BUILD" >&6; }
13769 CFLAGS_BUILD=
13770 LDFLAGS_BUILD=
13771 else
13772 CC_BUILD=${CC}
13773 CFLAGS_BUILD=${CFLAGS}
13774 LDFLAGS_BUILD=${LDFLAGS}
13775 EXEEXT_BUILD=${EXEEXT}
13776 fi
13777
13778
13779
13780
13781
13782
13783
13784 # Since these files will be eventually called from another directory (namely
13785 # from the top level) we make the path of the scripts absolute.
13786 #
13787 # This small code snippet has been taken from automake's `ylwrap' script.
13788
13789
13790 # Find a good install program. We prefer a C program (faster),
13791 # so one script is as good as another. But avoid the broken or
13792 # incompatible versions:
13793 # SysV /etc/install, /usr/sbin/install
13794 # SunOS /usr/etc/install
13795 # IRIX /sbin/install
13796 # AIX /bin/install
13797 # AmigaOS /C/install, which installs bootblocks on floppy discs
13798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13801 # OS/2's system install, which has a completely different semantic
13802 # ./install, which can be erroneously created by make from ./install.sh.
13803 # Reject install programs that cannot install multiple files.
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13805 printf %s "checking for a BSD-compatible install... " >&6; }
13806 if test -z "$INSTALL"; then
13807 if test ${ac_cv_path_install+y}
13808 then :
13809 printf %s "(cached) " >&6
13810 else case e in #(
13811 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812 for as_dir in $PATH
13813 do
13814 IFS=$as_save_IFS
13815 case $as_dir in #(((
13816 '') as_dir=./ ;;
13817 */) ;;
13818 *) as_dir=$as_dir/ ;;
13819 esac
13820 # Account for fact that we put trailing slashes in our PATH walk.
13821 case $as_dir in #((
13822 ./ | /[cC]/* | \
13823 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13824 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13825 /usr/ucb/* ) ;;
13826 *)
13827 # OSF1 and SCO ODT 3.0 have their own names for install.
13828 # Don't use installbsd from OSF since it installs stuff as root
13829 # by default.
13830 for ac_prog in ginstall scoinst install; do
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
13833 if test $ac_prog = install &&
13834 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13835 # AIX install. It has an incompatible calling convention.
13836 :
13837 elif test $ac_prog = install &&
13838 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13839 # program-specific install script used by HP pwplus--don't use.
13840 :
13841 else
13842 rm -rf conftest.one conftest.two conftest.dir
13843 echo one > conftest.one
13844 echo two > conftest.two
13845 mkdir conftest.dir
13846 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
13847 test -s conftest.one && test -s conftest.two &&
13848 test -s conftest.dir/conftest.one &&
13849 test -s conftest.dir/conftest.two
13850 then
13851 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
13852 break 3
13853 fi
13854 fi
13855 fi
13856 done
13857 done
13858 ;;
13859 esac
13860
13861 done
13862 IFS=$as_save_IFS
13863
13864 rm -rf conftest.one conftest.two conftest.dir
13865 ;;
13866 esac
13867 fi
13868 if test ${ac_cv_path_install+y}; then
13869 INSTALL=$ac_cv_path_install
13870 else
13871 # As a last resort, use the slow shell script. Don't cache a
13872 # value for INSTALL within a source directory, because that will
13873 # break other packages using the cache if that directory is
13874 # removed, or if the value is a relative name.
13875 INSTALL=$ac_install_sh
13876 fi
13877 fi
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13879 printf "%s\n" "$INSTALL" >&6; }
13880
13881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13882 # It thinks the first close brace ends the variable substitution.
13883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13884
13885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13886
13887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13888
13889 case "$INSTALL" in
13890 [\\/]* | ?:[\\/]*)
13891 ;;
13892 *[\\/]*)
13893 INSTALL="`pwd`/$INSTALL"
13894 ;;
13895 esac
13896
13897
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13899 printf %s "checking for a race-free mkdir -p... " >&6; }
13900 if test -z "$MKDIR_P"; then
13901 if test ${ac_cv_path_mkdir+y}
13902 then :
13903 printf %s "(cached) " >&6
13904 else case e in #(
13905 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13907 do
13908 IFS=$as_save_IFS
13909 case $as_dir in #(((
13910 '') as_dir=./ ;;
13911 */) ;;
13912 *) as_dir=$as_dir/ ;;
13913 esac
13914 for ac_prog in mkdir gmkdir; do
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13917 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13918 'mkdir ('*'coreutils) '* | \
13919 *'BusyBox '* | \
13920 'mkdir (fileutils) '4.1*)
13921 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13922 break 3;;
13923 esac
13924 done
13925 done
13926 done
13927 IFS=$as_save_IFS
13928 ;;
13929 esac
13930 fi
13931
13932 test -d ./--version && rmdir ./--version
13933 if test ${ac_cv_path_mkdir+y}; then
13934 MKDIR_P="$ac_cv_path_mkdir -p"
13935 else
13936 # As a last resort, use plain mkdir -p,
13937 # in the hope it doesn't have the bugs of ancient mkdir.
13938 MKDIR_P='mkdir -p'
13939 fi
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13942 printf "%s\n" "$MKDIR_P" >&6; }
13943
13944 case "$MKDIR_P" in
13945 [\\/]* | ?:[\\/]*)
13946 ;;
13947 *[\\/]*)
13948 MKDIR_P="`pwd`/$MKDIR_P"
13949 ;;
13950 esac
13951
13952
13953 # checks for header files
13954
13955 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13956 if test "x$ac_cv_header_fcntl_h" = xyes
13957 then :
13958 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13959
13960 fi
13961 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13962 if test "x$ac_cv_header_unistd_h" = xyes
13963 then :
13964 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13965
13966 fi
13967
13968
13969
13970 # checks for typedefs, structures, and compiler characteristics
13971
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13973 printf %s "checking for an ANSI C-conforming const... " >&6; }
13974 if test ${ac_cv_c_const+y}
13975 then :
13976 printf %s "(cached) " >&6
13977 else case e in #(
13978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980
13981 int
13982 main (void)
13983 {
13984
13985 #ifndef __cplusplus
13986 /* Ultrix mips cc rejects this sort of thing. */
13987 typedef int charset[2];
13988 const charset cs = { 0, 0 };
13989 /* SunOS 4.1.1 cc rejects this. */
13990 char const *const *pcpcc;
13991 char **ppc;
13992 /* NEC SVR4.0.2 mips cc rejects this. */
13993 struct point {int x, y;};
13994 static struct point const zero = {0,0};
13995 /* IBM XL C 1.02.0.0 rejects this.
13996 It does not let you subtract one const X* pointer from another in
13997 an arm of an if-expression whose if-part is not a constant
13998 expression */
13999 const char *g = "string";
14000 pcpcc = &g + (g ? g-g : 0);
14001 /* HPUX 7.0 cc rejects these. */
14002 ++pcpcc;
14003 ppc = (char**) pcpcc;
14004 pcpcc = (char const *const *) ppc;
14005 { /* SCO 3.2v4 cc rejects this sort of thing. */
14006 char tx;
14007 char *t = &tx;
14008 char const *s = 0 ? (char *) 0 : (char const *) 0;
14009
14010 *t++ = 0;
14011 if (s) return 0;
14012 }
14013 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14014 int x[] = {25, 17};
14015 const int *foo = &x[0];
14016 ++foo;
14017 }
14018 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14019 typedef const int *iptr;
14020 iptr p = 0;
14021 ++p;
14022 }
14023 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14025 struct s { int j; const int *ap[3]; } bx;
14026 struct s *b = &bx; b->j = 5;
14027 }
14028 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14029 const int foo = 10;
14030 if (!foo) return 0;
14031 }
14032 return !cs[0] && !zero.x;
14033 #endif
14034
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"
14040 then :
14041 ac_cv_c_const=yes
14042 else case e in #(
14043 e) ac_cv_c_const=no ;;
14044 esac
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14047 esac
14048 fi
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14050 printf "%s\n" "$ac_cv_c_const" >&6; }
14051 if test $ac_cv_c_const = no; then
14052
14053 printf "%s\n" "#define const /**/" >>confdefs.h
14054
14055 fi
14056
14057
14058 # Check whether --enable-freetype-config was given.
14059 if test ${enable_freetype_config+y}
14060 then :
14061 enableval=$enable_freetype_config; case "${enableval}" in
14062 yes) enable_freetype_config="TRUE" ;;
14063 no) enable_freetype_config="FALSE" ;;
14064 *) as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
14065 esac
14066 else case e in #(
14067 e) enable_freetype_config="FALSE" ;;
14068 esac
14069 fi
14070
14071
14072 INSTALL_FT2_CONFIG=$enable_freetype_config
14073
14074
14075 # checks for library functions
14076
14077 # Check whether --enable-largefile was given.
14078 if test ${enable_largefile+y}
14079 then :
14080 enableval=$enable_largefile;
14081 fi
14082 if test "$enable_largefile,$enable_year2038" != no,no
14083 then :
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14085 printf %s "checking for $CC option to enable large file support... " >&6; }
14086 if test ${ac_cv_sys_largefile_opts+y}
14087 then :
14088 printf %s "(cached) " >&6
14089 else case e in #(
14090 e) ac_save_CC="$CC"
14091 ac_opt_found=no
14092 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14093 if test x"$ac_opt" != x"none needed"
14094 then :
14095 CC="$ac_save_CC $ac_opt"
14096 fi
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <sys/types.h>
14100 #ifndef FTYPE
14101 # define FTYPE off_t
14102 #endif
14103 /* Check that FTYPE can represent 2**63 - 1 correctly.
14104 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14105 since some C++ compilers masquerading as C compilers
14106 incorrectly reject 9223372036854775807. */
14107 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14108 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14109 && LARGE_FTYPE % 2147483647 == 1)
14110 ? 1 : -1];
14111 int
14112 main (void)
14113 {
14114
14115 ;
14116 return 0;
14117 }
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"
14120 then :
14121 if test x"$ac_opt" = x"none needed"
14122 then :
14123 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14124 CC="$CC -DFTYPE=ino_t"
14125 if ac_fn_c_try_compile "$LINENO"
14126 then :
14127
14128 else case e in #(
14129 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14130 if ac_fn_c_try_compile "$LINENO"
14131 then :
14132 ac_opt='-D_FILE_OFFSET_BITS=64'
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14135 esac
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext conftest.beam
14138 fi
14139 ac_cv_sys_largefile_opts=$ac_opt
14140 ac_opt_found=yes
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14143 test $ac_opt_found = no || break
14144 done
14145 CC="$ac_save_CC"
14146
14147 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14148 esac
14149 fi
14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14151 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14152
14153 ac_have_largefile=yes
14154 case $ac_cv_sys_largefile_opts in #(
14155 "none needed") :
14156 ;; #(
14157 "supported through gnulib") :
14158 ;; #(
14159 "support not detected") :
14160 ac_have_largefile=no ;; #(
14161 "-D_FILE_OFFSET_BITS=64") :
14162
14163 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14164 ;; #(
14165 "-D_LARGE_FILES=1") :
14166
14167 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14168 ;; #(
14169 "-n32") :
14170 CC="$CC -n32" ;; #(
14171 *) :
14172 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14173 esac
14174
14175 if test "$enable_year2038" != no
14176 then :
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14178 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14179 if test ${ac_cv_sys_year2038_opts+y}
14180 then :
14181 printf %s "(cached) " >&6
14182 else case e in #(
14183 e) ac_save_CPPFLAGS="$CPPFLAGS"
14184 ac_opt_found=no
14185 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14186 if test x"$ac_opt" != x"none needed"
14187 then :
14188 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14189 fi
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192
14193 #include <time.h>
14194 /* Check that time_t can represent 2**32 - 1 correctly. */
14195 #define LARGE_TIME_T \\
14196 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14197 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14198 && LARGE_TIME_T % 65537 == 0)
14199 ? 1 : -1];
14200
14201 int
14202 main (void)
14203 {
14204
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_compile "$LINENO"
14210 then :
14211 ac_cv_sys_year2038_opts="$ac_opt"
14212 ac_opt_found=yes
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 test $ac_opt_found = no || break
14216 done
14217 CPPFLAGS="$ac_save_CPPFLAGS"
14218 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
14219 esac
14220 fi
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
14222 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
14223
14224 ac_have_year2038=yes
14225 case $ac_cv_sys_year2038_opts in #(
14226 "none needed") :
14227 ;; #(
14228 "support not detected") :
14229 ac_have_year2038=no ;; #(
14230 "-D_TIME_BITS=64") :
14231
14232 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
14233 ;; #(
14234 "-D__MINGW_USE_VC2005_COMPAT") :
14235
14236 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
14237 ;; #(
14238 "-U_USE_32_BIT_TIME_T"*) :
14239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14240 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14241 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
14242 will stop working after mid-January 2038. Remove
14243 _USE_32BIT_TIME_T from the compiler flags.
14244 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14245 *) :
14246 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
14247 esac
14248
14249 fi
14250
14251 fi
14252
14253 # Here we check whether we can use our mmap file component.
14254 #
14255 # Note that `ftsystem.c` for Windows has its own mmap-like implementation
14256 # not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
14257
14258 # Check whether --enable-mmap was given.
14259 if test ${enable_mmap+y}
14260 then :
14261 enableval=$enable_mmap; enable_mmap="no"
14262 else case e in #(
14263 e) enable_mmap="yes" ;;
14264 esac
14265 fi
14266
14267 if test "x${enable_mmap}" != "xno"; then
14268 case "$host" in
14269 *-*-mingw*)
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14271 printf %s "checking for working mmap... " >&6; }
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using MapViewOfFile in Windows" >&5
14273 printf "%s\n" "using MapViewOfFile in Windows" >&6; }
14274 FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
14275 ;;
14276 *)
14277
14278 ac_func=
14279 for ac_item in $ac_func_c_list
14280 do
14281 if test $ac_func; then
14282 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14283 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14284 echo "#define $ac_item 1" >> confdefs.h
14285 fi
14286 ac_func=
14287 else
14288 ac_func=$ac_item
14289 fi
14290 done
14291
14292
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14294 printf %s "checking for working mmap... " >&6; }
14295 if test ${ac_cv_func_mmap_fixed_mapped+y}
14296 then :
14297 printf %s "(cached) " >&6
14298 else case e in #(
14299 e) if test "$cross_compiling" = yes
14300 then :
14301 case "$host_os" in # ((
14302 # Guess yes on platforms where we know the result.
14303 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
14304 # If we don't know, assume the worst.
14305 *) ac_cv_func_mmap_fixed_mapped=no ;;
14306 esac
14307 else case e in #(
14308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 $ac_includes_default
14311 /* malloc might have been renamed as rpl_malloc. */
14312 #undef malloc
14313
14314 /* Thanks to Mike Haertel and Jim Avera for this test.
14315 Here is a matrix of mmap possibilities:
14316 mmap private not fixed
14317 mmap private fixed at somewhere currently unmapped
14318 mmap private fixed at somewhere already mapped
14319 mmap shared not fixed
14320 mmap shared fixed at somewhere currently unmapped
14321 mmap shared fixed at somewhere already mapped
14322 For private mappings, we should verify that changes cannot be read()
14323 back from the file, nor mmap's back from the file at a different
14324 address. (There have been systems where private was not correctly
14325 implemented like the infamous i386 svr4.0, and systems where the
14326 VM page cache was not coherent with the file system buffer cache
14327 like early versions of FreeBSD and possibly contemporary NetBSD.)
14328 For shared mappings, we should conversely verify that changes get
14329 propagated back to all the places they're supposed to be. */
14330
14331 #include <fcntl.h>
14332 #include <sys/mman.h>
14333
14334 #ifndef getpagesize
14335 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
14336 been removed from POSIX and is limited to page sizes that fit in 'int'. */
14337 # ifdef _SC_PAGESIZE
14338 # define getpagesize() sysconf (_SC_PAGESIZE)
14339 # elif defined _SC_PAGE_SIZE
14340 # define getpagesize() sysconf (_SC_PAGE_SIZE)
14341 # elif HAVE_GETPAGESIZE
14342 int getpagesize ();
14343 # else
14344 # ifdef HAVE_SYS_PARAM_H
14345 # include <sys/param.h>
14346 # ifdef EXEC_PAGESIZE
14347 # define getpagesize() EXEC_PAGESIZE
14348 # else /* no EXEC_PAGESIZE */
14349 # ifdef NBPG
14350 # define getpagesize() NBPG * CLSIZE
14351 # ifndef CLSIZE
14352 # define CLSIZE 1
14353 # endif /* no CLSIZE */
14354 # else /* no NBPG */
14355 # ifdef NBPC
14356 # define getpagesize() NBPC
14357 # else /* no NBPC */
14358 # ifdef PAGESIZE
14359 # define getpagesize() PAGESIZE
14360 # endif /* PAGESIZE */
14361 # endif /* no NBPC */
14362 # endif /* no NBPG */
14363 # endif /* no EXEC_PAGESIZE */
14364 # else /* no HAVE_SYS_PARAM_H */
14365 # define getpagesize() 8192 /* punt totally */
14366 # endif /* no HAVE_SYS_PARAM_H */
14367 # endif
14368 #endif
14369
14370 int
14371 main (void)
14372 {
14373 char *data, *data2, *data3;
14374 const char *cdata2;
14375 long i, pagesize;
14376 int fd, fd2;
14377
14378 pagesize = getpagesize ();
14379
14380 /* First, make a file with some known garbage in it. */
14381 data = (char *) malloc (pagesize);
14382 if (!data)
14383 return 1;
14384 for (i = 0; i < pagesize; ++i)
14385 *(data + i) = rand ();
14386 umask (0);
14387 fd = creat ("conftest.mmap", 0600);
14388 if (fd < 0)
14389 return 2;
14390 if (write (fd, data, pagesize) != pagesize)
14391 return 3;
14392 close (fd);
14393
14394 /* Next, check that the tail of a page is zero-filled. File must have
14395 non-zero length, otherwise we risk SIGBUS for entire page. */
14396 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14397 if (fd2 < 0)
14398 return 4;
14399 cdata2 = "";
14400 if (write (fd2, cdata2, 1) != 1)
14401 return 5;
14402 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14403 if (data2 == MAP_FAILED)
14404 return 6;
14405 for (i = 0; i < pagesize; ++i)
14406 if (*(data2 + i))
14407 return 7;
14408 close (fd2);
14409 /* 'return 8;' not currently used. */
14410
14411 /* Next, try to mmap the file at a fixed address which already has
14412 something else allocated at it. If we can, also make sure that
14413 we see the same garbage. */
14414 fd = open ("conftest.mmap", O_RDWR);
14415 if (fd < 0)
14416 return 9;
14417 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14418 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14419 return 10;
14420 for (i = 0; i < pagesize; ++i)
14421 if (*(data + i) != *(data2 + i))
14422 return 11;
14423
14424 /* Finally, make sure that changes to the mapped area do not
14425 percolate back to the file as seen by read(). (This is a bug on
14426 some variants of i386 svr4.0.) */
14427 for (i = 0; i < pagesize; ++i)
14428 *(data2 + i) = *(data2 + i) + 1;
14429 data3 = (char *) malloc (pagesize);
14430 if (!data3)
14431 return 12;
14432 if (read (fd, data3, pagesize) != pagesize)
14433 return 13;
14434 for (i = 0; i < pagesize; ++i)
14435 if (*(data + i) != *(data3 + i))
14436 return 14;
14437 close (fd);
14438 free (data);
14439 free (data3);
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_run "$LINENO"
14444 then :
14445 ac_cv_func_mmap_fixed_mapped=yes
14446 else case e in #(
14447 e) ac_cv_func_mmap_fixed_mapped=no ;;
14448 esac
14449 fi
14450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14451 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14452 esac
14453 fi
14454 ;;
14455 esac
14456 fi
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14458 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
14459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14460
14461 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
14462
14463 fi
14464 rm -f conftest.mmap conftest.txt
14465
14466 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
14467 FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
14468
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14470 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14471 if test ${ac_cv_c_undeclared_builtin_options+y}
14472 then :
14473 printf %s "(cached) " >&6
14474 else case e in #(
14475 e) ac_save_CFLAGS=$CFLAGS
14476 ac_cv_c_undeclared_builtin_options='cannot detect'
14477 for ac_arg in '' -fno-builtin; do
14478 CFLAGS="$ac_save_CFLAGS $ac_arg"
14479 # This test program should *not* compile successfully.
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482
14483 int
14484 main (void)
14485 {
14486 (void) strchr;
14487 ;
14488 return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"
14492 then :
14493
14494 else case e in #(
14495 e) # This test program should compile successfully.
14496 # No library function is consistently available on
14497 # freestanding implementations, so test against a dummy
14498 # declaration. Include always-available headers on the
14499 # off chance that they somehow elicit warnings.
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #include <float.h>
14503 #include <limits.h>
14504 #include <stdarg.h>
14505 #include <stddef.h>
14506 extern void ac_decl (int, char *);
14507
14508 int
14509 main (void)
14510 {
14511 (void) ac_decl (0, (char *) 0);
14512 (void) ac_decl;
14513
14514 ;
14515 return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_c_try_compile "$LINENO"
14519 then :
14520 if test x"$ac_arg" = x
14521 then :
14522 ac_cv_c_undeclared_builtin_options='none needed'
14523 else case e in #(
14524 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14525 esac
14526 fi
14527 break
14528 fi
14529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14530 esac
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14533 done
14534 CFLAGS=$ac_save_CFLAGS
14535 ;;
14536 esac
14537 fi
14538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14539 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14540 case $ac_cv_c_undeclared_builtin_options in #(
14541 'cannot detect') :
14542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14543 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14544 as_fn_error $? "cannot make $CC report undeclared builtins
14545 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14546 'none needed') :
14547 ac_c_undeclared_builtin_options='' ;; #(
14548 *) :
14549 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14550 esac
14551
14552 ac_fn_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
14553
14554 #ifdef HAVE_UNISTD_H
14555 #include <unistd.h>
14556 #endif
14557 #include <sys/mman.h>
14558
14559
14560 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14561 if test "x$ac_cv_have_decl_munmap" = xyes
14562 then :
14563 ac_have_decl=1
14564 else case e in #(
14565 e) ac_have_decl=0 ;;
14566 esac
14567 fi
14568 printf "%s\n" "#define HAVE_DECL_MUNMAP $ac_have_decl" >>confdefs.h
14569
14570
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
14572 printf %s "checking for munmap's first parameter type... " >&6; }
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575
14576
14577
14578 #include <unistd.h>
14579 #include <sys/mman.h>
14580 int munmap(void *, size_t);
14581
14582
14583
14584 _ACEOF
14585 if ac_fn_c_try_compile "$LINENO"
14586 then :
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void *" >&5
14588 printf "%s\n" "void *" >&6; }
14589
14590 printf "%s\n" "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
14591
14592 else case e in #(
14593 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: char *" >&5
14594 printf "%s\n" "char *" >&6; } ;;
14595 esac
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14598
14599 fi
14600 ;;
14601 esac
14602 fi
14603
14604 if test -z "$FTSYS_SRC"; then
14605 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
14606 fi
14607
14608
14609
14610 # get compiler flags right
14611 #
14612 # We try to make the compiler work for C99-strict source. Even if the
14613 # C compiler is gcc and C99 flags are available, some system headers
14614 # might be broken in C99 mode. We have to check whether compilation
14615 # finishes successfully.
14616 #
14617 if test "x$GCC" = xyes; then
14618 XX_CFLAGS="-Wall"
14619 case "$host" in
14620 *-*-mingw*)
14621 XX_ANSIFLAGS="-pedantic"
14622 ;;
14623 *-*-aix*)
14624 XX_ANSIFLAGS="-pedantic"
14625 ;;
14626 *)
14627 XX_ANSIFLAGS=""
14628
14629 for a in "-pedantic" "-std=c99"
14630 do
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC compiler flag ${a} to assure ANSI C99 works correctly" >&5
14632 printf %s "checking $CC compiler flag ${a} to assure ANSI C99 works correctly... " >&6; }
14633 orig_CFLAGS="${CFLAGS}"
14634 CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637
14638
14639
14640 #include <stdio.h>
14641
14642
14643 int
14644 main (void)
14645 {
14646
14647
14648 {
14649 puts( "" );
14650 return 0;
14651 }
14652
14653
14654 ;
14655 return 0;
14656 }
14657 _ACEOF
14658 if ac_fn_c_try_compile "$LINENO"
14659 then :
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
14661 printf "%s\n" "ok, adding to XX_ANSIFLAGS" >&6; }
14662 XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
14663
14664 else case e in #(
14665 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 printf "%s\n" "no" >&6; } ;;
14667 esac
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14670 CFLAGS="${orig_CFLAGS}"
14671 done
14672 ;;
14673 esac
14674 else
14675 case "$host" in
14676 *-dec-osf*)
14677 CFLAGS=
14678 XX_CFLAGS="-std1 -g3"
14679 XX_ANSIFLAGS=
14680 ;;
14681 *)
14682 XX_CFLAGS=
14683 XX_ANSIFLAGS=
14684 ;;
14685 esac
14686 fi
14687
14688
14689
14690
14691 # It is recommended that shared libraries hide symbols except those with
14692 # explicit __attribute__((visibility("default"))).
14693 #
14694 found_visibility_flag=no
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
14696 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
14697 orig_CFLAGS="${CFLAGS}"
14698 CFLAGS="${CFLAGS} -fvisibility=hidden -Werror"
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701
14702
14703
14704 __attribute__(( visibility( "default" ) )) int foo( void );
14705 __attribute__(( visibility( "hidden" ) )) int bar( void );
14706
14707 int foo( void ) { return 0; }
14708 int bar( void ) { return 1; }
14709
14710
14711 int
14712 main (void)
14713 {
14714
14715 ;
14716 return 0;
14717 }
14718 _ACEOF
14719 if ac_fn_c_try_compile "$LINENO"
14720 then :
14721 found_visibility_flag=yes
14722 CFLAGS="${orig_CFLAGS} -fvisibility=hidden"
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14724 printf "%s\n" "yes" >&6; }
14725
14726 else case e in #(
14727 e) CFLAGS="${orig_CFLAGS}"
14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 printf "%s\n" "no" >&6; } ;;
14730 esac
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14733
14734 if test "${found_visibility_flag}" = "no"; then
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
14736 printf %s "checking for -xldscope=hidden compiler flag... " >&6; }
14737 orig_CFLAGS="${CFLAGS}"
14738 CFLAGS="${CFLAGS} -xldscope=hidden"
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741
14742 int
14743 main (void)
14744 {
14745
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"
14751 then :
14752 found_visibility_flag=yes
14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 printf "%s\n" "yes" >&6; }
14755 else case e in #(
14756 e) CFLAGS="${orig_CFLAGS}"
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 printf "%s\n" "no" >&6; } ;;
14759 esac
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14762 conftest$ac_exeext conftest.$ac_ext
14763 fi
14764
14765 # All library tests below try `pkg-config' first. If that fails, a function
14766 # from the library is tested in the traditional autoconf way (zlib, bzip2),
14767 # or a config script is called (libpng).
14768 #
14769 # The `xxx_reqpriv' variables are for the `Requires.private' field in
14770 # `freetype2.pc'. The `xxx_libspriv' variables are for the `Libs.private'
14771 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
14772 #
14773 # The `xxx_libsstaticconf' variables are for the `freetype-config' script.
14774 #
14775 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
14776 # output variables `XXX_CFLAGS' and `XXX_LIBS'. In case one or both are set
14777 # for a library by the user, no entry for this library is added to
14778 # `Requires.private'. Instead, it gets added to `Libs.private'
14779
14780
14781 # check for system zlib
14782
14783
14784 # Check whether --with-zlib was given.
14785 if test ${with_zlib+y}
14786 then :
14787 withval=$with_zlib;
14788 else case e in #(
14789 e) with_zlib=auto ;;
14790 esac
14791 fi
14792
14793
14794 have_zlib=no
14795 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
14796 zlib_pkg="zlib"
14797 have_zlib_pkg=no
14798
14799 if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
14800 if test -n "$PKG_CONFIG" && \
14801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
14802 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
14803 ac_status=$?
14804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 test $ac_status = 0; }; then
14806 have_zlib_pkg=yes
14807 fi
14808 fi
14809
14810 pkg_failed=no
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
14812 printf %s "checking for ZLIB... " >&6; }
14813
14814 if test -n "$ZLIB_CFLAGS"; then
14815 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
14816 elif test -n "$PKG_CONFIG"; then
14817 if test -n "$PKG_CONFIG" && \
14818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
14819 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
14820 ac_status=$?
14821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; }; then
14823 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
14824 test "x$?" != "x0" && pkg_failed=yes
14825 else
14826 pkg_failed=yes
14827 fi
14828 else
14829 pkg_failed=untried
14830 fi
14831 if test -n "$ZLIB_LIBS"; then
14832 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
14833 elif test -n "$PKG_CONFIG"; then
14834 if test -n "$PKG_CONFIG" && \
14835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
14836 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
14837 ac_status=$?
14838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14839 test $ac_status = 0; }; then
14840 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
14841 test "x$?" != "x0" && pkg_failed=yes
14842 else
14843 pkg_failed=yes
14844 fi
14845 else
14846 pkg_failed=untried
14847 fi
14848
14849
14850
14851 if test $pkg_failed = yes; then
14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 printf "%s\n" "no" >&6; }
14854
14855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14856 _pkg_short_errors_supported=yes
14857 else
14858 _pkg_short_errors_supported=no
14859 fi
14860 if test $_pkg_short_errors_supported = yes; then
14861 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
14862 else
14863 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
14864 fi
14865 # Put the nasty error message in config.log where it belongs
14866 echo "$ZLIB_PKG_ERRORS" >&5
14867
14868 :
14869 elif test $pkg_failed = untried; then
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871 printf "%s\n" "no" >&6; }
14872 :
14873 else
14874 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
14875 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14877 printf "%s\n" "yes" >&6; }
14878 have_zlib="yes (pkg-config)"
14879 fi
14880
14881 if test $have_zlib_pkg = yes; then
14882 # we have zlib.pc
14883 zlib_reqpriv="$zlib_pkg"
14884 zlib_libspriv=
14885 zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
14886 else
14887 zlib_reqpriv=
14888
14889 if test "$have_zlib" != no; then
14890 # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
14891 zlib_libspriv="$ZLIB_LIBS"
14892 zlib_libsstaticconf="$ZLIB_LIBS"
14893 have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
14894 else
14895 # fall back to standard autoconf test
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
14897 printf %s "checking for gzsetparams in -lz... " >&6; }
14898 if test ${ac_cv_lib_z_gzsetparams+y}
14899 then :
14900 printf %s "(cached) " >&6
14901 else case e in #(
14902 e) ac_check_lib_save_LIBS=$LIBS
14903 LIBS="-lz $LIBS"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply.
14910 The 'extern "C"' is for builds by C++ compilers;
14911 although this is not generally supported in C code supporting it here
14912 has little cost and some practical benefit (sr 110532). */
14913 #ifdef __cplusplus
14914 extern "C"
14915 #endif
14916 char gzsetparams (void);
14917 int
14918 main (void)
14919 {
14920 return gzsetparams ();
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 if ac_fn_c_try_link "$LINENO"
14926 then :
14927 ac_cv_lib_z_gzsetparams=yes
14928 else case e in #(
14929 e) ac_cv_lib_z_gzsetparams=no ;;
14930 esac
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LIBS=$ac_check_lib_save_LIBS ;;
14935 esac
14936 fi
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
14938 printf "%s\n" "$ac_cv_lib_z_gzsetparams" >&6; }
14939 if test "x$ac_cv_lib_z_gzsetparams" = xyes
14940 then :
14941 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14942 if test "x$ac_cv_header_zlib_h" = xyes
14943 then :
14944 have_zlib="yes (autoconf test)"
14945 zlib_libspriv="-lz"
14946 zlib_libsstaticconf="$zlib_libspriv"
14947 ZLIB_LIBS="$zlib_libspriv"
14948 fi
14949
14950 fi
14951
14952 fi
14953 fi
14954 fi
14955
14956 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
14957 as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
14958 fi
14959
14960 SYSTEM_ZLIB=
14961 if test "$have_zlib" != no; then
14962 SYSTEM_ZLIB=yes
14963 fi
14964
14965
14966
14967 # check for system libbz2
14968
14969
14970 # Check whether --with-bzip2 was given.
14971 if test ${with_bzip2+y}
14972 then :
14973 withval=$with_bzip2;
14974 else case e in #(
14975 e) with_bzip2=auto ;;
14976 esac
14977 fi
14978
14979
14980 have_bzip2=no
14981 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
14982 bzip2_pkg="bzip2"
14983 have_bzip2_pkg=no
14984
14985 if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
14986 if test -n "$PKG_CONFIG" && \
14987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14988 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14989 ac_status=$?
14990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14991 test $ac_status = 0; }; then
14992 have_bzip2_pkg=yes
14993 fi
14994 fi
14995
14996 pkg_failed=no
14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
14998 printf %s "checking for BZIP2... " >&6; }
14999
15000 if test -n "$BZIP2_CFLAGS"; then
15001 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
15002 elif test -n "$PKG_CONFIG"; then
15003 if test -n "$PKG_CONFIG" && \
15004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
15005 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
15006 ac_status=$?
15007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; }; then
15009 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
15010 test "x$?" != "x0" && pkg_failed=yes
15011 else
15012 pkg_failed=yes
15013 fi
15014 else
15015 pkg_failed=untried
15016 fi
15017 if test -n "$BZIP2_LIBS"; then
15018 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
15019 elif test -n "$PKG_CONFIG"; then
15020 if test -n "$PKG_CONFIG" && \
15021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
15022 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
15023 ac_status=$?
15024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025 test $ac_status = 0; }; then
15026 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
15027 test "x$?" != "x0" && pkg_failed=yes
15028 else
15029 pkg_failed=yes
15030 fi
15031 else
15032 pkg_failed=untried
15033 fi
15034
15035
15036
15037 if test $pkg_failed = yes; then
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 printf "%s\n" "no" >&6; }
15040
15041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15042 _pkg_short_errors_supported=yes
15043 else
15044 _pkg_short_errors_supported=no
15045 fi
15046 if test $_pkg_short_errors_supported = yes; then
15047 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
15048 else
15049 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
15050 fi
15051 # Put the nasty error message in config.log where it belongs
15052 echo "$BZIP2_PKG_ERRORS" >&5
15053
15054 :
15055 elif test $pkg_failed = untried; then
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 printf "%s\n" "no" >&6; }
15058 :
15059 else
15060 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
15061 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15063 printf "%s\n" "yes" >&6; }
15064 have_bzip2="yes (pkg-config)"
15065 fi
15066
15067 if test $have_bzip2_pkg = yes; then
15068 # we have bzip2.pc
15069 bzip2_reqpriv="$bzip2_pkg"
15070 bzip2_libspriv=
15071 bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
15072 else
15073 bzip2_reqpriv=
15074
15075 if test "$have_bzip2" != no; then
15076 # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
15077 bzip2_libspriv="$BZIP2_LIBS"
15078 bzip2_libsstaticconf="$BZIP2_LIBS"
15079 have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
15080 else
15081 # fall back to standard autoconf test
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
15083 printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
15084 if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
15085 then :
15086 printf %s "(cached) " >&6
15087 else case e in #(
15088 e) ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-lbz2 $LIBS"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092
15093 /* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply.
15096 The 'extern "C"' is for builds by C++ compilers;
15097 although this is not generally supported in C code supporting it here
15098 has little cost and some practical benefit (sr 110532). */
15099 #ifdef __cplusplus
15100 extern "C"
15101 #endif
15102 char BZ2_bzDecompress (void);
15103 int
15104 main (void)
15105 {
15106 return BZ2_bzDecompress ();
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 if ac_fn_c_try_link "$LINENO"
15112 then :
15113 ac_cv_lib_bz2_BZ2_bzDecompress=yes
15114 else case e in #(
15115 e) ac_cv_lib_bz2_BZ2_bzDecompress=no ;;
15116 esac
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15119 conftest$ac_exeext conftest.$ac_ext
15120 LIBS=$ac_check_lib_save_LIBS ;;
15121 esac
15122 fi
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
15124 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
15125 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
15126 then :
15127 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
15128 if test "x$ac_cv_header_bzlib_h" = xyes
15129 then :
15130 have_bzip2="yes (autoconf test)"
15131 bzip2_libspriv="-lbz2"
15132 bzip2_libsstaticconf="$bzip2_libspriv"
15133 BZIP2_LIBS="$bzip2_libspriv"
15134 fi
15135
15136 fi
15137
15138 fi
15139 fi
15140 fi
15141
15142 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
15143 as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
15144 fi
15145
15146
15147 # check for system libpng
15148
15149
15150 # Check whether --with-png was given.
15151 if test ${with_png+y}
15152 then :
15153 withval=$with_png;
15154 else case e in #(
15155 e) with_png=auto ;;
15156 esac
15157 fi
15158
15159
15160 have_libpng=no
15161 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
15162 libpng_pkg="libpng"
15163 have_libpng_pkg=no
15164
15165 if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
15166 if test -n "$PKG_CONFIG" && \
15167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
15168 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
15169 ac_status=$?
15170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15171 test $ac_status = 0; }; then
15172 have_libpng_pkg=yes
15173 fi
15174 fi
15175
15176 pkg_failed=no
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
15178 printf %s "checking for LIBPNG... " >&6; }
15179
15180 if test -n "$LIBPNG_CFLAGS"; then
15181 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
15182 elif test -n "$PKG_CONFIG"; then
15183 if test -n "$PKG_CONFIG" && \
15184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
15185 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
15186 ac_status=$?
15187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 test $ac_status = 0; }; then
15189 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
15190 test "x$?" != "x0" && pkg_failed=yes
15191 else
15192 pkg_failed=yes
15193 fi
15194 else
15195 pkg_failed=untried
15196 fi
15197 if test -n "$LIBPNG_LIBS"; then
15198 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
15199 elif test -n "$PKG_CONFIG"; then
15200 if test -n "$PKG_CONFIG" && \
15201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
15202 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
15203 ac_status=$?
15204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15205 test $ac_status = 0; }; then
15206 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
15207 test "x$?" != "x0" && pkg_failed=yes
15208 else
15209 pkg_failed=yes
15210 fi
15211 else
15212 pkg_failed=untried
15213 fi
15214
15215
15216
15217 if test $pkg_failed = yes; then
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15219 printf "%s\n" "no" >&6; }
15220
15221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15222 _pkg_short_errors_supported=yes
15223 else
15224 _pkg_short_errors_supported=no
15225 fi
15226 if test $_pkg_short_errors_supported = yes; then
15227 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
15228 else
15229 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
15230 fi
15231 # Put the nasty error message in config.log where it belongs
15232 echo "$LIBPNG_PKG_ERRORS" >&5
15233
15234 :
15235 elif test $pkg_failed = untried; then
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15237 printf "%s\n" "no" >&6; }
15238 :
15239 else
15240 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
15241 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243 printf "%s\n" "yes" >&6; }
15244 have_libpng="yes (pkg-config)"
15245 fi
15246
15247 if test $have_libpng_pkg = yes; then
15248 # we have libpng.pc
15249 libpng_reqpriv="$libpng_pkg"
15250 libpng_libspriv=
15251 libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
15252 else
15253 libpng_reqpriv=
15254
15255 if test "$have_libpng" != no; then
15256 # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
15257 libpng_libspriv="$LIBPNG_LIBS"
15258 libpng_libsstaticconf="$LIBPNG_LIBS"
15259 have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
15260 else
15261 # fall back to config script
15262 # Extract the first word of "libpng-config", so it can be a program name with args.
15263 set dummy libpng-config; ac_word=$2
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15265 printf %s "checking for $ac_word... " >&6; }
15266 if test ${ac_cv_prog_have_libpng+y}
15267 then :
15268 printf %s "(cached) " >&6
15269 else case e in #(
15270 e) if test -n "$have_libpng"; then
15271 ac_cv_prog_have_libpng="$have_libpng" # Let the user override the test.
15272 else
15273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15274 for as_dir in $PATH
15275 do
15276 IFS=$as_save_IFS
15277 case $as_dir in #(((
15278 '') as_dir=./ ;;
15279 */) ;;
15280 *) as_dir=$as_dir/ ;;
15281 esac
15282 for ac_exec_ext in '' $ac_executable_extensions; do
15283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15284 ac_cv_prog_have_libpng="yes (libpng-config)"
15285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15286 break 2
15287 fi
15288 done
15289 done
15290 IFS=$as_save_IFS
15291
15292 test -z "$ac_cv_prog_have_libpng" && ac_cv_prog_have_libpng="no"
15293 fi ;;
15294 esac
15295 fi
15296 have_libpng=$ac_cv_prog_have_libpng
15297 if test -n "$have_libpng"; then
15298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libpng" >&5
15299 printf "%s\n" "$have_libpng" >&6; }
15300 else
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 printf "%s\n" "no" >&6; }
15303 fi
15304
15305
15306 if test "$have_libpng" != no; then
15307 LIBPNG_CFLAGS=`libpng-config --cflags`
15308 LIBPNG_LIBS=`libpng-config --ldflags`
15309 libpng_libspriv=`libpng-config --static --ldflags`
15310 libpng_libsstaticconf="$libpng_libspriv"
15311 fi
15312 fi
15313 fi
15314 fi
15315
15316 if test x"$with_png" = xyes -a "$have_libpng" = no; then
15317 as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
15318 fi
15319
15320
15321 # check for system libharfbuzz
15322
15323
15324 # Check whether --with-harfbuzz was given.
15325 if test ${with_harfbuzz+y}
15326 then :
15327 withval=$with_harfbuzz;
15328 else case e in #(
15329 e) with_harfbuzz=auto ;;
15330 esac
15331 fi
15332
15333
15334 have_harfbuzz=no
15335 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
15336 harfbuzz_pkg="harfbuzz >= 2.0.0"
15337 have_harfbuzz_pkg=no
15338
15339 if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
15340 if test -n "$PKG_CONFIG" && \
15341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
15342 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
15343 ac_status=$?
15344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15345 test $ac_status = 0; }; then
15346 have_harfbuzz_pkg=yes
15347 fi
15348 fi
15349
15350 pkg_failed=no
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
15352 printf %s "checking for HARFBUZZ... " >&6; }
15353
15354 if test -n "$HARFBUZZ_CFLAGS"; then
15355 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
15356 elif test -n "$PKG_CONFIG"; then
15357 if test -n "$PKG_CONFIG" && \
15358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
15359 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
15360 ac_status=$?
15361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15362 test $ac_status = 0; }; then
15363 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
15364 test "x$?" != "x0" && pkg_failed=yes
15365 else
15366 pkg_failed=yes
15367 fi
15368 else
15369 pkg_failed=untried
15370 fi
15371 if test -n "$HARFBUZZ_LIBS"; then
15372 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
15373 elif test -n "$PKG_CONFIG"; then
15374 if test -n "$PKG_CONFIG" && \
15375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
15376 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
15377 ac_status=$?
15378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; }; then
15380 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
15381 test "x$?" != "x0" && pkg_failed=yes
15382 else
15383 pkg_failed=yes
15384 fi
15385 else
15386 pkg_failed=untried
15387 fi
15388
15389
15390
15391 if test $pkg_failed = yes; then
15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 printf "%s\n" "no" >&6; }
15394
15395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15396 _pkg_short_errors_supported=yes
15397 else
15398 _pkg_short_errors_supported=no
15399 fi
15400 if test $_pkg_short_errors_supported = yes; then
15401 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
15402 else
15403 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
15404 fi
15405 # Put the nasty error message in config.log where it belongs
15406 echo "$HARFBUZZ_PKG_ERRORS" >&5
15407
15408 :
15409 elif test $pkg_failed = untried; then
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411 printf "%s\n" "no" >&6; }
15412 :
15413 else
15414 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
15415 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417 printf "%s\n" "yes" >&6; }
15418 have_harfbuzz="yes (pkg-config)"
15419 fi
15420
15421 if test $have_harfbuzz_pkg = yes; then
15422 # we have harfbuzz.pc
15423 harfbuzz_reqpriv="$harfbuzz_pkg"
15424 harfbuzz_libspriv=
15425 harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
15426 else
15427 harfbuzz_reqpriv=
15428
15429 if test "$have_harfbuzz" != no; then
15430 # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
15431 harfbuzz_libspriv="$HARFBUZZ_LIBS"
15432 harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
15433 have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
15434 else
15435 # since HarfBuzz is quite a new library we don't fall back to a
15436 # different test; additionally, it has too many dependencies
15437 :
15438 fi
15439 fi
15440 fi
15441
15442 have_harfbuzz_dynamic=no
15443 if test x"$have_harfbuzz" = xno; then
15444 if test x"$with_harfbuzz" = xdynamic -o x"$with_harfbuzz" = xauto; then
15445 case "$host" in
15446 *-*-mingw*)
15447 # Windows uses its own LoadLibrary(), set variables to dynamic.
15448 have_harfbuzz_dynamic=yes
15449 have_harfbuzz="yes (dynamic)"
15450 ;;
15451 *)
15452 # Check for libdl
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
15454 printf %s "checking for dlopen in -lc... " >&6; }
15455 if test ${ac_cv_lib_c_dlopen+y}
15456 then :
15457 printf %s "(cached) " >&6
15458 else case e in #(
15459 e) ac_check_lib_save_LIBS=$LIBS
15460 LIBS="-lc $LIBS"
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463
15464 /* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply.
15467 The 'extern "C"' is for builds by C++ compilers;
15468 although this is not generally supported in C code supporting it here
15469 has little cost and some practical benefit (sr 110532). */
15470 #ifdef __cplusplus
15471 extern "C"
15472 #endif
15473 char dlopen (void);
15474 int
15475 main (void)
15476 {
15477 return dlopen ();
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"
15483 then :
15484 ac_cv_lib_c_dlopen=yes
15485 else case e in #(
15486 e) ac_cv_lib_c_dlopen=no ;;
15487 esac
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15490 conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_check_lib_save_LIBS ;;
15492 esac
15493 fi
15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
15495 printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
15496 if test "x$ac_cv_lib_c_dlopen" = xyes
15497 then :
15498 have_harfbuzz_dynamic=yes
15499 else case e in #(
15500 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15501 printf %s "checking for dlopen in -ldl... " >&6; }
15502 if test ${ac_cv_lib_dl_dlopen+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else case e in #(
15506 e) ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-ldl $LIBS"
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply.
15514 The 'extern "C"' is for builds by C++ compilers;
15515 although this is not generally supported in C code supporting it here
15516 has little cost and some practical benefit (sr 110532). */
15517 #ifdef __cplusplus
15518 extern "C"
15519 #endif
15520 char dlopen (void);
15521 int
15522 main (void)
15523 {
15524 return dlopen ();
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_link "$LINENO"
15530 then :
15531 ac_cv_lib_dl_dlopen=yes
15532 else case e in #(
15533 e) ac_cv_lib_dl_dlopen=no ;;
15534 esac
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15537 conftest$ac_exeext conftest.$ac_ext
15538 LIBS=$ac_check_lib_save_LIBS ;;
15539 esac
15540 fi
15541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15542 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15543 if test "x$ac_cv_lib_dl_dlopen" = xyes
15544 then :
15545 have_harfbuzz_dynamic=yes
15546 need_libdl=yes
15547 fi
15548 ;;
15549 esac
15550 fi
15551
15552 if test x"$have_harfbuzz_dynamic" = xyes; then
15553 have_harfbuzz="yes (dynamic)"
15554 HARFBUZZ_CFLAGS=
15555 if test x"$need_libdl" = xyes; then
15556 HARFBUZZ_LIBS="-ldl"
15557 fi
15558 fi
15559 ;;
15560 esac
15561 fi
15562 fi
15563
15564 if test x"$have_harfbuzz" = xno; then
15565 if test x"$with_harfbuzz" != xno -a "$with_harfbuzz" != xauto; then
15566 as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
15567 fi
15568 fi
15569
15570 # check for system libbrotlidec
15571
15572
15573 # Check whether --with-brotli was given.
15574 if test ${with_brotli+y}
15575 then :
15576 withval=$with_brotli;
15577 else case e in #(
15578 e) with_brotli=auto ;;
15579 esac
15580 fi
15581
15582
15583 have_brotli=no
15584 if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
15585 brotli_pkg="libbrotlidec"
15586 have_brotli_pkg=no
15587
15588 if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
15589 if test -n "$PKG_CONFIG" && \
15590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
15591 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
15592 ac_status=$?
15593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; then
15595 have_brotli_pkg=yes
15596 fi
15597 fi
15598
15599 pkg_failed=no
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
15601 printf %s "checking for BROTLI... " >&6; }
15602
15603 if test -n "$BROTLI_CFLAGS"; then
15604 pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
15605 elif test -n "$PKG_CONFIG"; then
15606 if test -n "$PKG_CONFIG" && \
15607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
15608 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
15609 ac_status=$?
15610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15611 test $ac_status = 0; }; then
15612 pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
15613 test "x$?" != "x0" && pkg_failed=yes
15614 else
15615 pkg_failed=yes
15616 fi
15617 else
15618 pkg_failed=untried
15619 fi
15620 if test -n "$BROTLI_LIBS"; then
15621 pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
15622 elif test -n "$PKG_CONFIG"; then
15623 if test -n "$PKG_CONFIG" && \
15624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
15625 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
15626 ac_status=$?
15627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15628 test $ac_status = 0; }; then
15629 pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
15630 test "x$?" != "x0" && pkg_failed=yes
15631 else
15632 pkg_failed=yes
15633 fi
15634 else
15635 pkg_failed=untried
15636 fi
15637
15638
15639
15640 if test $pkg_failed = yes; then
15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 printf "%s\n" "no" >&6; }
15643
15644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15645 _pkg_short_errors_supported=yes
15646 else
15647 _pkg_short_errors_supported=no
15648 fi
15649 if test $_pkg_short_errors_supported = yes; then
15650 BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
15651 else
15652 BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
15653 fi
15654 # Put the nasty error message in config.log where it belongs
15655 echo "$BROTLI_PKG_ERRORS" >&5
15656
15657 :
15658 elif test $pkg_failed = untried; then
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 printf "%s\n" "no" >&6; }
15661 :
15662 else
15663 BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
15664 BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15666 printf "%s\n" "yes" >&6; }
15667 have_brotli="yes (pkg-config)"
15668 fi
15669
15670 if test $have_brotli_pkg = yes; then
15671 # we have libbrotlidec.pc
15672 brotli_reqpriv="$brotli_pkg"
15673 brotli_libspriv=
15674 brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
15675 else
15676 brotli_reqpriv=
15677
15678 if test "$have_brotli" != no; then
15679 # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
15680 brotli_libspriv="$BROTLI_LIBS"
15681 brotli_libsstaticconf="$BROTLI_LIBS"
15682 have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
15683 else
15684 # since Brotli is quite a new library we don't fall back to a
15685 # different test
15686 :
15687 fi
15688 fi
15689 fi
15690
15691 if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
15692 as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
15693 fi
15694
15695
15696 # Checks for the demo programs.
15697 #
15698 # FreeType doesn't need this. However, since the demo program repository
15699 # doesn't come with a `configure` script of its own, we integrate the tests
15700 # here for simplicity.
15701
15702 # We need `clock_gettime` from 'librt' for the `ftbench` demo program.
15703 #
15704 # The code is modeled after gnulib's file `clock_time.m4`, ignoring
15705 # very old Solaris systems.
15706 LIB_CLOCK_GETTIME=
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15708 printf %s "checking for library containing clock_gettime... " >&6; }
15709 if test ${ac_cv_search_clock_gettime+y}
15710 then :
15711 printf %s "(cached) " >&6
15712 else case e in #(
15713 e) ac_func_search_save_LIBS=$LIBS
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply.
15720 The 'extern "C"' is for builds by C++ compilers;
15721 although this is not generally supported in C code supporting it here
15722 has little cost and some practical benefit (sr 110532). */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char clock_gettime (void);
15727 int
15728 main (void)
15729 {
15730 return clock_gettime ();
15731 ;
15732 return 0;
15733 }
15734 _ACEOF
15735 for ac_lib in '' rt
15736 do
15737 if test -z "$ac_lib"; then
15738 ac_res="none required"
15739 else
15740 ac_res=-l$ac_lib
15741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15742 fi
15743 if ac_fn_c_try_link "$LINENO"
15744 then :
15745 ac_cv_search_clock_gettime=$ac_res
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15748 conftest$ac_exeext
15749 if test ${ac_cv_search_clock_gettime+y}
15750 then :
15751 break
15752 fi
15753 done
15754 if test ${ac_cv_search_clock_gettime+y}
15755 then :
15756
15757 else case e in #(
15758 e) ac_cv_search_clock_gettime=no ;;
15759 esac
15760 fi
15761 rm conftest.$ac_ext
15762 LIBS=$ac_func_search_save_LIBS ;;
15763 esac
15764 fi
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15766 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
15767 ac_res=$ac_cv_search_clock_gettime
15768 if test "$ac_res" != no
15769 then :
15770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15771 test "$ac_cv_search_clock_gettime" = "none required" \
15772 || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
15773 fi
15774
15775
15776 FT_DEMO_CFLAGS=""
15777 FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME"
15778
15779 # 'librsvg' is needed to demonstrate SVG support.
15780
15781 # Check whether --with-librsvg was given.
15782 if test ${with_librsvg+y}
15783 then :
15784 withval=$with_librsvg;
15785 else case e in #(
15786 e) with_librsvg=auto ;;
15787 esac
15788 fi
15789
15790
15791 have_librsvg=no
15792 if test x"$with_librsvg" = xyes -o x"$with_librsvg" = xauto; then
15793
15794 pkg_failed=no
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
15796 printf %s "checking for LIBRSVG... " >&6; }
15797
15798 if test -n "$LIBRSVG_CFLAGS"; then
15799 pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
15800 elif test -n "$PKG_CONFIG"; then
15801 if test -n "$PKG_CONFIG" && \
15802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
15803 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
15804 ac_status=$?
15805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15806 test $ac_status = 0; }; then
15807 pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.46.0" 2>/dev/null`
15808 test "x$?" != "x0" && pkg_failed=yes
15809 else
15810 pkg_failed=yes
15811 fi
15812 else
15813 pkg_failed=untried
15814 fi
15815 if test -n "$LIBRSVG_LIBS"; then
15816 pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
15817 elif test -n "$PKG_CONFIG"; then
15818 if test -n "$PKG_CONFIG" && \
15819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
15820 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
15821 ac_status=$?
15822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823 test $ac_status = 0; }; then
15824 pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.46.0" 2>/dev/null`
15825 test "x$?" != "x0" && pkg_failed=yes
15826 else
15827 pkg_failed=yes
15828 fi
15829 else
15830 pkg_failed=untried
15831 fi
15832
15833
15834
15835 if test $pkg_failed = yes; then
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 printf "%s\n" "no" >&6; }
15838
15839 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15840 _pkg_short_errors_supported=yes
15841 else
15842 _pkg_short_errors_supported=no
15843 fi
15844 if test $_pkg_short_errors_supported = yes; then
15845 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
15846 else
15847 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
15848 fi
15849 # Put the nasty error message in config.log where it belongs
15850 echo "$LIBRSVG_PKG_ERRORS" >&5
15851
15852 :
15853 elif test $pkg_failed = untried; then
15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855 printf "%s\n" "no" >&6; }
15856 :
15857 else
15858 LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
15859 LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 printf "%s\n" "yes" >&6; }
15862 have_librsvg="yes (pkg-config)"
15863 fi
15864
15865 if test "$have_librsvg" != no; then
15866 FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG"
15867 FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS"
15868 fi
15869 fi
15870
15871 if test x"$with_librsvg" = xyes -a "$have_librsvg" = no; then
15872 as_fn_error $? "librsvg support requested but library not found" "$LINENO" 5
15873 fi
15874
15875
15876
15877
15878
15879 # Some options handling SDKs/archs in CFLAGS should be copied
15880 # to LDFLAGS. Apple TechNote 2137 recommends to include these
15881 # options in CFLAGS but not in LDFLAGS.
15882
15883 save_config_args=$*
15884 set dummy ${CFLAGS}
15885 i=1
15886 while test $i -le $#
15887 do
15888 c=$1
15889
15890 case "${c}" in
15891 -isysroot|-arch) # options taking 1 argument
15892 a=$2
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
15894 printf %s "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
15895 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
15896 then
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15898 printf "%s\n" "yes" >&6; }
15899 else
15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
15901 printf "%s\n" "no, copy to LDFLAGS" >&6; }
15902 LDFLAGS="${LDFLAGS} ${c} ${a}"
15903 fi
15904 shift 1
15905 ;;
15906 -m32|-m64|-march=*|-mcpu=*) # options taking no argument
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
15908 printf %s "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
15909 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
15910 then
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15912 printf "%s\n" "yes" >&6; }
15913 else
15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
15915 printf "%s\n" "no, copy to LDFLAGS" >&6; }
15916 LDFLAGS="${LDFLAGS} ${c}"
15917 fi
15918 ;;
15919 # *)
15920 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
15921 # ;;
15922 esac
15923
15924 shift 1
15925 done
15926 set ${save_config_args}
15927
15928
15929 # Whether to use Mac OS resource-based fonts.
15930
15931 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
15932
15933
15934 # Check whether --with-old-mac-fonts was given.
15935 if test ${with_old_mac_fonts+y}
15936 then :
15937 withval=$with_old_mac_fonts;
15938 fi
15939
15940 if test x$with_old_mac_fonts = xyes; then
15941 orig_LDFLAGS="${LDFLAGS}"
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
15943 printf %s "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
15944 ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
15945 LDFLAGS="$LDFLAGS $ft2_extra_libs"
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948
15949
15950
15951 #if defined(__GNUC__) && defined(__APPLE_CC__)
15952 # include <CoreServices/CoreServices.h>
15953 # include <ApplicationServices/ApplicationServices.h>
15954 #else
15955 # include <ConditionalMacros.h>
15956 # include <Files.h>
15957 #endif
15958
15959
15960 int
15961 main (void)
15962 {
15963
15964
15965 short res = 0;
15966
15967
15968 UseResFile( res );
15969
15970
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_link "$LINENO"
15976 then :
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15978 printf "%s\n" "ok" >&6; }
15979 ftmac_c='ftmac.c'
15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
15981 printf %s "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
15982 orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
15983 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986
15987
15988
15989 #if defined(__GNUC__) && defined(__APPLE_CC__)
15990 # include <CoreServices/CoreServices.h>
15991 # include <ApplicationServices/ApplicationServices.h>
15992 #else
15993 # include <ConditionalMacros.h>
15994 # include <Files.h>
15995 #endif
15996
15997
15998 int
15999 main (void)
16000 {
16001
16002
16003 /* OSHostByteOrder() is typed as OS_INLINE */
16004 int32_t os_byte_order = OSHostByteOrder();
16005
16006
16007 if ( OSBigEndian != os_byte_order )
16008 return 1;
16009
16010
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"
16016 then :
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16018 printf "%s\n" "ok" >&6; }
16019 CFLAGS="$orig_CFLAGS"
16020 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
16021
16022 else case e in #(
16023 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
16024 printf "%s\n" "no, ANSI incompatible" >&6; }
16025 CFLAGS="$orig_CFLAGS"
16026 ;;
16027 esac
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
16031 printf %s "checking type ResourceIndex... " >&6; }
16032 orig_CFLAGS="$CFLAGS"
16033 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036
16037
16038
16039 #if defined(__GNUC__) && defined(__APPLE_CC__)
16040 # include <CoreServices/CoreServices.h>
16041 # include <ApplicationServices/ApplicationServices.h>
16042 #else
16043 # include <ConditionalMacros.h>
16044 # include <Files.h>
16045 # include <Resources.h>
16046 #endif
16047
16048
16049 int
16050 main (void)
16051 {
16052
16053
16054 ResourceIndex i = 0;
16055 return i;
16056
16057
16058 ;
16059 return 0;
16060 }
16061 _ACEOF
16062 if ac_fn_c_try_compile "$LINENO"
16063 then :
16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16065 printf "%s\n" "ok" >&6; }
16066 CFLAGS="$orig_CFLAGS"
16067 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
16068
16069 else case e in #(
16070 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 printf "%s\n" "no" >&6; }
16072 CFLAGS="$orig_CFLAGS"
16073 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
16074 ;;
16075 esac
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16078 else case e in #(
16079 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16080 printf "%s\n" "not found" >&6; }
16081 ft2_extra_libs=""
16082 LDFLAGS="${orig_LDFLAGS}"
16083 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON" ;;
16084 esac
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16087 conftest$ac_exeext conftest.$ac_ext
16088 else
16089 case x$host_os in
16090 xdarwin*)
16091 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
16092 ;;
16093 *)
16094 ;;
16095 esac
16096 fi
16097
16098
16099 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
16100
16101
16102 # Check whether --with-fsspec was given.
16103 if test ${with_fsspec+y}
16104 then :
16105 withval=$with_fsspec;
16106 fi
16107
16108 if test x$with_fsspec = xno; then
16109 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
16110 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
16112 printf %s "checking FSSpec-based FileManager... " >&6; }
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115
16116
16117
16118 #if defined(__GNUC__) && defined(__APPLE_CC__)
16119 # include <CoreServices/CoreServices.h>
16120 # include <ApplicationServices/ApplicationServices.h>
16121 #else
16122 # include <ConditionalMacros.h>
16123 # include <Files.h>
16124 #endif
16125
16126
16127 int
16128 main (void)
16129 {
16130
16131
16132 FCBPBPtr paramBlock;
16133 short vRefNum;
16134 long dirID;
16135 ConstStr255Param fileName;
16136 FSSpec* spec;
16137
16138
16139 /* FSSpec functions: deprecated since Mac OS X 10.4 */
16140 PBGetFCBInfoSync( paramBlock );
16141 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
16142
16143
16144 ;
16145 return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_link "$LINENO"
16149 then :
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16151 printf "%s\n" "ok" >&6; }
16152 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
16153 else case e in #(
16154 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16155 printf "%s\n" "not found" >&6; }
16156 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0" ;;
16157 esac
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16160 conftest$ac_exeext conftest.$ac_ext
16161 fi
16162
16163
16164 # Whether to use FileManager in Carbon since MacOS 9.x.
16165
16166
16167 # Check whether --with-fsref was given.
16168 if test ${with_fsref+y}
16169 then :
16170 withval=$with_fsref;
16171 fi
16172
16173 if test x$with_fsref = xno; then
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
16175 *** WARNING
16176 FreeType2 built without FSRef API cannot load
16177 data-fork fonts on MacOS, except of XXX.dfont.
16178 " >&5
16179 printf "%s\n" "$as_me: WARNING:
16180 *** WARNING
16181 FreeType2 built without FSRef API cannot load
16182 data-fork fonts on MacOS, except of XXX.dfont.
16183 " >&2;}
16184 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
16185 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
16187 printf %s "checking FSRef-based FileManager... " >&6; }
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190
16191
16192
16193 #if defined(__GNUC__) && defined(__APPLE_CC__)
16194 # include <CoreServices/CoreServices.h>
16195 # include <ApplicationServices/ApplicationServices.h>
16196 #else
16197 # include <ConditionalMacros.h>
16198 # include <Files.h>
16199 #endif
16200
16201
16202 int
16203 main (void)
16204 {
16205
16206
16207 short vRefNum;
16208 long dirID;
16209 ConstStr255Param fileName;
16210
16211 Boolean* isDirectory;
16212 UInt8* path;
16213 SInt16 desiredRefNum;
16214 SInt16* iterator;
16215 SInt16* actualRefNum;
16216 HFSUniStr255* outForkName;
16217 FSVolumeRefNum volume;
16218 FSCatalogInfoBitmap whichInfo;
16219 FSCatalogInfo* catalogInfo;
16220 FSForkInfo* forkInfo;
16221 FSRef* ref;
16222
16223 #if HAVE_FSSPEC
16224 FSSpec* spec;
16225 #endif
16226
16227 /* FSRef functions: no need to check? */
16228 FSGetForkCBInfo( desiredRefNum, volume, iterator,
16229 actualRefNum, forkInfo, ref,
16230 outForkName );
16231 FSPathMakeRef( path, ref, isDirectory );
16232
16233 #if HAVE_FSSPEC
16234 FSpMakeFSRef ( spec, ref );
16235 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
16236 outForkName, spec, ref );
16237 #endif
16238
16239 ;
16240 return 0;
16241 }
16242 _ACEOF
16243 if ac_fn_c_try_link "$LINENO"
16244 then :
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16246 printf "%s\n" "ok" >&6; }
16247 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
16248 else case e in #(
16249 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16250 printf "%s\n" "not found" >&6; }
16251 CFLAGS="$CFLAGS -DHAVE_FSREF=0" ;;
16252 esac
16253 fi
16254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16255 conftest$ac_exeext conftest.$ac_ext
16256 fi
16257
16258
16259 # Whether to use QuickDraw API in ToolBox, which is deprecated since
16260 # Mac OS X 10.4.
16261
16262
16263 # Check whether --with-quickdraw-toolbox was given.
16264 if test ${with_quickdraw_toolbox+y}
16265 then :
16266 withval=$with_quickdraw_toolbox;
16267 fi
16268
16269 if test x$with_quickdraw_toolbox = xno; then
16270 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
16271 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
16273 printf %s "checking QuickDraw FontManager functions in ToolBox... " >&6; }
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276
16277
16278
16279 #if defined(__GNUC__) && defined(__APPLE_CC__)
16280 # include <CoreServices/CoreServices.h>
16281 # include <ApplicationServices/ApplicationServices.h>
16282 #else
16283 # include <ConditionalMacros.h>
16284 # include <Fonts.h>
16285 #endif
16286
16287
16288 int
16289 main (void)
16290 {
16291
16292
16293 Str255 familyName;
16294 SInt16 familyID = 0;
16295 FMInput* fmIn = NULL;
16296 FMOutput* fmOut = NULL;
16297
16298
16299 GetFontName( familyID, familyName );
16300 GetFNum( familyName, &familyID );
16301 fmOut = FMSwapFont( fmIn );
16302
16303
16304 ;
16305 return 0;
16306 }
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"
16309 then :
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16311 printf "%s\n" "ok" >&6; }
16312 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
16313 else case e in #(
16314 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16315 printf "%s\n" "not found" >&6; }
16316 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0" ;;
16317 esac
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16320 conftest$ac_exeext conftest.$ac_ext
16321 fi
16322
16323
16324 # Whether to use QuickDraw API in Carbon, which is deprecated since
16325 # Mac OS X 10.4.
16326
16327
16328 # Check whether --with-quickdraw-carbon was given.
16329 if test ${with_quickdraw_carbon+y}
16330 then :
16331 withval=$with_quickdraw_carbon;
16332 fi
16333
16334 if test x$with_quickdraw_carbon = xno; then
16335 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
16336 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
16338 printf %s "checking QuickDraw FontManager functions in Carbon... " >&6; }
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341
16342
16343
16344 #if defined(__GNUC__) && defined(__APPLE_CC__)
16345 # include <CoreServices/CoreServices.h>
16346 # include <ApplicationServices/ApplicationServices.h>
16347 #else
16348 # include <ConditionalMacros.h>
16349 # include <Fonts.h>
16350 #endif
16351
16352
16353 int
16354 main (void)
16355 {
16356
16357
16358 FMFontFamilyIterator famIter;
16359 FMFontFamily family;
16360 Str255 famNameStr;
16361 FMFontFamilyInstanceIterator instIter;
16362 FMFontStyle style;
16363 FMFontSize size;
16364 FMFont font;
16365 FSSpec* pathSpec;
16366
16367
16368 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
16369 &famIter );
16370 FMGetNextFontFamily( &famIter, &family );
16371 FMGetFontFamilyName( family, famNameStr );
16372 FMCreateFontFamilyInstanceIterator( family, &instIter );
16373 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
16374 FMDisposeFontFamilyInstanceIterator( &instIter );
16375 FMDisposeFontFamilyIterator( &famIter );
16376 FMGetFontContainer( font, pathSpec );
16377
16378
16379 ;
16380 return 0;
16381 }
16382 _ACEOF
16383 if ac_fn_c_try_link "$LINENO"
16384 then :
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16386 printf "%s\n" "ok" >&6; }
16387 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
16388 else case e in #(
16389 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16390 printf "%s\n" "not found" >&6; }
16391 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0" ;;
16392 esac
16393 fi
16394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16395 conftest$ac_exeext conftest.$ac_ext
16396 fi
16397
16398
16399 # Whether to use AppleTypeService since Mac OS X.
16400
16401
16402 # Check whether --with-ats was given.
16403 if test ${with_ats+y}
16404 then :
16405 withval=$with_ats;
16406 fi
16407
16408 if test x$with_ats = xno; then
16409 CFLAGS="$CFLAGS -DHAVE_ATS=0"
16410 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
16412 printf %s "checking AppleTypeService functions... " >&6; }
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415
16416
16417
16418 #if defined(__GNUC__) && defined(__APPLE_CC__)
16419 # include <CoreServices/CoreServices.h>
16420 # include <ApplicationServices/ApplicationServices.h>
16421 #else
16422 # include <ConditionalMacros.h>
16423 # include <Files.h>
16424 #endif
16425
16426
16427 int
16428 main (void)
16429 {
16430
16431
16432 FSSpec* pathSpec;
16433
16434
16435 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
16436 #if HAVE_FSSPEC
16437 ATSFontGetFileSpecification( 0, pathSpec );
16438 #endif
16439
16440
16441 ;
16442 return 0;
16443 }
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"
16446 then :
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16448 printf "%s\n" "ok" >&6; }
16449 CFLAGS="$CFLAGS -DHAVE_ATS=1"
16450 else case e in #(
16451 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16452 printf "%s\n" "not found" >&6; }
16453 CFLAGS="$CFLAGS -DHAVE_ATS=0" ;;
16454 esac
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16457 conftest$ac_exeext conftest.$ac_ext
16458 fi
16459
16460 case "$CFLAGS" in
16461 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
16463 *** WARNING
16464 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
16465 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
16466 " >&5
16467 printf "%s\n" "$as_me: WARNING:
16468 *** WARNING
16469 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
16470 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
16471 " >&2;}
16472 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
16473 ;;
16474 *)
16475 ;;
16476 esac
16477
16478 # Check for pthreads
16479
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
16481 printf %s "checking target system type... " >&6; }
16482 if test ${ac_cv_target+y}
16483 then :
16484 printf %s "(cached) " >&6
16485 else case e in #(
16486 e) if test "x$target_alias" = x; then
16487 ac_cv_target=$ac_cv_host
16488 else
16489 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
16490 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
16491 fi
16492 ;;
16493 esac
16494 fi
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
16496 printf "%s\n" "$ac_cv_target" >&6; }
16497 case $ac_cv_target in
16498 *-*-*) ;;
16499 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
16500 esac
16501 target=$ac_cv_target
16502 ac_save_IFS=$IFS; IFS='-'
16503 set x $ac_cv_target
16504 shift
16505 target_cpu=$1
16506 target_vendor=$2
16507 shift; shift
16508 # Remember, the first character of IFS is used to create $*,
16509 # except with old shells:
16510 target_os=$*
16511 IFS=$ac_save_IFS
16512 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
16513
16514
16515 # The aliases save the names the user supplied, while $host etc.
16516 # will get canonicalized.
16517 test -n "$target_alias" &&
16518 test "$program_prefix$program_suffix$program_transform_name" = \
16519 NONENONEs,x,x, &&
16520 program_prefix=${target_alias}-
16521
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
16523 printf %s "checking for egrep -e... " >&6; }
16524 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
16525 then :
16526 printf %s "(cached) " >&6
16527 else case e in #(
16528 e) if test -z "$EGREP_TRADITIONAL"; then
16529 ac_path_EGREP_TRADITIONAL_found=false
16530 # Loop through the user's path and test for each of PROGNAME-LIST
16531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16533 do
16534 IFS=$as_save_IFS
16535 case $as_dir in #(((
16536 '') as_dir=./ ;;
16537 */) ;;
16538 *) as_dir=$as_dir/ ;;
16539 esac
16540 for ac_prog in grep ggrep
16541 do
16542 for ac_exec_ext in '' $ac_executable_extensions; do
16543 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16544 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16545 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16546 # Check for GNU $ac_path_EGREP_TRADITIONAL
16547 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16548 *GNU*)
16549 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16550 #(
16551 *)
16552 ac_count=0
16553 printf %s 0123456789 >"conftest.in"
16554 while :
16555 do
16556 cat "conftest.in" "conftest.in" >"conftest.tmp"
16557 mv "conftest.tmp" "conftest.in"
16558 cp "conftest.in" "conftest.nl"
16559 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16560 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16562 as_fn_arith $ac_count + 1 && ac_count=$as_val
16563 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16564 # Best one so far, save it but keep looking for a better one
16565 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16566 ac_path_EGREP_TRADITIONAL_max=$ac_count
16567 fi
16568 # 10*(2^10) chars as input seems more than enough
16569 test $ac_count -gt 10 && break
16570 done
16571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16572 esac
16573
16574 $ac_path_EGREP_TRADITIONAL_found && break 3
16575 done
16576 done
16577 done
16578 IFS=$as_save_IFS
16579 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16580 :
16581 fi
16582 else
16583 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16584 fi
16585
16586 if test "$ac_cv_path_EGREP_TRADITIONAL"
16587 then :
16588 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
16589 else case e in #(
16590 e) if test -z "$EGREP_TRADITIONAL"; then
16591 ac_path_EGREP_TRADITIONAL_found=false
16592 # Loop through the user's path and test for each of PROGNAME-LIST
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16595 do
16596 IFS=$as_save_IFS
16597 case $as_dir in #(((
16598 '') as_dir=./ ;;
16599 */) ;;
16600 *) as_dir=$as_dir/ ;;
16601 esac
16602 for ac_prog in egrep
16603 do
16604 for ac_exec_ext in '' $ac_executable_extensions; do
16605 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16606 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16607 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16608 # Check for GNU $ac_path_EGREP_TRADITIONAL
16609 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16610 *GNU*)
16611 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16612 #(
16613 *)
16614 ac_count=0
16615 printf %s 0123456789 >"conftest.in"
16616 while :
16617 do
16618 cat "conftest.in" "conftest.in" >"conftest.tmp"
16619 mv "conftest.tmp" "conftest.in"
16620 cp "conftest.in" "conftest.nl"
16621 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16622 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16624 as_fn_arith $ac_count + 1 && ac_count=$as_val
16625 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16626 # Best one so far, save it but keep looking for a better one
16627 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16628 ac_path_EGREP_TRADITIONAL_max=$ac_count
16629 fi
16630 # 10*(2^10) chars as input seems more than enough
16631 test $ac_count -gt 10 && break
16632 done
16633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16634 esac
16635
16636 $ac_path_EGREP_TRADITIONAL_found && break 3
16637 done
16638 done
16639 done
16640 IFS=$as_save_IFS
16641 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16643 fi
16644 else
16645 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16646 fi
16647 ;;
16648 esac
16649 fi ;;
16650 esac
16651 fi
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
16653 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
16654 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
16655
16656
16657
16658
16659
16660 ac_ext=c
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16665
16666 ax_pthread_ok=no
16667
16668 # We used to check for pthread.h first, but this fails if pthread.h
16669 # requires special compiler flags (e.g. on Tru64 or Sequent).
16670 # It gets checked for in the link test anyway.
16671
16672 # First of all, check if the user has set any of the PTHREAD_LIBS,
16673 # etcetera environment variables, and if threads linking works using
16674 # them:
16675 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
16676 ax_pthread_save_CC="$CC"
16677 ax_pthread_save_CFLAGS="$CFLAGS"
16678 ax_pthread_save_LIBS="$LIBS"
16679 if test "x$PTHREAD_CC" != "x"
16680 then :
16681 CC="$PTHREAD_CC"
16682 fi
16683 if test "x$PTHREAD_CXX" != "x"
16684 then :
16685 CXX="$PTHREAD_CXX"
16686 fi
16687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16688 LIBS="$PTHREAD_LIBS $LIBS"
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
16690 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693
16694 /* Override any GCC internal prototype to avoid an error.
16695 Use char because int might match the return type of a GCC
16696 builtin and then its argument prototype would still apply.
16697 The 'extern "C"' is for builds by C++ compilers;
16698 although this is not generally supported in C code supporting it here
16699 has little cost and some practical benefit (sr 110532). */
16700 #ifdef __cplusplus
16701 extern "C"
16702 #endif
16703 char pthread_join (void);
16704 int
16705 main (void)
16706 {
16707 return pthread_join ();
16708 ;
16709 return 0;
16710 }
16711 _ACEOF
16712 if ac_fn_c_try_link "$LINENO"
16713 then :
16714 ax_pthread_ok=yes
16715 fi
16716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16717 conftest$ac_exeext conftest.$ac_ext
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16719 printf "%s\n" "$ax_pthread_ok" >&6; }
16720 if test "x$ax_pthread_ok" = "xno"; then
16721 PTHREAD_LIBS=""
16722 PTHREAD_CFLAGS=""
16723 fi
16724 CC="$ax_pthread_save_CC"
16725 CFLAGS="$ax_pthread_save_CFLAGS"
16726 LIBS="$ax_pthread_save_LIBS"
16727 fi
16728
16729 # We must check for the threads library under a number of different
16730 # names; the ordering is very important because some systems
16731 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16732 # libraries is broken (non-POSIX).
16733
16734 # Create a list of thread flags to try. Items with a "," contain both
16735 # C compiler flags (before ",") and linker flags (after ","). Other items
16736 # starting with a "-" are C compiler flags, and remaining items are
16737 # library names, except for "none" which indicates that we try without
16738 # any flags at all, and "pthread-config" which is a program returning
16739 # the flags for the Pth emulation library.
16740
16741 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16742
16743 # The ordering *is* (sometimes) important. Some notes on the
16744 # individual items follow:
16745
16746 # pthreads: AIX (must check this before -lpthread)
16747 # none: in case threads are in libc; should be tried before -Kthread and
16748 # other compiler flags to prevent continual compiler warnings
16749 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16750 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
16751 # (Note: HP C rejects this with "bad form for `-t' option")
16752 # -pthreads: Solaris/gcc (Note: HP C also rejects)
16753 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16754 # doesn't hurt to check since this sometimes defines pthreads and
16755 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
16756 # is present but should not be used directly; and before -mthreads,
16757 # because the compiler interprets this as "-mt" + "-hreads")
16758 # -mthreads: Mingw32/gcc, Lynx/gcc
16759 # pthread: Linux, etcetera
16760 # --thread-safe: KAI C++
16761 # pthread-config: use pthread-config program (for GNU Pth library)
16762
16763 case $target_os in
16764
16765 freebsd*)
16766
16767 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16768 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16769
16770 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
16771 ;;
16772
16773 hpux*)
16774
16775 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
16776 # multi-threading and also sets -lpthread."
16777
16778 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
16779 ;;
16780
16781 openedition*)
16782
16783 # IBM z/OS requires a feature-test macro to be defined in order to
16784 # enable POSIX threads at all, so give the user a hint if this is
16785 # not set. (We don't define these ourselves, as they can affect
16786 # other portions of the system API in unpredictable ways.)
16787
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h. */
16790
16791 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
16792 AX_PTHREAD_ZOS_MISSING
16793 # endif
16794
16795 _ACEOF
16796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16797 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
16798 then :
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
16800 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
16801 fi
16802 rm -rf conftest*
16803
16804 ;;
16805
16806 solaris*)
16807
16808 # On Solaris (at least, for some versions), libc contains stubbed
16809 # (non-functional) versions of the pthreads routines, so link-based
16810 # tests will erroneously succeed. (N.B.: The stubs are missing
16811 # pthread_cleanup_push, or rather a function called by this macro,
16812 # so we could check for that, but who knows whether they'll stub
16813 # that too in a future libc.) So we'll check first for the
16814 # standard Solaris way of linking pthreads (-mt -lpthread).
16815
16816 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
16817 ;;
16818 esac
16819
16820 # Are we compiling with Clang?
16821
16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
16823 printf %s "checking whether $CC is Clang... " >&6; }
16824 if test ${ax_cv_PTHREAD_CLANG+y}
16825 then :
16826 printf %s "(cached) " >&6
16827 else case e in #(
16828 e) ax_cv_PTHREAD_CLANG=no
16829 # Note that Autoconf sets GCC=yes for Clang as well as GCC
16830 if test "x$GCC" = "xyes"; then
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
16834 # if defined(__clang__) && defined(__llvm__)
16835 AX_PTHREAD_CC_IS_CLANG
16836 # endif
16837
16838 _ACEOF
16839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16840 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
16841 then :
16842 ax_cv_PTHREAD_CLANG=yes
16843 fi
16844 rm -rf conftest*
16845
16846 fi
16847 ;;
16848 esac
16849 fi
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
16851 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
16852 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
16853
16854
16855 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
16856
16857 # Note that for GCC and Clang -pthread generally implies -lpthread,
16858 # except when -nostdlib is passed.
16859 # This is problematic using libtool to build C++ shared libraries with pthread:
16860 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
16861 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
16862 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
16863 # To solve this, first try -pthread together with -lpthread for GCC
16864
16865 if test "x$GCC" = "xyes"
16866 then :
16867 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
16868 fi
16869
16870 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
16871
16872 if test "x$ax_pthread_clang" = "xyes"
16873 then :
16874 ax_pthread_flags="-pthread,-lpthread -pthread"
16875 fi
16876
16877
16878 # The presence of a feature test macro requesting re-entrant function
16879 # definitions is, on some systems, a strong hint that pthreads support is
16880 # correctly enabled
16881
16882 case $target_os in
16883 darwin* | hpux* | linux* | osf* | solaris*)
16884 ax_pthread_check_macro="_REENTRANT"
16885 ;;
16886
16887 aix*)
16888 ax_pthread_check_macro="_THREAD_SAFE"
16889 ;;
16890
16891 *)
16892 ax_pthread_check_macro="--"
16893 ;;
16894 esac
16895 if test "x$ax_pthread_check_macro" = "x--"
16896 then :
16897 ax_pthread_check_cond=0
16898 else case e in #(
16899 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
16900 esac
16901 fi
16902
16903
16904 if test "x$ax_pthread_ok" = "xno"; then
16905 for ax_pthread_try_flag in $ax_pthread_flags; do
16906
16907 case $ax_pthread_try_flag in
16908 none)
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16910 printf %s "checking whether pthreads work without any flags... " >&6; }
16911 ;;
16912
16913 *,*)
16914 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
16915 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
16917 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
16918 ;;
16919
16920 -*)
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16922 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16923 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16924 ;;
16925
16926 pthread-config)
16927 # Extract the first word of "pthread-config", so it can be a program name with args.
16928 set dummy pthread-config; ac_word=$2
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 printf %s "checking for $ac_word... " >&6; }
16931 if test ${ac_cv_prog_ax_pthread_config+y}
16932 then :
16933 printf %s "(cached) " >&6
16934 else case e in #(
16935 e) if test -n "$ax_pthread_config"; then
16936 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16937 else
16938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 for as_dir in $PATH
16940 do
16941 IFS=$as_save_IFS
16942 case $as_dir in #(((
16943 '') as_dir=./ ;;
16944 */) ;;
16945 *) as_dir=$as_dir/ ;;
16946 esac
16947 for ac_exec_ext in '' $ac_executable_extensions; do
16948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16949 ac_cv_prog_ax_pthread_config="yes"
16950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16951 break 2
16952 fi
16953 done
16954 done
16955 IFS=$as_save_IFS
16956
16957 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16958 fi ;;
16959 esac
16960 fi
16961 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16962 if test -n "$ax_pthread_config"; then
16963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16964 printf "%s\n" "$ax_pthread_config" >&6; }
16965 else
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 printf "%s\n" "no" >&6; }
16968 fi
16969
16970
16971 if test "x$ax_pthread_config" = "xno"
16972 then :
16973 continue
16974 fi
16975 PTHREAD_CFLAGS="`pthread-config --cflags`"
16976 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16977 ;;
16978
16979 *)
16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16981 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16982 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16983 ;;
16984 esac
16985
16986 ax_pthread_save_CFLAGS="$CFLAGS"
16987 ax_pthread_save_LIBS="$LIBS"
16988 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16989 LIBS="$PTHREAD_LIBS $LIBS"
16990
16991 # Check for various functions. We must include pthread.h,
16992 # since some functions may be macros. (On the Sequent, we
16993 # need a special flag -Kthread to make this header compile.)
16994 # We check for pthread_join because it is in -lpthread on IRIX
16995 # while pthread_create is in libc. We check for pthread_attr_init
16996 # due to DEC craziness with -lpthreads. We check for
16997 # pthread_cleanup_push because it is one of the few pthread
16998 # functions on Solaris that doesn't have a non-functional libc stub.
16999 # We try pthread_create on general principles.
17000
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 #include <pthread.h>
17004 # if $ax_pthread_check_cond
17005 # error "$ax_pthread_check_macro must be defined"
17006 # endif
17007 static void *some_global = NULL;
17008 static void routine(void *a)
17009 {
17010 /* To avoid any unused-parameter or
17011 unused-but-set-parameter warning. */
17012 some_global = a;
17013 }
17014 static void *start_routine(void *a) { return a; }
17015 int
17016 main (void)
17017 {
17018 pthread_t th; pthread_attr_t attr;
17019 pthread_create(&th, 0, start_routine, 0);
17020 pthread_join(th, 0);
17021 pthread_attr_init(&attr);
17022 pthread_cleanup_push(routine, 0);
17023 pthread_cleanup_pop(0) /* ; */
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"
17029 then :
17030 ax_pthread_ok=yes
17031 fi
17032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17033 conftest$ac_exeext conftest.$ac_ext
17034
17035 CFLAGS="$ax_pthread_save_CFLAGS"
17036 LIBS="$ax_pthread_save_LIBS"
17037
17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17039 printf "%s\n" "$ax_pthread_ok" >&6; }
17040 if test "x$ax_pthread_ok" = "xyes"
17041 then :
17042 break
17043 fi
17044
17045 PTHREAD_LIBS=""
17046 PTHREAD_CFLAGS=""
17047 done
17048 fi
17049
17050
17051 # Clang needs special handling, because older versions handle the -pthread
17052 # option in a rather... idiosyncratic way
17053
17054 if test "x$ax_pthread_clang" = "xyes"; then
17055
17056 # Clang takes -pthread; it has never supported any other flag
17057
17058 # (Note 1: This will need to be revisited if a system that Clang
17059 # supports has POSIX threads in a separate library. This tends not
17060 # to be the way of modern systems, but it's conceivable.)
17061
17062 # (Note 2: On some systems, notably Darwin, -pthread is not needed
17063 # to get POSIX threads support; the API is always present and
17064 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
17065 # -pthread does define _REENTRANT, and while the Darwin headers
17066 # ignore this macro, third-party headers might not.)
17067
17068 # However, older versions of Clang make a point of warning the user
17069 # that, in an invocation where only linking and no compilation is
17070 # taking place, the -pthread option has no effect ("argument unused
17071 # during compilation"). They expect -pthread to be passed in only
17072 # when source code is being compiled.
17073 #
17074 # Problem is, this is at odds with the way Automake and most other
17075 # C build frameworks function, which is that the same flags used in
17076 # compilation (CFLAGS) are also used in linking. Many systems
17077 # supported by AX_PTHREAD require exactly this for POSIX threads
17078 # support, and in fact it is often not straightforward to specify a
17079 # flag that is used only in the compilation phase and not in
17080 # linking. Such a scenario is extremely rare in practice.
17081 #
17082 # Even though use of the -pthread flag in linking would only print
17083 # a warning, this can be a nuisance for well-run software projects
17084 # that build with -Werror. So if the active version of Clang has
17085 # this misfeature, we search for an option to squash it.
17086
17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
17088 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
17089 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
17090 then :
17091 printf %s "(cached) " >&6
17092 else case e in #(
17093 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
17094 # Create an alternate version of $ac_link that compiles and
17095 # links in two steps (.c -> .o, .o -> exe) instead of one
17096 # (.c -> exe), because the warning occurs only in the second
17097 # step
17098 ax_pthread_save_ac_link="$ac_link"
17099 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
17100 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
17101 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
17102 ax_pthread_save_CFLAGS="$CFLAGS"
17103 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
17104 if test "x$ax_pthread_try" = "xunknown"
17105 then :
17106 break
17107 fi
17108 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
17109 ac_link="$ax_pthread_save_ac_link"
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h. */
17112 int main(void){return 0;}
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"
17115 then :
17116 ac_link="$ax_pthread_2step_ac_link"
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17119 int main(void){return 0;}
17120 _ACEOF
17121 if ac_fn_c_try_link "$LINENO"
17122 then :
17123 break
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17126 conftest$ac_exeext conftest.$ac_ext
17127
17128 fi
17129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17130 conftest$ac_exeext conftest.$ac_ext
17131 done
17132 ac_link="$ax_pthread_save_ac_link"
17133 CFLAGS="$ax_pthread_save_CFLAGS"
17134 if test "x$ax_pthread_try" = "x"
17135 then :
17136 ax_pthread_try=no
17137 fi
17138 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
17139 ;;
17140 esac
17141 fi
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
17143 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
17144
17145 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
17146 no | unknown) ;;
17147 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
17148 esac
17149
17150 fi # $ax_pthread_clang = yes
17151
17152
17153
17154 # Various other checks:
17155 if test "x$ax_pthread_ok" = "xyes"; then
17156 ax_pthread_save_CFLAGS="$CFLAGS"
17157 ax_pthread_save_LIBS="$LIBS"
17158 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17159 LIBS="$PTHREAD_LIBS $LIBS"
17160
17161 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17163 printf %s "checking for joinable pthread attribute... " >&6; }
17164 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
17165 then :
17166 printf %s "(cached) " >&6
17167 else case e in #(
17168 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
17169 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172 #include <pthread.h>
17173 int
17174 main (void)
17175 {
17176 int attr = $ax_pthread_attr; return attr /* ; */
17177 ;
17178 return 0;
17179 }
17180 _ACEOF
17181 if ac_fn_c_try_link "$LINENO"
17182 then :
17183 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
17184 fi
17185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17186 conftest$ac_exeext conftest.$ac_ext
17187 done
17188 ;;
17189 esac
17190 fi
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
17192 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
17193 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
17194 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
17195 test "x$ax_pthread_joinable_attr_defined" != "xyes"
17196 then :
17197
17198 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
17199
17200 ax_pthread_joinable_attr_defined=yes
17201
17202 fi
17203
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
17205 printf %s "checking whether more special flags are required for pthreads... " >&6; }
17206 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
17207 then :
17208 printf %s "(cached) " >&6
17209 else case e in #(
17210 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
17211 case $target_os in
17212 solaris*)
17213 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
17214 ;;
17215 esac
17216 ;;
17217 esac
17218 fi
17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
17220 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
17221 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
17222 test "x$ax_pthread_special_flags_added" != "xyes"
17223 then :
17224 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
17225 ax_pthread_special_flags_added=yes
17226 fi
17227
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17229 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17230 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
17231 then :
17232 printf %s "(cached) " >&6
17233 else case e in #(
17234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236 #include <pthread.h>
17237 int
17238 main (void)
17239 {
17240 int i = PTHREAD_PRIO_INHERIT;
17241 return i;
17242 ;
17243 return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"
17247 then :
17248 ax_cv_PTHREAD_PRIO_INHERIT=yes
17249 else case e in #(
17250 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
17251 esac
17252 fi
17253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17254 conftest$ac_exeext conftest.$ac_ext
17255 ;;
17256 esac
17257 fi
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17259 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17260 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
17261 test "x$ax_pthread_prio_inherit_defined" != "xyes"
17262 then :
17263
17264 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17265
17266 ax_pthread_prio_inherit_defined=yes
17267
17268 fi
17269
17270 CFLAGS="$ax_pthread_save_CFLAGS"
17271 LIBS="$ax_pthread_save_LIBS"
17272
17273 # More AIX lossage: compile with *_r variant
17274 if test "x$GCC" != "xyes"; then
17275 case $target_os in
17276 aix*)
17277 case "x/$CC" in #(
17278 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17279 #handle absolute path differently from PATH based program lookup
17280 case "x$CC" in #(
17281 x/*) :
17282
17283 if as_fn_executable_p ${CC}_r
17284 then :
17285 PTHREAD_CC="${CC}_r"
17286 fi
17287 if test "x${CXX}" != "x"
17288 then :
17289 if as_fn_executable_p ${CXX}_r
17290 then :
17291 PTHREAD_CXX="${CXX}_r"
17292 fi
17293 fi
17294 ;; #(
17295 *) :
17296
17297 for ac_prog in ${CC}_r
17298 do
17299 # Extract the first word of "$ac_prog", so it can be a program name with args.
17300 set dummy $ac_prog; ac_word=$2
17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17302 printf %s "checking for $ac_word... " >&6; }
17303 if test ${ac_cv_prog_PTHREAD_CC+y}
17304 then :
17305 printf %s "(cached) " >&6
17306 else case e in #(
17307 e) if test -n "$PTHREAD_CC"; then
17308 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17309 else
17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17311 for as_dir in $PATH
17312 do
17313 IFS=$as_save_IFS
17314 case $as_dir in #(((
17315 '') as_dir=./ ;;
17316 */) ;;
17317 *) as_dir=$as_dir/ ;;
17318 esac
17319 for ac_exec_ext in '' $ac_executable_extensions; do
17320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17321 ac_cv_prog_PTHREAD_CC="$ac_prog"
17322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17323 break 2
17324 fi
17325 done
17326 done
17327 IFS=$as_save_IFS
17328
17329 fi ;;
17330 esac
17331 fi
17332 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17333 if test -n "$PTHREAD_CC"; then
17334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17335 printf "%s\n" "$PTHREAD_CC" >&6; }
17336 else
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338 printf "%s\n" "no" >&6; }
17339 fi
17340
17341
17342 test -n "$PTHREAD_CC" && break
17343 done
17344 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17345
17346 if test "x${CXX}" != "x"
17347 then :
17348 for ac_prog in ${CXX}_r
17349 do
17350 # Extract the first word of "$ac_prog", so it can be a program name with args.
17351 set dummy $ac_prog; ac_word=$2
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17353 printf %s "checking for $ac_word... " >&6; }
17354 if test ${ac_cv_prog_PTHREAD_CXX+y}
17355 then :
17356 printf %s "(cached) " >&6
17357 else case e in #(
17358 e) if test -n "$PTHREAD_CXX"; then
17359 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
17360 else
17361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17362 for as_dir in $PATH
17363 do
17364 IFS=$as_save_IFS
17365 case $as_dir in #(((
17366 '') as_dir=./ ;;
17367 */) ;;
17368 *) as_dir=$as_dir/ ;;
17369 esac
17370 for ac_exec_ext in '' $ac_executable_extensions; do
17371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17372 ac_cv_prog_PTHREAD_CXX="$ac_prog"
17373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17374 break 2
17375 fi
17376 done
17377 done
17378 IFS=$as_save_IFS
17379
17380 fi ;;
17381 esac
17382 fi
17383 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
17384 if test -n "$PTHREAD_CXX"; then
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
17386 printf "%s\n" "$PTHREAD_CXX" >&6; }
17387 else
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 printf "%s\n" "no" >&6; }
17390 fi
17391
17392
17393 test -n "$PTHREAD_CXX" && break
17394 done
17395 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
17396
17397 fi
17398
17399 ;;
17400 esac
17401 ;; #(
17402 *) :
17403 ;;
17404 esac
17405 ;;
17406 esac
17407 fi
17408 fi
17409
17410 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17411 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
17412
17413
17414
17415
17416
17417
17418 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17419 if test "x$ax_pthread_ok" = "xyes"; then
17420 have_pthread=yes
17421 :
17422 else
17423 ax_pthread_ok=no
17424 have_pthread=no
17425 fi
17426 ac_ext=c
17427 ac_cpp='$CPP $CPPFLAGS'
17428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431
17432
17433
17434 # Check for Python and docwriter
17435 PYTHON_MIN_VERSION=3.5
17436 have_py3=no
17437 have_docwriter=no
17438 PIP=pip
17439
17440 for ac_prog in python3 python
17441 do
17442 # Extract the first word of "$ac_prog", so it can be a program name with args.
17443 set dummy $ac_prog; ac_word=$2
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17445 printf %s "checking for $ac_word... " >&6; }
17446 if test ${ac_cv_prog_PYTHON+y}
17447 then :
17448 printf %s "(cached) " >&6
17449 else case e in #(
17450 e) if test -n "$PYTHON"; then
17451 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
17452 else
17453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17454 for as_dir in $PATH
17455 do
17456 IFS=$as_save_IFS
17457 case $as_dir in #(((
17458 '') as_dir=./ ;;
17459 */) ;;
17460 *) as_dir=$as_dir/ ;;
17461 esac
17462 for ac_exec_ext in '' $ac_executable_extensions; do
17463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17464 ac_cv_prog_PYTHON="$ac_prog"
17465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17466 break 2
17467 fi
17468 done
17469 done
17470 IFS=$as_save_IFS
17471
17472 fi ;;
17473 esac
17474 fi
17475 PYTHON=$ac_cv_prog_PYTHON
17476 if test -n "$PYTHON"; then
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17478 printf "%s\n" "$PYTHON" >&6; }
17479 else
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17481 printf "%s\n" "no" >&6; }
17482 fi
17483
17484
17485 test -n "$PYTHON" && break
17486 done
17487 test -n "$PYTHON" || PYTHON="missing"
17488
17489 if test "x$PYTHON" != "xmissing"; then
17490
17491
17492
17493
17494 if test -n "$PYTHON"
17495 then :
17496
17497 ax_python_version="$PYTHON_MIN_VERSION"
17498
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
17500 printf %s "checking for python version... " >&6; }
17501
17502 python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
17503
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
17505 printf "%s\n" "$python_version" >&6; }
17506
17507 PYTHON_VERSION=$python_version
17508
17509
17510
17511
17512
17513 # Used to indicate true or false condition
17514 ax_compare_version=false
17515
17516 # Convert the two version strings to be compared into a format that
17517 # allows a simple string comparison. The end result is that a version
17518 # string of the form 1.12.5-r617 will be converted to the form
17519 # 0001001200050617. In other words, each number is zero padded to four
17520 # digits, and non digits are removed.
17521
17522 ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17523 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17524 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17525 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17526 -e 's/[^0-9]//g'`
17527
17528
17529 ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17530 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17531 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17532 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17533 -e 's/[^0-9]//g'`
17534
17535
17536 ax_compare_version=`echo "x$ax_compare_version_A
17537 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17538
17539
17540
17541 if test "$ax_compare_version" = "true" ; then
17542
17543 :
17544 have_py3=yes
17545
17546 else
17547 :
17548
17549
17550 fi
17551
17552
17553 else case e in #(
17554 e)
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
17556 printf "%s\n" "$as_me: WARNING: could not find the python interpreter" >&2;}
17557
17558 ;;
17559 esac
17560 fi
17561
17562
17563 if test "x$have_py3" = "xyes"; then
17564 PIP="$PYTHON -m $PIP"
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
17566 printf %s "checking for \`docwriter' Python module... " >&6; }
17567 $PYTHON -m docwriter -h > /dev/null 2>&1
17568 if test "x$?" = "x0"; then
17569 have_docwriter=yes
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571 printf "%s\n" "yes" >&6; }
17572 else
17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17574 printf "%s\n" "no" >&6; }
17575 fi
17576 fi
17577 fi
17578
17579
17580 # entries in Requires.private are separated by commas
17581 PKGCONFIG_REQUIRES_PRIVATE="$zlib_reqpriv, \
17582 $bzip2_reqpriv, \
17583 $libpng_reqpriv, \
17584 $harfbuzz_reqpriv, \
17585 $brotli_reqpriv"
17586 # beautify
17587 PKGCONFIG_REQUIRES_PRIVATE=`echo "$PKGCONFIG_REQUIRES_PRIVATE" \
17588 | sed -e 's/^ *//' \
17589 -e 's/ *$//' \
17590 -e 's/, */,/g' \
17591 -e 's/,,*/,/g' \
17592 -e 's/^,*//' \
17593 -e 's/,*$//' \
17594 -e 's/,/, /g'`
17595
17596 PKGCONFIG_LIBS_PRIVATE="$zlib_libspriv \
17597 $bzip2_libspriv \
17598 $libpng_libspriv \
17599 $harfbuzz_libspriv \
17600 $brotli_libspriv \
17601 $ft2_extra_libs"
17602 # beautify
17603 PKGCONFIG_LIBS_PRIVATE=`echo "$PKGCONFIG_LIBS_PRIVATE" \
17604 | sed -e 's/^ *//' \
17605 -e 's/ *$//' \
17606 -e 's/ */ /g'`
17607
17608 LIBSSTATIC_CONFIG="-lfreetype \
17609 $zlib_libsstaticconf \
17610 $bzip2_libsstaticconf \
17611 $libpng_libsstaticconf \
17612 $harfbuzz_libsstaticconf \
17613 $brotli_libsstaticconf \
17614 $ft2_extra_libs"
17615 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
17616 # on if necessary; also beautify
17617 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG" \
17618 | sed -e 's|-L */usr/lib64/* | |g' \
17619 -e 's|-L */usr/lib/* | |g' \
17620 -e 's/^ *//' \
17621 -e 's/ *$//' \
17622 -e 's/ */ /g'`
17623
17624 # If FreeType gets installed with `--disable-shared', don't use
17625 # 'private' fields. `pkg-config' only looks into `.pc' files and is
17626 # completely agnostic to whether shared libraries are actually present
17627 # or not. As a consequence, the user had to specify `--static' while
17628 # calling `pkg-config', which configure scripts are normally not
17629 # prepared for.
17630
17631 PKGCONFIG_REQUIRES=
17632 PKGCONFIG_LIBS='-L${libdir} -lfreetype'
17633
17634 if test $enable_shared = "no"; then
17635 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES $PKGCONFIG_REQUIRES_PRIVATE"
17636 PKGCONFIG_REQUIRES_PRIVATE=
17637 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_PRIVATE"
17638 PKGCONFIG_LIBS_PRIVATE=
17639 fi
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653 # We cannot use alternation (`\|`) in the `sed` regexp since it is not
17654 # portable.
17655
17656 ftoption_set()
17657 {
17658 regexp="-e \\\"s|.*#.*def.*$1 .*|#define $1|\\\" \
17659 -e \\\"s|.*#.*def.*$1\$|#define $1|\\\""
17660 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
17661 }
17662
17663 ftoption_unset()
17664 {
17665 regexp="-e \\\"s|.*#.*def.*$1 .*|/* #undef $1 */|\\\" \
17666 -e \\\"s|.*#.*def.*$1\$|/* #undef $1 */|\\\""
17667 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
17668 }
17669
17670 # Changing the `LDFLAGS` value should only be done after the
17671 # `lt_cv_prog_compiler_static_works` test.
17672
17673 if test "$have_zlib" != no; then
17674 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
17675 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
17676 ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
17677 else
17678 ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
17679 fi
17680 if test "$have_bzip2" != no; then
17681 CFLAGS="$CFLAGS $BZIP2_CFLAGS"
17682 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
17683 ftoption_set FT_CONFIG_OPTION_USE_BZIP2
17684 else
17685 ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
17686 fi
17687 if test "$have_libpng" != no; then
17688 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
17689 LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
17690 ftoption_set FT_CONFIG_OPTION_USE_PNG
17691 else
17692 ftoption_unset FT_CONFIG_OPTION_USE_PNG
17693 fi
17694 if test "$have_harfbuzz" != no; then
17695 CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
17696 LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
17697 ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
17698 else
17699 ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
17700 fi
17701 if test "$have_harfbuzz_dynamic" != no; then
17702 ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC
17703 else
17704 ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC
17705 fi
17706 if test "$have_brotli" != no; then
17707 CFLAGS="$CFLAGS $BROTLI_CFLAGS"
17708 LDFLAGS="$LDFLAGS $BROTLI_LIBS"
17709 ftoption_set FT_CONFIG_OPTION_USE_BROTLI
17710 else
17711 ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
17712 fi
17713
17714 if test "$have_pthread" != no; then
17715 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17716 LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
17717 fi
17718
17719
17720
17721
17722 # We don't want to use a template file for `ftoption.h', since compilation
17723 # should work without calling a configure script also. For this reason, we
17724 # copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
17725 # directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
17726 # constructed $FTOPTION_H_SED regexp (using the post-action of
17727 # `AC_CONFIG_FILES'); this is also the version that gets installed later on.
17728 #
17729 ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
17730
17731
17732 ac_config_headers="$ac_config_headers ftconfig.h"
17733
17734
17735 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
17736 # and `builds/unix/unix-cc.mk' that will be used by the build system
17737 #
17738 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
17739
17740
17741 cat >confcache <<\_ACEOF
17742 # This file is a shell script that caches the results of configure
17743 # tests run on this system so they can be shared between configure
17744 # scripts and configure runs, see configure's option --config-cache.
17745 # It is not useful on other systems. If it contains results you don't
17746 # want to keep, you may remove or edit it.
17747 #
17748 # config.status only pays attention to the cache file if you give it
17749 # the --recheck option to rerun configure.
17750 #
17751 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17752 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17753 # following values.
17754
17755 _ACEOF
17756
17757 # The following way of writing the cache mishandles newlines in values,
17758 # but we know of no workaround that is simple, portable, and efficient.
17759 # So, we kill variables containing newlines.
17760 # Ultrix sh set writes to stderr and can't be redirected directly,
17761 # and sets the high bit in the cache file unless we assign to the vars.
17762 (
17763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17764 eval ac_val=\$$ac_var
17765 case $ac_val in #(
17766 *${as_nl}*)
17767 case $ac_var in #(
17768 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17769 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17770 esac
17771 case $ac_var in #(
17772 _ | IFS | as_nl) ;; #(
17773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17774 *) { eval $ac_var=; unset $ac_var;} ;;
17775 esac ;;
17776 esac
17777 done
17778
17779 (set) 2>&1 |
17780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17781 *${as_nl}ac_space=\ *)
17782 # 'set' does not quote correctly, so add quotes: double-quote
17783 # substitution turns \\\\ into \\, and sed turns \\ into \.
17784 sed -n \
17785 "s/'/'\\\\''/g;
17786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17787 ;; #(
17788 *)
17789 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17791 ;;
17792 esac |
17793 sort
17794 ) |
17795 sed '
17796 /^ac_cv_env_/b end
17797 t clear
17798 :clear
17799 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17800 t end
17801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17802 :end' >>confcache
17803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17804 if test -w "$cache_file"; then
17805 if test "x$cache_file" != "x/dev/null"; then
17806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17807 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17808 if test ! -f "$cache_file" || test -h "$cache_file"; then
17809 cat confcache >"$cache_file"
17810 else
17811 case $cache_file in #(
17812 */* | ?:*)
17813 mv -f confcache "$cache_file"$$ &&
17814 mv -f "$cache_file"$$ "$cache_file" ;; #(
17815 *)
17816 mv -f confcache "$cache_file" ;;
17817 esac
17818 fi
17819 fi
17820 else
17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17822 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17823 fi
17824 fi
17825 rm -f confcache
17826
17827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17828 # Let make expand exec_prefix.
17829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17830
17831 DEFS=-DHAVE_CONFIG_H
17832
17833 ac_libobjs=
17834 ac_ltlibobjs=
17835 U=
17836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17837 # 1. Remove the extension, and $U if already installed.
17838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17839 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17841 # will be set to the directory where LIBOBJS objects are built.
17842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17844 done
17845 LIBOBJS=$ac_libobjs
17846
17847 LTLIBOBJS=$ac_ltlibobjs
17848
17849
17850 # Check whether --enable-year2038 was given.
17851 if test ${enable_year2038+y}
17852 then :
17853 enableval=$enable_year2038;
17854 fi
17855
17856
17857 : "${CONFIG_STATUS=./config.status}"
17858 ac_write_fail=0
17859 ac_clean_files_save=$ac_clean_files
17860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17862 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17863 as_write_fail=0
17864 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17865 #! $SHELL
17866 # Generated by $as_me.
17867 # Run this file to recreate the current configuration.
17868 # Compiler output produced by configure, useful for debugging
17869 # configure, is in config.log if it exists.
17870
17871 debug=false
17872 ac_cs_recheck=false
17873 ac_cs_silent=false
17874
17875 SHELL=\${CONFIG_SHELL-$SHELL}
17876 export SHELL
17877 _ASEOF
17878 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17879 ## -------------------- ##
17880 ## M4sh Initialization. ##
17881 ## -------------------- ##
17882
17883 # Be more Bourne compatible
17884 DUALCASE=1; export DUALCASE # for MKS sh
17885 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17886 then :
17887 emulate sh
17888 NULLCMD=:
17889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17890 # is contrary to our usage. Disable this feature.
17891 alias -g '${1+"$@"}'='"$@"'
17892 setopt NO_GLOB_SUBST
17893 else case e in #(
17894 e) case `(set -o) 2>/dev/null` in #(
17895 *posix*) :
17896 set -o posix ;; #(
17897 *) :
17898 ;;
17899 esac ;;
17900 esac
17901 fi
17902
17903
17904
17905 # Reset variables that may have inherited troublesome values from
17906 # the environment.
17907
17908 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17909 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17910 # side effect of setting IFS to empty, thus disabling word splitting.)
17911 # Quoting is to prevent editors from complaining about space-tab.
17912 as_nl='
17913 '
17914 export as_nl
17915 IFS=" "" $as_nl"
17916
17917 PS1='$ '
17918 PS2='> '
17919 PS4='+ '
17920
17921 # Ensure predictable behavior from utilities with locale-dependent output.
17922 LC_ALL=C
17923 export LC_ALL
17924 LANGUAGE=C
17925 export LANGUAGE
17926
17927 # We cannot yet rely on "unset" to work, but we need these variables
17928 # to be unset--not just set to an empty or harmless value--now, to
17929 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17930 # also avoids known problems related to "unset" and subshell syntax
17931 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17932 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17933 do eval test \${$as_var+y} \
17934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17935 done
17936
17937 # Ensure that fds 0, 1, and 2 are open.
17938 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17939 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17940 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17941
17942 # The user is always right.
17943 if ${PATH_SEPARATOR+false} :; then
17944 PATH_SEPARATOR=:
17945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17947 PATH_SEPARATOR=';'
17948 }
17949 fi
17950
17951
17952 # Find who we are. Look in the path if we contain no directory separator.
17953 as_myself=
17954 case $0 in #((
17955 *[\\/]* ) as_myself=$0 ;;
17956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17957 for as_dir in $PATH
17958 do
17959 IFS=$as_save_IFS
17960 case $as_dir in #(((
17961 '') as_dir=./ ;;
17962 */) ;;
17963 *) as_dir=$as_dir/ ;;
17964 esac
17965 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17966 done
17967 IFS=$as_save_IFS
17968
17969 ;;
17970 esac
17971 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17972 # in which case we are not to be found in the path.
17973 if test "x$as_myself" = x; then
17974 as_myself=$0
17975 fi
17976 if test ! -f "$as_myself"; then
17977 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17978 exit 1
17979 fi
17980
17981
17982
17983 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17984 # ----------------------------------------
17985 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17986 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17987 # script with STATUS, using 1 if that was 0.
17988 as_fn_error ()
17989 {
17990 as_status=$1; test $as_status -eq 0 && as_status=1
17991 if test "$4"; then
17992 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17994 fi
17995 printf "%s\n" "$as_me: error: $2" >&2
17996 as_fn_exit $as_status
17997 } # as_fn_error
17998
17999
18000 # as_fn_set_status STATUS
18001 # -----------------------
18002 # Set $? to STATUS, without forking.
18003 as_fn_set_status ()
18004 {
18005 return $1
18006 } # as_fn_set_status
18007
18008 # as_fn_exit STATUS
18009 # -----------------
18010 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18011 as_fn_exit ()
18012 {
18013 set +e
18014 as_fn_set_status $1
18015 exit $1
18016 } # as_fn_exit
18017
18018 # as_fn_unset VAR
18019 # ---------------
18020 # Portably unset VAR.
18021 as_fn_unset ()
18022 {
18023 { eval $1=; unset $1;}
18024 }
18025 as_unset=as_fn_unset
18026
18027 # as_fn_append VAR VALUE
18028 # ----------------------
18029 # Append the text in VALUE to the end of the definition contained in VAR. Take
18030 # advantage of any shell optimizations that allow amortized linear growth over
18031 # repeated appends, instead of the typical quadratic growth present in naive
18032 # implementations.
18033 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18034 then :
18035 eval 'as_fn_append ()
18036 {
18037 eval $1+=\$2
18038 }'
18039 else case e in #(
18040 e) as_fn_append ()
18041 {
18042 eval $1=\$$1\$2
18043 } ;;
18044 esac
18045 fi # as_fn_append
18046
18047 # as_fn_arith ARG...
18048 # ------------------
18049 # Perform arithmetic evaluation on the ARGs, and store the result in the
18050 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18051 # must be portable across $(()) and expr.
18052 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18053 then :
18054 eval 'as_fn_arith ()
18055 {
18056 as_val=$(( $* ))
18057 }'
18058 else case e in #(
18059 e) as_fn_arith ()
18060 {
18061 as_val=`expr "$@" || test $? -eq 1`
18062 } ;;
18063 esac
18064 fi # as_fn_arith
18065
18066
18067 if expr a : '\(a\)' >/dev/null 2>&1 &&
18068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18069 as_expr=expr
18070 else
18071 as_expr=false
18072 fi
18073
18074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18075 as_basename=basename
18076 else
18077 as_basename=false
18078 fi
18079
18080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18081 as_dirname=dirname
18082 else
18083 as_dirname=false
18084 fi
18085
18086 as_me=`$as_basename -- "$0" ||
18087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18088 X"$0" : 'X\(//\)$' \| \
18089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18090 printf "%s\n" X/"$0" |
18091 sed '/^.*\/\([^/][^/]*\)\/*$/{
18092 s//\1/
18093 q
18094 }
18095 /^X\/\(\/\/\)$/{
18096 s//\1/
18097 q
18098 }
18099 /^X\/\(\/\).*/{
18100 s//\1/
18101 q
18102 }
18103 s/.*/./; q'`
18104
18105 # Avoid depending upon Character Ranges.
18106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18109 as_cr_digits='0123456789'
18110 as_cr_alnum=$as_cr_Letters$as_cr_digits
18111
18112
18113 # Determine whether it's possible to make 'echo' print without a newline.
18114 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18115 # for compatibility with existing Makefiles.
18116 ECHO_C= ECHO_N= ECHO_T=
18117 case `echo -n x` in #(((((
18118 -n*)
18119 case `echo 'xy\c'` in
18120 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18121 xy) ECHO_C='\c';;
18122 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18123 ECHO_T=' ';;
18124 esac;;
18125 *)
18126 ECHO_N='-n';;
18127 esac
18128
18129 # For backward compatibility with old third-party macros, we provide
18130 # the shell variables $as_echo and $as_echo_n. New code should use
18131 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18132 as_echo='printf %s\n'
18133 as_echo_n='printf %s'
18134
18135 rm -f conf$$ conf$$.exe conf$$.file
18136 if test -d conf$$.dir; then
18137 rm -f conf$$.dir/conf$$.file
18138 else
18139 rm -f conf$$.dir
18140 mkdir conf$$.dir 2>/dev/null
18141 fi
18142 if (echo >conf$$.file) 2>/dev/null; then
18143 if ln -s conf$$.file conf$$ 2>/dev/null; then
18144 as_ln_s='ln -s'
18145 # ... but there are two gotchas:
18146 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18147 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18148 # In both cases, we have to default to 'cp -pR'.
18149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18150 as_ln_s='cp -pR'
18151 elif ln conf$$.file conf$$ 2>/dev/null; then
18152 as_ln_s=ln
18153 else
18154 as_ln_s='cp -pR'
18155 fi
18156 else
18157 as_ln_s='cp -pR'
18158 fi
18159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18160 rmdir conf$$.dir 2>/dev/null
18161
18162
18163 # as_fn_mkdir_p
18164 # -------------
18165 # Create "$as_dir" as a directory, including parents if necessary.
18166 as_fn_mkdir_p ()
18167 {
18168
18169 case $as_dir in #(
18170 -*) as_dir=./$as_dir;;
18171 esac
18172 test -d "$as_dir" || eval $as_mkdir_p || {
18173 as_dirs=
18174 while :; do
18175 case $as_dir in #(
18176 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18177 *) as_qdir=$as_dir;;
18178 esac
18179 as_dirs="'$as_qdir' $as_dirs"
18180 as_dir=`$as_dirname -- "$as_dir" ||
18181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18182 X"$as_dir" : 'X\(//\)[^/]' \| \
18183 X"$as_dir" : 'X\(//\)$' \| \
18184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18185 printf "%s\n" X"$as_dir" |
18186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18187 s//\1/
18188 q
18189 }
18190 /^X\(\/\/\)[^/].*/{
18191 s//\1/
18192 q
18193 }
18194 /^X\(\/\/\)$/{
18195 s//\1/
18196 q
18197 }
18198 /^X\(\/\).*/{
18199 s//\1/
18200 q
18201 }
18202 s/.*/./; q'`
18203 test -d "$as_dir" && break
18204 done
18205 test -z "$as_dirs" || eval "mkdir $as_dirs"
18206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18207
18208
18209 } # as_fn_mkdir_p
18210 if mkdir -p . 2>/dev/null; then
18211 as_mkdir_p='mkdir -p "$as_dir"'
18212 else
18213 test -d ./-p && rmdir ./-p
18214 as_mkdir_p=false
18215 fi
18216
18217
18218 # as_fn_executable_p FILE
18219 # -----------------------
18220 # Test if FILE is an executable regular file.
18221 as_fn_executable_p ()
18222 {
18223 test -f "$1" && test -x "$1"
18224 } # as_fn_executable_p
18225 as_test_x='test -x'
18226 as_executable_p=as_fn_executable_p
18227
18228 # Sed expression to map a string onto a valid CPP name.
18229 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18230 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18231
18232 # Sed expression to map a string onto a valid variable name.
18233 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18234 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18235
18236
18237 exec 6>&1
18238 ## ----------------------------------- ##
18239 ## Main body of $CONFIG_STATUS script. ##
18240 ## ----------------------------------- ##
18241 _ASEOF
18242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18243
18244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18245 # Save the log message, to keep $0 and so on meaningful, and to
18246 # report actual input values of CONFIG_FILES etc. instead of their
18247 # values after options handling.
18248 ac_log="
18249 This file was extended by FreeType $as_me 2.14.3, which was
18250 generated by GNU Autoconf 2.72. Invocation command line was
18251
18252 CONFIG_FILES = $CONFIG_FILES
18253 CONFIG_HEADERS = $CONFIG_HEADERS
18254 CONFIG_LINKS = $CONFIG_LINKS
18255 CONFIG_COMMANDS = $CONFIG_COMMANDS
18256 $ $0 $@
18257
18258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18259 "
18260
18261 _ACEOF
18262
18263 case $ac_config_files in *"
18264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18265 esac
18266
18267 case $ac_config_headers in *"
18268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18269 esac
18270
18271
18272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18273 # Files that config.status was made for.
18274 config_files="$ac_config_files"
18275 config_headers="$ac_config_headers"
18276 config_commands="$ac_config_commands"
18277
18278 _ACEOF
18279
18280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18281 ac_cs_usage="\
18282 '$as_me' instantiates files and other configuration actions
18283 from templates according to the current configuration. Unless the files
18284 and actions are specified as TAGs, all are instantiated by default.
18285
18286 Usage: $0 [OPTION]... [TAG]...
18287
18288 -h, --help print this help, then exit
18289 -V, --version print version number and configuration settings, then exit
18290 --config print configuration, then exit
18291 -q, --quiet, --silent
18292 do not print progress messages
18293 -d, --debug don't remove temporary files
18294 --recheck update $as_me by reconfiguring in the same conditions
18295 --file=FILE[:TEMPLATE]
18296 instantiate the configuration file FILE
18297 --header=FILE[:TEMPLATE]
18298 instantiate the configuration header FILE
18299
18300 Configuration files:
18301 $config_files
18302
18303 Configuration headers:
18304 $config_headers
18305
18306 Configuration commands:
18307 $config_commands
18308
18309 Report bugs to <[email protected]>."
18310
18311 _ACEOF
18312 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18313 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 ac_cs_config='$ac_cs_config_escaped'
18316 ac_cs_version="\\
18317 FreeType config.status 2.14.3
18318 configured by $0, generated by GNU Autoconf 2.72,
18319 with options \\"\$ac_cs_config\\"
18320
18321 Copyright (C) 2023 Free Software Foundation, Inc.
18322 This config.status script is free software; the Free Software Foundation
18323 gives unlimited permission to copy, distribute and modify it."
18324
18325 ac_pwd='$ac_pwd'
18326 srcdir='$srcdir'
18327 INSTALL='$INSTALL'
18328 MKDIR_P='$MKDIR_P'
18329 AWK='$AWK'
18330 test -n "\$AWK" || AWK=awk
18331 _ACEOF
18332
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 # The default lists apply if the user does not specify any file.
18335 ac_need_defaults=:
18336 while test $# != 0
18337 do
18338 case $1 in
18339 --*=?*)
18340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18342 ac_shift=:
18343 ;;
18344 --*=)
18345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18346 ac_optarg=
18347 ac_shift=:
18348 ;;
18349 *)
18350 ac_option=$1
18351 ac_optarg=$2
18352 ac_shift=shift
18353 ;;
18354 esac
18355
18356 case $ac_option in
18357 # Handling of the options.
18358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18359 ac_cs_recheck=: ;;
18360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18361 printf "%s\n" "$ac_cs_version"; exit ;;
18362 --config | --confi | --conf | --con | --co | --c )
18363 printf "%s\n" "$ac_cs_config"; exit ;;
18364 --debug | --debu | --deb | --de | --d | -d )
18365 debug=: ;;
18366 --file | --fil | --fi | --f )
18367 $ac_shift
18368 case $ac_optarg in
18369 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18370 '') as_fn_error $? "missing file argument" ;;
18371 esac
18372 as_fn_append CONFIG_FILES " '$ac_optarg'"
18373 ac_need_defaults=false;;
18374 --header | --heade | --head | --hea )
18375 $ac_shift
18376 case $ac_optarg in
18377 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18378 esac
18379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18380 ac_need_defaults=false;;
18381 --he | --h)
18382 # Conflict between --help and --header
18383 as_fn_error $? "ambiguous option: '$1'
18384 Try '$0 --help' for more information.";;
18385 --help | --hel | -h )
18386 printf "%s\n" "$ac_cs_usage"; exit ;;
18387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18389 ac_cs_silent=: ;;
18390
18391 # This is an error.
18392 -*) as_fn_error $? "unrecognized option: '$1'
18393 Try '$0 --help' for more information." ;;
18394
18395 *) as_fn_append ac_config_targets " $1"
18396 ac_need_defaults=false ;;
18397
18398 esac
18399 shift
18400 done
18401
18402 ac_configure_extra_args=
18403
18404 if $ac_cs_silent; then
18405 exec 6>/dev/null
18406 ac_configure_extra_args="$ac_configure_extra_args --silent"
18407 fi
18408
18409 _ACEOF
18410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18411 if \$ac_cs_recheck; then
18412 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18413 shift
18414 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18415 CONFIG_SHELL='$SHELL'
18416 export CONFIG_SHELL
18417 exec "\$@"
18418 fi
18419
18420 _ACEOF
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 exec 5>>config.log
18423 {
18424 echo
18425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18426 ## Running $as_me. ##
18427 _ASBOX
18428 printf "%s\n" "$ac_log"
18429 } >&5
18430
18431 _ACEOF
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433 #
18434 # INIT-COMMANDS
18435 #
18436
18437
18438 # The HP-UX ksh and POSIX shell print the target directory to stdout
18439 # if CDPATH is set.
18440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18441
18442 sed_quote_subst='$sed_quote_subst'
18443 double_quote_subst='$double_quote_subst'
18444 delay_variable_subst='$delay_variable_subst'
18445 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18446 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18447 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18448 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18451 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18454 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18455 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18456 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18457 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18478 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18479 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18480 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18481 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18482 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18483 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18484 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18485 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18486 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18487 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18488 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18489 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18490 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18491 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18506 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"`'
18507 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18508 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18509 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18510 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18511 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18512 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18513 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18514 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18515 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18516 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18517 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18518 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18519 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18520 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18521 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18522 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18523 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18524 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18525 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18526 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18527 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18528 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18529 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18530 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18531 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18532 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18533 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18534 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18535 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18536 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18537 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18538 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18539 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18540 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18541 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18542 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18543 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18544 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18545 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18546 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18547 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18548 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18549 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18550 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18551 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18552 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18553 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18554 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18555 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18556 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18557 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18558 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18559 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18560 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18561 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18562 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18563 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18564 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18565 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18566 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18567 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18568 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18569 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18570 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18571 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18572 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18573 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18574 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18575 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18576 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18577 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18578 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18579 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18580 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18581 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18582 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18583 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
18584 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
18585 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
18586 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18587 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
18588 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
18589 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
18590 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
18591 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
18592 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
18593 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
18594 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
18595 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
18596 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18597 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18598 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
18599 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
18600 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
18601 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18602 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18603 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
18604 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18605 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
18606 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18607 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18608 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18609 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
18610 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
18611 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
18612 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
18613 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
18614 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
18615 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
18616 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
18617 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
18618 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
18619 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18620 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18621 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18622 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18623 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
18624 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
18625
18626 LTCC='$LTCC'
18627 LTCFLAGS='$LTCFLAGS'
18628 compiler='$compiler_DEFAULT'
18629
18630 # A function that is used when there is no print builtin or printf.
18631 func_fallback_echo ()
18632 {
18633 eval 'cat <<_LTECHO_EOF
18634 \$1
18635 _LTECHO_EOF'
18636 }
18637
18638 # Quote evaled strings.
18639 for var in AS \
18640 DLLTOOL \
18641 OBJDUMP \
18642 SHELL \
18643 ECHO \
18644 PATH_SEPARATOR \
18645 SED \
18646 GREP \
18647 EGREP \
18648 FGREP \
18649 LD \
18650 NM \
18651 LN_S \
18652 lt_SP2NL \
18653 lt_NL2SP \
18654 reload_flag \
18655 FILECMD \
18656 deplibs_check_method \
18657 file_magic_cmd \
18658 file_magic_glob \
18659 want_nocaseglob \
18660 sharedlib_from_linklib_cmd \
18661 AR \
18662 archiver_list_spec \
18663 STRIP \
18664 RANLIB \
18665 CC \
18666 CFLAGS \
18667 compiler \
18668 lt_cv_sys_global_symbol_pipe \
18669 lt_cv_sys_global_symbol_to_cdecl \
18670 lt_cv_sys_global_symbol_to_import \
18671 lt_cv_sys_global_symbol_to_c_name_address \
18672 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18673 lt_cv_nm_interface \
18674 nm_file_list_spec \
18675 lt_cv_truncate_bin \
18676 lt_prog_compiler_no_builtin_flag \
18677 lt_prog_compiler_pic \
18678 lt_prog_compiler_wl \
18679 lt_prog_compiler_static \
18680 lt_cv_prog_compiler_c_o \
18681 need_locks \
18682 MANIFEST_TOOL \
18683 DSYMUTIL \
18684 NMEDIT \
18685 LIPO \
18686 OTOOL \
18687 OTOOL64 \
18688 shrext_cmds \
18689 export_dynamic_flag_spec \
18690 whole_archive_flag_spec \
18691 compiler_needs_object \
18692 with_gnu_ld \
18693 allow_undefined_flag \
18694 no_undefined_flag \
18695 hardcode_libdir_flag_spec \
18696 hardcode_libdir_separator \
18697 exclude_expsyms \
18698 include_expsyms \
18699 file_list_spec \
18700 variables_saved_for_relink \
18701 libname_spec \
18702 library_names_spec \
18703 soname_spec \
18704 install_override_mode \
18705 finish_eval \
18706 old_striplib \
18707 striplib \
18708 LD_RC \
18709 reload_flag_RC \
18710 compiler_RC \
18711 lt_prog_compiler_no_builtin_flag_RC \
18712 lt_prog_compiler_pic_RC \
18713 lt_prog_compiler_wl_RC \
18714 lt_prog_compiler_static_RC \
18715 lt_cv_prog_compiler_c_o_RC \
18716 export_dynamic_flag_spec_RC \
18717 whole_archive_flag_spec_RC \
18718 compiler_needs_object_RC \
18719 with_gnu_ld_RC \
18720 allow_undefined_flag_RC \
18721 no_undefined_flag_RC \
18722 hardcode_libdir_flag_spec_RC \
18723 hardcode_libdir_separator_RC \
18724 exclude_expsyms_RC \
18725 include_expsyms_RC \
18726 file_list_spec_RC; do
18727 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18728 *[\\\\\\\`\\"\\\$]*)
18729 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18730 ;;
18731 *)
18732 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18733 ;;
18734 esac
18735 done
18736
18737 # Double-quote double-evaled strings.
18738 for var in reload_cmds \
18739 old_postinstall_cmds \
18740 old_postuninstall_cmds \
18741 old_archive_cmds \
18742 extract_expsyms_cmds \
18743 old_archive_from_new_cmds \
18744 old_archive_from_expsyms_cmds \
18745 archive_cmds \
18746 archive_expsym_cmds \
18747 module_cmds \
18748 module_expsym_cmds \
18749 export_symbols_cmds \
18750 prelink_cmds \
18751 postlink_cmds \
18752 postinstall_cmds \
18753 postuninstall_cmds \
18754 finish_cmds \
18755 sys_lib_search_path_spec \
18756 configure_time_dlsearch_path \
18757 configure_time_lt_sys_library_path \
18758 reload_cmds_RC \
18759 old_archive_cmds_RC \
18760 old_archive_from_new_cmds_RC \
18761 old_archive_from_expsyms_cmds_RC \
18762 archive_cmds_RC \
18763 archive_expsym_cmds_RC \
18764 module_cmds_RC \
18765 module_expsym_cmds_RC \
18766 export_symbols_cmds_RC \
18767 prelink_cmds_RC \
18768 postlink_cmds_RC; do
18769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18770 *[\\\\\\\`\\"\\\$]*)
18771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18772 ;;
18773 *)
18774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18775 ;;
18776 esac
18777 done
18778
18779 ac_aux_dir='$ac_aux_dir'
18780
18781 # See if we are running on zsh, and set the options that allow our
18782 # commands through without removal of \ escapes INIT.
18783 if test -n "\${ZSH_VERSION+set}"; then
18784 setopt NO_GLOB_SUBST
18785 fi
18786
18787
18788 PACKAGE='$PACKAGE'
18789 VERSION='$VERSION'
18790 RM='$RM'
18791 ofile='$ofile'
18792
18793
18794
18795
18796
18797 FTOPTION_H_SED="$FTOPTION_H_SED"
18798
18799 _ACEOF
18800
18801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18802
18803 # Handling of arguments.
18804 for ac_config_target in $ac_config_targets
18805 do
18806 case $ac_config_target in
18807 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18808 "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
18809 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
18810 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
18811 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
18812
18813 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18814 esac
18815 done
18816
18817
18818 # If the user did not use the arguments to specify the items to instantiate,
18819 # then the envvar interface is used. Set only those that are not.
18820 # We use the long form for the default assignment because of an extremely
18821 # bizarre bug on SunOS 4.1.3.
18822 if $ac_need_defaults; then
18823 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18824 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18825 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18826 fi
18827
18828 # Have a temporary directory for convenience. Make it in the build tree
18829 # simply because there is no reason against having it here, and in addition,
18830 # creating and moving files from /tmp can sometimes cause problems.
18831 # Hook for its removal unless debugging.
18832 # Note that there is a small window in which the directory will not be cleaned:
18833 # after its creation but before its name has been assigned to '$tmp'.
18834 $debug ||
18835 {
18836 tmp= ac_tmp=
18837 trap 'exit_status=$?
18838 : "${ac_tmp:=$tmp}"
18839 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18840 ' 0
18841 trap 'as_fn_exit 1' 1 2 13 15
18842 }
18843 # Create a (secure) tmp directory for tmp files.
18844
18845 {
18846 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18847 test -d "$tmp"
18848 } ||
18849 {
18850 tmp=./conf$$-$RANDOM
18851 (umask 077 && mkdir "$tmp")
18852 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18853 ac_tmp=$tmp
18854
18855 # Set up the scripts for CONFIG_FILES section.
18856 # No need to generate them if there are no CONFIG_FILES.
18857 # This happens for instance with './config.status config.h'.
18858 if test -n "$CONFIG_FILES"; then
18859
18860
18861 ac_cr=`echo X | tr X '\015'`
18862 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18863 # But we know of no other shell where ac_cr would be empty at this
18864 # point, so we can use a bashism as a fallback.
18865 if test "x$ac_cr" = x; then
18866 eval ac_cr=\$\'\\r\'
18867 fi
18868 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18869 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18870 ac_cs_awk_cr='\\r'
18871 else
18872 ac_cs_awk_cr=$ac_cr
18873 fi
18874
18875 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18876 _ACEOF
18877
18878
18879 {
18880 echo "cat >conf$$subs.awk <<_ACEOF" &&
18881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18882 echo "_ACEOF"
18883 } >conf$$subs.sh ||
18884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18886 ac_delim='%!_!# '
18887 for ac_last_try in false false false false false :; do
18888 . ./conf$$subs.sh ||
18889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18890
18891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18892 if test $ac_delim_n = $ac_delim_num; then
18893 break
18894 elif $ac_last_try; then
18895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18896 else
18897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18898 fi
18899 done
18900 rm -f conf$$subs.sh
18901
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18904 _ACEOF
18905 sed -n '
18906 h
18907 s/^/S["/; s/!.*/"]=/
18908 p
18909 g
18910 s/^[^!]*!//
18911 :repl
18912 t repl
18913 s/'"$ac_delim"'$//
18914 t delim
18915 :nl
18916 h
18917 s/\(.\{148\}\)..*/\1/
18918 t more1
18919 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18920 p
18921 n
18922 b repl
18923 :more1
18924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18925 p
18926 g
18927 s/.\{148\}//
18928 t nl
18929 :delim
18930 h
18931 s/\(.\{148\}\)..*/\1/
18932 t more2
18933 s/["\\]/\\&/g; s/^/"/; s/$/"/
18934 p
18935 b
18936 :more2
18937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18938 p
18939 g
18940 s/.\{148\}//
18941 t delim
18942 ' <conf$$subs.awk | sed '
18943 /^[^""]/{
18944 N
18945 s/\n//
18946 }
18947 ' >>$CONFIG_STATUS || ac_write_fail=1
18948 rm -f conf$$subs.awk
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 _ACAWK
18951 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18952 for (key in S) S_is_set[key] = 1
18953 FS = ""
18954
18955 }
18956 {
18957 line = $ 0
18958 nfields = split(line, field, "@")
18959 substed = 0
18960 len = length(field[1])
18961 for (i = 2; i < nfields; i++) {
18962 key = field[i]
18963 keylen = length(key)
18964 if (S_is_set[key]) {
18965 value = S[key]
18966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18967 len += length(value) + length(field[++i])
18968 substed = 1
18969 } else
18970 len += 1 + keylen
18971 }
18972
18973 print line
18974 }
18975
18976 _ACAWK
18977 _ACEOF
18978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18979 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18980 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18981 else
18982 cat
18983 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18984 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18985 _ACEOF
18986
18987 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18988 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18989 # trailing colons and then remove the whole line if VPATH becomes empty
18990 # (actually we leave an empty line to preserve line numbers).
18991 if test "x$srcdir" = x.; then
18992 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18993 h
18994 s///
18995 s/^/:/
18996 s/[ ]*$/:/
18997 s/:\$(srcdir):/:/g
18998 s/:\${srcdir}:/:/g
18999 s/:@srcdir@:/:/g
19000 s/^:*//
19001 s/:*$//
19002 x
19003 s/\(=[ ]*\).*/\1/
19004 G
19005 s/\n//
19006 s/^[^=]*=[ ]*$//
19007 }'
19008 fi
19009
19010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19011 fi # test -n "$CONFIG_FILES"
19012
19013 # Set up the scripts for CONFIG_HEADERS section.
19014 # No need to generate them if there are no CONFIG_HEADERS.
19015 # This happens for instance with './config.status Makefile'.
19016 if test -n "$CONFIG_HEADERS"; then
19017 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19018 BEGIN {
19019 _ACEOF
19020
19021 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19022 # here-document in config.status, that substitutes the proper values into
19023 # config.h.in to produce config.h.
19024
19025 # Create a delimiter string that does not exist in confdefs.h, to ease
19026 # handling of long lines.
19027 ac_delim='%!_!# '
19028 for ac_last_try in false false :; do
19029 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19030 if test -z "$ac_tt"; then
19031 break
19032 elif $ac_last_try; then
19033 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19034 else
19035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19036 fi
19037 done
19038
19039 # For the awk script, D is an array of macro values keyed by name,
19040 # likewise P contains macro parameters if any. Preserve backslash
19041 # newline sequences.
19042
19043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19044 sed -n '
19045 s/.\{148\}/&'"$ac_delim"'/g
19046 t rset
19047 :rset
19048 s/^[ ]*#[ ]*define[ ][ ]*/ /
19049 t def
19050 d
19051 :def
19052 s/\\$//
19053 t bsnl
19054 s/["\\]/\\&/g
19055 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19056 D["\1"]=" \3"/p
19057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19058 d
19059 :bsnl
19060 s/["\\]/\\&/g
19061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19062 D["\1"]=" \3\\\\\\n"\\/p
19063 t cont
19064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19065 t cont
19066 d
19067 :cont
19068 n
19069 s/.\{148\}/&'"$ac_delim"'/g
19070 t clear
19071 :clear
19072 s/\\$//
19073 t bsnlc
19074 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19075 d
19076 :bsnlc
19077 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19078 b cont
19079 ' <confdefs.h | sed '
19080 s/'"$ac_delim"'/"\\\
19081 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19082
19083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084 for (key in D) D_is_set[key] = 1
19085 FS = ""
19086 }
19087 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19088 line = \$ 0
19089 split(line, arg, " ")
19090 if (arg[1] == "#") {
19091 defundef = arg[2]
19092 mac1 = arg[3]
19093 } else {
19094 defundef = substr(arg[1], 2)
19095 mac1 = arg[2]
19096 }
19097 split(mac1, mac2, "(") #)
19098 macro = mac2[1]
19099 prefix = substr(line, 1, index(line, defundef) - 1)
19100 if (D_is_set[macro]) {
19101 # Preserve the white space surrounding the "#".
19102 print prefix "define", macro P[macro] D[macro]
19103 next
19104 } else {
19105 # Replace #undef with comments. This is necessary, for example,
19106 # in the case of _POSIX_SOURCE, which is predefined and required
19107 # on some systems where configure will not decide to define it.
19108 if (defundef == "undef") {
19109 print "/*", prefix defundef, macro, "*/"
19110 next
19111 }
19112 }
19113 }
19114 { print }
19115 _ACAWK
19116 _ACEOF
19117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19119 fi # test -n "$CONFIG_HEADERS"
19120
19121
19122 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19123 shift
19124 for ac_tag
19125 do
19126 case $ac_tag in
19127 :[FHLC]) ac_mode=$ac_tag; continue;;
19128 esac
19129 case $ac_mode$ac_tag in
19130 :[FHL]*:*);;
19131 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19132 :[FH]-) ac_tag=-:-;;
19133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19134 esac
19135 ac_save_IFS=$IFS
19136 IFS=:
19137 set x $ac_tag
19138 IFS=$ac_save_IFS
19139 shift
19140 ac_file=$1
19141 shift
19142
19143 case $ac_mode in
19144 :L) ac_source=$1;;
19145 :[FH])
19146 ac_file_inputs=
19147 for ac_f
19148 do
19149 case $ac_f in
19150 -) ac_f="$ac_tmp/stdin";;
19151 *) # Look for the file first in the build tree, then in the source tree
19152 # (if the path is not absolute). The absolute path cannot be DOS-style,
19153 # because $ac_f cannot contain ':'.
19154 test -f "$ac_f" ||
19155 case $ac_f in
19156 [\\/$]*) false;;
19157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19158 esac ||
19159 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19160 esac
19161 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19162 as_fn_append ac_file_inputs " '$ac_f'"
19163 done
19164
19165 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19166 # use $as_me), people would be surprised to read:
19167 # /* config.h. Generated by config.status. */
19168 configure_input='Generated from '`
19169 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19170 `' by configure.'
19171 if test x"$ac_file" != x-; then
19172 configure_input="$ac_file. $configure_input"
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19174 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19175 fi
19176 # Neutralize special characters interpreted by sed in replacement strings.
19177 case $configure_input in #(
19178 *\&* | *\|* | *\\* )
19179 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19180 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19181 *) ac_sed_conf_input=$configure_input;;
19182 esac
19183
19184 case $ac_tag in
19185 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19187 esac
19188 ;;
19189 esac
19190
19191 ac_dir=`$as_dirname -- "$ac_file" ||
19192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193 X"$ac_file" : 'X\(//\)[^/]' \| \
19194 X"$ac_file" : 'X\(//\)$' \| \
19195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19196 printf "%s\n" X"$ac_file" |
19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19198 s//\1/
19199 q
19200 }
19201 /^X\(\/\/\)[^/].*/{
19202 s//\1/
19203 q
19204 }
19205 /^X\(\/\/\)$/{
19206 s//\1/
19207 q
19208 }
19209 /^X\(\/\).*/{
19210 s//\1/
19211 q
19212 }
19213 s/.*/./; q'`
19214 as_dir="$ac_dir"; as_fn_mkdir_p
19215 ac_builddir=.
19216
19217 case "$ac_dir" in
19218 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19219 *)
19220 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19221 # A ".." for each directory in $ac_dir_suffix.
19222 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19223 case $ac_top_builddir_sub in
19224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19226 esac ;;
19227 esac
19228 ac_abs_top_builddir=$ac_pwd
19229 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19230 # for backward compatibility:
19231 ac_top_builddir=$ac_top_build_prefix
19232
19233 case $srcdir in
19234 .) # We are building in place.
19235 ac_srcdir=.
19236 ac_top_srcdir=$ac_top_builddir_sub
19237 ac_abs_top_srcdir=$ac_pwd ;;
19238 [\\/]* | ?:[\\/]* ) # Absolute name.
19239 ac_srcdir=$srcdir$ac_dir_suffix;
19240 ac_top_srcdir=$srcdir
19241 ac_abs_top_srcdir=$srcdir ;;
19242 *) # Relative name.
19243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19244 ac_top_srcdir=$ac_top_build_prefix$srcdir
19245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19246 esac
19247 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19248
19249
19250 case $ac_mode in
19251 :F)
19252 #
19253 # CONFIG_FILE
19254 #
19255
19256 case $INSTALL in
19257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19258 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19259 esac
19260 ac_MKDIR_P=$MKDIR_P
19261 case $MKDIR_P in
19262 [\\/$]* | ?:[\\/]* ) ;;
19263 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19264 esac
19265 _ACEOF
19266
19267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19268 # If the template does not know about datarootdir, expand it.
19269 # FIXME: This hack should be removed a few years after 2.60.
19270 ac_datarootdir_hack=; ac_datarootdir_seen=
19271 ac_sed_dataroot='
19272 /datarootdir/ {
19273 p
19274 q
19275 }
19276 /@datadir@/p
19277 /@docdir@/p
19278 /@infodir@/p
19279 /@localedir@/p
19280 /@mandir@/p'
19281 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19282 *datarootdir*) ac_datarootdir_seen=yes;;
19283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19285 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19286 _ACEOF
19287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19288 ac_datarootdir_hack='
19289 s&@datadir@&$datadir&g
19290 s&@docdir@&$docdir&g
19291 s&@infodir@&$infodir&g
19292 s&@localedir@&$localedir&g
19293 s&@mandir@&$mandir&g
19294 s&\\\${datarootdir}&$datarootdir&g' ;;
19295 esac
19296 _ACEOF
19297
19298 # Neutralize VPATH when '$srcdir' = '.'.
19299 # Shell code in configure.ac might set extrasub.
19300 # FIXME: do we really want to maintain this feature?
19301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19302 ac_sed_extra="$ac_vpsub
19303 $extrasub
19304 _ACEOF
19305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19306 :t
19307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19308 s|@configure_input@|$ac_sed_conf_input|;t t
19309 s&@top_builddir@&$ac_top_builddir_sub&;t t
19310 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19311 s&@srcdir@&$ac_srcdir&;t t
19312 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19313 s&@top_srcdir@&$ac_top_srcdir&;t t
19314 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19315 s&@builddir@&$ac_builddir&;t t
19316 s&@abs_builddir@&$ac_abs_builddir&;t t
19317 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19318 s&@INSTALL@&$ac_INSTALL&;t t
19319 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19320 $ac_datarootdir_hack
19321 "
19322 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19323 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19324
19325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19326 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19328 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19330 which seems to be undefined. Please make sure it is defined" >&5
19331 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19332 which seems to be undefined. Please make sure it is defined" >&2;}
19333
19334 rm -f "$ac_tmp/stdin"
19335 case $ac_file in
19336 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19337 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19338 esac \
19339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19340 ;;
19341 :H)
19342 #
19343 # CONFIG_HEADER
19344 #
19345 if test x"$ac_file" != x-; then
19346 {
19347 printf "%s\n" "/* $configure_input */" >&1 \
19348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19349 } >"$ac_tmp/config.h" \
19350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19353 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19354 else
19355 rm -f "$ac_file"
19356 mv "$ac_tmp/config.h" "$ac_file" \
19357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19358 fi
19359 else
19360 printf "%s\n" "/* $configure_input */" >&1 \
19361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19362 || as_fn_error $? "could not create -" "$LINENO" 5
19363 fi
19364 ;;
19365
19366 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19367 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19368 ;;
19369 esac
19370
19371
19372 case $ac_file$ac_mode in
19373 "libtool":C)
19374
19375 # See if we are running on zsh, and set the options that allow our
19376 # commands through without removal of \ escapes.
19377 if test -n "${ZSH_VERSION+set}"; then
19378 setopt NO_GLOB_SUBST
19379 fi
19380
19381 cfgfile=${ofile}T
19382 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19383 $RM "$cfgfile"
19384
19385 cat <<_LT_EOF >> "$cfgfile"
19386 #! $SHELL
19387 # Generated automatically by $as_me ($PACKAGE) $VERSION
19388 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19389
19390 # Provide generalized library-building support services.
19391 # Written by Gordon Matzigkeit, 1996
19392
19393 # Copyright (C) 2024 Free Software Foundation, Inc.
19394 # This is free software; see the source for copying conditions. There is NO
19395 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19396
19397 # GNU Libtool is free software; you can redistribute it and/or modify
19398 # it under the terms of the GNU General Public License as published by
19399 # the Free Software Foundation; either version 2 of the License, or
19400 # (at your option) any later version.
19401 #
19402 # As a special exception to the GNU General Public License, if you
19403 # distribute this file as part of a program or library that is built
19404 # using GNU Libtool, you may include this file under the same
19405 # distribution terms that you use for the rest of that program.
19406 #
19407 # GNU Libtool is distributed in the hope that it will be useful, but
19408 # WITHOUT ANY WARRANTY; without even the implied warranty of
19409 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19410 # GNU General Public License for more details.
19411 #
19412 # You should have received a copy of the GNU General Public License
19413 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19414
19415
19416 # The names of the tagged configurations supported by this script.
19417 available_tags='RC '
19418
19419 # Configured defaults for sys_lib_dlsearch_path munging.
19420 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19421
19422 # ### BEGIN LIBTOOL CONFIG
19423
19424 # Which release of libtool.m4 was used?
19425 macro_version=$macro_version
19426 macro_revision=$macro_revision
19427
19428 # Assembler program.
19429 AS=$lt_AS
19430
19431 # DLL creation program.
19432 DLLTOOL=$lt_DLLTOOL
19433
19434 # Object dumper program.
19435 OBJDUMP=$lt_OBJDUMP
19436
19437 # Whether or not to build shared libraries.
19438 build_libtool_libs=$enable_shared
19439
19440 # Whether or not to build static libraries.
19441 build_old_libs=$enable_static
19442
19443 # What type of objects to build.
19444 pic_mode=$pic_mode
19445
19446 # Whether or not to optimize for fast installation.
19447 fast_install=$enable_fast_install
19448
19449 # Shared archive member basename,for filename based shared library versioning on AIX.
19450 shared_archive_member_spec=$shared_archive_member_spec
19451
19452 # Shell to use when invoking shell scripts.
19453 SHELL=$lt_SHELL
19454
19455 # An echo program that protects backslashes.
19456 ECHO=$lt_ECHO
19457
19458 # The PATH separator for the build system.
19459 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19460
19461 # The host system.
19462 host_alias=$host_alias
19463 host=$host
19464 host_os=$host_os
19465
19466 # The build system.
19467 build_alias=$build_alias
19468 build=$build
19469 build_os=$build_os
19470
19471 # A sed program that does not truncate output.
19472 SED=$lt_SED
19473
19474 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19475 Xsed="\$SED -e 1s/^X//"
19476
19477 # A grep program that handles long lines.
19478 GREP=$lt_GREP
19479
19480 # An ERE matcher.
19481 EGREP=$lt_EGREP
19482
19483 # A literal string matcher.
19484 FGREP=$lt_FGREP
19485
19486 # A BSD- or MS-compatible name lister.
19487 NM=$lt_NM
19488
19489 # Whether we need soft or hard links.
19490 LN_S=$lt_LN_S
19491
19492 # What is the maximum length of a command?
19493 max_cmd_len=$max_cmd_len
19494
19495 # Object file suffix (normally "o").
19496 objext=$ac_objext
19497
19498 # Executable file suffix (normally "").
19499 exeext=$exeext
19500
19501 # whether the shell understands "unset".
19502 lt_unset=$lt_unset
19503
19504 # turn spaces into newlines.
19505 SP2NL=$lt_lt_SP2NL
19506
19507 # turn newlines into spaces.
19508 NL2SP=$lt_lt_NL2SP
19509
19510 # convert \$build file names to \$host format.
19511 to_host_file_cmd=$lt_cv_to_host_file_cmd
19512
19513 # convert \$build files to toolchain format.
19514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19515
19516 # A file(cmd) program that detects file types.
19517 FILECMD=$lt_FILECMD
19518
19519 # Method to check whether dependent libraries are shared objects.
19520 deplibs_check_method=$lt_deplibs_check_method
19521
19522 # Command to use when deplibs_check_method = "file_magic".
19523 file_magic_cmd=$lt_file_magic_cmd
19524
19525 # How to find potential files when deplibs_check_method = "file_magic".
19526 file_magic_glob=$lt_file_magic_glob
19527
19528 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19529 want_nocaseglob=$lt_want_nocaseglob
19530
19531 # Command to associate shared and link libraries.
19532 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19533
19534 # The archiver.
19535 AR=$lt_AR
19536
19537 # Flags to create an archive (by configure).
19538 lt_ar_flags=$lt_ar_flags
19539
19540 # Flags to create an archive.
19541 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19542
19543 # How to feed a file listing to the archiver.
19544 archiver_list_spec=$lt_archiver_list_spec
19545
19546 # A symbol stripping program.
19547 STRIP=$lt_STRIP
19548
19549 # Commands used to install an old-style archive.
19550 RANLIB=$lt_RANLIB
19551 old_postinstall_cmds=$lt_old_postinstall_cmds
19552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19553
19554 # Whether to use a lock for old archive extraction.
19555 lock_old_archive_extraction=$lock_old_archive_extraction
19556
19557 # A C compiler.
19558 LTCC=$lt_CC
19559
19560 # LTCC compiler flags.
19561 LTCFLAGS=$lt_CFLAGS
19562
19563 # Take the output of nm and produce a listing of raw symbols and C names.
19564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19565
19566 # Transform the output of nm in a proper C declaration.
19567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19568
19569 # Transform the output of nm into a list of symbols to manually relocate.
19570 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19571
19572 # Transform the output of nm in a C name address pair.
19573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19574
19575 # Transform the output of nm in a C name address pair when lib prefix is needed.
19576 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19577
19578 # The name lister interface.
19579 nm_interface=$lt_lt_cv_nm_interface
19580
19581 # Specify filename containing input files for \$NM.
19582 nm_file_list_spec=$lt_nm_file_list_spec
19583
19584 # The root where to search for dependent libraries,and where our libraries should be installed.
19585 lt_sysroot=$lt_sysroot
19586
19587 # Command to truncate a binary pipe.
19588 lt_truncate_bin=$lt_lt_cv_truncate_bin
19589
19590 # The name of the directory that contains temporary libtool files.
19591 objdir=$objdir
19592
19593 # Used to examine libraries when file_magic_cmd begins with "file".
19594 MAGIC_CMD=$MAGIC_CMD
19595
19596 # Must we lock files when doing compilation?
19597 need_locks=$lt_need_locks
19598
19599 # Manifest tool.
19600 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19601
19602 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19603 DSYMUTIL=$lt_DSYMUTIL
19604
19605 # Tool to change global to local symbols on Mac OS X.
19606 NMEDIT=$lt_NMEDIT
19607
19608 # Tool to manipulate fat objects and archives on Mac OS X.
19609 LIPO=$lt_LIPO
19610
19611 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19612 OTOOL=$lt_OTOOL
19613
19614 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19615 OTOOL64=$lt_OTOOL64
19616
19617 # Old archive suffix (normally "a").
19618 libext=$libext
19619
19620 # Shared library suffix (normally ".so").
19621 shrext_cmds=$lt_shrext_cmds
19622
19623 # The commands to extract the exported symbol list from a shared archive.
19624 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19625
19626 # Variables whose values should be saved in libtool wrapper scripts and
19627 # restored at link time.
19628 variables_saved_for_relink=$lt_variables_saved_for_relink
19629
19630 # Do we need the "lib" prefix for modules?
19631 need_lib_prefix=$need_lib_prefix
19632
19633 # Do we need a version for libraries?
19634 need_version=$need_version
19635
19636 # Library versioning type.
19637 version_type=$version_type
19638
19639 # Shared library runtime path variable.
19640 runpath_var=$runpath_var
19641
19642 # Shared library path variable.
19643 shlibpath_var=$shlibpath_var
19644
19645 # Is shlibpath searched before the hard-coded library search path?
19646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19647
19648 # Format of library name prefix.
19649 libname_spec=$lt_libname_spec
19650
19651 # List of archive names. First name is the real one, the rest are links.
19652 # The last name is the one that the linker finds with -lNAME
19653 library_names_spec=$lt_library_names_spec
19654
19655 # The coded name of the library, if different from the real name.
19656 soname_spec=$lt_soname_spec
19657
19658 # Permission mode override for installation of shared libraries.
19659 install_override_mode=$lt_install_override_mode
19660
19661 # Command to use after installation of a shared archive.
19662 postinstall_cmds=$lt_postinstall_cmds
19663
19664 # Command to use after uninstallation of a shared archive.
19665 postuninstall_cmds=$lt_postuninstall_cmds
19666
19667 # Commands used to finish a libtool library installation in a directory.
19668 finish_cmds=$lt_finish_cmds
19669
19670 # As "finish_cmds", except a single script fragment to be evaled but
19671 # not shown.
19672 finish_eval=$lt_finish_eval
19673
19674 # Whether we should hardcode library paths into libraries.
19675 hardcode_into_libs=$hardcode_into_libs
19676
19677 # Compile-time system search path for libraries.
19678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19679
19680 # Detected run-time system search path for libraries.
19681 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19682
19683 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19684 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19685
19686 # Whether dlopen is supported.
19687 dlopen_support=$enable_dlopen
19688
19689 # Whether dlopen of programs is supported.
19690 dlopen_self=$enable_dlopen_self
19691
19692 # Whether dlopen of statically linked programs is supported.
19693 dlopen_self_static=$enable_dlopen_self_static
19694
19695 # Commands to strip libraries.
19696 old_striplib=$lt_old_striplib
19697 striplib=$lt_striplib
19698
19699
19700 # The linker used to build libraries.
19701 LD=$lt_LD
19702
19703 # How to create reloadable object files.
19704 reload_flag=$lt_reload_flag
19705 reload_cmds=$lt_reload_cmds
19706
19707 # Commands used to build an old-style archive.
19708 old_archive_cmds=$lt_old_archive_cmds
19709
19710 # A language specific compiler.
19711 CC=$lt_compiler
19712
19713 # Is the compiler the GNU compiler?
19714 with_gcc=$GCC
19715
19716 # Compiler flag to turn off builtin functions.
19717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19718
19719 # Additional compiler flags for building library objects.
19720 pic_flag=$lt_lt_prog_compiler_pic
19721
19722 # How to pass a linker flag through the compiler.
19723 wl=$lt_lt_prog_compiler_wl
19724
19725 # Compiler flag to prevent dynamic linking.
19726 link_static_flag=$lt_lt_prog_compiler_static
19727
19728 # Does compiler simultaneously support -c and -o options?
19729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19730
19731 # Whether or not to add -lc for building shared libraries.
19732 build_libtool_need_lc=$archive_cmds_need_lc
19733
19734 # Whether or not to disallow shared libs when runtime libs are static.
19735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19736
19737 # Compiler flag to allow reflexive dlopens.
19738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19739
19740 # Compiler flag to generate shared objects directly from archives.
19741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19742
19743 # Whether the compiler copes with passing no objects directly.
19744 compiler_needs_object=$lt_compiler_needs_object
19745
19746 # Create an old-style archive from a shared archive.
19747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19748
19749 # Create a temporary old-style archive to link instead of a shared archive.
19750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19751
19752 # Commands used to build a shared archive.
19753 archive_cmds=$lt_archive_cmds
19754 archive_expsym_cmds=$lt_archive_expsym_cmds
19755
19756 # Commands used to build a loadable module if different from building
19757 # a shared archive.
19758 module_cmds=$lt_module_cmds
19759 module_expsym_cmds=$lt_module_expsym_cmds
19760
19761 # Whether we are building with GNU ld or not.
19762 with_gnu_ld=$lt_with_gnu_ld
19763
19764 # Flag that allows shared libraries with undefined symbols to be built.
19765 allow_undefined_flag=$lt_allow_undefined_flag
19766
19767 # Flag that enforces no undefined symbols.
19768 no_undefined_flag=$lt_no_undefined_flag
19769
19770 # Flag to hardcode \$libdir into a binary during linking.
19771 # This must work even if \$libdir does not exist
19772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19773
19774 # Whether we need a single "-rpath" flag with a separated argument.
19775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19776
19777 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19778 # DIR into the resulting binary.
19779 hardcode_direct=$hardcode_direct
19780
19781 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19782 # DIR into the resulting binary and the resulting library dependency is
19783 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19784 # library is relocated.
19785 hardcode_direct_absolute=$hardcode_direct_absolute
19786
19787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19788 # into the resulting binary.
19789 hardcode_minus_L=$hardcode_minus_L
19790
19791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19792 # into the resulting binary.
19793 hardcode_shlibpath_var=$hardcode_shlibpath_var
19794
19795 # Set to "yes" if building a shared library automatically hardcodes DIR
19796 # into the library and all subsequent libraries and executables linked
19797 # against it.
19798 hardcode_automatic=$hardcode_automatic
19799
19800 # Set to yes if linker adds runtime paths of dependent libraries
19801 # to runtime path list.
19802 inherit_rpath=$inherit_rpath
19803
19804 # Whether libtool must link a program against all its dependency libraries.
19805 link_all_deplibs=$link_all_deplibs
19806
19807 # Set to "yes" if exported symbols are required.
19808 always_export_symbols=$always_export_symbols
19809
19810 # The commands to list exported symbols.
19811 export_symbols_cmds=$lt_export_symbols_cmds
19812
19813 # Symbols that should not be listed in the preloaded symbols.
19814 exclude_expsyms=$lt_exclude_expsyms
19815
19816 # Symbols that must always be exported.
19817 include_expsyms=$lt_include_expsyms
19818
19819 # Commands necessary for linking programs (against libraries) with templates.
19820 prelink_cmds=$lt_prelink_cmds
19821
19822 # Commands necessary for finishing linking programs.
19823 postlink_cmds=$lt_postlink_cmds
19824
19825 # Specify filename containing input files.
19826 file_list_spec=$lt_file_list_spec
19827
19828 # How to hardcode a shared library path into an executable.
19829 hardcode_action=$hardcode_action
19830
19831 # ### END LIBTOOL CONFIG
19832
19833 _LT_EOF
19834
19835 cat <<'_LT_EOF' >> "$cfgfile"
19836
19837 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19838
19839 # func_munge_path_list VARIABLE PATH
19840 # -----------------------------------
19841 # VARIABLE is name of variable containing _space_ separated list of
19842 # directories to be munged by the contents of PATH, which is string
19843 # having a format:
19844 # "DIR[:DIR]:"
19845 # string "DIR[ DIR]" will be prepended to VARIABLE
19846 # ":DIR[:DIR]"
19847 # string "DIR[ DIR]" will be appended to VARIABLE
19848 # "DIRP[:DIRP]::[DIRA:]DIRA"
19849 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19850 # "DIRA[ DIRA]" will be appended to VARIABLE
19851 # "DIR[:DIR]"
19852 # VARIABLE will be replaced by "DIR[ DIR]"
19853 func_munge_path_list ()
19854 {
19855 case x$2 in
19856 x)
19857 ;;
19858 *:)
19859 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19860 ;;
19861 x:*)
19862 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19863 ;;
19864 *::*)
19865 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19866 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19867 ;;
19868 *)
19869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19870 ;;
19871 esac
19872 }
19873
19874
19875 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19876 func_cc_basename ()
19877 {
19878 for cc_temp in $*""; do
19879 case $cc_temp in
19880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19882 \-*) ;;
19883 *) break;;
19884 esac
19885 done
19886 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19887 }
19888
19889
19890 # ### END FUNCTIONS SHARED WITH CONFIGURE
19891
19892 _LT_EOF
19893
19894 case $host_os in
19895 aix3*)
19896 cat <<\_LT_EOF >> "$cfgfile"
19897 # AIX sometimes has problems with the GCC collect2 program. For some
19898 # reason, if we set the COLLECT_NAMES environment variable, the problems
19899 # vanish in a puff of smoke.
19900 if test set != "${COLLECT_NAMES+set}"; then
19901 COLLECT_NAMES=
19902 export COLLECT_NAMES
19903 fi
19904 _LT_EOF
19905 ;;
19906 esac
19907
19908
19909
19910 ltmain=$ac_aux_dir/ltmain.sh
19911
19912
19913 # We use sed instead of cat because bash on DJGPP gets confused if
19914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19915 # text mode, it properly converts lines to CR/LF. This bash problem
19916 # is reportedly fixed, but why not run on old versions too?
19917 $SED '$q' "$ltmain" >> "$cfgfile" \
19918 || (rm -f "$cfgfile"; exit 1)
19919
19920 mv -f "$cfgfile" "$ofile" ||
19921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19922 chmod +x "$ofile"
19923
19924
19925 cat <<_LT_EOF >> "$ofile"
19926
19927 # ### BEGIN LIBTOOL TAG CONFIG: RC
19928
19929 # The linker used to build libraries.
19930 LD=$lt_LD_RC
19931
19932 # How to create reloadable object files.
19933 reload_flag=$lt_reload_flag_RC
19934 reload_cmds=$lt_reload_cmds_RC
19935
19936 # Commands used to build an old-style archive.
19937 old_archive_cmds=$lt_old_archive_cmds_RC
19938
19939 # A language specific compiler.
19940 CC=$lt_compiler_RC
19941
19942 # Is the compiler the GNU compiler?
19943 with_gcc=$GCC_RC
19944
19945 # Compiler flag to turn off builtin functions.
19946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19947
19948 # Additional compiler flags for building library objects.
19949 pic_flag=$lt_lt_prog_compiler_pic_RC
19950
19951 # How to pass a linker flag through the compiler.
19952 wl=$lt_lt_prog_compiler_wl_RC
19953
19954 # Compiler flag to prevent dynamic linking.
19955 link_static_flag=$lt_lt_prog_compiler_static_RC
19956
19957 # Does compiler simultaneously support -c and -o options?
19958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19959
19960 # Whether or not to add -lc for building shared libraries.
19961 build_libtool_need_lc=$archive_cmds_need_lc_RC
19962
19963 # Whether or not to disallow shared libs when runtime libs are static.
19964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19965
19966 # Compiler flag to allow reflexive dlopens.
19967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19968
19969 # Compiler flag to generate shared objects directly from archives.
19970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19971
19972 # Whether the compiler copes with passing no objects directly.
19973 compiler_needs_object=$lt_compiler_needs_object_RC
19974
19975 # Create an old-style archive from a shared archive.
19976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19977
19978 # Create a temporary old-style archive to link instead of a shared archive.
19979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19980
19981 # Commands used to build a shared archive.
19982 archive_cmds=$lt_archive_cmds_RC
19983 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19984
19985 # Commands used to build a loadable module if different from building
19986 # a shared archive.
19987 module_cmds=$lt_module_cmds_RC
19988 module_expsym_cmds=$lt_module_expsym_cmds_RC
19989
19990 # Whether we are building with GNU ld or not.
19991 with_gnu_ld=$lt_with_gnu_ld_RC
19992
19993 # Flag that allows shared libraries with undefined symbols to be built.
19994 allow_undefined_flag=$lt_allow_undefined_flag_RC
19995
19996 # Flag that enforces no undefined symbols.
19997 no_undefined_flag=$lt_no_undefined_flag_RC
19998
19999 # Flag to hardcode \$libdir into a binary during linking.
20000 # This must work even if \$libdir does not exist
20001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20002
20003 # Whether we need a single "-rpath" flag with a separated argument.
20004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20005
20006 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20007 # DIR into the resulting binary.
20008 hardcode_direct=$hardcode_direct_RC
20009
20010 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20011 # DIR into the resulting binary and the resulting library dependency is
20012 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
20013 # library is relocated.
20014 hardcode_direct_absolute=$hardcode_direct_absolute_RC
20015
20016 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20017 # into the resulting binary.
20018 hardcode_minus_L=$hardcode_minus_L_RC
20019
20020 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20021 # into the resulting binary.
20022 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20023
20024 # Set to "yes" if building a shared library automatically hardcodes DIR
20025 # into the library and all subsequent libraries and executables linked
20026 # against it.
20027 hardcode_automatic=$hardcode_automatic_RC
20028
20029 # Set to yes if linker adds runtime paths of dependent libraries
20030 # to runtime path list.
20031 inherit_rpath=$inherit_rpath_RC
20032
20033 # Whether libtool must link a program against all its dependency libraries.
20034 link_all_deplibs=$link_all_deplibs_RC
20035
20036 # Set to "yes" if exported symbols are required.
20037 always_export_symbols=$always_export_symbols_RC
20038
20039 # The commands to list exported symbols.
20040 export_symbols_cmds=$lt_export_symbols_cmds_RC
20041
20042 # Symbols that should not be listed in the preloaded symbols.
20043 exclude_expsyms=$lt_exclude_expsyms_RC
20044
20045 # Symbols that must always be exported.
20046 include_expsyms=$lt_include_expsyms_RC
20047
20048 # Commands necessary for linking programs (against libraries) with templates.
20049 prelink_cmds=$lt_prelink_cmds_RC
20050
20051 # Commands necessary for finishing linking programs.
20052 postlink_cmds=$lt_postlink_cmds_RC
20053
20054 # Specify filename containing input files.
20055 file_list_spec=$lt_file_list_spec_RC
20056
20057 # How to hardcode a shared library path into an executable.
20058 hardcode_action=$hardcode_action_RC
20059
20060 # ### END LIBTOOL TAG CONFIG: RC
20061 _LT_EOF
20062
20063 ;;
20064 "ftoption.h":F) mv ftoption.h ftoption.tmp
20065 eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
20066 rm ftoption.tmp ;;
20067
20068 esac
20069 done # for ac_tag
20070
20071
20072 as_fn_exit 0
20073 _ACEOF
20074 ac_clean_files=$ac_clean_files_save
20075
20076 test $ac_write_fail = 0 ||
20077 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20078
20079
20080 # configure is writing to config.log, and then calls config.status.
20081 # config.status does its own redirection, appending to config.log.
20082 # Unfortunately, on DOS this fails, as config.log is still kept open
20083 # by configure, so config.status won't be able to write to it; its
20084 # output is simply discarded. So we exec the FD to /dev/null,
20085 # effectively closing config.log, so it can be properly (re)opened and
20086 # appended to by config.status. When coming back to configure, we
20087 # need to make the FD available again.
20088 if test "$no_create" != yes; then
20089 ac_cs_success=:
20090 ac_config_status_args=
20091 test "$silent" = yes &&
20092 ac_config_status_args="$ac_config_status_args --quiet"
20093 exec 5>/dev/null
20094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20095 exec 5>>config.log
20096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20097 # would make configure fail if this is the last instruction.
20098 $ac_cs_success || as_fn_exit 1
20099 fi
20100 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20102 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20103 fi
20104
20105
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
20107
20108 Library configuration:
20109 external zlib: $have_zlib
20110 bzip2: $have_bzip2
20111 libpng: $have_libpng
20112 harfbuzz: $have_harfbuzz
20113 brotli: $have_brotli
20114 pthread: $have_pthread
20115 " >&5
20116 printf "%s\n" "$as_me:
20117
20118 Library configuration:
20119 external zlib: $have_zlib
20120 bzip2: $have_bzip2
20121 libpng: $have_libpng
20122 harfbuzz: $have_harfbuzz
20123 brotli: $have_brotli
20124 pthread: $have_pthread
20125 " >&6;}
20126
20127 # Warn if docwriter is not installed
20128
20129 if test $have_docwriter = no; then
20130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
20131 \`make refdoc' will fail since pip package \`docwriter' is not installed.
20132 To install, run \`$PIP install docwriter', or to use a Python
20133 virtual environment, run \`make refdoc-venv' (requires pip package
20134 \`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
20135 " >&5
20136 printf "%s\n" "$as_me: WARNING:
20137 \`make refdoc' will fail since pip package \`docwriter' is not installed.
20138 To install, run \`$PIP install docwriter', or to use a Python
20139 virtual environment, run \`make refdoc-venv' (requires pip package
20140 \`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
20141 " >&2;}
20142 fi
20143
20144 # Warn if pthread is not available
20145
20146 if test $have_pthread = no; then
20147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
20148 \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
20149 available. This warning can be safely ignored if you don't plan to use
20150 this configuration macro.
20151 " >&5
20152 printf "%s\n" "$as_me: WARNING:
20153 \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
20154 available. This warning can be safely ignored if you don't plan to use
20155 this configuration macro.
20156 " >&2;}
20157 fi
20158
20159 # end of configure.raw
20160