Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GD 2.3.3.
4 #
5 # Report bugs to <https://github.com/libgd/libgd/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: https://github.com/libgd/libgd/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='GD'
592 PACKAGE_TARNAME='libgd'
593 PACKAGE_VERSION='2.3.3'
594 PACKAGE_STRING='GD 2.3.3'
595 PACKAGE_BUGREPORT='https://github.com/libgd/libgd/issues'
596 PACKAGE_URL='https://lib.gd'
597
598 ac_unique_file="src/gd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 HAVE_VISIBILITY
641 CFLAG_VISIBILITY
642 HAVE_LIBAVIF_FALSE
643 HAVE_LIBAVIF_TRUE
644 LIBAVIF_LIBS
645 LIBAVIF_CFLAGS
646 HAVE_LIBHEIF_FALSE
647 HAVE_LIBHEIF_TRUE
648 LIBHEIF_LIBS
649 LIBHEIF_CFLAGS
650 HAVE_LIBWEBP_FALSE
651 HAVE_LIBWEBP_TRUE
652 LIBWEBP_LIBS
653 LIBWEBP_CFLAGS
654 HAVE_LIBTIFF_FALSE
655 HAVE_LIBTIFF_TRUE
656 LIBTIFF_LIBS
657 LIBTIFF_CFLAGS
658 HAVE_LIBXPM_FALSE
659 HAVE_LIBXPM_TRUE
660 LIBXPM_LIBS
661 LIBXPM_CFLAGS
662 HAVE_LIBIMAGEQUANT_FALSE
663 HAVE_LIBIMAGEQUANT_TRUE
664 HAVE_LIBJPEG_FALSE
665 HAVE_LIBJPEG_TRUE
666 LIBJPEG_LIBS
667 LIBJPEG_CFLAGS
668 HAVE_LIBFONTCONFIG_FALSE
669 HAVE_LIBFONTCONFIG_TRUE
670 LIBFONTCONFIG_LIBS
671 LIBFONTCONFIG_CFLAGS
672 HAVE_LIBRAQM_FALSE
673 HAVE_LIBRAQM_TRUE
674 LIBRAQM_LIBS
675 LIBRAQM_CFLAGS
676 HAVE_LIBFREETYPE_FALSE
677 HAVE_LIBFREETYPE_TRUE
678 LIBFREETYPE_LIBS
679 LIBFREETYPE_CFLAGS
680 HAVE_LIBPNG_FALSE
681 HAVE_LIBPNG_TRUE
682 LIBPNG_LIBS
683 LIBPNG_CFLAGS
684 HAVE_LIBZ_FALSE
685 HAVE_LIBZ_TRUE
686 LIBZ_LIBS
687 LIBZ_CFLAGS
688 ENABLE_GD_FORMATS_FALSE
689 ENABLE_GD_FORMATS_TRUE
690 PTHREAD_CFLAGS
691 PTHREAD_LIBS
692 PTHREAD_CC
693 ax_pthread_config
694 LTLIBICONV
695 LIBICONV
696 XMKMF
697 PKG_CONFIG_LIBDIR
698 PKG_CONFIG_PATH
699 PKG_CONFIG
700 CPP
701 LT_SYS_LIBRARY_PATH
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 MANIFEST_TOOL
708 RANLIB
709 DLLTOOL
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 LIBTOOL
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 ac_ct_AR
738 AR
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 PKG_REQUIRES_PRIVATES
767 LIBS_PRIVATES
768 GDLIB_LT_AGE
769 GDLIB_LT_REVISION
770 GDLIB_LT_CURRENT
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 runstatedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_silent_rules
823 enable_dependency_tracking
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_aix_soname
829 with_gnu_ld
830 with_sysroot
831 enable_libtool_lock
832 with_x
833 enable_rpath
834 with_libiconv_prefix
835 enable_gd_formats
836 with_zlib
837 with_png
838 with_freetype
839 with_raqm
840 with_fontconfig
841 with_jpeg
842 with_liq
843 with_xpm
844 with_tiff
845 with_webp
846 with_heif
847 with_avif
848 enable_werror
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 LT_SYS_LIBRARY_PATH
859 CPP
860 PKG_CONFIG
861 PKG_CONFIG_PATH
862 PKG_CONFIG_LIBDIR
863 XMKMF
864 LIBZ_CFLAGS
865 LIBZ_LIBS
866 LIBPNG_CFLAGS
867 LIBPNG_LIBS
868 LIBFREETYPE_CFLAGS
869 LIBFREETYPE_LIBS
870 LIBRAQM_CFLAGS
871 LIBRAQM_LIBS
872 LIBFONTCONFIG_CFLAGS
873 LIBFONTCONFIG_LIBS
874 LIBJPEG_CFLAGS
875 LIBJPEG_LIBS
876 LIBXPM_CFLAGS
877 LIBXPM_LIBS
878 LIBTIFF_CFLAGS
879 LIBTIFF_LIBS
880 LIBWEBP_CFLAGS
881 LIBWEBP_LIBS
882 LIBHEIF_CFLAGS
883 LIBHEIF_LIBS
884 LIBAVIF_CFLAGS
885 LIBAVIF_LIBS'
886
887
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 runstatedir='${localstatedir}/run'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
946 fi
947
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -runstatedir | --runstatedir | --runstatedi | --runstated \
1178 | --runstate | --runstat | --runsta | --runst | --runs \
1179 | --run | --ru | --r)
1180 ac_prev=runstatedir ;;
1181 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1182 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1183 | --run=* | --ru=* | --r=*)
1184 runstatedir=$ac_optarg ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291 esac
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1324 do
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
1333 case $ac_val in
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 esac
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures GD 2.3.3 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/libgd]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 X features:
1500 --x-includes=DIR X include files are in DIR
1501 --x-libraries=DIR X library files are in DIR
1502
1503 System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 _ACEOF
1507 fi
1508
1509 if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive ) echo "Configuration of GD 2.3.3:";;
1512 esac
1513 cat <<\_ACEOF
1514
1515 Optional Features:
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --enable-silent-rules less verbose build output (undo: "make V=1")
1520 --disable-silent-rules verbose build output (undo: "make V=0")
1521 --enable-dependency-tracking
1522 do not reject slow dependency extractors
1523 --disable-dependency-tracking
1524 speeds up one-time build
1525 --enable-shared[=PKGS] build shared libraries [default=yes]
1526 --enable-static[=PKGS] build static libraries [default=yes]
1527 --enable-fast-install[=PKGS]
1528 optimize for fast installation [default=yes]
1529 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --disable-rpath do not hardcode runtime library paths
1531 --disable-gd-formats Disable support for the legacy/testing gd image
1532 formats
1533 --enable-werror treat compile warnings as errors
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-aix-soname=aix|svr4|both
1541 shared library versioning (aka "SONAME") variant to
1542 provide on AIX, [default=aix].
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1545 compiler's sysroot if not specified).
1546 --with-x use the X Window System
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1549 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1550 --with-zlib[=DIR] Support zlib (optionally in DIR)
1551 --with-png[=DIR] Support png (optionally in DIR)
1552 --with-freetype[=DIR] Support freetype (optionally in DIR)
1553 --with-raqm[=DIR] Support raqm (optionally in DIR)
1554 --with-fontconfig[=DIR] Support fontconfig (optionally in DIR)
1555 --with-jpeg[=DIR] Support jpeg (optionally in DIR)
1556 --with-liq[=DIR] Support liq (optionally in DIR)
1557 --with-xpm[=DIR] Support xpm (optionally in DIR)
1558 --with-tiff[=DIR] Support tiff (optionally in DIR)
1559 --with-webp[=DIR] Support webp (optionally in DIR)
1560 --with-heif[=DIR] Support heif (optionally in DIR)
1561 --with-avif[=DIR] Support avif (optionally in DIR)
1562
1563 Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
1571 LT_SYS_LIBRARY_PATH
1572 User-defined run-time library search path.
1573 CPP C preprocessor
1574 PKG_CONFIG path to pkg-config utility
1575 PKG_CONFIG_PATH
1576 directories to add to pkg-config's search path
1577 PKG_CONFIG_LIBDIR
1578 path overriding pkg-config's built-in search path
1579 XMKMF Path to xmkmf, Makefile generator for X Window System
1580 LIBZ_CFLAGS C compiler flags for LIBZ, overriding pkg-config
1581 LIBZ_LIBS linker flags for LIBZ, overriding pkg-config
1582 LIBPNG_CFLAGS
1583 C compiler flags for LIBPNG, overriding pkg-config
1584 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1585 LIBFREETYPE_CFLAGS
1586 C compiler flags for LIBFREETYPE, overriding pkg-config
1587 LIBFREETYPE_LIBS
1588 linker flags for LIBFREETYPE, overriding pkg-config
1589 LIBRAQM_CFLAGS
1590 C compiler flags for LIBRAQM, overriding pkg-config
1591 LIBRAQM_LIBS
1592 linker flags for LIBRAQM, overriding pkg-config
1593 LIBFONTCONFIG_CFLAGS
1594 C compiler flags for LIBFONTCONFIG, overriding pkg-config
1595 LIBFONTCONFIG_LIBS
1596 linker flags for LIBFONTCONFIG, overriding pkg-config
1597 LIBJPEG_CFLAGS
1598 C compiler flags for LIBJPEG, overriding pkg-config
1599 LIBJPEG_LIBS
1600 linker flags for LIBJPEG, overriding pkg-config
1601 LIBXPM_CFLAGS
1602 C compiler flags for LIBXPM, overriding pkg-config
1603 LIBXPM_LIBS linker flags for LIBXPM, overriding pkg-config
1604 LIBTIFF_CFLAGS
1605 C compiler flags for LIBTIFF, overriding pkg-config
1606 LIBTIFF_LIBS
1607 linker flags for LIBTIFF, overriding pkg-config
1608 LIBWEBP_CFLAGS
1609 C compiler flags for LIBWEBP, overriding pkg-config
1610 LIBWEBP_LIBS
1611 linker flags for LIBWEBP, overriding pkg-config
1612 LIBHEIF_CFLAGS
1613 C compiler flags for LIBHEIF, overriding pkg-config
1614 LIBHEIF_LIBS
1615 linker flags for LIBHEIF, overriding pkg-config
1616 LIBAVIF_CFLAGS
1617 C compiler flags for LIBAVIF, overriding pkg-config
1618 LIBAVIF_LIBS
1619 linker flags for LIBAVIF, overriding pkg-config
1620
1621 Use these variables to override the choices made by `configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1623
1624 Report bugs to <https://github.com/libgd/libgd/issues>.
1625 GD home page: <https://lib.gd>.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1637
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1653
1654 case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 GD configure 2.3.3
1689 generated by GNU Autoconf 2.69
1690
1691 Copyright (C) 2012 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_link
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } > conftest.i && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889 fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1912
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918 #ifdef __STDC__
1919 # include <limits.h>
1920 #else
1921 # include <assert.h>
1922 #endif
1923
1924 #undef $2
1925
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929 #ifdef __cplusplus
1930 extern "C"
1931 #endif
1932 char $2 ();
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1937 choke me
1938 #endif
1939
1940 int
1941 main ()
1942 {
1943 return $2 ();
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_func
1962
1963 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_c_check_header_mongrel ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if eval \${$3+:} false; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1991 else
1992 ac_header_compiler=no
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1997
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2007 else
2008 ac_header_preproc=no
2009 fi
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2013
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016 yes:no: )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 ;;
2022 no:yes:* )
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ---------------------------------------------------- ##
2034 ## Report this to https://github.com/libgd/libgd/issues ##
2035 ## ---------------------------------------------------- ##"
2036 ) | sed "s/^/$as_me: WARNING: /" >&2
2037 ;;
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053 cat >config.log <<_ACEOF
2054 This file contains any messages produced by compilers while
2055 running configure, to aid debugging if configure makes a mistake.
2056
2057 It was created by GD $as_me 2.3.3, which was
2058 generated by GNU Autoconf 2.69. Invocation command line was
2059
2060 $ $0 $@
2061
2062 _ACEOF
2063 exec 5>>config.log
2064 {
2065 cat <<_ASUNAME
2066 ## --------- ##
2067 ## Platform. ##
2068 ## --------- ##
2069
2070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2075
2076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2077 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2078
2079 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2080 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2082 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2083 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2084 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2085 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2086
2087 _ASUNAME
2088
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 $as_echo "PATH: $as_dir"
2095 done
2096 IFS=$as_save_IFS
2097
2098 } >&5
2099
2100 cat >&5 <<_ACEOF
2101
2102
2103 ## ----------- ##
2104 ## Core tests. ##
2105 ## ----------- ##
2106
2107 _ACEOF
2108
2109
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_configure_args=
2116 ac_configure_args0=
2117 ac_configure_args1=
2118 ac_must_keep_next=false
2119 for ac_pass in 1 2
2120 do
2121 for ac_arg
2122 do
2123 case $ac_arg in
2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126 | -silent | --silent | --silen | --sile | --sil)
2127 continue ;;
2128 *\'*)
2129 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 esac
2131 case $ac_pass in
2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133 2)
2134 as_fn_append ac_configure_args1 " '$ac_arg'"
2135 if test $ac_must_keep_next = true; then
2136 ac_must_keep_next=false # Got value, back to normal.
2137 else
2138 case $ac_arg in
2139 *=* | --config-cache | -C | -disable-* | --disable-* \
2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142 | -with-* | --with-* | -without-* | --without-* | --x)
2143 case "$ac_configure_args0 " in
2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145 esac
2146 ;;
2147 -* ) ac_must_keep_next=true ;;
2148 esac
2149 fi
2150 as_fn_append ac_configure_args " '$ac_arg'"
2151 ;;
2152 esac
2153 done
2154 done
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2157
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log. We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164 # Save into config.log some information that might help in debugging.
2165 {
2166 echo
2167
2168 $as_echo "## ---------------- ##
2169 ## Cache variables. ##
2170 ## ---------------- ##"
2171 echo
2172 # The following way of writing the cache mishandles newlines in values,
2173 (
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in #(
2177 *${as_nl}*)
2178 case $ac_var in #(
2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 esac
2182 case $ac_var in #(
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2186 esac ;;
2187 esac
2188 done
2189 (set) 2>&1 |
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2192 sed -n \
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 ;; #(
2196 *)
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 ;;
2199 esac |
2200 sort
2201 )
2202 echo
2203
2204 $as_echo "## ----------------- ##
2205 ## Output variables. ##
2206 ## ----------------- ##"
2207 echo
2208 for ac_var in $ac_subst_vars
2209 do
2210 eval ac_val=\$$ac_var
2211 case $ac_val in
2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213 esac
2214 $as_echo "$ac_var='\''$ac_val'\''"
2215 done | sort
2216 echo
2217
2218 if test -n "$ac_subst_files"; then
2219 $as_echo "## ------------------- ##
2220 ## File substitutions. ##
2221 ## ------------------- ##"
2222 echo
2223 for ac_var in $ac_subst_files
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2232 fi
2233
2234 if test -s confdefs.h; then
2235 $as_echo "## ----------- ##
2236 ## confdefs.h. ##
2237 ## ----------- ##"
2238 echo
2239 cat confdefs.h
2240 echo
2241 fi
2242 test "$ac_signal" != 0 &&
2243 $as_echo "$as_me: caught signal $ac_signal"
2244 $as_echo "$as_me: exit $exit_status"
2245 } >&5
2246 rm -f core *.core core.conftest.* &&
2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248 exit $exit_status
2249 ' 0
2250 for ac_signal in 1 2 13 15; do
2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 done
2253 ac_signal=0
2254
2255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2256 rm -f -r conftest* confdefs.h
2257
2258 $as_echo "/* confdefs.h */" > confdefs.h
2259
2260 # Predefined preprocessor variables.
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_NAME "$PACKAGE_NAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_STRING "$PACKAGE_STRING"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_URL "$PACKAGE_URL"
2284 _ACEOF
2285
2286
2287 # Let the site file select an alternate cache file if it wants to.
2288 # Prefer an explicitly selected file to automatically selected ones.
2289 ac_site_file1=NONE
2290 ac_site_file2=NONE
2291 if test -n "$CONFIG_SITE"; then
2292 # We do not want a PATH search for config.site.
2293 case $CONFIG_SITE in #((
2294 -*) ac_site_file1=./$CONFIG_SITE;;
2295 */*) ac_site_file1=$CONFIG_SITE;;
2296 *) ac_site_file1=./$CONFIG_SITE;;
2297 esac
2298 elif test "x$prefix" != xNONE; then
2299 ac_site_file1=$prefix/share/config.site
2300 ac_site_file2=$prefix/etc/config.site
2301 else
2302 ac_site_file1=$ac_default_prefix/share/config.site
2303 ac_site_file2=$ac_default_prefix/etc/config.site
2304 fi
2305 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306 do
2307 test "x$ac_site_file" = xNONE && continue
2308 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2311 sed 's/^/| /' "$ac_site_file" >&5
2312 . "$ac_site_file" \
2313 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 as_fn_error $? "failed to load site script $ac_site_file
2316 See \`config.log' for more details" "$LINENO" 5; }
2317 fi
2318 done
2319
2320 if test -r "$cache_file"; then
2321 # Some versions of bash will fail to source /dev/null (special files
2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 $as_echo "$as_me: loading cache $cache_file" >&6;}
2326 case $cache_file in
2327 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328 *) . "./$cache_file";;
2329 esac
2330 fi
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 >$cache_file
2335 fi
2336
2337 as_fn_append ac_header_list " dirent.h"
2338 as_fn_append ac_header_list " inttypes.h"
2339 as_fn_append ac_header_list " stdint.h"
2340 as_fn_append ac_header_list " strings.h"
2341 as_fn_append ac_header_list " unistd.h"
2342 as_fn_append ac_header_list " sys/stat.h"
2343 as_fn_append ac_header_list " sys/types.h"
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2353 set,)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,set)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,);;
2362 *)
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 fi;;
2381 esac
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2384 case $ac_new_val in
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2387 esac
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 esac
2392 fi
2393 done
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413 ac_aux_dir=
2414 for ac_dir in config "$srcdir"/config; do
2415 if test -f "$ac_dir/install-sh"; then
2416 ac_aux_dir=$ac_dir
2417 ac_install_sh="$ac_aux_dir/install-sh -c"
2418 break
2419 elif test -f "$ac_dir/install.sh"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/install.sh -c"
2422 break
2423 elif test -f "$ac_dir/shtool"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/shtool install -c"
2426 break
2427 fi
2428 done
2429 if test -z "$ac_aux_dir"; then
2430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2431 fi
2432
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2438 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2439 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2440
2441
2442
2443 # Make sure we can run config.sub.
2444 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2445 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2446
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2448 $as_echo_n "checking build system type... " >&6; }
2449 if ${ac_cv_build+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 ac_build_alias=$build_alias
2453 test "x$ac_build_alias" = x &&
2454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2455 test "x$ac_build_alias" = x &&
2456 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2457 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2459
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2462 $as_echo "$ac_cv_build" >&6; }
2463 case $ac_cv_build in
2464 *-*-*) ;;
2465 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2466 esac
2467 build=$ac_cv_build
2468 ac_save_IFS=$IFS; IFS='-'
2469 set x $ac_cv_build
2470 shift
2471 build_cpu=$1
2472 build_vendor=$2
2473 shift; shift
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2476 build_os=$*
2477 IFS=$ac_save_IFS
2478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2479
2480
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2482 $as_echo_n "checking host system type... " >&6; }
2483 if ${ac_cv_host+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test "x$host_alias" = x; then
2487 ac_cv_host=$ac_cv_build
2488 else
2489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2491 fi
2492
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2495 $as_echo "$ac_cv_host" >&6; }
2496 case $ac_cv_host in
2497 *-*-*) ;;
2498 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2499 esac
2500 host=$ac_cv_host
2501 ac_save_IFS=$IFS; IFS='-'
2502 set x $ac_cv_host
2503 shift
2504 host_cpu=$1
2505 host_vendor=$2
2506 shift; shift
2507 # Remember, the first character of IFS is used to create $*,
2508 # except with old shells:
2509 host_os=$*
2510 IFS=$ac_save_IFS
2511 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512
2513
2514
2515
2516
2517
2518
2519
2520 GDLIB_LT_CURRENT=3
2521 GDLIB_LT_REVISION=11
2522 GDLIB_LT_AGE=0
2523
2524
2525
2526
2527
2528
2529
2530
2531 am__api_version='1.16'
2532
2533 # Find a good install program. We prefer a C program (faster),
2534 # so one script is as good as another. But avoid the broken or
2535 # incompatible versions:
2536 # SysV /etc/install, /usr/sbin/install
2537 # SunOS /usr/etc/install
2538 # IRIX /sbin/install
2539 # AIX /bin/install
2540 # AmigaOS /C/install, which installs bootblocks on floppy discs
2541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2544 # OS/2's system install, which has a completely different semantic
2545 # ./install, which can be erroneously created by make from ./install.sh.
2546 # Reject install programs that cannot install multiple files.
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2549 if test -z "$INSTALL"; then
2550 if ${ac_cv_path_install+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 # Account for people who put trailing slashes in PATH elements.
2559 case $as_dir/ in #((
2560 ./ | .// | /[cC]/* | \
2561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2563 /usr/ucb/* ) ;;
2564 *)
2565 # OSF1 and SCO ODT 3.0 have their own names for install.
2566 # Don't use installbsd from OSF since it installs stuff as root
2567 # by default.
2568 for ac_prog in ginstall scoinst install; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2574 :
2575 elif test $ac_prog = install &&
2576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2578 :
2579 else
2580 rm -rf conftest.one conftest.two conftest.dir
2581 echo one > conftest.one
2582 echo two > conftest.two
2583 mkdir conftest.dir
2584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2585 test -s conftest.one && test -s conftest.two &&
2586 test -s conftest.dir/conftest.one &&
2587 test -s conftest.dir/conftest.two
2588 then
2589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2590 break 3
2591 fi
2592 fi
2593 fi
2594 done
2595 done
2596 ;;
2597 esac
2598
2599 done
2600 IFS=$as_save_IFS
2601
2602 rm -rf conftest.one conftest.two conftest.dir
2603
2604 fi
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL=$ac_cv_path_install
2607 else
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 INSTALL=$ac_install_sh
2613 fi
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2616 $as_echo "$INSTALL" >&6; }
2617
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2621
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2623
2624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2627 $as_echo_n "checking whether build environment is sane... " >&6; }
2628 # Reject unsafe characters in $srcdir or the absolute working directory
2629 # name. Accept space and tab only in the latter.
2630 am_lf='
2631 '
2632 case `pwd` in
2633 *[\\\"\#\$\&\'\`$am_lf]*)
2634 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2635 esac
2636 case $srcdir in
2637 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2638 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2639 esac
2640
2641 # Do 'set' in a subshell so we don't clobber the current shell's
2642 # arguments. Must try -L first in case configure is actually a
2643 # symlink; some systems play weird games with the mod time of symlinks
2644 # (eg FreeBSD returns the mod time of the symlink's containing
2645 # directory).
2646 if (
2647 am_has_slept=no
2648 for am_try in 1 2; do
2649 echo "timestamp, slept: $am_has_slept" > conftest.file
2650 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2651 if test "$*" = "X"; then
2652 # -L didn't work.
2653 set X `ls -t "$srcdir/configure" conftest.file`
2654 fi
2655 if test "$*" != "X $srcdir/configure conftest.file" \
2656 && test "$*" != "X conftest.file $srcdir/configure"; then
2657
2658 # If neither matched, then we have a broken ls. This can happen
2659 # if, for instance, CONFIG_SHELL is bash and it inherits a
2660 # broken ls alias from the environment. This has actually
2661 # happened. Such a system could not be considered "sane".
2662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2663 alias in your environment" "$LINENO" 5
2664 fi
2665 if test "$2" = conftest.file || test $am_try -eq 2; then
2666 break
2667 fi
2668 # Just in case.
2669 sleep 1
2670 am_has_slept=yes
2671 done
2672 test "$2" = conftest.file
2673 )
2674 then
2675 # Ok.
2676 :
2677 else
2678 as_fn_error $? "newly created file is older than distributed files!
2679 Check your system clock" "$LINENO" 5
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2682 $as_echo "yes" >&6; }
2683 # If we didn't sleep, we still need to ensure time stamps of config.status and
2684 # generated files are strictly newer.
2685 am_sleep_pid=
2686 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2687 ( sleep 1 ) &
2688 am_sleep_pid=$!
2689 fi
2690
2691 rm -f conftest.file
2692
2693 test "$program_prefix" != NONE &&
2694 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2695 # Use a double $ so make ignores it.
2696 test "$program_suffix" != NONE &&
2697 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2698 # Double any \ or $.
2699 # By default was `s,x,x', remove it if useless.
2700 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2701 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2702
2703 # Expand $ac_aux_dir to an absolute path.
2704 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2705
2706 if test x"${MISSING+set}" != xset; then
2707 case $am_aux_dir in
2708 *\ * | *\ *)
2709 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2710 *)
2711 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2712 esac
2713 fi
2714 # Use eval to expand $SHELL
2715 if eval "$MISSING --is-lightweight"; then
2716 am_missing_run="$MISSING "
2717 else
2718 am_missing_run=
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2720 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2721 fi
2722
2723 if test x"${install_sh+set}" != xset; then
2724 case $am_aux_dir in
2725 *\ * | *\ *)
2726 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2727 *)
2728 install_sh="\${SHELL} $am_aux_dir/install-sh"
2729 esac
2730 fi
2731
2732 # Installed binaries are usually stripped using 'strip' when the user
2733 # run "make install-strip". However 'strip' might not be the right
2734 # tool to use in cross-compilation environments, therefore Automake
2735 # will honor the 'STRIP' environment variable to overrule this program.
2736 if test "$cross_compiling" != no; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}strip; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_STRIP+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$STRIP"; then
2746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 STRIP=$ac_cv_prog_STRIP
2766 if test -n "$STRIP"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2768 $as_echo "$STRIP" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 if test -z "$ac_cv_prog_STRIP"; then
2777 ac_ct_STRIP=$STRIP
2778 # Extract the first word of "strip", so it can be a program name with args.
2779 set dummy strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_STRIP"; then
2786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_ac_ct_STRIP="strip"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2806 if test -n "$ac_ct_STRIP"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2808 $as_echo "$ac_ct_STRIP" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814 if test "x$ac_ct_STRIP" = x; then
2815 STRIP=":"
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 STRIP=$ac_ct_STRIP
2824 fi
2825 else
2826 STRIP="$ac_cv_prog_STRIP"
2827 fi
2828
2829 fi
2830 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2833 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2834 if test -z "$MKDIR_P"; then
2835 if ${ac_cv_path_mkdir+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_prog in mkdir gmkdir; do
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2846 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2847 'mkdir (GNU coreutils) '* | \
2848 'mkdir (coreutils) '* | \
2849 'mkdir (fileutils) '4.1*)
2850 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2851 break 3;;
2852 esac
2853 done
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859
2860 test -d ./--version && rmdir ./--version
2861 if test "${ac_cv_path_mkdir+set}" = set; then
2862 MKDIR_P="$ac_cv_path_mkdir -p"
2863 else
2864 # As a last resort, use the slow shell script. Don't cache a
2865 # value for MKDIR_P within a source directory, because that will
2866 # break other packages using the cache if that directory is
2867 # removed, or if the value is a relative name.
2868 MKDIR_P="$ac_install_sh -d"
2869 fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2872 $as_echo "$MKDIR_P" >&6; }
2873
2874 for ac_prog in gawk mawk nawk awk
2875 do
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_AWK+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$AWK"; then
2884 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_AWK="$ac_prog"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 AWK=$ac_cv_prog_AWK
2904 if test -n "$AWK"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2906 $as_echo "$AWK" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913 test -n "$AWK" && break
2914 done
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2918 set x ${MAKE-make}
2919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2920 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 cat >conftest.make <<\_ACEOF
2924 SHELL = /bin/sh
2925 all:
2926 @echo '@@@%%%=$(MAKE)=@@@%%%'
2927 _ACEOF
2928 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2930 *@@@%%%=?*=@@@%%%*)
2931 eval ac_cv_prog_make_${ac_make}_set=yes;;
2932 *)
2933 eval ac_cv_prog_make_${ac_make}_set=no;;
2934 esac
2935 rm -f conftest.make
2936 fi
2937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2939 $as_echo "yes" >&6; }
2940 SET_MAKE=
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 SET_MAKE="MAKE=${MAKE-make}"
2945 fi
2946
2947 rm -rf .tst 2>/dev/null
2948 mkdir .tst 2>/dev/null
2949 if test -d .tst; then
2950 am__leading_dot=.
2951 else
2952 am__leading_dot=_
2953 fi
2954 rmdir .tst 2>/dev/null
2955
2956 # Check whether --enable-silent-rules was given.
2957 if test "${enable_silent_rules+set}" = set; then :
2958 enableval=$enable_silent_rules;
2959 fi
2960
2961 case $enable_silent_rules in # (((
2962 yes) AM_DEFAULT_VERBOSITY=0;;
2963 no) AM_DEFAULT_VERBOSITY=1;;
2964 *) AM_DEFAULT_VERBOSITY=1;;
2965 esac
2966 am_make=${MAKE-make}
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2968 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2969 if ${am_cv_make_support_nested_variables+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if $as_echo 'TRUE=$(BAR$(V))
2973 BAR0=false
2974 BAR1=true
2975 V=1
2976 am__doit:
2977 @$(TRUE)
2978 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2979 am_cv_make_support_nested_variables=yes
2980 else
2981 am_cv_make_support_nested_variables=no
2982 fi
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2985 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2986 if test $am_cv_make_support_nested_variables = yes; then
2987 AM_V='$(V)'
2988 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2989 else
2990 AM_V=$AM_DEFAULT_VERBOSITY
2991 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2992 fi
2993 AM_BACKSLASH='\'
2994
2995 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2996 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2997 # is not polluted with repeated "-I."
2998 am__isrc=' -I$(srcdir)'
2999 # test to see if srcdir already configured
3000 if test -f $srcdir/config.status; then
3001 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3002 fi
3003 fi
3004
3005 # test whether we have cygpath
3006 if test -z "$CYGPATH_W"; then
3007 if (cygpath --version) >/dev/null 2>/dev/null; then
3008 CYGPATH_W='cygpath -w'
3009 else
3010 CYGPATH_W=echo
3011 fi
3012 fi
3013
3014
3015 # Define the identity of the package.
3016 PACKAGE='libgd'
3017 VERSION='2.3.3'
3018
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE "$PACKAGE"
3022 _ACEOF
3023
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define VERSION "$VERSION"
3027 _ACEOF
3028
3029 # Some tools Automake needs.
3030
3031 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3032
3033
3034 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3035
3036
3037 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3038
3039
3040 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3041
3042
3043 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3044
3045 # For better backward compatibility. To be removed once Automake 1.9.x
3046 # dies out for good. For more background, see:
3047 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3048 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3049 mkdir_p='$(MKDIR_P)'
3050
3051 # We need awk for the "check" target (and possibly the TAP driver). The
3052 # system "awk" is bad on some platforms.
3053 # Always define AMTAR for backward compatibility. Yes, it's still used
3054 # in the wild :-( We should find a proper way to deprecate it ...
3055 AMTAR='$${TAR-tar}'
3056
3057
3058 # We'll loop over all known methods to create a tar archive until one works.
3059 _am_tools='gnutar pax cpio none'
3060
3061 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3062
3063
3064
3065
3066
3067
3068 # POSIX will say in a future version that running "rm -f" with no argument
3069 # is OK; and we want to be able to make that assumption in our Makefile
3070 # recipes. So use an aggressive probe to check that the usage we want is
3071 # actually supported "in the wild" to an acceptable degree.
3072 # See automake bug#10828.
3073 # To make any issue more visible, cause the running configure to be aborted
3074 # by default if the 'rm' program in use doesn't match our expectations; the
3075 # user can still override this though.
3076 if rm -f && rm -fr && rm -rf; then : OK; else
3077 cat >&2 <<'END'
3078 Oops!
3079
3080 Your 'rm' program seems unable to run without file operands specified
3081 on the command line, even when the '-f' option is present. This is contrary
3082 to the behaviour of most rm programs out there, and not conforming with
3083 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3084
3085 Please tell [email protected] about your system, including the value
3086 of your $PATH and any error possibly output before this message. This
3087 can help us improve future automake versions.
3088
3089 END
3090 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3091 echo 'Configuration will proceed anyway, since you have set the' >&2
3092 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3093 echo >&2
3094 else
3095 cat >&2 <<'END'
3096 Aborting the configuration process, to ensure you take notice of the issue.
3097
3098 You can download and install GNU coreutils to get an 'rm' implementation
3099 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3100
3101 If you want to complete the configuration process using your problematic
3102 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3103 to "yes", and re-run configure.
3104
3105 END
3106 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3107 fi
3108 fi
3109
3110 ac_config_headers="$ac_config_headers src/config.h:src/config.hin"
3111
3112
3113 DEPDIR="${am__leading_dot}deps"
3114
3115 ac_config_commands="$ac_config_commands depfiles"
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3118 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3119 cat > confinc.mk << 'END'
3120 am__doit:
3121 @echo this is the am__doit target >confinc.out
3122 .PHONY: am__doit
3123 END
3124 am__include="#"
3125 am__quote=
3126 # BSD make does it like this.
3127 echo '.include "confinc.mk" # ignored' > confmf.BSD
3128 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3129 echo 'include confinc.mk # ignored' > confmf.GNU
3130 _am_result=no
3131 for s in GNU BSD; do
3132 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3133 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 case $?:`cat confinc.out 2>/dev/null` in #(
3138 '0:this is the am__doit target') :
3139 case $s in #(
3140 BSD) :
3141 am__include='.include' am__quote='"' ;; #(
3142 *) :
3143 am__include='include' am__quote='' ;;
3144 esac ;; #(
3145 *) :
3146 ;;
3147 esac
3148 if test "$am__include" != "#"; then
3149 _am_result="yes ($s style)"
3150 break
3151 fi
3152 done
3153 rm -f confinc.* confmf.*
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3155 $as_echo "${_am_result}" >&6; }
3156
3157 # Check whether --enable-dependency-tracking was given.
3158 if test "${enable_dependency_tracking+set}" = set; then :
3159 enableval=$enable_dependency_tracking;
3160 fi
3161
3162 if test "x$enable_dependency_tracking" != xno; then
3163 am_depcomp="$ac_aux_dir/depcomp"
3164 AMDEPBACKSLASH='\'
3165 am__nodep='_no'
3166 fi
3167 if test "x$enable_dependency_tracking" != xno; then
3168 AMDEP_TRUE=
3169 AMDEP_FALSE='#'
3170 else
3171 AMDEP_TRUE='#'
3172 AMDEP_FALSE=
3173 fi
3174
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 if test -z "$ac_cv_prog_CC"; then
3221 ac_ct_CC=$CC
3222 # Extract the first word of "gcc", so it can be a program name with args.
3223 set dummy gcc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC="gcc"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252 $as_echo "$ac_ct_CC" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 CC=$ac_ct_CC
3268 fi
3269 else
3270 CC="$ac_cv_prog_CC"
3271 fi
3272
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}cc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_CC+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}cc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312 fi
3313 fi
3314 if test -z "$CC"; then
3315 # Extract the first word of "cc", so it can be a program name with args.
3316 set dummy cc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 ac_prog_rejected=no
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3334 ac_prog_rejected=yes
3335 continue
3336 fi
3337 ac_cv_prog_CC="cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 if test $ac_prog_rejected = yes; then
3346 # We found a bogon in the path, so make sure we never use it.
3347 set dummy $ac_cv_prog_CC
3348 shift
3349 if test $# != 0; then
3350 # We chose a different compiler from the bogus one.
3351 # However, it has the same basename, so the bogon will be chosen
3352 # first if we set CC to just the basename; use the full file name.
3353 shift
3354 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3355 fi
3356 fi
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 fi
3370 if test -z "$CC"; then
3371 if test -n "$ac_tool_prefix"; then
3372 for ac_prog in cl.exe
3373 do
3374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410
3411 test -n "$CC" && break
3412 done
3413 fi
3414 if test -z "$CC"; then
3415 ac_ct_CC=$CC
3416 for ac_prog in cl.exe
3417 do
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$ac_ct_CC"; then
3426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_ac_ct_CC="$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454
3455 test -n "$ac_ct_CC" && break
3456 done
3457
3458 if test "x$ac_ct_CC" = x; then
3459 CC=""
3460 else
3461 case $cross_compiling:$ac_tool_warned in
3462 yes:)
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3465 ac_tool_warned=yes ;;
3466 esac
3467 CC=$ac_ct_CC
3468 fi
3469 fi
3470
3471 fi
3472
3473
3474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "no acceptable C compiler found in \$PATH
3477 See \`config.log' for more details" "$LINENO" 5; }
3478
3479 # Provide some information about the compiler.
3480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3481 set X $ac_compile
3482 ac_compiler=$2
3483 for ac_option in --version -v -V -qversion; do
3484 { { ac_try="$ac_compiler $ac_option >&5"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3492 ac_status=$?
3493 if test -s conftest.err; then
3494 sed '10a\
3495 ... rest of stderr output deleted ...
3496 10q' conftest.err >conftest.er1
3497 cat conftest.er1 >&5
3498 fi
3499 rm -f conftest.er1 conftest.err
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }
3502 done
3503
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 ac_clean_files_save=$ac_clean_files
3516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3517 # Try to create an executable without -o first, disregard a.out.
3518 # It will help us diagnose broken compilers, and finding out an intuition
3519 # of exeext.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3521 $as_echo_n "checking whether the C compiler works... " >&6; }
3522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523
3524 # The possible output files:
3525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3526
3527 ac_rmfiles=
3528 for ac_file in $ac_files
3529 do
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3533 esac
3534 done
3535 rm -f $ac_rmfiles
3536
3537 if { { ac_try="$ac_link_default"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_link_default") 2>&5
3545 ac_status=$?
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; then :
3548 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3550 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3551 # so that the user can short-circuit this test for compilers unknown to
3552 # Autoconf.
3553 for ac_file in $ac_files ''
3554 do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3558 ;;
3559 [ab].out )
3560 # We found the default executable, but exeext='' is most
3561 # certainly right.
3562 break;;
3563 *.* )
3564 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3565 then :; else
3566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 fi
3568 # We set ac_cv_exeext here because the later test for it is not
3569 # safe: cross compilers may not add the suffix if given an `-o'
3570 # argument, so we may need to know it at that point already.
3571 # Even if this section looks crufty: it has the advantage of
3572 # actually working.
3573 break;;
3574 * )
3575 break;;
3576 esac
3577 done
3578 test "$ac_cv_exeext" = no && ac_cv_exeext=
3579
3580 else
3581 ac_file=''
3582 fi
3583 if test -z "$ac_file"; then :
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error 77 "C compiler cannot create executables
3592 See \`config.log' for more details" "$LINENO" 5; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3598 $as_echo_n "checking for C compiler default output file name... " >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3600 $as_echo "$ac_file" >&6; }
3601 ac_exeext=$ac_cv_exeext
3602
3603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3604 ac_clean_files=$ac_clean_files_save
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606 $as_echo_n "checking for suffix of executables... " >&6; }
3607 if { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3620 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 # `rm'.
3622 for ac_file in conftest.exe conftest conftest.*; do
3623 test -f "$ac_file" || continue
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 break;;
3628 * ) break;;
3629 esac
3630 done
3631 else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest conftest$ac_cv_exeext
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639 $as_echo "$ac_cv_exeext" >&6; }
3640
3641 rm -f conftest.$ac_ext
3642 EXEEXT=$ac_cv_exeext
3643 ac_exeext=$EXEEXT
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #include <stdio.h>
3647 int
3648 main ()
3649 {
3650 FILE *f = fopen ("conftest.out", "w");
3651 return ferror (f) || fclose (f) != 0;
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 ac_clean_files="$ac_clean_files conftest.out"
3658 # Check that the compiler produces executables we can run. If not, either
3659 # the compiler is broken, or we cross compile.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3661 $as_echo_n "checking whether we are cross compiling... " >&6; }
3662 if test "$cross_compiling" != yes; then
3663 { { ac_try="$ac_link"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_link") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }
3674 if { ac_try='./conftest$ac_cv_exeext'
3675 { { case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; }; then
3685 cross_compiling=no
3686 else
3687 if test "$cross_compiling" = maybe; then
3688 cross_compiling=yes
3689 else
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot run C compiled programs.
3693 If you meant to cross compile, use \`--host'.
3694 See \`config.log' for more details" "$LINENO" 5; }
3695 fi
3696 fi
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3699 $as_echo "$cross_compiling" >&6; }
3700
3701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3702 ac_clean_files=$ac_clean_files_save
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3704 $as_echo_n "checking for suffix of object files... " >&6; }
3705 if ${ac_cv_objext+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.o conftest.obj
3720 if { { ac_try="$ac_compile"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_compile") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; then :
3731 for ac_file in conftest.o conftest.obj conftest.*; do
3732 test -f "$ac_file" || continue;
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 break;;
3737 esac
3738 done
3739 else
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot compute suffix of object files: cannot compile
3746 See \`config.log' for more details" "$LINENO" 5; }
3747 fi
3748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3751 $as_echo "$ac_cv_objext" >&6; }
3752 OBJEXT=$ac_cv_objext
3753 ac_objext=$OBJEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3756 if ${ac_cv_c_compiler_gnu+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765 #ifndef __GNUC__
3766 choke me
3767 #endif
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_compiler_gnu=yes
3775 else
3776 ac_compiler_gnu=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3784 if test $ac_compiler_gnu = yes; then
3785 GCC=yes
3786 else
3787 GCC=
3788 fi
3789 ac_test_CFLAGS=${CFLAGS+set}
3790 ac_save_CFLAGS=$CFLAGS
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3793 if ${ac_cv_prog_cc_g+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 ac_save_c_werror_flag=$ac_c_werror_flag
3797 ac_c_werror_flag=yes
3798 ac_cv_prog_cc_g=no
3799 CFLAGS="-g"
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802
3803 int
3804 main ()
3805 {
3806
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_g=yes
3813 else
3814 CFLAGS=""
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827
3828 else
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3830 CFLAGS="-g"
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_g=yes
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3853 $as_echo "$ac_cv_prog_cc_g" >&6; }
3854 if test "$ac_test_CFLAGS" = set; then
3855 CFLAGS=$ac_save_CFLAGS
3856 elif test $ac_cv_prog_cc_g = yes; then
3857 if test "$GCC" = yes; then
3858 CFLAGS="-g -O2"
3859 else
3860 CFLAGS="-g"
3861 fi
3862 else
3863 if test "$GCC" = yes; then
3864 CFLAGS="-O2"
3865 else
3866 CFLAGS=
3867 fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3871 if ${ac_cv_prog_cc_c89+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_cv_prog_cc_c89=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <stdarg.h>
3879 #include <stdio.h>
3880 struct stat;
3881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3882 struct buf { int x; };
3883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3884 static char *e (p, i)
3885 char **p;
3886 int i;
3887 {
3888 return p[i];
3889 }
3890 static char *f (char * (*g) (char **, int), char **p, ...)
3891 {
3892 char *s;
3893 va_list v;
3894 va_start (v,p);
3895 s = g (p, va_arg (v,int));
3896 va_end (v);
3897 return s;
3898 }
3899
3900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3901 function prototypes and stuff, but not '\xHH' hex character constants.
3902 These don't provoke an error unfortunately, instead are silently treated
3903 as 'x'. The following induces an error, until -std is added to get
3904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3905 array size at least. It's necessary to write '\x00'==0 to get something
3906 that's true only with -std. */
3907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908
3909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3910 inside strings and character constants. */
3911 #define FOO(x) 'x'
3912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913
3914 int test (int i, double x);
3915 struct s1 {int (*f) (int a);};
3916 struct s2 {int (*f) (double a);};
3917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918 int argc;
3919 char **argv;
3920 int
3921 main ()
3922 {
3923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 do
3931 CC="$ac_save_CC $ac_arg"
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_prog_cc_c89=$ac_arg
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext
3936 test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 done
3938 rm -f conftest.$ac_ext
3939 CC=$ac_save_CC
3940
3941 fi
3942 # AC_CACHE_VAL
3943 case "x$ac_cv_prog_cc_c89" in
3944 x)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3946 $as_echo "none needed" >&6; } ;;
3947 xno)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3949 $as_echo "unsupported" >&6; } ;;
3950 *)
3951 CC="$CC $ac_cv_prog_cc_c89"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 esac
3955 if test "x$ac_cv_prog_cc_c89" != xno; then :
3956
3957 fi
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3971 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3972 if ${am_cv_prog_cc_c_o+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977
3978 int
3979 main ()
3980 {
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 # Make sure it works both with $CC and with simple cc.
3987 # Following AC_PROG_CC_C_O, we do the test twice because some
3988 # compilers refuse to overwrite an existing .o file with -o,
3989 # though they will create one.
3990 am_cv_prog_cc_c_o=yes
3991 for am_i in 1 2; do
3992 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3993 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } \
3997 && test -f conftest2.$ac_objext; then
3998 : OK
3999 else
4000 am_cv_prog_cc_c_o=no
4001 break
4002 fi
4003 done
4004 rm -f core conftest*
4005 unset am_i
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4008 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4009 if test "$am_cv_prog_cc_c_o" != yes; then
4010 # Losing compiler, so override with the script.
4011 # FIXME: It is wrong to rewrite CC.
4012 # But if we don't then we get into trouble of one sort or another.
4013 # A longer-term fix would be to have automake use am__CC in this case,
4014 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4015 CC="$am_aux_dir/compile $CC"
4016 fi
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023
4024 depcc="$CC" am_compiler_list=
4025
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4027 $as_echo_n "checking dependency style of $depcc... " >&6; }
4028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4032 # We make a subdir and do the tests there. Otherwise we can end up
4033 # making bogus files that we don't know about and never remove. For
4034 # instance it was reported that on HP-UX the gcc test will end up
4035 # making a dummy file named 'D' -- because '-MD' means "put the output
4036 # in D".
4037 rm -rf conftest.dir
4038 mkdir conftest.dir
4039 # Copy depcomp to subdir because otherwise we won't find it if we're
4040 # using a relative directory.
4041 cp "$am_depcomp" conftest.dir
4042 cd conftest.dir
4043 # We will build objects and dependencies in a subdirectory because
4044 # it helps to detect inapplicable dependency modes. For instance
4045 # both Tru64's cc and ICC support -MD to output dependencies as a
4046 # side effect of compilation, but ICC will put the dependencies in
4047 # the current directory while Tru64 will put them in the object
4048 # directory.
4049 mkdir sub
4050
4051 am_cv_CC_dependencies_compiler_type=none
4052 if test "$am_compiler_list" = ""; then
4053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4054 fi
4055 am__universal=false
4056 case " $depcc " in #(
4057 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4058 esac
4059
4060 for depmode in $am_compiler_list; do
4061 # Setup a source with many dependencies, because some compilers
4062 # like to wrap large dependency lists on column 80 (with \), and
4063 # we should not choose a depcomp mode which is confused by this.
4064 #
4065 # We need to recreate these files for each test, as the compiler may
4066 # overwrite some of them when testing with obscure command lines.
4067 # This happens at least with the AIX C compiler.
4068 : > sub/conftest.c
4069 for i in 1 2 3 4 5 6; do
4070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4072 # Solaris 10 /bin/sh.
4073 echo '/* dummy */' > sub/conftst$i.h
4074 done
4075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4076
4077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4078 # mode. It turns out that the SunPro C++ compiler does not properly
4079 # handle '-M -o', and we need to detect this. Also, some Intel
4080 # versions had trouble with output in subdirs.
4081 am__obj=sub/conftest.${OBJEXT-o}
4082 am__minus_obj="-o $am__obj"
4083 case $depmode in
4084 gcc)
4085 # This depmode causes a compiler race in universal mode.
4086 test "$am__universal" = false || continue
4087 ;;
4088 nosideeffect)
4089 # After this tag, mechanisms are not by side-effect, so they'll
4090 # only be used when explicitly requested.
4091 if test "x$enable_dependency_tracking" = xyes; then
4092 continue
4093 else
4094 break
4095 fi
4096 ;;
4097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4098 # This compiler won't grok '-c -o', but also, the minuso test has
4099 # not run yet. These depmodes are late enough in the game, and
4100 # so weak that their functioning should not be impacted.
4101 am__obj=conftest.${OBJEXT-o}
4102 am__minus_obj=
4103 ;;
4104 none) break ;;
4105 esac
4106 if depmode=$depmode \
4107 source=sub/conftest.c object=$am__obj \
4108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4110 >/dev/null 2>conftest.err &&
4111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4115 # icc doesn't choke on unknown options, it will just issue warnings
4116 # or remarks (even with -Werror). So we grep stderr for any message
4117 # that says an option was ignored or not supported.
4118 # When given -MP, icc 7.0 and 7.1 complain thusly:
4119 # icc: Command line warning: ignoring option '-M'; no argument required
4120 # The diagnosis changed in icc 8.0:
4121 # icc: Command line remark: option '-MP' not supported
4122 if (grep 'ignoring option' conftest.err ||
4123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4124 am_cv_CC_dependencies_compiler_type=$depmode
4125 break
4126 fi
4127 fi
4128 done
4129
4130 cd ..
4131 rm -rf conftest.dir
4132 else
4133 am_cv_CC_dependencies_compiler_type=none
4134 fi
4135
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4140
4141 if
4142 test "x$enable_dependency_tracking" != xno \
4143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCC_TRUE=
4145 am__fastdepCC_FALSE='#'
4146 else
4147 am__fastdepCC_TRUE='#'
4148 am__fastdepCC_FALSE=
4149 fi
4150
4151
4152
4153 if test -n "$ac_tool_prefix"; then
4154 for ac_prog in ar lib "link -lib"
4155 do
4156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_AR+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$AR"; then
4164 ac_cv_prog_AR="$AR" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177 done
4178 done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 AR=$ac_cv_prog_AR
4184 if test -n "$AR"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4186 $as_echo "$AR" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4190 fi
4191
4192
4193 test -n "$AR" && break
4194 done
4195 fi
4196 if test -z "$AR"; then
4197 ac_ct_AR=$AR
4198 for ac_prog in ar lib "link -lib"
4199 do
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$ac_ct_AR"; then
4208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_AR="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221 done
4222 done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4228 if test -n "$ac_ct_AR"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4230 $as_echo "$ac_ct_AR" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236
4237 test -n "$ac_ct_AR" && break
4238 done
4239
4240 if test "x$ac_ct_AR" = x; then
4241 AR="false"
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4248 esac
4249 AR=$ac_ct_AR
4250 fi
4251 fi
4252
4253 : ${AR=ar}
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4256 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4257 if ${am_cv_ar_interface+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 ac_ext=c
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266 am_cv_ar_interface=ar
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 int some_variable = 0;
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4274 (eval $am_ar_try) 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }
4278 if test "$ac_status" -eq 0; then
4279 am_cv_ar_interface=ar
4280 else
4281 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4283 (eval $am_ar_try) 2>&5
4284 ac_status=$?
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }
4287 if test "$ac_status" -eq 0; then
4288 am_cv_ar_interface=lib
4289 else
4290 am_cv_ar_interface=unknown
4291 fi
4292 fi
4293 rm -f conftest.lib libconftest.a
4294
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4305 $as_echo "$am_cv_ar_interface" >&6; }
4306
4307 case $am_cv_ar_interface in
4308 ar)
4309 ;;
4310 lib)
4311 # Microsoft lib, so override with the ar-lib wrapper script.
4312 # FIXME: It is wrong to rewrite AR.
4313 # But if we don't then we get into trouble of one sort or another.
4314 # A longer-term fix would be to have automake use am__AR in this case,
4315 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4316 # similar.
4317 AR="$am_aux_dir/ar-lib $AR"
4318 ;;
4319 unknown)
4320 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4321 ;;
4322 esac
4323
4324 case $ac_cv_prog_cc_stdc in #(
4325 no) :
4326 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4327 *) :
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4329 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4330 if ${ac_cv_prog_cc_c99+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 ac_cv_prog_cc_c99=no
4334 ac_save_CC=$CC
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #include <stdarg.h>
4338 #include <stdbool.h>
4339 #include <stdlib.h>
4340 #include <wchar.h>
4341 #include <stdio.h>
4342
4343 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4344 #define debug(...) fprintf (stderr, __VA_ARGS__)
4345 #define showlist(...) puts (#__VA_ARGS__)
4346 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4347 static void
4348 test_varargs_macros (void)
4349 {
4350 int x = 1234;
4351 int y = 5678;
4352 debug ("Flag");
4353 debug ("X = %d\n", x);
4354 showlist (The first, second, and third items.);
4355 report (x>y, "x is %d but y is %d", x, y);
4356 }
4357
4358 // Check long long types.
4359 #define BIG64 18446744073709551615ull
4360 #define BIG32 4294967295ul
4361 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4362 #if !BIG_OK
4363 your preprocessor is broken;
4364 #endif
4365 #if BIG_OK
4366 #else
4367 your preprocessor is broken;
4368 #endif
4369 static long long int bignum = -9223372036854775807LL;
4370 static unsigned long long int ubignum = BIG64;
4371
4372 struct incomplete_array
4373 {
4374 int datasize;
4375 double data[];
4376 };
4377
4378 struct named_init {
4379 int number;
4380 const wchar_t *name;
4381 double average;
4382 };
4383
4384 typedef const char *ccp;
4385
4386 static inline int
4387 test_restrict (ccp restrict text)
4388 {
4389 // See if C++-style comments work.
4390 // Iterate through items via the restricted pointer.
4391 // Also check for declarations in for loops.
4392 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4393 continue;
4394 return 0;
4395 }
4396
4397 // Check varargs and va_copy.
4398 static void
4399 test_varargs (const char *format, ...)
4400 {
4401 va_list args;
4402 va_start (args, format);
4403 va_list args_copy;
4404 va_copy (args_copy, args);
4405
4406 const char *str;
4407 int number;
4408 float fnumber;
4409
4410 while (*format)
4411 {
4412 switch (*format++)
4413 {
4414 case 's': // string
4415 str = va_arg (args_copy, const char *);
4416 break;
4417 case 'd': // int
4418 number = va_arg (args_copy, int);
4419 break;
4420 case 'f': // float
4421 fnumber = va_arg (args_copy, double);
4422 break;
4423 default:
4424 break;
4425 }
4426 }
4427 va_end (args_copy);
4428 va_end (args);
4429 }
4430
4431 int
4432 main ()
4433 {
4434
4435 // Check bool.
4436 _Bool success = false;
4437
4438 // Check restrict.
4439 if (test_restrict ("String literal") == 0)
4440 success = true;
4441 char *restrict newvar = "Another string";
4442
4443 // Check varargs.
4444 test_varargs ("s, d' f .", "string", 65, 34.234);
4445 test_varargs_macros ();
4446
4447 // Check flexible array members.
4448 struct incomplete_array *ia =
4449 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4450 ia->datasize = 10;
4451 for (int i = 0; i < ia->datasize; ++i)
4452 ia->data[i] = i * 1.234;
4453
4454 // Check named initializers.
4455 struct named_init ni = {
4456 .number = 34,
4457 .name = L"Test wide string",
4458 .average = 543.34343,
4459 };
4460
4461 ni.number = 58;
4462
4463 int dynamic_array[ni.number];
4464 dynamic_array[ni.number - 1] = 543;
4465
4466 // work around unused variable warnings
4467 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4468 || dynamic_array[ni.number - 1] != 543);
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4475 do
4476 CC="$ac_save_CC $ac_arg"
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_prog_cc_c99=$ac_arg
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext
4481 test "x$ac_cv_prog_cc_c99" != "xno" && break
4482 done
4483 rm -f conftest.$ac_ext
4484 CC=$ac_save_CC
4485
4486 fi
4487 # AC_CACHE_VAL
4488 case "x$ac_cv_prog_cc_c99" in
4489 x)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4491 $as_echo "none needed" >&6; } ;;
4492 xno)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4494 $as_echo "unsupported" >&6; } ;;
4495 *)
4496 CC="$CC $ac_cv_prog_cc_c99"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4498 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4499 esac
4500 if test "x$ac_cv_prog_cc_c99" != xno; then :
4501 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4504 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4505 if ${ac_cv_prog_cc_c89+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 ac_cv_prog_cc_c89=no
4509 ac_save_CC=$CC
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <stdarg.h>
4513 #include <stdio.h>
4514 struct stat;
4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4516 struct buf { int x; };
4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518 static char *e (p, i)
4519 char **p;
4520 int i;
4521 {
4522 return p[i];
4523 }
4524 static char *f (char * (*g) (char **, int), char **p, ...)
4525 {
4526 char *s;
4527 va_list v;
4528 va_start (v,p);
4529 s = g (p, va_arg (v,int));
4530 va_end (v);
4531 return s;
4532 }
4533
4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4535 function prototypes and stuff, but not '\xHH' hex character constants.
4536 These don't provoke an error unfortunately, instead are silently treated
4537 as 'x'. The following induces an error, until -std is added to get
4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4539 array size at least. It's necessary to write '\x00'==0 to get something
4540 that's true only with -std. */
4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4542
4543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4544 inside strings and character constants. */
4545 #define FOO(x) 'x'
4546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4547
4548 int test (int i, double x);
4549 struct s1 {int (*f) (int a);};
4550 struct s2 {int (*f) (double a);};
4551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4552 int argc;
4553 char **argv;
4554 int
4555 main ()
4556 {
4557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4564 do
4565 CC="$ac_save_CC $ac_arg"
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_prog_cc_c89=$ac_arg
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext
4570 test "x$ac_cv_prog_cc_c89" != "xno" && break
4571 done
4572 rm -f conftest.$ac_ext
4573 CC=$ac_save_CC
4574
4575 fi
4576 # AC_CACHE_VAL
4577 case "x$ac_cv_prog_cc_c89" in
4578 x)
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4580 $as_echo "none needed" >&6; } ;;
4581 xno)
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4583 $as_echo "unsupported" >&6; } ;;
4584 *)
4585 CC="$CC $ac_cv_prog_cc_c89"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4587 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4588 esac
4589 if test "x$ac_cv_prog_cc_c89" != xno; then :
4590 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4591 else
4592 ac_cv_prog_cc_stdc=no
4593 fi
4594
4595 fi
4596 ;;
4597 esac
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4599 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4600 if ${ac_cv_prog_cc_stdc+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 fi
4603
4604 case $ac_cv_prog_cc_stdc in #(
4605 no) :
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4607 $as_echo "unsupported" >&6; } ;; #(
4608 '') :
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4610 $as_echo "none needed" >&6; } ;; #(
4611 *) :
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4613 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4614 esac
4615
4616
4617
4618 case `pwd` in
4619 *\ * | *\ *)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4621 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4622 esac
4623
4624
4625
4626 macro_version='2.4.6'
4627 macro_revision='2.4.6'
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 ltmain=$ac_aux_dir/ltmain.sh
4642
4643 # Backslashify metacharacters that are still active within
4644 # double-quoted strings.
4645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4646
4647 # Same as above, but do not quote variable references.
4648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4649
4650 # Sed substitution to delay expansion of an escaped shell variable in a
4651 # double_quote_subst'ed string.
4652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4653
4654 # Sed substitution to delay expansion of an escaped single quote.
4655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4656
4657 # Sed substitution to avoid accidental globbing in evaled expressions
4658 no_glob_subst='s/\*/\\\*/g'
4659
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4675 {
4676 eval 'cat <<_LTECHO_EOF
4677 $1
4678 _LTECHO_EOF'
4679 }
4680 ECHO='func_fallback_echo'
4681 fi
4682
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4686 {
4687 $ECHO ""
4688 }
4689
4690 case $ECHO in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4714 if ${ac_cv_path_SED+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718 for ac_i in 1 2 3 4 5 6 7; do
4719 ac_script="$ac_script$as_nl$ac_script"
4720 done
4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722 { ac_script=; unset ac_script;}
4723 if test -z "$SED"; then
4724 ac_path_SED_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in sed gsed; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4734 as_fn_executable_p "$ac_path_SED" || continue
4735 # Check for GNU ac_path_SED and select it if it is found.
4736 # Check for GNU $ac_path_SED
4737 case `"$ac_path_SED" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4740 *)
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4744 do
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo '' >> "conftest.nl"
4749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_SED_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_SED="$ac_path_SED"
4755 ac_path_SED_max=$ac_count
4756 fi
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4762
4763 $ac_path_SED_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_SED"; then
4769 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4770 fi
4771 else
4772 ac_cv_path_SED=$SED
4773 fi
4774
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4777 $as_echo "$ac_cv_path_SED" >&6; }
4778 SED="$ac_cv_path_SED"
4779 rm -f conftest.sed
4780
4781 test -z "$SED" && SED=sed
4782 Xsed="$SED -e 1s/^X//"
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4796 if ${ac_cv_path_GREP+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -z "$GREP"; then
4800 ac_path_GREP_found=false
4801 # Loop through the user's path and test for each of PROGNAME-LIST
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_prog in grep ggrep; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4810 as_fn_executable_p "$ac_path_GREP" || continue
4811 # Check for GNU ac_path_GREP and select it if it is found.
4812 # Check for GNU $ac_path_GREP
4813 case `"$ac_path_GREP" --version 2>&1` in
4814 *GNU*)
4815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4816 *)
4817 ac_count=0
4818 $as_echo_n 0123456789 >"conftest.in"
4819 while :
4820 do
4821 cat "conftest.in" "conftest.in" >"conftest.tmp"
4822 mv "conftest.tmp" "conftest.in"
4823 cp "conftest.in" "conftest.nl"
4824 $as_echo 'GREP' >> "conftest.nl"
4825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827 as_fn_arith $ac_count + 1 && ac_count=$as_val
4828 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4829 # Best one so far, save it but keep looking for a better one
4830 ac_cv_path_GREP="$ac_path_GREP"
4831 ac_path_GREP_max=$ac_count
4832 fi
4833 # 10*(2^10) chars as input seems more than enough
4834 test $ac_count -gt 10 && break
4835 done
4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4838
4839 $ac_path_GREP_found && break 3
4840 done
4841 done
4842 done
4843 IFS=$as_save_IFS
4844 if test -z "$ac_cv_path_GREP"; then
4845 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 fi
4847 else
4848 ac_cv_path_GREP=$GREP
4849 fi
4850
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4853 $as_echo "$ac_cv_path_GREP" >&6; }
4854 GREP="$ac_cv_path_GREP"
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4858 $as_echo_n "checking for egrep... " >&6; }
4859 if ${ac_cv_path_EGREP+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4863 then ac_cv_path_EGREP="$GREP -E"
4864 else
4865 if test -z "$EGREP"; then
4866 ac_path_EGREP_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_prog in egrep; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4876 as_fn_executable_p "$ac_path_EGREP" || continue
4877 # Check for GNU ac_path_EGREP and select it if it is found.
4878 # Check for GNU $ac_path_EGREP
4879 case `"$ac_path_EGREP" --version 2>&1` in
4880 *GNU*)
4881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4882 *)
4883 ac_count=0
4884 $as_echo_n 0123456789 >"conftest.in"
4885 while :
4886 do
4887 cat "conftest.in" "conftest.in" >"conftest.tmp"
4888 mv "conftest.tmp" "conftest.in"
4889 cp "conftest.in" "conftest.nl"
4890 $as_echo 'EGREP' >> "conftest.nl"
4891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893 as_fn_arith $ac_count + 1 && ac_count=$as_val
4894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4895 # Best one so far, save it but keep looking for a better one
4896 ac_cv_path_EGREP="$ac_path_EGREP"
4897 ac_path_EGREP_max=$ac_count
4898 fi
4899 # 10*(2^10) chars as input seems more than enough
4900 test $ac_count -gt 10 && break
4901 done
4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903 esac
4904
4905 $ac_path_EGREP_found && break 3
4906 done
4907 done
4908 done
4909 IFS=$as_save_IFS
4910 if test -z "$ac_cv_path_EGREP"; then
4911 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912 fi
4913 else
4914 ac_cv_path_EGREP=$EGREP
4915 fi
4916
4917 fi
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4920 $as_echo "$ac_cv_path_EGREP" >&6; }
4921 EGREP="$ac_cv_path_EGREP"
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4925 $as_echo_n "checking for fgrep... " >&6; }
4926 if ${ac_cv_path_FGREP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4930 then ac_cv_path_FGREP="$GREP -F"
4931 else
4932 if test -z "$FGREP"; then
4933 ac_path_FGREP_found=false
4934 # Loop through the user's path and test for each of PROGNAME-LIST
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4937 do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_prog in fgrep; do
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4943 as_fn_executable_p "$ac_path_FGREP" || continue
4944 # Check for GNU ac_path_FGREP and select it if it is found.
4945 # Check for GNU $ac_path_FGREP
4946 case `"$ac_path_FGREP" --version 2>&1` in
4947 *GNU*)
4948 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4949 *)
4950 ac_count=0
4951 $as_echo_n 0123456789 >"conftest.in"
4952 while :
4953 do
4954 cat "conftest.in" "conftest.in" >"conftest.tmp"
4955 mv "conftest.tmp" "conftest.in"
4956 cp "conftest.in" "conftest.nl"
4957 $as_echo 'FGREP' >> "conftest.nl"
4958 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960 as_fn_arith $ac_count + 1 && ac_count=$as_val
4961 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4962 # Best one so far, save it but keep looking for a better one
4963 ac_cv_path_FGREP="$ac_path_FGREP"
4964 ac_path_FGREP_max=$ac_count
4965 fi
4966 # 10*(2^10) chars as input seems more than enough
4967 test $ac_count -gt 10 && break
4968 done
4969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 esac
4971
4972 $ac_path_FGREP_found && break 3
4973 done
4974 done
4975 done
4976 IFS=$as_save_IFS
4977 if test -z "$ac_cv_path_FGREP"; then
4978 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4979 fi
4980 else
4981 ac_cv_path_FGREP=$FGREP
4982 fi
4983
4984 fi
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4987 $as_echo "$ac_cv_path_FGREP" >&6; }
4988 FGREP="$ac_cv_path_FGREP"
4989
4990
4991 test -z "$GREP" && GREP=grep
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 # Check whether --with-gnu-ld was given.
5012 if test "${with_gnu_ld+set}" = set; then :
5013 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5014 else
5015 with_gnu_ld=no
5016 fi
5017
5018 ac_prog=ld
5019 if test yes = "$GCC"; then
5020 # Check if gcc -print-prog-name=ld gives a path.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5022 $as_echo_n "checking for ld used by $CC... " >&6; }
5023 case $host in
5024 *-*-mingw*)
5025 # gcc leaves a trailing carriage return, which upsets mingw
5026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5027 *)
5028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5029 esac
5030 case $ac_prog in
5031 # Accept absolute paths.
5032 [\\/]* | ?:[\\/]*)
5033 re_direlt='/[^/][^/]*/\.\./'
5034 # Canonicalize the pathname of ld
5035 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5036 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5037 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5038 done
5039 test -z "$LD" && LD=$ac_prog
5040 ;;
5041 "")
5042 # If it fails, then pretend we aren't using GCC.
5043 ac_prog=ld
5044 ;;
5045 *)
5046 # If it is relative, then search for the first ld in PATH.
5047 with_gnu_ld=unknown
5048 ;;
5049 esac
5050 elif test yes = "$with_gnu_ld"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5052 $as_echo_n "checking for GNU ld... " >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5055 $as_echo_n "checking for non-GNU ld... " >&6; }
5056 fi
5057 if ${lt_cv_path_LD+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -z "$LD"; then
5061 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5062 for ac_dir in $PATH; do
5063 IFS=$lt_save_ifs
5064 test -z "$ac_dir" && ac_dir=.
5065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5066 lt_cv_path_LD=$ac_dir/$ac_prog
5067 # Check to see if the program is GNU ld. I'd rather use --version,
5068 # but apparently some variants of GNU ld only accept -v.
5069 # Break only if it was the GNU/non-GNU ld that we prefer.
5070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5071 *GNU* | *'with BFD'*)
5072 test no != "$with_gnu_ld" && break
5073 ;;
5074 *)
5075 test yes != "$with_gnu_ld" && break
5076 ;;
5077 esac
5078 fi
5079 done
5080 IFS=$lt_save_ifs
5081 else
5082 lt_cv_path_LD=$LD # Let the user override the test with a path.
5083 fi
5084 fi
5085
5086 LD=$lt_cv_path_LD
5087 if test -n "$LD"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5089 $as_echo "$LD" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5097 if ${lt_cv_prog_gnu_ld+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5101 case `$LD -v 2>&1 </dev/null` in
5102 *GNU* | *'with BFD'*)
5103 lt_cv_prog_gnu_ld=yes
5104 ;;
5105 *)
5106 lt_cv_prog_gnu_ld=no
5107 ;;
5108 esac
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5111 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5112 with_gnu_ld=$lt_cv_prog_gnu_ld
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5123 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5124 if ${lt_cv_path_NM+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$NM"; then
5128 # Let the user override the test.
5129 lt_cv_path_NM=$NM
5130 else
5131 lt_nm_to_check=${ac_tool_prefix}nm
5132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5133 lt_nm_to_check="$lt_nm_to_check nm"
5134 fi
5135 for lt_tmp_nm in $lt_nm_to_check; do
5136 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5138 IFS=$lt_save_ifs
5139 test -z "$ac_dir" && ac_dir=.
5140 tmp_nm=$ac_dir/$lt_tmp_nm
5141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5142 # Check to see if the nm accepts a BSD-compat flag.
5143 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5144 # nm: unknown option "B" ignored
5145 # Tru64's nm complains that /dev/null is an invalid object file
5146 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5147 case $build_os in
5148 mingw*) lt_bad_file=conftest.nm/nofile ;;
5149 *) lt_bad_file=/dev/null ;;
5150 esac
5151 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5152 *$lt_bad_file* | *'Invalid file or object type'*)
5153 lt_cv_path_NM="$tmp_nm -B"
5154 break 2
5155 ;;
5156 *)
5157 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5158 */dev/null*)
5159 lt_cv_path_NM="$tmp_nm -p"
5160 break 2
5161 ;;
5162 *)
5163 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5164 continue # so that we can try to find one that supports BSD flags
5165 ;;
5166 esac
5167 ;;
5168 esac
5169 fi
5170 done
5171 IFS=$lt_save_ifs
5172 done
5173 : ${lt_cv_path_NM=no}
5174 fi
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5177 $as_echo "$lt_cv_path_NM" >&6; }
5178 if test no != "$lt_cv_path_NM"; then
5179 NM=$lt_cv_path_NM
5180 else
5181 # Didn't find any BSD compatible name lister, look for dumpbin.
5182 if test -n "$DUMPBIN"; then :
5183 # Let the user override the test.
5184 else
5185 if test -n "$ac_tool_prefix"; then
5186 for ac_prog in dumpbin "link -dump"
5187 do
5188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_DUMPBIN+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$DUMPBIN"; then
5196 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213 fi
5214 fi
5215 DUMPBIN=$ac_cv_prog_DUMPBIN
5216 if test -n "$DUMPBIN"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5218 $as_echo "$DUMPBIN" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224
5225 test -n "$DUMPBIN" && break
5226 done
5227 fi
5228 if test -z "$DUMPBIN"; then
5229 ac_ct_DUMPBIN=$DUMPBIN
5230 for ac_prog in dumpbin "link -dump"
5231 do
5232 # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -n "$ac_ct_DUMPBIN"; then
5240 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 fi
5258 fi
5259 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5260 if test -n "$ac_ct_DUMPBIN"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5262 $as_echo "$ac_ct_DUMPBIN" >&6; }
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268
5269 test -n "$ac_ct_DUMPBIN" && break
5270 done
5271
5272 if test "x$ac_ct_DUMPBIN" = x; then
5273 DUMPBIN=":"
5274 else
5275 case $cross_compiling:$ac_tool_warned in
5276 yes:)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281 DUMPBIN=$ac_ct_DUMPBIN
5282 fi
5283 fi
5284
5285 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5286 *COFF*)
5287 DUMPBIN="$DUMPBIN -symbols -headers"
5288 ;;
5289 *)
5290 DUMPBIN=:
5291 ;;
5292 esac
5293 fi
5294
5295 if test : != "$DUMPBIN"; then
5296 NM=$DUMPBIN
5297 fi
5298 fi
5299 test -z "$NM" && NM=nm
5300
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5307 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5308 if ${lt_cv_nm_interface+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 lt_cv_nm_interface="BSD nm"
5312 echo "int some_variable = 0;" > conftest.$ac_ext
5313 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5314 (eval "$ac_compile" 2>conftest.err)
5315 cat conftest.err >&5
5316 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5317 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5318 cat conftest.err >&5
5319 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5320 cat conftest.out >&5
5321 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5322 lt_cv_nm_interface="MS dumpbin"
5323 fi
5324 rm -f conftest*
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5327 $as_echo "$lt_cv_nm_interface" >&6; }
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5330 $as_echo_n "checking whether ln -s works... " >&6; }
5331 LN_S=$as_ln_s
5332 if test "$LN_S" = "ln -s"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5334 $as_echo "yes" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5337 $as_echo "no, using $LN_S" >&6; }
5338 fi
5339
5340 # find the maximum length of command line arguments
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5342 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5343 if ${lt_cv_sys_max_cmd_len+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 i=0
5347 teststring=ABCD
5348
5349 case $build_os in
5350 msdosdjgpp*)
5351 # On DJGPP, this test can blow up pretty badly due to problems in libc
5352 # (any single argument exceeding 2000 bytes causes a buffer overrun
5353 # during glob expansion). Even if it were fixed, the result of this
5354 # check would be larger than it should be.
5355 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5356 ;;
5357
5358 gnu*)
5359 # Under GNU Hurd, this test is not required because there is
5360 # no limit to the length of command line arguments.
5361 # Libtool will interpret -1 as no limit whatsoever
5362 lt_cv_sys_max_cmd_len=-1;
5363 ;;
5364
5365 cygwin* | mingw* | cegcc*)
5366 # On Win9x/ME, this test blows up -- it succeeds, but takes
5367 # about 5 minutes as the teststring grows exponentially.
5368 # Worse, since 9x/ME are not pre-emptively multitasking,
5369 # you end up with a "frozen" computer, even though with patience
5370 # the test eventually succeeds (with a max line length of 256k).
5371 # Instead, let's just punt: use the minimum linelength reported by
5372 # all of the supported platforms: 8192 (on NT/2K/XP).
5373 lt_cv_sys_max_cmd_len=8192;
5374 ;;
5375
5376 mint*)
5377 # On MiNT this can take a long time and run out of memory.
5378 lt_cv_sys_max_cmd_len=8192;
5379 ;;
5380
5381 amigaos*)
5382 # On AmigaOS with pdksh, this test takes hours, literally.
5383 # So we just punt and use a minimum line length of 8192.
5384 lt_cv_sys_max_cmd_len=8192;
5385 ;;
5386
5387 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5388 # This has been around since 386BSD, at least. Likely further.
5389 if test -x /sbin/sysctl; then
5390 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5391 elif test -x /usr/sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5393 else
5394 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5395 fi
5396 # And add a safety zone
5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5399 ;;
5400
5401 interix*)
5402 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5403 lt_cv_sys_max_cmd_len=196608
5404 ;;
5405
5406 os2*)
5407 # The test takes a long time on OS/2.
5408 lt_cv_sys_max_cmd_len=8192
5409 ;;
5410
5411 osf*)
5412 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5413 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5414 # nice to cause kernel panics so lets avoid the loop below.
5415 # First set a reasonable default.
5416 lt_cv_sys_max_cmd_len=16384
5417 #
5418 if test -x /sbin/sysconfig; then
5419 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5420 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5421 esac
5422 fi
5423 ;;
5424 sco3.2v5*)
5425 lt_cv_sys_max_cmd_len=102400
5426 ;;
5427 sysv5* | sco5v6* | sysv4.2uw2*)
5428 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5429 if test -n "$kargmax"; then
5430 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5431 else
5432 lt_cv_sys_max_cmd_len=32768
5433 fi
5434 ;;
5435 *)
5436 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5437 if test -n "$lt_cv_sys_max_cmd_len" && \
5438 test undefined != "$lt_cv_sys_max_cmd_len"; then
5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441 else
5442 # Make teststring a little bigger before we do anything with it.
5443 # a 1K string should be a reasonable start.
5444 for i in 1 2 3 4 5 6 7 8; do
5445 teststring=$teststring$teststring
5446 done
5447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448 # If test is not a shell built-in, we'll probably end up computing a
5449 # maximum length that is only half of the actual maximum length, but
5450 # we can't tell.
5451 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5453 test 17 != "$i" # 1/2 MB should be enough
5454 do
5455 i=`expr $i + 1`
5456 teststring=$teststring$teststring
5457 done
5458 # Only check the string length outside the loop.
5459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5460 teststring=
5461 # Add a significant safety factor because C++ compilers can tack on
5462 # massive amounts of additional arguments before passing them to the
5463 # linker. It appears as though 1/2 is a usable value.
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5465 fi
5466 ;;
5467 esac
5468
5469 fi
5470
5471 if test -n "$lt_cv_sys_max_cmd_len"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5476 $as_echo "none" >&6; }
5477 fi
5478 max_cmd_len=$lt_cv_sys_max_cmd_len
5479
5480
5481
5482
5483
5484
5485 : ${CP="cp -f"}
5486 : ${MV="mv -f"}
5487 : ${RM="rm -f"}
5488
5489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5490 lt_unset=unset
5491 else
5492 lt_unset=false
5493 fi
5494
5495
5496
5497
5498
5499 # test EBCDIC or ASCII
5500 case `echo X|tr X '\101'` in
5501 A) # ASCII based system
5502 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5503 lt_SP2NL='tr \040 \012'
5504 lt_NL2SP='tr \015\012 \040\040'
5505 ;;
5506 *) # EBCDIC based system
5507 lt_SP2NL='tr \100 \n'
5508 lt_NL2SP='tr \r\n \100\100'
5509 ;;
5510 esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5521 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5522 if ${lt_cv_to_host_file_cmd+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 case $host in
5526 *-*-mingw* )
5527 case $build in
5528 *-*-mingw* ) # actually msys
5529 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5530 ;;
5531 *-*-cygwin* )
5532 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5533 ;;
5534 * ) # otherwise, assume *nix
5535 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5536 ;;
5537 esac
5538 ;;
5539 *-*-cygwin* )
5540 case $build in
5541 *-*-mingw* ) # actually msys
5542 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5543 ;;
5544 *-*-cygwin* )
5545 lt_cv_to_host_file_cmd=func_convert_file_noop
5546 ;;
5547 * ) # otherwise, assume *nix
5548 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5549 ;;
5550 esac
5551 ;;
5552 * ) # unhandled hosts (and "normal" native builds)
5553 lt_cv_to_host_file_cmd=func_convert_file_noop
5554 ;;
5555 esac
5556
5557 fi
5558
5559 to_host_file_cmd=$lt_cv_to_host_file_cmd
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5561 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5568 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5569 if ${lt_cv_to_tool_file_cmd+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 #assume ordinary cross tools, or native build.
5573 lt_cv_to_tool_file_cmd=func_convert_file_noop
5574 case $host in
5575 *-*-mingw* )
5576 case $build in
5577 *-*-mingw* ) # actually msys
5578 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5579 ;;
5580 esac
5581 ;;
5582 esac
5583
5584 fi
5585
5586 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5588 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5589
5590
5591
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5595 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5596 if ${lt_cv_ld_reload_flag+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 lt_cv_ld_reload_flag='-r'
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5602 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5603 reload_flag=$lt_cv_ld_reload_flag
5604 case $reload_flag in
5605 "" | " "*) ;;
5606 *) reload_flag=" $reload_flag" ;;
5607 esac
5608 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609 case $host_os in
5610 cygwin* | mingw* | pw32* | cegcc*)
5611 if test yes != "$GCC"; then
5612 reload_cmds=false
5613 fi
5614 ;;
5615 darwin*)
5616 if test yes = "$GCC"; then
5617 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5618 else
5619 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5620 fi
5621 ;;
5622 esac
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_OBJDUMP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$OBJDUMP"; then
5641 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 OBJDUMP=$ac_cv_prog_OBJDUMP
5661 if test -n "$OBJDUMP"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5663 $as_echo "$OBJDUMP" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 fi
5671 if test -z "$ac_cv_prog_OBJDUMP"; then
5672 ac_ct_OBJDUMP=$OBJDUMP
5673 # Extract the first word of "objdump", so it can be a program name with args.
5674 set dummy objdump; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -n "$ac_ct_OBJDUMP"; then
5681 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5701 if test -n "$ac_ct_OBJDUMP"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5703 $as_echo "$ac_ct_OBJDUMP" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709 if test "x$ac_ct_OBJDUMP" = x; then
5710 OBJDUMP="false"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 OBJDUMP=$ac_ct_OBJDUMP
5719 fi
5720 else
5721 OBJDUMP="$ac_cv_prog_OBJDUMP"
5722 fi
5723
5724 test -z "$OBJDUMP" && OBJDUMP=objdump
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5735 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5736 if ${lt_cv_deplibs_check_method+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 lt_cv_file_magic_cmd='$MAGIC_CMD'
5740 lt_cv_file_magic_test_file=
5741 lt_cv_deplibs_check_method='unknown'
5742 # Need to set the preceding variable on all platforms that support
5743 # interlibrary dependencies.
5744 # 'none' -- dependencies not supported.
5745 # 'unknown' -- same as none, but documents that we really don't know.
5746 # 'pass_all' -- all dependencies passed with no checks.
5747 # 'test_compile' -- check by making test program.
5748 # 'file_magic [[regex]]' -- check by looking for files in library path
5749 # that responds to the $file_magic_cmd with a given extended regex.
5750 # If you have 'file' or equivalent on your system and you're not sure
5751 # whether 'pass_all' will *always* work, you probably want this one.
5752
5753 case $host_os in
5754 aix[4-9]*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 beos*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 bsdi[45]*)
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5764 lt_cv_file_magic_cmd='/usr/bin/file -L'
5765 lt_cv_file_magic_test_file=/shlib/libc.so
5766 ;;
5767
5768 cygwin*)
5769 # func_win32_libid is a shell function defined in ltmain.sh
5770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5771 lt_cv_file_magic_cmd='func_win32_libid'
5772 ;;
5773
5774 mingw* | pw32*)
5775 # Base MSYS/MinGW do not provide the 'file' command needed by
5776 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5777 # unless we find 'file', for example because we are cross-compiling.
5778 if ( file / ) >/dev/null 2>&1; then
5779 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5780 lt_cv_file_magic_cmd='func_win32_libid'
5781 else
5782 # Keep this pattern in sync with the one in func_win32_libid.
5783 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5784 lt_cv_file_magic_cmd='$OBJDUMP -f'
5785 fi
5786 ;;
5787
5788 cegcc*)
5789 # use the weaker test based on 'objdump'. See mingw*.
5790 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5791 lt_cv_file_magic_cmd='$OBJDUMP -f'
5792 ;;
5793
5794 darwin* | rhapsody*)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797
5798 freebsd* | dragonfly*)
5799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5800 case $host_cpu in
5801 i*86 )
5802 # Not sure whether the presence of OpenBSD here was a mistake.
5803 # Let's accept both of them until this is cleared up.
5804 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5805 lt_cv_file_magic_cmd=/usr/bin/file
5806 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5807 ;;
5808 esac
5809 else
5810 lt_cv_deplibs_check_method=pass_all
5811 fi
5812 ;;
5813
5814 haiku*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818 hpux10.20* | hpux11*)
5819 lt_cv_file_magic_cmd=/usr/bin/file
5820 case $host_cpu in
5821 ia64*)
5822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5823 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5824 ;;
5825 hppa*64*)
5826 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]'
5827 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5828 ;;
5829 *)
5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5831 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5832 ;;
5833 esac
5834 ;;
5835
5836 interix[3-9]*)
5837 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5839 ;;
5840
5841 irix5* | irix6* | nonstopux*)
5842 case $LD in
5843 *-32|*"-32 ") libmagic=32-bit;;
5844 *-n32|*"-n32 ") libmagic=N32;;
5845 *-64|*"-64 ") libmagic=64-bit;;
5846 *) libmagic=never-match;;
5847 esac
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 # This must be glibc/ELF.
5852 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856 netbsd* | netbsdelf*-gnu)
5857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5859 else
5860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5861 fi
5862 ;;
5863
5864 newos6*)
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5866 lt_cv_file_magic_cmd=/usr/bin/file
5867 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5868 ;;
5869
5870 *nto* | *qnx*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874 openbsd* | bitrig*)
5875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5877 else
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5879 fi
5880 ;;
5881
5882 osf3* | osf4* | osf5*)
5883 lt_cv_deplibs_check_method=pass_all
5884 ;;
5885
5886 rdos*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889
5890 solaris*)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893
5894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898 sysv4 | sysv4.3*)
5899 case $host_vendor in
5900 motorola)
5901 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]'
5902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5903 ;;
5904 ncr)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907 sequent)
5908 lt_cv_file_magic_cmd='/bin/file'
5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5910 ;;
5911 sni)
5912 lt_cv_file_magic_cmd='/bin/file'
5913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5914 lt_cv_file_magic_test_file=/lib/libc.so
5915 ;;
5916 siemens)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919 pc)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922 esac
5923 ;;
5924
5925 tpf*)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928 os2*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931 esac
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5935 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5936
5937 file_magic_glob=
5938 want_nocaseglob=no
5939 if test "$build" = "$host"; then
5940 case $host_os in
5941 mingw* | pw32*)
5942 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5943 want_nocaseglob=yes
5944 else
5945 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5946 fi
5947 ;;
5948 esac
5949 fi
5950
5951 file_magic_cmd=$lt_cv_file_magic_cmd
5952 deplibs_check_method=$lt_cv_deplibs_check_method
5953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_DLLTOOL+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$DLLTOOL"; then
5985 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 DLLTOOL=$ac_cv_prog_DLLTOOL
6005 if test -n "$DLLTOOL"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6007 $as_echo "$DLLTOOL" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_DLLTOOL"; then
6016 ac_ct_DLLTOOL=$DLLTOOL
6017 # Extract the first word of "dlltool", so it can be a program name with args.
6018 set dummy dlltool; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$ac_ct_DLLTOOL"; then
6025 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6045 if test -n "$ac_ct_DLLTOOL"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6047 $as_echo "$ac_ct_DLLTOOL" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053 if test "x$ac_ct_DLLTOOL" = x; then
6054 DLLTOOL="false"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062 DLLTOOL=$ac_ct_DLLTOOL
6063 fi
6064 else
6065 DLLTOOL="$ac_cv_prog_DLLTOOL"
6066 fi
6067
6068 test -z "$DLLTOOL" && DLLTOOL=dlltool
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6080 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6081 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 lt_cv_sharedlib_from_linklib_cmd='unknown'
6085
6086 case $host_os in
6087 cygwin* | mingw* | pw32* | cegcc*)
6088 # two different shell functions defined in ltmain.sh;
6089 # decide which one to use based on capabilities of $DLLTOOL
6090 case `$DLLTOOL --help 2>&1` in
6091 *--identify-strict*)
6092 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6093 ;;
6094 *)
6095 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6096 ;;
6097 esac
6098 ;;
6099 *)
6100 # fallback: assume linklib IS sharedlib
6101 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6102 ;;
6103 esac
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6107 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6108 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6109 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118 for ac_prog in ar
6119 do
6120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_AR+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR="$AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 AR=$ac_cv_prog_AR
6148 if test -n "$AR"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6150 $as_echo "$AR" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 test -n "$AR" && break
6158 done
6159 fi
6160 if test -z "$AR"; then
6161 ac_ct_AR=$AR
6162 for ac_prog in ar
6163 do
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_AR="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6194 $as_echo "$ac_ct_AR" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200
6201 test -n "$ac_ct_AR" && break
6202 done
6203
6204 if test "x$ac_ct_AR" = x; then
6205 AR="false"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 AR=$ac_ct_AR
6214 fi
6215 fi
6216
6217 : ${AR=ar}
6218 : ${AR_FLAGS=cr}
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6231 $as_echo_n "checking for archiver @FILE support... " >&6; }
6232 if ${lt_cv_ar_at_file+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 lt_cv_ar_at_file=no
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 echo conftest.$ac_objext > conftest.lst
6249 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6251 (eval $lt_ar_try) 2>&5
6252 ac_status=$?
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }
6255 if test 0 -eq "$ac_status"; then
6256 # Ensure the archiver fails upon bogus file names.
6257 rm -f conftest.$ac_objext libconftest.a
6258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6259 (eval $lt_ar_try) 2>&5
6260 ac_status=$?
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; }
6263 if test 0 -ne "$ac_status"; then
6264 lt_cv_ar_at_file=@
6265 fi
6266 fi
6267 rm -f conftest.* libconftest.a
6268
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6274 $as_echo "$lt_cv_ar_at_file" >&6; }
6275
6276 if test no = "$lt_cv_ar_at_file"; then
6277 archiver_list_spec=
6278 else
6279 archiver_list_spec=$lt_cv_ar_at_file
6280 fi
6281
6282
6283
6284
6285
6286
6287
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}strip; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_STRIP+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$STRIP"; then
6297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 STRIP=$ac_cv_prog_STRIP
6317 if test -n "$STRIP"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6319 $as_echo "$STRIP" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_prog_STRIP"; then
6328 ac_ct_STRIP=$STRIP
6329 # Extract the first word of "strip", so it can be a program name with args.
6330 set dummy strip; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$ac_ct_STRIP"; then
6337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_ac_ct_STRIP="strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6357 if test -n "$ac_ct_STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6359 $as_echo "$ac_ct_STRIP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365 if test "x$ac_ct_STRIP" = x; then
6366 STRIP=":"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374 STRIP=$ac_ct_STRIP
6375 fi
6376 else
6377 STRIP="$ac_cv_prog_STRIP"
6378 fi
6379
6380 test -z "$STRIP" && STRIP=:
6381
6382
6383
6384
6385
6386
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_RANLIB+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$RANLIB"; then
6396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 RANLIB=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427 ac_ct_RANLIB=$RANLIB
6428 # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_RANLIB"; then
6436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_RANLIB="ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_RANLIB" = x; then
6465 RANLIB=":"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 RANLIB=$ac_ct_RANLIB
6474 fi
6475 else
6476 RANLIB="$ac_cv_prog_RANLIB"
6477 fi
6478
6479 test -z "$RANLIB" && RANLIB=:
6480
6481
6482
6483
6484
6485
6486 # Determine commands to create old-style static archives.
6487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6488 old_postinstall_cmds='chmod 644 $oldlib'
6489 old_postuninstall_cmds=
6490
6491 if test -n "$RANLIB"; then
6492 case $host_os in
6493 bitrig* | openbsd*)
6494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6495 ;;
6496 *)
6497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6498 ;;
6499 esac
6500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6501 fi
6502
6503 case $host_os in
6504 darwin*)
6505 lock_old_archive_extraction=yes ;;
6506 *)
6507 lock_old_archive_extraction=no ;;
6508 esac
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 # If no C compiler was specified, use CC.
6549 LTCC=${LTCC-"$CC"}
6550
6551 # If no C compiler flags were specified, use CFLAGS.
6552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6553
6554 # Allow CC to be a program name with arguments.
6555 compiler=$CC
6556
6557
6558 # Check for command to grab the raw symbol name followed by C symbol from nm.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6561 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564
6565 # These are sane defaults that work on at least a few old systems.
6566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6567
6568 # Character class describing NM global symbol codes.
6569 symcode='[BCDEGRST]'
6570
6571 # Regexp to match symbols that can be accessed directly from C.
6572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6573
6574 # Define system-specific variables.
6575 case $host_os in
6576 aix*)
6577 symcode='[BCDT]'
6578 ;;
6579 cygwin* | mingw* | pw32* | cegcc*)
6580 symcode='[ABCDGISTW]'
6581 ;;
6582 hpux*)
6583 if test ia64 = "$host_cpu"; then
6584 symcode='[ABCDEGRST]'
6585 fi
6586 ;;
6587 irix* | nonstopux*)
6588 symcode='[BCDEGRST]'
6589 ;;
6590 osf*)
6591 symcode='[BCDEGQRST]'
6592 ;;
6593 solaris*)
6594 symcode='[BDRT]'
6595 ;;
6596 sco3.2v5*)
6597 symcode='[DT]'
6598 ;;
6599 sysv4.2uw2*)
6600 symcode='[DT]'
6601 ;;
6602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6603 symcode='[ABDT]'
6604 ;;
6605 sysv4)
6606 symcode='[DFNSTU]'
6607 ;;
6608 esac
6609
6610 # If we're using GNU nm, then use its standard symbol codes.
6611 case `$NM -V 2>&1` in
6612 *GNU* | *'with BFD'*)
6613 symcode='[ABCDGIRSTW]' ;;
6614 esac
6615
6616 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6617 # Gets list of data symbols to import.
6618 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6619 # Adjust the below global symbol transforms to fixup imported variables.
6620 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6621 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6622 lt_c_name_lib_hook="\
6623 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6624 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6625 else
6626 # Disable hooks by default.
6627 lt_cv_sys_global_symbol_to_import=
6628 lt_cdecl_hook=
6629 lt_c_name_hook=
6630 lt_c_name_lib_hook=
6631 fi
6632
6633 # Transform an extracted symbol line into a proper C declaration.
6634 # Some systems (esp. on ia64) link data and code symbols differently,
6635 # so use this general approach.
6636 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6637 $lt_cdecl_hook\
6638 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6639 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6640
6641 # Transform an extracted symbol line into symbol name and symbol address
6642 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6643 $lt_c_name_hook\
6644 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6645 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6646
6647 # Transform an extracted symbol line into symbol name with lib prefix and
6648 # symbol address.
6649 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6650 $lt_c_name_lib_hook\
6651 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6652 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6653 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6654
6655 # Handle CRLF in mingw tool chain
6656 opt_cr=
6657 case $build_os in
6658 mingw*)
6659 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6660 ;;
6661 esac
6662
6663 # Try without a prefix underscore, then with it.
6664 for ac_symprfx in "" "_"; do
6665
6666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6667 symxfrm="\\1 $ac_symprfx\\2 \\2"
6668
6669 # Write the raw and C identifiers.
6670 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6671 # Fake it for dumpbin and say T for any non-static function,
6672 # D for any global variable and I for any imported variable.
6673 # Also find C++ and __fastcall symbols from MSVC++,
6674 # which start with @ or ?.
6675 lt_cv_sys_global_symbol_pipe="$AWK '"\
6676 " {last_section=section; section=\$ 3};"\
6677 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6678 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6679 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6680 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6681 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6682 " \$ 0!~/External *\|/{next};"\
6683 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6684 " {if(hide[section]) next};"\
6685 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6686 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6687 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6688 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6689 " ' prfx=^$ac_symprfx"
6690 else
6691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6692 fi
6693 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6694
6695 # Check to see that the pipe works correctly.
6696 pipe_works=no
6697
6698 rm -f conftest*
6699 cat > conftest.$ac_ext <<_LT_EOF
6700 #ifdef __cplusplus
6701 extern "C" {
6702 #endif
6703 char nm_test_var;
6704 void nm_test_func(void);
6705 void nm_test_func(void){}
6706 #ifdef __cplusplus
6707 }
6708 #endif
6709 int main(){nm_test_var='a';nm_test_func();return(0);}
6710 _LT_EOF
6711
6712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6713 (eval $ac_compile) 2>&5
6714 ac_status=$?
6715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716 test $ac_status = 0; }; then
6717 # Now try to grab the symbols.
6718 nlist=conftest.nm
6719 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6720 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6721 # Try sorting and uniquifying the output.
6722 if sort "$nlist" | uniq > "$nlist"T; then
6723 mv -f "$nlist"T "$nlist"
6724 else
6725 rm -f "$nlist"T
6726 fi
6727
6728 # Make sure that we snagged all the symbols we need.
6729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6731 cat <<_LT_EOF > conftest.$ac_ext
6732 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6733 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6734 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6735 relocations are performed -- see ld's documentation on pseudo-relocs. */
6736 # define LT_DLSYM_CONST
6737 #elif defined __osf__
6738 /* This system does not cope well with relocations in const data. */
6739 # define LT_DLSYM_CONST
6740 #else
6741 # define LT_DLSYM_CONST const
6742 #endif
6743
6744 #ifdef __cplusplus
6745 extern "C" {
6746 #endif
6747
6748 _LT_EOF
6749 # Now generate the symbol file.
6750 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6751
6752 cat <<_LT_EOF >> conftest.$ac_ext
6753
6754 /* The mapping between symbol names and symbols. */
6755 LT_DLSYM_CONST struct {
6756 const char *name;
6757 void *address;
6758 }
6759 lt__PROGRAM__LTX_preloaded_symbols[] =
6760 {
6761 { "@PROGRAM@", (void *) 0 },
6762 _LT_EOF
6763 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6764 cat <<\_LT_EOF >> conftest.$ac_ext
6765 {0, (void *) 0}
6766 };
6767
6768 /* This works around a problem in FreeBSD linker */
6769 #ifdef FREEBSD_WORKAROUND
6770 static const void *lt_preloaded_setup() {
6771 return lt__PROGRAM__LTX_preloaded_symbols;
6772 }
6773 #endif
6774
6775 #ifdef __cplusplus
6776 }
6777 #endif
6778 _LT_EOF
6779 # Now try linking the two files.
6780 mv conftest.$ac_objext conftstm.$ac_objext
6781 lt_globsym_save_LIBS=$LIBS
6782 lt_globsym_save_CFLAGS=$CFLAGS
6783 LIBS=conftstm.$ac_objext
6784 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6786 (eval $ac_link) 2>&5
6787 ac_status=$?
6788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6790 pipe_works=yes
6791 fi
6792 LIBS=$lt_globsym_save_LIBS
6793 CFLAGS=$lt_globsym_save_CFLAGS
6794 else
6795 echo "cannot find nm_test_func in $nlist" >&5
6796 fi
6797 else
6798 echo "cannot find nm_test_var in $nlist" >&5
6799 fi
6800 else
6801 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6802 fi
6803 else
6804 echo "$progname: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 fi
6807 rm -rf conftest* conftst*
6808
6809 # Do not use the global_symbol_pipe unless it works.
6810 if test yes = "$pipe_works"; then
6811 break
6812 else
6813 lt_cv_sys_global_symbol_pipe=
6814 fi
6815 done
6816
6817 fi
6818
6819 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6820 lt_cv_sys_global_symbol_to_cdecl=
6821 fi
6822 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6824 $as_echo "failed" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6827 $as_echo "ok" >&6; }
6828 fi
6829
6830 # Response file support.
6831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6832 nm_file_list_spec='@'
6833 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6834 nm_file_list_spec='@'
6835 fi
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6874 $as_echo_n "checking for sysroot... " >&6; }
6875
6876 # Check whether --with-sysroot was given.
6877 if test "${with_sysroot+set}" = set; then :
6878 withval=$with_sysroot;
6879 else
6880 with_sysroot=no
6881 fi
6882
6883
6884 lt_sysroot=
6885 case $with_sysroot in #(
6886 yes)
6887 if test yes = "$GCC"; then
6888 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6889 fi
6890 ;; #(
6891 /*)
6892 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6893 ;; #(
6894 no|'')
6895 ;; #(
6896 *)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6898 $as_echo "$with_sysroot" >&6; }
6899 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6900 ;;
6901 esac
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6904 $as_echo "${lt_sysroot:-no}" >&6; }
6905
6906
6907
6908
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6911 $as_echo_n "checking for a working dd... " >&6; }
6912 if ${ac_cv_path_lt_DD+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 printf 0123456789abcdef0123456789abcdef >conftest.i
6916 cat conftest.i conftest.i >conftest2.i
6917 : ${lt_DD:=$DD}
6918 if test -z "$lt_DD"; then
6919 ac_path_lt_DD_found=false
6920 # Loop through the user's path and test for each of PROGNAME-LIST
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_prog in dd; do
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6929 as_fn_executable_p "$ac_path_lt_DD" || continue
6930 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6931 cmp -s conftest.i conftest.out \
6932 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6933 fi
6934 $ac_path_lt_DD_found && break 3
6935 done
6936 done
6937 done
6938 IFS=$as_save_IFS
6939 if test -z "$ac_cv_path_lt_DD"; then
6940 :
6941 fi
6942 else
6943 ac_cv_path_lt_DD=$lt_DD
6944 fi
6945
6946 rm -f conftest.i conftest2.i conftest.out
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6949 $as_echo "$ac_cv_path_lt_DD" >&6; }
6950
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6953 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6954 if ${lt_cv_truncate_bin+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 printf 0123456789abcdef0123456789abcdef >conftest.i
6958 cat conftest.i conftest.i >conftest2.i
6959 lt_cv_truncate_bin=
6960 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6961 cmp -s conftest.i conftest.out \
6962 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6963 fi
6964 rm -f conftest.i conftest2.i conftest.out
6965 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6968 $as_echo "$lt_cv_truncate_bin" >&6; }
6969
6970
6971
6972
6973
6974
6975
6976 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6977 func_cc_basename ()
6978 {
6979 for cc_temp in $*""; do
6980 case $cc_temp in
6981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6983 \-*) ;;
6984 *) break;;
6985 esac
6986 done
6987 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6988 }
6989
6990 # Check whether --enable-libtool-lock was given.
6991 if test "${enable_libtool_lock+set}" = set; then :
6992 enableval=$enable_libtool_lock;
6993 fi
6994
6995 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6996
6997 # Some flags need to be propagated to the compiler or linker for good
6998 # libtool support.
6999 case $host in
7000 ia64-*-hpux*)
7001 # Find out what ABI is being produced by ac_compile, and set mode
7002 # options accordingly.
7003 echo 'int i;' > conftest.$ac_ext
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005 (eval $ac_compile) 2>&5
7006 ac_status=$?
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 case `/usr/bin/file conftest.$ac_objext` in
7010 *ELF-32*)
7011 HPUX_IA64_MODE=32
7012 ;;
7013 *ELF-64*)
7014 HPUX_IA64_MODE=64
7015 ;;
7016 esac
7017 fi
7018 rm -rf conftest*
7019 ;;
7020 *-*-irix6*)
7021 # Find out what ABI is being produced by ac_compile, and set linker
7022 # options accordingly.
7023 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025 (eval $ac_compile) 2>&5
7026 ac_status=$?
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }; then
7029 if test yes = "$lt_cv_prog_gnu_ld"; then
7030 case `/usr/bin/file conftest.$ac_objext` in
7031 *32-bit*)
7032 LD="${LD-ld} -melf32bsmip"
7033 ;;
7034 *N32*)
7035 LD="${LD-ld} -melf32bmipn32"
7036 ;;
7037 *64-bit*)
7038 LD="${LD-ld} -melf64bmip"
7039 ;;
7040 esac
7041 else
7042 case `/usr/bin/file conftest.$ac_objext` in
7043 *32-bit*)
7044 LD="${LD-ld} -32"
7045 ;;
7046 *N32*)
7047 LD="${LD-ld} -n32"
7048 ;;
7049 *64-bit*)
7050 LD="${LD-ld} -64"
7051 ;;
7052 esac
7053 fi
7054 fi
7055 rm -rf conftest*
7056 ;;
7057
7058 mips64*-*linux*)
7059 # Find out what ABI is being produced by ac_compile, and set linker
7060 # options accordingly.
7061 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7063 (eval $ac_compile) 2>&5
7064 ac_status=$?
7065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066 test $ac_status = 0; }; then
7067 emul=elf
7068 case `/usr/bin/file conftest.$ac_objext` in
7069 *32-bit*)
7070 emul="${emul}32"
7071 ;;
7072 *64-bit*)
7073 emul="${emul}64"
7074 ;;
7075 esac
7076 case `/usr/bin/file conftest.$ac_objext` in
7077 *MSB*)
7078 emul="${emul}btsmip"
7079 ;;
7080 *LSB*)
7081 emul="${emul}ltsmip"
7082 ;;
7083 esac
7084 case `/usr/bin/file conftest.$ac_objext` in
7085 *N32*)
7086 emul="${emul}n32"
7087 ;;
7088 esac
7089 LD="${LD-ld} -m $emul"
7090 fi
7091 rm -rf conftest*
7092 ;;
7093
7094 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7095 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7096 # Find out what ABI is being produced by ac_compile, and set linker
7097 # options accordingly. Note that the listed cases only cover the
7098 # situations where additional linker options are needed (such as when
7099 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7100 # vice versa); the common cases where no linker options are needed do
7101 # not appear in the list.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.o` in
7109 *32-bit*)
7110 case $host in
7111 x86_64-*kfreebsd*-gnu)
7112 LD="${LD-ld} -m elf_i386_fbsd"
7113 ;;
7114 x86_64-*linux*)
7115 case `/usr/bin/file conftest.o` in
7116 *x86-64*)
7117 LD="${LD-ld} -m elf32_x86_64"
7118 ;;
7119 *)
7120 LD="${LD-ld} -m elf_i386"
7121 ;;
7122 esac
7123 ;;
7124 powerpc64le-*linux*)
7125 LD="${LD-ld} -m elf32lppclinux"
7126 ;;
7127 powerpc64-*linux*)
7128 LD="${LD-ld} -m elf32ppclinux"
7129 ;;
7130 s390x-*linux*)
7131 LD="${LD-ld} -m elf_s390"
7132 ;;
7133 sparc64-*linux*)
7134 LD="${LD-ld} -m elf32_sparc"
7135 ;;
7136 esac
7137 ;;
7138 *64-bit*)
7139 case $host in
7140 x86_64-*kfreebsd*-gnu)
7141 LD="${LD-ld} -m elf_x86_64_fbsd"
7142 ;;
7143 x86_64-*linux*)
7144 LD="${LD-ld} -m elf_x86_64"
7145 ;;
7146 powerpcle-*linux*)
7147 LD="${LD-ld} -m elf64lppc"
7148 ;;
7149 powerpc-*linux*)
7150 LD="${LD-ld} -m elf64ppc"
7151 ;;
7152 s390*-*linux*|s390*-*tpf*)
7153 LD="${LD-ld} -m elf64_s390"
7154 ;;
7155 sparc*-*linux*)
7156 LD="${LD-ld} -m elf64_sparc"
7157 ;;
7158 esac
7159 ;;
7160 esac
7161 fi
7162 rm -rf conftest*
7163 ;;
7164
7165 *-*-sco3.2v5*)
7166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7167 SAVE_CFLAGS=$CFLAGS
7168 CFLAGS="$CFLAGS -belf"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7170 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7171 if ${lt_cv_cc_needs_belf+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 ac_ext=c
7175 ac_cpp='$CPP $CPPFLAGS'
7176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7179
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182
7183 int
7184 main ()
7185 {
7186
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 lt_cv_cc_needs_belf=yes
7193 else
7194 lt_cv_cc_needs_belf=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7206 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7207 if test yes != "$lt_cv_cc_needs_belf"; then
7208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7209 CFLAGS=$SAVE_CFLAGS
7210 fi
7211 ;;
7212 *-*solaris*)
7213 # Find out what ABI is being produced by ac_compile, and set linker
7214 # options accordingly.
7215 echo 'int i;' > conftest.$ac_ext
7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7217 (eval $ac_compile) 2>&5
7218 ac_status=$?
7219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220 test $ac_status = 0; }; then
7221 case `/usr/bin/file conftest.o` in
7222 *64-bit*)
7223 case $lt_cv_prog_gnu_ld in
7224 yes*)
7225 case $host in
7226 i?86-*-solaris*|x86_64-*-solaris*)
7227 LD="${LD-ld} -m elf_x86_64"
7228 ;;
7229 sparc*-*-solaris*)
7230 LD="${LD-ld} -m elf64_sparc"
7231 ;;
7232 esac
7233 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7234 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7235 LD=${LD-ld}_sol2
7236 fi
7237 ;;
7238 *)
7239 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7240 LD="${LD-ld} -64"
7241 fi
7242 ;;
7243 esac
7244 ;;
7245 esac
7246 fi
7247 rm -rf conftest*
7248 ;;
7249 esac
7250
7251 need_locks=$enable_libtool_lock
7252
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}mt; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 if test -n "$MANIFEST_TOOL"; then
7262 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7282 if test -n "$MANIFEST_TOOL"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7284 $as_echo "$MANIFEST_TOOL" >&6; }
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7293 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7294 # Extract the first word of "mt", so it can be a program name with args.
7295 set dummy mt; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$ac_ct_MANIFEST_TOOL"; then
7302 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7322 if test -n "$ac_ct_MANIFEST_TOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7324 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7331 MANIFEST_TOOL=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7340 fi
7341 else
7342 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7343 fi
7344
7345 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7347 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7348 if ${lt_cv_path_mainfest_tool+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 lt_cv_path_mainfest_tool=no
7352 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7353 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7354 cat conftest.err >&5
7355 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7356 lt_cv_path_mainfest_tool=yes
7357 fi
7358 rm -f conftest*
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7361 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7362 if test yes != "$lt_cv_path_mainfest_tool"; then
7363 MANIFEST_TOOL=:
7364 fi
7365
7366
7367
7368
7369
7370
7371 case $host_os in
7372 rhapsody* | darwin*)
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$DSYMUTIL"; then
7382 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7402 if test -n "$DSYMUTIL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7404 $as_echo "$DSYMUTIL" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410
7411 fi
7412 if test -z "$ac_cv_prog_DSYMUTIL"; then
7413 ac_ct_DSYMUTIL=$DSYMUTIL
7414 # Extract the first word of "dsymutil", so it can be a program name with args.
7415 set dummy dsymutil; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$ac_ct_DSYMUTIL"; then
7422 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439 fi
7440 fi
7441 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7442 if test -n "$ac_ct_DSYMUTIL"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7444 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450 if test "x$ac_ct_DSYMUTIL" = x; then
7451 DSYMUTIL=":"
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454 yes:)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7458 esac
7459 DSYMUTIL=$ac_ct_DSYMUTIL
7460 fi
7461 else
7462 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7463 fi
7464
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7467 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_NMEDIT+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$NMEDIT"; then
7474 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 NMEDIT=$ac_cv_prog_NMEDIT
7494 if test -n "$NMEDIT"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7496 $as_echo "$NMEDIT" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 fi
7504 if test -z "$ac_cv_prog_NMEDIT"; then
7505 ac_ct_NMEDIT=$NMEDIT
7506 # Extract the first word of "nmedit", so it can be a program name with args.
7507 set dummy nmedit; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$ac_ct_NMEDIT"; then
7514 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7534 if test -n "$ac_ct_NMEDIT"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7536 $as_echo "$ac_ct_NMEDIT" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541
7542 if test "x$ac_ct_NMEDIT" = x; then
7543 NMEDIT=":"
7544 else
7545 case $cross_compiling:$ac_tool_warned in
7546 yes:)
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549 ac_tool_warned=yes ;;
7550 esac
7551 NMEDIT=$ac_ct_NMEDIT
7552 fi
7553 else
7554 NMEDIT="$ac_cv_prog_NMEDIT"
7555 fi
7556
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_LIPO+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$LIPO"; then
7566 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579 done
7580 done
7581 IFS=$as_save_IFS
7582
7583 fi
7584 fi
7585 LIPO=$ac_cv_prog_LIPO
7586 if test -n "$LIPO"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7588 $as_echo "$LIPO" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595 fi
7596 if test -z "$ac_cv_prog_LIPO"; then
7597 ac_ct_LIPO=$LIPO
7598 # Extract the first word of "lipo", so it can be a program name with args.
7599 set dummy lipo; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$ac_ct_LIPO"; then
7606 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_ac_ct_LIPO="lipo"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7626 if test -n "$ac_ct_LIPO"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7628 $as_echo "$ac_ct_LIPO" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634 if test "x$ac_ct_LIPO" = x; then
7635 LIPO=":"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 LIPO=$ac_ct_LIPO
7644 fi
7645 else
7646 LIPO="$ac_cv_prog_LIPO"
7647 fi
7648
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}otool; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_OTOOL+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$OTOOL"; then
7658 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 OTOOL=$ac_cv_prog_OTOOL
7678 if test -n "$OTOOL"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7680 $as_echo "$OTOOL" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686
7687 fi
7688 if test -z "$ac_cv_prog_OTOOL"; then
7689 ac_ct_OTOOL=$OTOOL
7690 # Extract the first word of "otool", so it can be a program name with args.
7691 set dummy otool; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$ac_ct_OTOOL"; then
7698 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_ac_ct_OTOOL="otool"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7718 if test -n "$ac_ct_OTOOL"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7720 $as_echo "$ac_ct_OTOOL" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726 if test "x$ac_ct_OTOOL" = x; then
7727 OTOOL=":"
7728 else
7729 case $cross_compiling:$ac_tool_warned in
7730 yes:)
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7734 esac
7735 OTOOL=$ac_ct_OTOOL
7736 fi
7737 else
7738 OTOOL="$ac_cv_prog_OTOOL"
7739 fi
7740
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7743 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_OTOOL64+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 if test -n "$OTOOL64"; then
7750 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763 done
7764 done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 OTOOL64=$ac_cv_prog_OTOOL64
7770 if test -n "$OTOOL64"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7772 $as_echo "$OTOOL64" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778
7779 fi
7780 if test -z "$ac_cv_prog_OTOOL64"; then
7781 ac_ct_OTOOL64=$OTOOL64
7782 # Extract the first word of "otool64", so it can be a program name with args.
7783 set dummy otool64; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$ac_ct_OTOOL64"; then
7790 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_ac_ct_OTOOL64="otool64"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7810 if test -n "$ac_ct_OTOOL64"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7812 $as_echo "$ac_ct_OTOOL64" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818 if test "x$ac_ct_OTOOL64" = x; then
7819 OTOOL64=":"
7820 else
7821 case $cross_compiling:$ac_tool_warned in
7822 yes:)
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned=yes ;;
7826 esac
7827 OTOOL64=$ac_ct_OTOOL64
7828 fi
7829 else
7830 OTOOL64="$ac_cv_prog_OTOOL64"
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7860 $as_echo_n "checking for -single_module linker flag... " >&6; }
7861 if ${lt_cv_apple_cc_single_mod+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 lt_cv_apple_cc_single_mod=no
7865 if test -z "$LT_MULTI_MODULE"; then
7866 # By default we will add the -single_module flag. You can override
7867 # by either setting the environment variable LT_MULTI_MODULE
7868 # non-empty at configure time, or by adding -multi_module to the
7869 # link flags.
7870 rm -rf libconftest.dylib*
7871 echo "int foo(void){return 1;}" > conftest.c
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c" >&5
7874 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7876 _lt_result=$?
7877 # If there is a non-empty error log, and "single_module"
7878 # appears in it, assume the flag caused a linker warning
7879 if test -s conftest.err && $GREP single_module conftest.err; then
7880 cat conftest.err >&5
7881 # Otherwise, if the output was created with a 0 exit code from
7882 # the compiler, it worked.
7883 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7884 lt_cv_apple_cc_single_mod=yes
7885 else
7886 cat conftest.err >&5
7887 fi
7888 rm -rf libconftest.dylib*
7889 rm -f conftest.*
7890 fi
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7893 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7896 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7897 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 lt_cv_ld_exported_symbols_list=no
7901 save_LDFLAGS=$LDFLAGS
7902 echo "_main" > conftest.sym
7903 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906
7907 int
7908 main ()
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_link "$LINENO"; then :
7916 lt_cv_ld_exported_symbols_list=yes
7917 else
7918 lt_cv_ld_exported_symbols_list=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext \
7921 conftest$ac_exeext conftest.$ac_ext
7922 LDFLAGS=$save_LDFLAGS
7923
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7926 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7927
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7929 $as_echo_n "checking for -force_load linker flag... " >&6; }
7930 if ${lt_cv_ld_force_load+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 lt_cv_ld_force_load=no
7934 cat > conftest.c << _LT_EOF
7935 int forced_loaded() { return 2;}
7936 _LT_EOF
7937 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7938 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7939 echo "$AR cr libconftest.a conftest.o" >&5
7940 $AR cr libconftest.a conftest.o 2>&5
7941 echo "$RANLIB libconftest.a" >&5
7942 $RANLIB libconftest.a 2>&5
7943 cat > conftest.c << _LT_EOF
7944 int main() { return 0;}
7945 _LT_EOF
7946 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7947 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7948 _lt_result=$?
7949 if test -s conftest.err && $GREP force_load conftest.err; then
7950 cat conftest.err >&5
7951 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7952 lt_cv_ld_force_load=yes
7953 else
7954 cat conftest.err >&5
7955 fi
7956 rm -f conftest.err libconftest.a conftest conftest.c
7957 rm -rf conftest.dSYM
7958
7959 fi
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7961 $as_echo "$lt_cv_ld_force_load" >&6; }
7962 case $host_os in
7963 rhapsody* | darwin1.[012])
7964 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7965 darwin1.*)
7966 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7967 darwin*) # darwin 5.x on
7968 # if running on 10.5 or later, the deployment target defaults
7969 # to the OS version, if on x86, and 10.4, the deployment
7970 # target defaults to 10.4. Don't you love it?
7971 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7972 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7973 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7974 10.[012][,.]*)
7975 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7976 10.*)
7977 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7978 esac
7979 ;;
7980 esac
7981 if test yes = "$lt_cv_apple_cc_single_mod"; then
7982 _lt_dar_single_mod='$single_module'
7983 fi
7984 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7985 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7986 else
7987 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7988 fi
7989 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7990 _lt_dsymutil='~$DSYMUTIL $lib || :'
7991 else
7992 _lt_dsymutil=
7993 fi
7994 ;;
7995 esac
7996
7997 # func_munge_path_list VARIABLE PATH
7998 # -----------------------------------
7999 # VARIABLE is name of variable containing _space_ separated list of
8000 # directories to be munged by the contents of PATH, which is string
8001 # having a format:
8002 # "DIR[:DIR]:"
8003 # string "DIR[ DIR]" will be prepended to VARIABLE
8004 # ":DIR[:DIR]"
8005 # string "DIR[ DIR]" will be appended to VARIABLE
8006 # "DIRP[:DIRP]::[DIRA:]DIRA"
8007 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8008 # "DIRA[ DIRA]" will be appended to VARIABLE
8009 # "DIR[:DIR]"
8010 # VARIABLE will be replaced by "DIR[ DIR]"
8011 func_munge_path_list ()
8012 {
8013 case x$2 in
8014 x)
8015 ;;
8016 *:)
8017 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8018 ;;
8019 x:*)
8020 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8021 ;;
8022 *::*)
8023 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8024 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8025 ;;
8026 *)
8027 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8028 ;;
8029 esac
8030 }
8031
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8039 # On Suns, sometimes $CPP names a directory.
8040 if test -n "$CPP" && test -d "$CPP"; then
8041 CPP=
8042 fi
8043 if test -z "$CPP"; then
8044 if ${ac_cv_prog_CPP+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 # Double quotes because CPP needs to be expanded
8048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8049 do
8050 ac_preproc_ok=false
8051 for ac_c_preproc_warn_flag in '' yes
8052 do
8053 # Use a header file that comes with gcc, so configuring glibc
8054 # with a fresh cross-compiler works.
8055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8056 # <limits.h> exists even on freestanding compilers.
8057 # On the NeXT, cc -E runs the code through the compiler's parser,
8058 # not just through cpp. "Syntax error" is here to catch this case.
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #ifdef __STDC__
8062 # include <limits.h>
8063 #else
8064 # include <assert.h>
8065 #endif
8066 Syntax error
8067 _ACEOF
8068 if ac_fn_c_try_cpp "$LINENO"; then :
8069
8070 else
8071 # Broken: fails on valid input.
8072 continue
8073 fi
8074 rm -f conftest.err conftest.i conftest.$ac_ext
8075
8076 # OK, works on sane cases. Now check whether nonexistent headers
8077 # can be detected and how.
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <ac_nonexistent.h>
8081 _ACEOF
8082 if ac_fn_c_try_cpp "$LINENO"; then :
8083 # Broken: success on invalid input.
8084 continue
8085 else
8086 # Passes both tests.
8087 ac_preproc_ok=:
8088 break
8089 fi
8090 rm -f conftest.err conftest.i conftest.$ac_ext
8091
8092 done
8093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8094 rm -f conftest.i conftest.err conftest.$ac_ext
8095 if $ac_preproc_ok; then :
8096 break
8097 fi
8098
8099 done
8100 ac_cv_prog_CPP=$CPP
8101
8102 fi
8103 CPP=$ac_cv_prog_CPP
8104 else
8105 ac_cv_prog_CPP=$CPP
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8108 $as_echo "$CPP" >&6; }
8109 ac_preproc_ok=false
8110 for ac_c_preproc_warn_flag in '' yes
8111 do
8112 # Use a header file that comes with gcc, so configuring glibc
8113 # with a fresh cross-compiler works.
8114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8115 # <limits.h> exists even on freestanding compilers.
8116 # On the NeXT, cc -E runs the code through the compiler's parser,
8117 # not just through cpp. "Syntax error" is here to catch this case.
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #ifdef __STDC__
8121 # include <limits.h>
8122 #else
8123 # include <assert.h>
8124 #endif
8125 Syntax error
8126 _ACEOF
8127 if ac_fn_c_try_cpp "$LINENO"; then :
8128
8129 else
8130 # Broken: fails on valid input.
8131 continue
8132 fi
8133 rm -f conftest.err conftest.i conftest.$ac_ext
8134
8135 # OK, works on sane cases. Now check whether nonexistent headers
8136 # can be detected and how.
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 #include <ac_nonexistent.h>
8140 _ACEOF
8141 if ac_fn_c_try_cpp "$LINENO"; then :
8142 # Broken: success on invalid input.
8143 continue
8144 else
8145 # Passes both tests.
8146 ac_preproc_ok=:
8147 break
8148 fi
8149 rm -f conftest.err conftest.i conftest.$ac_ext
8150
8151 done
8152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8153 rm -f conftest.i conftest.err conftest.$ac_ext
8154 if $ac_preproc_ok; then :
8155
8156 else
8157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8159 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8160 See \`config.log' for more details" "$LINENO" 5; }
8161 fi
8162
8163 ac_ext=c
8164 ac_cpp='$CPP $CPPFLAGS'
8165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8168
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8171 $as_echo_n "checking for ANSI C header files... " >&6; }
8172 if ${ac_cv_header_stdc+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <stdlib.h>
8178 #include <stdarg.h>
8179 #include <string.h>
8180 #include <float.h>
8181
8182 int
8183 main ()
8184 {
8185
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 ac_cv_header_stdc=yes
8192 else
8193 ac_cv_header_stdc=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196
8197 if test $ac_cv_header_stdc = yes; then
8198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <string.h>
8202
8203 _ACEOF
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "memchr" >/dev/null 2>&1; then :
8206
8207 else
8208 ac_cv_header_stdc=no
8209 fi
8210 rm -f conftest*
8211
8212 fi
8213
8214 if test $ac_cv_header_stdc = yes; then
8215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <stdlib.h>
8219
8220 _ACEOF
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "free" >/dev/null 2>&1; then :
8223
8224 else
8225 ac_cv_header_stdc=no
8226 fi
8227 rm -f conftest*
8228
8229 fi
8230
8231 if test $ac_cv_header_stdc = yes; then
8232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233 if test "$cross_compiling" = yes; then :
8234 :
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <ctype.h>
8239 #include <stdlib.h>
8240 #if ((' ' & 0x0FF) == 0x020)
8241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8243 #else
8244 # define ISLOWER(c) \
8245 (('a' <= (c) && (c) <= 'i') \
8246 || ('j' <= (c) && (c) <= 'r') \
8247 || ('s' <= (c) && (c) <= 'z'))
8248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8249 #endif
8250
8251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8252 int
8253 main ()
8254 {
8255 int i;
8256 for (i = 0; i < 256; i++)
8257 if (XOR (islower (i), ISLOWER (i))
8258 || toupper (i) != TOUPPER (i))
8259 return 2;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_run "$LINENO"; then :
8264
8265 else
8266 ac_cv_header_stdc=no
8267 fi
8268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8269 conftest.$ac_objext conftest.beam conftest.$ac_ext
8270 fi
8271
8272 fi
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8275 $as_echo "$ac_cv_header_stdc" >&6; }
8276 if test $ac_cv_header_stdc = yes; then
8277
8278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8279
8280 fi
8281
8282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8284 inttypes.h stdint.h unistd.h
8285 do :
8286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8288 "
8289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8290 cat >>confdefs.h <<_ACEOF
8291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8292 _ACEOF
8293
8294 fi
8295
8296 done
8297
8298
8299 for ac_header in dlfcn.h
8300 do :
8301 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8302 "
8303 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DLFCN_H 1
8306 _ACEOF
8307
8308 fi
8309
8310 done
8311
8312
8313
8314
8315
8316 # Set options
8317
8318
8319
8320 enable_dlopen=no
8321
8322
8323 enable_win32_dll=no
8324
8325
8326 # Check whether --enable-shared was given.
8327 if test "${enable_shared+set}" = set; then :
8328 enableval=$enable_shared; p=${PACKAGE-default}
8329 case $enableval in
8330 yes) enable_shared=yes ;;
8331 no) enable_shared=no ;;
8332 *)
8333 enable_shared=no
8334 # Look at the argument we got. We use all the common list separators.
8335 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8336 for pkg in $enableval; do
8337 IFS=$lt_save_ifs
8338 if test "X$pkg" = "X$p"; then
8339 enable_shared=yes
8340 fi
8341 done
8342 IFS=$lt_save_ifs
8343 ;;
8344 esac
8345 else
8346 enable_shared=yes
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357 # Check whether --enable-static was given.
8358 if test "${enable_static+set}" = set; then :
8359 enableval=$enable_static; p=${PACKAGE-default}
8360 case $enableval in
8361 yes) enable_static=yes ;;
8362 no) enable_static=no ;;
8363 *)
8364 enable_static=no
8365 # Look at the argument we got. We use all the common list separators.
8366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8367 for pkg in $enableval; do
8368 IFS=$lt_save_ifs
8369 if test "X$pkg" = "X$p"; then
8370 enable_static=yes
8371 fi
8372 done
8373 IFS=$lt_save_ifs
8374 ;;
8375 esac
8376 else
8377 enable_static=yes
8378 fi
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389 # Check whether --with-pic was given.
8390 if test "${with_pic+set}" = set; then :
8391 withval=$with_pic; lt_p=${PACKAGE-default}
8392 case $withval in
8393 yes|no) pic_mode=$withval ;;
8394 *)
8395 pic_mode=default
8396 # Look at the argument we got. We use all the common list separators.
8397 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8398 for lt_pkg in $withval; do
8399 IFS=$lt_save_ifs
8400 if test "X$lt_pkg" = "X$lt_p"; then
8401 pic_mode=yes
8402 fi
8403 done
8404 IFS=$lt_save_ifs
8405 ;;
8406 esac
8407 else
8408 pic_mode=default
8409 fi
8410
8411
8412
8413
8414
8415
8416
8417
8418 # Check whether --enable-fast-install was given.
8419 if test "${enable_fast_install+set}" = set; then :
8420 enableval=$enable_fast_install; p=${PACKAGE-default}
8421 case $enableval in
8422 yes) enable_fast_install=yes ;;
8423 no) enable_fast_install=no ;;
8424 *)
8425 enable_fast_install=no
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 pkg in $enableval; do
8429 IFS=$lt_save_ifs
8430 if test "X$pkg" = "X$p"; then
8431 enable_fast_install=yes
8432 fi
8433 done
8434 IFS=$lt_save_ifs
8435 ;;
8436 esac
8437 else
8438 enable_fast_install=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448 shared_archive_member_spec=
8449 case $host,$enable_shared in
8450 power*-*-aix[5-9]*,yes)
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8452 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8453
8454 # Check whether --with-aix-soname was given.
8455 if test "${with_aix_soname+set}" = set; then :
8456 withval=$with_aix_soname; case $withval in
8457 aix|svr4|both)
8458 ;;
8459 *)
8460 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8461 ;;
8462 esac
8463 lt_cv_with_aix_soname=$with_aix_soname
8464 else
8465 if ${lt_cv_with_aix_soname+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 lt_cv_with_aix_soname=aix
8469 fi
8470
8471 with_aix_soname=$lt_cv_with_aix_soname
8472 fi
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8475 $as_echo "$with_aix_soname" >&6; }
8476 if test aix != "$with_aix_soname"; then
8477 # For the AIX way of multilib, we name the shared archive member
8478 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8479 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8480 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8481 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8482 if test 64 = "${OBJECT_MODE-32}"; then
8483 shared_archive_member_spec=shr_64
8484 else
8485 shared_archive_member_spec=shr
8486 fi
8487 fi
8488 ;;
8489 *)
8490 with_aix_soname=aix
8491 ;;
8492 esac
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 # This can be used to rebuild libtool when needed
8504 LIBTOOL_DEPS=$ltmain
8505
8506 # Always use our own libtool.
8507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538 test -z "$LN_S" && LN_S="ln -s"
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 if test -n "${ZSH_VERSION+set}"; then
8554 setopt NO_GLOB_SUBST
8555 fi
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8558 $as_echo_n "checking for objdir... " >&6; }
8559 if ${lt_cv_objdir+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 rm -f .libs 2>/dev/null
8563 mkdir .libs 2>/dev/null
8564 if test -d .libs; then
8565 lt_cv_objdir=.libs
8566 else
8567 # MS-DOS does not allow filenames that begin with a dot.
8568 lt_cv_objdir=_libs
8569 fi
8570 rmdir .libs 2>/dev/null
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8573 $as_echo "$lt_cv_objdir" >&6; }
8574 objdir=$lt_cv_objdir
8575
8576
8577
8578
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define LT_OBJDIR "$lt_cv_objdir/"
8582 _ACEOF
8583
8584
8585
8586
8587 case $host_os in
8588 aix3*)
8589 # AIX sometimes has problems with the GCC collect2 program. For some
8590 # reason, if we set the COLLECT_NAMES environment variable, the problems
8591 # vanish in a puff of smoke.
8592 if test set != "${COLLECT_NAMES+set}"; then
8593 COLLECT_NAMES=
8594 export COLLECT_NAMES
8595 fi
8596 ;;
8597 esac
8598
8599 # Global variables:
8600 ofile=libtool
8601 can_build_shared=yes
8602
8603 # All known linkers require a '.a' archive for static linking (except MSVC,
8604 # which needs '.lib').
8605 libext=a
8606
8607 with_gnu_ld=$lt_cv_prog_gnu_ld
8608
8609 old_CC=$CC
8610 old_CFLAGS=$CFLAGS
8611
8612 # Set sane defaults for various variables
8613 test -z "$CC" && CC=cc
8614 test -z "$LTCC" && LTCC=$CC
8615 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8616 test -z "$LD" && LD=ld
8617 test -z "$ac_objext" && ac_objext=o
8618
8619 func_cc_basename $compiler
8620 cc_basename=$func_cc_basename_result
8621
8622
8623 # Only perform the check for file, if the check method requires it
8624 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8625 case $deplibs_check_method in
8626 file_magic*)
8627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8629 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8630 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 case $MAGIC_CMD in
8634 [\\/*] | ?:[\\/]*)
8635 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8636 ;;
8637 *)
8638 lt_save_MAGIC_CMD=$MAGIC_CMD
8639 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8641 for ac_dir in $ac_dummy; do
8642 IFS=$lt_save_ifs
8643 test -z "$ac_dir" && ac_dir=.
8644 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8645 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8646 if test -n "$file_magic_test_file"; then
8647 case $deplibs_check_method in
8648 "file_magic "*)
8649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8650 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8652 $EGREP "$file_magic_regex" > /dev/null; then
8653 :
8654 else
8655 cat <<_LT_EOF 1>&2
8656
8657 *** Warning: the command libtool uses to detect shared libraries,
8658 *** $file_magic_cmd, produces output that libtool cannot recognize.
8659 *** The result is that libtool may fail to recognize shared libraries
8660 *** as such. This will affect the creation of libtool libraries that
8661 *** depend on shared libraries, but programs linked with such libtool
8662 *** libraries will work regardless of this problem. Nevertheless, you
8663 *** may want to report the problem to your system manager and/or to
8664 *** [email protected]
8665
8666 _LT_EOF
8667 fi ;;
8668 esac
8669 fi
8670 break
8671 fi
8672 done
8673 IFS=$lt_save_ifs
8674 MAGIC_CMD=$lt_save_MAGIC_CMD
8675 ;;
8676 esac
8677 fi
8678
8679 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8680 if test -n "$MAGIC_CMD"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8682 $as_echo "$MAGIC_CMD" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688
8689
8690
8691
8692 if test -z "$lt_cv_path_MAGIC_CMD"; then
8693 if test -n "$ac_tool_prefix"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8695 $as_echo_n "checking for file... " >&6; }
8696 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 case $MAGIC_CMD in
8700 [\\/*] | ?:[\\/]*)
8701 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8702 ;;
8703 *)
8704 lt_save_MAGIC_CMD=$MAGIC_CMD
8705 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8707 for ac_dir in $ac_dummy; do
8708 IFS=$lt_save_ifs
8709 test -z "$ac_dir" && ac_dir=.
8710 if test -f "$ac_dir/file"; then
8711 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8712 if test -n "$file_magic_test_file"; then
8713 case $deplibs_check_method in
8714 "file_magic "*)
8715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8716 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8718 $EGREP "$file_magic_regex" > /dev/null; then
8719 :
8720 else
8721 cat <<_LT_EOF 1>&2
8722
8723 *** Warning: the command libtool uses to detect shared libraries,
8724 *** $file_magic_cmd, produces output that libtool cannot recognize.
8725 *** The result is that libtool may fail to recognize shared libraries
8726 *** as such. This will affect the creation of libtool libraries that
8727 *** depend on shared libraries, but programs linked with such libtool
8728 *** libraries will work regardless of this problem. Nevertheless, you
8729 *** may want to report the problem to your system manager and/or to
8730 *** [email protected]
8731
8732 _LT_EOF
8733 fi ;;
8734 esac
8735 fi
8736 break
8737 fi
8738 done
8739 IFS=$lt_save_ifs
8740 MAGIC_CMD=$lt_save_MAGIC_CMD
8741 ;;
8742 esac
8743 fi
8744
8745 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8746 if test -n "$MAGIC_CMD"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8748 $as_echo "$MAGIC_CMD" >&6; }
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753
8754
8755 else
8756 MAGIC_CMD=:
8757 fi
8758 fi
8759
8760 fi
8761 ;;
8762 esac
8763
8764 # Use C for the default configuration in the libtool script
8765
8766 lt_save_CC=$CC
8767 ac_ext=c
8768 ac_cpp='$CPP $CPPFLAGS'
8769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8772
8773
8774 # Source file extension for C test sources.
8775 ac_ext=c
8776
8777 # Object file extension for compiled C test sources.
8778 objext=o
8779 objext=$objext
8780
8781 # Code to be used in simple compile tests
8782 lt_simple_compile_test_code="int some_variable = 0;"
8783
8784 # Code to be used in simple link tests
8785 lt_simple_link_test_code='int main(){return(0);}'
8786
8787
8788
8789
8790
8791
8792
8793 # If no C compiler was specified, use CC.
8794 LTCC=${LTCC-"$CC"}
8795
8796 # If no C compiler flags were specified, use CFLAGS.
8797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8798
8799 # Allow CC to be a program name with arguments.
8800 compiler=$CC
8801
8802 # Save the default compiler, since it gets overwritten when the other
8803 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8804 compiler_DEFAULT=$CC
8805
8806 # save warnings/boilerplate of simple test code
8807 ac_outfile=conftest.$ac_objext
8808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8810 _lt_compiler_boilerplate=`cat conftest.err`
8811 $RM conftest*
8812
8813 ac_outfile=conftest.$ac_objext
8814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8816 _lt_linker_boilerplate=`cat conftest.err`
8817 $RM -r conftest*
8818
8819
8820 ## CAVEAT EMPTOR:
8821 ## There is no encapsulation within the following macros, do not change
8822 ## the running order or otherwise move them around unless you know exactly
8823 ## what you are doing...
8824 if test -n "$compiler"; then
8825
8826 lt_prog_compiler_no_builtin_flag=
8827
8828 if test yes = "$GCC"; then
8829 case $cc_basename in
8830 nvcc*)
8831 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8832 *)
8833 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8834 esac
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8837 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8838 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_rtti_exceptions=no
8842 ac_outfile=conftest.$ac_objext
8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8845 # Insert the option either (1) after the last *FLAGS variable, or
8846 # (2) before a word containing "conftest.", or (3) at the end.
8847 # Note that $ac_compile itself does not contain backslashes and begins
8848 # with a dollar sign (not a hyphen), so the echo should work correctly.
8849 # The option is referenced via a variable to avoid confusing sed.
8850 lt_compile=`echo "$ac_compile" | $SED \
8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853 -e 's:$: $lt_compiler_flag:'`
8854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8855 (eval "$lt_compile" 2>conftest.err)
8856 ac_status=$?
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 if (exit $ac_status) && test -s "$ac_outfile"; then
8860 # The compiler can only warn and ignore the option if not recognized
8861 # So say no if there are warnings other than the usual output.
8862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_rtti_exceptions=yes
8866 fi
8867 fi
8868 $RM conftest*
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8872 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8873
8874 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8876 else
8877 :
8878 fi
8879
8880 fi
8881
8882
8883
8884
8885
8886
8887 lt_prog_compiler_wl=
8888 lt_prog_compiler_pic=
8889 lt_prog_compiler_static=
8890
8891
8892 if test yes = "$GCC"; then
8893 lt_prog_compiler_wl='-Wl,'
8894 lt_prog_compiler_static='-static'
8895
8896 case $host_os in
8897 aix*)
8898 # All AIX code is PIC.
8899 if test ia64 = "$host_cpu"; then
8900 # AIX 5 now supports IA64 processor
8901 lt_prog_compiler_static='-Bstatic'
8902 fi
8903 lt_prog_compiler_pic='-fPIC'
8904 ;;
8905
8906 amigaos*)
8907 case $host_cpu in
8908 powerpc)
8909 # see comment about AmigaOS4 .so support
8910 lt_prog_compiler_pic='-fPIC'
8911 ;;
8912 m68k)
8913 # FIXME: we need at least 68020 code to build shared libraries, but
8914 # adding the '-m68020' flag to GCC prevents building anything better,
8915 # like '-m68040'.
8916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8917 ;;
8918 esac
8919 ;;
8920
8921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8922 # PIC is the default for these OSes.
8923 ;;
8924
8925 mingw* | cygwin* | pw32* | os2* | cegcc*)
8926 # This hack is so that the source file can tell whether it is being
8927 # built for inclusion in a dll (and should export symbols for example).
8928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8929 # (--disable-auto-import) libraries
8930 lt_prog_compiler_pic='-DDLL_EXPORT'
8931 case $host_os in
8932 os2*)
8933 lt_prog_compiler_static='$wl-static'
8934 ;;
8935 esac
8936 ;;
8937
8938 darwin* | rhapsody*)
8939 # PIC is the default on this platform
8940 # Common symbols not allowed in MH_DYLIB files
8941 lt_prog_compiler_pic='-fno-common'
8942 ;;
8943
8944 haiku*)
8945 # PIC is the default for Haiku.
8946 # The "-static" flag exists, but is broken.
8947 lt_prog_compiler_static=
8948 ;;
8949
8950 hpux*)
8951 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8952 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8953 # sets the default TLS model and affects inlining.
8954 case $host_cpu in
8955 hppa*64*)
8956 # +Z the default
8957 ;;
8958 *)
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961 esac
8962 ;;
8963
8964 interix[3-9]*)
8965 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8966 # Instead, we relocate shared libraries at runtime.
8967 ;;
8968
8969 msdosdjgpp*)
8970 # Just because we use GCC doesn't mean we suddenly get shared libraries
8971 # on systems that don't support them.
8972 lt_prog_compiler_can_build_shared=no
8973 enable_shared=no
8974 ;;
8975
8976 *nto* | *qnx*)
8977 # QNX uses GNU C++, but need to define -shared option too, otherwise
8978 # it will coredump.
8979 lt_prog_compiler_pic='-fPIC -shared'
8980 ;;
8981
8982 sysv4*MP*)
8983 if test -d /usr/nec; then
8984 lt_prog_compiler_pic=-Kconform_pic
8985 fi
8986 ;;
8987
8988 *)
8989 lt_prog_compiler_pic='-fPIC'
8990 ;;
8991 esac
8992
8993 case $cc_basename in
8994 nvcc*) # Cuda Compiler Driver 2.2
8995 lt_prog_compiler_wl='-Xlinker '
8996 if test -n "$lt_prog_compiler_pic"; then
8997 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8998 fi
8999 ;;
9000 esac
9001 else
9002 # PORTME Check for flag to pass linker flags through the system compiler.
9003 case $host_os in
9004 aix*)
9005 lt_prog_compiler_wl='-Wl,'
9006 if test ia64 = "$host_cpu"; then
9007 # AIX 5 now supports IA64 processor
9008 lt_prog_compiler_static='-Bstatic'
9009 else
9010 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9011 fi
9012 ;;
9013
9014 darwin* | rhapsody*)
9015 # PIC is the default on this platform
9016 # Common symbols not allowed in MH_DYLIB files
9017 lt_prog_compiler_pic='-fno-common'
9018 case $cc_basename in
9019 nagfor*)
9020 # NAG Fortran compiler
9021 lt_prog_compiler_wl='-Wl,-Wl,,'
9022 lt_prog_compiler_pic='-PIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
9025 esac
9026 ;;
9027
9028 mingw* | cygwin* | pw32* | os2* | cegcc*)
9029 # This hack is so that the source file can tell whether it is being
9030 # built for inclusion in a dll (and should export symbols for example).
9031 lt_prog_compiler_pic='-DDLL_EXPORT'
9032 case $host_os in
9033 os2*)
9034 lt_prog_compiler_static='$wl-static'
9035 ;;
9036 esac
9037 ;;
9038
9039 hpux9* | hpux10* | hpux11*)
9040 lt_prog_compiler_wl='-Wl,'
9041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9042 # not for PA HP-UX.
9043 case $host_cpu in
9044 hppa*64*|ia64*)
9045 # +Z the default
9046 ;;
9047 *)
9048 lt_prog_compiler_pic='+Z'
9049 ;;
9050 esac
9051 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9052 lt_prog_compiler_static='$wl-a ${wl}archive'
9053 ;;
9054
9055 irix5* | irix6* | nonstopux*)
9056 lt_prog_compiler_wl='-Wl,'
9057 # PIC (with -KPIC) is the default.
9058 lt_prog_compiler_static='-non_shared'
9059 ;;
9060
9061 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9062 case $cc_basename in
9063 # old Intel for x86_64, which still supported -KPIC.
9064 ecc*)
9065 lt_prog_compiler_wl='-Wl,'
9066 lt_prog_compiler_pic='-KPIC'
9067 lt_prog_compiler_static='-static'
9068 ;;
9069 # flang / f18. f95 an alias for gfortran or flang on Debian
9070 flang* | f18* | f95*)
9071 lt_prog_compiler_wl='-Wl,'
9072 lt_prog_compiler_pic='-fPIC'
9073 lt_prog_compiler_static='-static'
9074 ;;
9075 # icc used to be incompatible with GCC.
9076 # ICC 10 doesn't accept -KPIC any more.
9077 icc* | ifort*)
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-fPIC'
9080 lt_prog_compiler_static='-static'
9081 ;;
9082 # Lahey Fortran 8.1.
9083 lf95*)
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='--shared'
9086 lt_prog_compiler_static='--static'
9087 ;;
9088 nagfor*)
9089 # NAG Fortran compiler
9090 lt_prog_compiler_wl='-Wl,-Wl,,'
9091 lt_prog_compiler_pic='-PIC'
9092 lt_prog_compiler_static='-Bstatic'
9093 ;;
9094 tcc*)
9095 # Fabrice Bellard et al's Tiny C Compiler
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_pic='-fPIC'
9098 lt_prog_compiler_static='-static'
9099 ;;
9100 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9101 # Portland Group compilers (*not* the Pentium gcc compiler,
9102 # which looks to be a dead project)
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_pic='-fpic'
9105 lt_prog_compiler_static='-Bstatic'
9106 ;;
9107 ccc*)
9108 lt_prog_compiler_wl='-Wl,'
9109 # All Alpha code is PIC.
9110 lt_prog_compiler_static='-non_shared'
9111 ;;
9112 xl* | bgxl* | bgf* | mpixl*)
9113 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-qpic'
9116 lt_prog_compiler_static='-qstaticlink'
9117 ;;
9118 *)
9119 case `$CC -V 2>&1 | sed 5q` in
9120 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9121 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9122 lt_prog_compiler_pic='-KPIC'
9123 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_wl=''
9125 ;;
9126 *Sun\ F* | *Sun*Fortran*)
9127 lt_prog_compiler_pic='-KPIC'
9128 lt_prog_compiler_static='-Bstatic'
9129 lt_prog_compiler_wl='-Qoption ld '
9130 ;;
9131 *Sun\ C*)
9132 # Sun C 5.9
9133 lt_prog_compiler_pic='-KPIC'
9134 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl='-Wl,'
9136 ;;
9137 *Intel*\ [CF]*Compiler*)
9138 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_pic='-fPIC'
9140 lt_prog_compiler_static='-static'
9141 ;;
9142 *Portland\ Group*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-fpic'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147 esac
9148 ;;
9149 esac
9150 ;;
9151
9152 newsos6)
9153 lt_prog_compiler_pic='-KPIC'
9154 lt_prog_compiler_static='-Bstatic'
9155 ;;
9156
9157 *nto* | *qnx*)
9158 # QNX uses GNU C++, but need to define -shared option too, otherwise
9159 # it will coredump.
9160 lt_prog_compiler_pic='-fPIC -shared'
9161 ;;
9162
9163 osf3* | osf4* | osf5*)
9164 lt_prog_compiler_wl='-Wl,'
9165 # All OSF/1 code is PIC.
9166 lt_prog_compiler_static='-non_shared'
9167 ;;
9168
9169 rdos*)
9170 lt_prog_compiler_static='-non_shared'
9171 ;;
9172
9173 solaris*)
9174 lt_prog_compiler_pic='-KPIC'
9175 lt_prog_compiler_static='-Bstatic'
9176 case $cc_basename in
9177 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9178 lt_prog_compiler_wl='-Qoption ld ';;
9179 *)
9180 lt_prog_compiler_wl='-Wl,';;
9181 esac
9182 ;;
9183
9184 sunos4*)
9185 lt_prog_compiler_wl='-Qoption ld '
9186 lt_prog_compiler_pic='-PIC'
9187 lt_prog_compiler_static='-Bstatic'
9188 ;;
9189
9190 sysv4 | sysv4.2uw2* | sysv4.3*)
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-Bstatic'
9194 ;;
9195
9196 sysv4*MP*)
9197 if test -d /usr/nec; then
9198 lt_prog_compiler_pic='-Kconform_pic'
9199 lt_prog_compiler_static='-Bstatic'
9200 fi
9201 ;;
9202
9203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 ;;
9208
9209 unicos*)
9210 lt_prog_compiler_wl='-Wl,'
9211 lt_prog_compiler_can_build_shared=no
9212 ;;
9213
9214 uts4*)
9215 lt_prog_compiler_pic='-pic'
9216 lt_prog_compiler_static='-Bstatic'
9217 ;;
9218
9219 *)
9220 lt_prog_compiler_can_build_shared=no
9221 ;;
9222 esac
9223 fi
9224
9225 case $host_os in
9226 # For platforms that do not support PIC, -DPIC is meaningless:
9227 *djgpp*)
9228 lt_prog_compiler_pic=
9229 ;;
9230 *)
9231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9232 ;;
9233 esac
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9237 if ${lt_cv_prog_compiler_pic+:} false; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9243 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9244 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9245
9246 #
9247 # Check to make sure the PIC flag actually works.
9248 #
9249 if test -n "$lt_prog_compiler_pic"; then
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9251 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9252 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 lt_cv_prog_compiler_pic_works=no
9256 ac_outfile=conftest.$ac_objext
9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9259 # Insert the option either (1) after the last *FLAGS variable, or
9260 # (2) before a word containing "conftest.", or (3) at the end.
9261 # Note that $ac_compile itself does not contain backslashes and begins
9262 # with a dollar sign (not a hyphen), so the echo should work correctly.
9263 # The option is referenced via a variable to avoid confusing sed.
9264 lt_compile=`echo "$ac_compile" | $SED \
9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267 -e 's:$: $lt_compiler_flag:'`
9268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9269 (eval "$lt_compile" 2>conftest.err)
9270 ac_status=$?
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 if (exit $ac_status) && test -s "$ac_outfile"; then
9274 # The compiler can only warn and ignore the option if not recognized
9275 # So say no if there are warnings other than the usual output.
9276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9279 lt_cv_prog_compiler_pic_works=yes
9280 fi
9281 fi
9282 $RM conftest*
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9287
9288 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9289 case $lt_prog_compiler_pic in
9290 "" | " "*) ;;
9291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9292 esac
9293 else
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_can_build_shared=no
9296 fi
9297
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 #
9311 # Check to make sure the static flag actually works.
9312 #
9313 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9315 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9316 if ${lt_cv_prog_compiler_static_works+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 lt_cv_prog_compiler_static_works=no
9320 save_LDFLAGS=$LDFLAGS
9321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9324 # The linker can only warn and ignore the option if not recognized
9325 # So say no if there are warnings
9326 if test -s conftest.err; then
9327 # Append any errors to the config.log.
9328 cat conftest.err 1>&5
9329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9331 if diff conftest.exp conftest.er2 >/dev/null; then
9332 lt_cv_prog_compiler_static_works=yes
9333 fi
9334 else
9335 lt_cv_prog_compiler_static_works=yes
9336 fi
9337 fi
9338 $RM -r conftest*
9339 LDFLAGS=$save_LDFLAGS
9340
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9343 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9344
9345 if test yes = "$lt_cv_prog_compiler_static_works"; then
9346 :
9347 else
9348 lt_prog_compiler_static=
9349 fi
9350
9351
9352
9353
9354
9355
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9359 if ${lt_cv_prog_compiler_c_o+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 lt_cv_prog_compiler_c_o=no
9363 $RM -r conftest 2>/dev/null
9364 mkdir conftest
9365 cd conftest
9366 mkdir out
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368
9369 lt_compiler_flag="-o out/conftest2.$ac_objext"
9370 # Insert the option either (1) after the last *FLAGS variable, or
9371 # (2) before a word containing "conftest.", or (3) at the end.
9372 # Note that $ac_compile itself does not contain backslashes and begins
9373 # with a dollar sign (not a hyphen), so the echo should work correctly.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>out/conftest.err)
9380 ac_status=$?
9381 cat out/conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9384 then
9385 # The compiler can only warn and ignore the option if not recognized
9386 # So say no if there are warnings
9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9390 lt_cv_prog_compiler_c_o=yes
9391 fi
9392 fi
9393 chmod u+w . 2>&5
9394 $RM conftest*
9395 # SGI C++ compiler will create directory out/ii_files/ for
9396 # template instantiation
9397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9398 $RM out/* && rmdir out
9399 cd ..
9400 $RM -r conftest
9401 $RM conftest*
9402
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9406
9407
9408
9409
9410
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9414 if ${lt_cv_prog_compiler_c_o+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 lt_cv_prog_compiler_c_o=no
9418 $RM -r conftest 2>/dev/null
9419 mkdir conftest
9420 cd conftest
9421 mkdir out
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423
9424 lt_compiler_flag="-o out/conftest2.$ac_objext"
9425 # Insert the option either (1) after the last *FLAGS variable, or
9426 # (2) before a word containing "conftest.", or (3) at the end.
9427 # Note that $ac_compile itself does not contain backslashes and begins
9428 # with a dollar sign (not a hyphen), so the echo should work correctly.
9429 lt_compile=`echo "$ac_compile" | $SED \
9430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432 -e 's:$: $lt_compiler_flag:'`
9433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9434 (eval "$lt_compile" 2>out/conftest.err)
9435 ac_status=$?
9436 cat out/conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9439 then
9440 # The compiler can only warn and ignore the option if not recognized
9441 # So say no if there are warnings
9442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler_c_o=yes
9446 fi
9447 fi
9448 chmod u+w . 2>&5
9449 $RM conftest*
9450 # SGI C++ compiler will create directory out/ii_files/ for
9451 # template instantiation
9452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9453 $RM out/* && rmdir out
9454 cd ..
9455 $RM -r conftest
9456 $RM conftest*
9457
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9460 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9461
9462
9463
9464
9465 hard_links=nottested
9466 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9467 # do not overwrite the value of need_locks provided by the user
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9469 $as_echo_n "checking if we can lock with hard links... " >&6; }
9470 hard_links=yes
9471 $RM conftest*
9472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9473 touch conftest.a
9474 ln conftest.a conftest.b 2>&5 || hard_links=no
9475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9477 $as_echo "$hard_links" >&6; }
9478 if test no = "$hard_links"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9480 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9481 need_locks=warn
9482 fi
9483 else
9484 need_locks=no
9485 fi
9486
9487
9488
9489
9490
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9494
9495 runpath_var=
9496 allow_undefined_flag=
9497 always_export_symbols=no
9498 archive_cmds=
9499 archive_expsym_cmds=
9500 compiler_needs_object=no
9501 enable_shared_with_static_runtimes=no
9502 export_dynamic_flag_spec=
9503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9504 hardcode_automatic=no
9505 hardcode_direct=no
9506 hardcode_direct_absolute=no
9507 hardcode_libdir_flag_spec=
9508 hardcode_libdir_separator=
9509 hardcode_minus_L=no
9510 hardcode_shlibpath_var=unsupported
9511 inherit_rpath=no
9512 link_all_deplibs=unknown
9513 module_cmds=
9514 module_expsym_cmds=
9515 old_archive_from_new_cmds=
9516 old_archive_from_expsyms_cmds=
9517 thread_safe_flag_spec=
9518 whole_archive_flag_spec=
9519 # include_expsyms should be a list of space-separated symbols to be *always*
9520 # included in the symbol list
9521 include_expsyms=
9522 # exclude_expsyms can be an extended regexp of symbols to exclude
9523 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9524 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9525 # as well as any symbol that contains 'd'.
9526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9528 # platforms (ab)use it in PIC code, but their linkers get confused if
9529 # the symbol is explicitly referenced. Since portable code cannot
9530 # rely on this symbol name, it's probably fine to never include it in
9531 # preloaded symbol tables.
9532 # Exclude shared library initialization/finalization symbols.
9533 extract_expsyms_cmds=
9534
9535 case $host_os in
9536 cygwin* | mingw* | pw32* | cegcc*)
9537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9538 # When not using gcc, we currently assume that we are using
9539 # Microsoft Visual C++.
9540 if test yes != "$GCC"; then
9541 with_gnu_ld=no
9542 fi
9543 ;;
9544 interix*)
9545 # we just hope/assume this is gcc and not c89 (= MSVC++)
9546 with_gnu_ld=yes
9547 ;;
9548 openbsd* | bitrig*)
9549 with_gnu_ld=no
9550 ;;
9551 linux* | k*bsd*-gnu | gnu*)
9552 link_all_deplibs=no
9553 ;;
9554 esac
9555
9556 ld_shlibs=yes
9557
9558 # On some targets, GNU ld is compatible enough with the native linker
9559 # that we're better off using the native interface for both.
9560 lt_use_gnu_ld_interface=no
9561 if test yes = "$with_gnu_ld"; then
9562 case $host_os in
9563 aix*)
9564 # The AIX port of GNU ld has always aspired to compatibility
9565 # with the native linker. However, as the warning in the GNU ld
9566 # block says, versions before 2.19.5* couldn't really create working
9567 # shared libraries, regardless of the interface used.
9568 case `$LD -v 2>&1` in
9569 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9570 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9571 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9572 *)
9573 lt_use_gnu_ld_interface=yes
9574 ;;
9575 esac
9576 ;;
9577 *)
9578 lt_use_gnu_ld_interface=yes
9579 ;;
9580 esac
9581 fi
9582
9583 if test yes = "$lt_use_gnu_ld_interface"; then
9584 # If archive_cmds runs LD, not CC, wlarc should be empty
9585 wlarc='$wl'
9586
9587 # Set some defaults for GNU ld with shared library support. These
9588 # are reset later if shared libraries are not supported. Putting them
9589 # here allows them to be overridden if necessary.
9590 runpath_var=LD_RUN_PATH
9591 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9592 export_dynamic_flag_spec='$wl--export-dynamic'
9593 # ancient GNU ld didn't support --whole-archive et. al.
9594 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9595 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9596 else
9597 whole_archive_flag_spec=
9598 fi
9599 supports_anon_versioning=no
9600 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9601 *GNU\ gold*) supports_anon_versioning=yes ;;
9602 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9603 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9604 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9605 *\ 2.11.*) ;; # other 2.11 versions
9606 *) supports_anon_versioning=yes ;;
9607 esac
9608
9609 # See if GNU ld supports shared libraries.
9610 case $host_os in
9611 aix[3-9]*)
9612 # On AIX/PPC, the GNU linker is very broken
9613 if test ia64 != "$host_cpu"; then
9614 ld_shlibs=no
9615 cat <<_LT_EOF 1>&2
9616
9617 *** Warning: the GNU linker, at least up to release 2.19, is reported
9618 *** to be unable to reliably create shared libraries on AIX.
9619 *** Therefore, libtool is disabling shared libraries support. If you
9620 *** really care for shared libraries, you may want to install binutils
9621 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9622 *** You will then need to restart the configuration process.
9623
9624 _LT_EOF
9625 fi
9626 ;;
9627
9628 amigaos*)
9629 case $host_cpu in
9630 powerpc)
9631 # see comment about AmigaOS4 .so support
9632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9633 archive_expsym_cmds=''
9634 ;;
9635 m68k)
9636 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)'
9637 hardcode_libdir_flag_spec='-L$libdir'
9638 hardcode_minus_L=yes
9639 ;;
9640 esac
9641 ;;
9642
9643 beos*)
9644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9645 allow_undefined_flag=unsupported
9646 # Joseph Beckenbach <[email protected]> says some releases of gcc
9647 # support --undefined. This deserves some investigation. FIXME
9648 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9649 else
9650 ld_shlibs=no
9651 fi
9652 ;;
9653
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9656 # as there is no search path for DLLs.
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 export_dynamic_flag_spec='$wl--export-all-symbols'
9659 allow_undefined_flag=unsupported
9660 always_export_symbols=no
9661 enable_shared_with_static_runtimes=yes
9662 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'
9663 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9664
9665 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9667 # If the export-symbols file already is a .def file, use it as
9668 # is; otherwise, prepend EXPORTS...
9669 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9670 cp $export_symbols $output_objdir/$soname.def;
9671 else
9672 echo EXPORTS > $output_objdir/$soname.def;
9673 cat $export_symbols >> $output_objdir/$soname.def;
9674 fi~
9675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9676 else
9677 ld_shlibs=no
9678 fi
9679 ;;
9680
9681 haiku*)
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9683 link_all_deplibs=yes
9684 ;;
9685
9686 os2*)
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_minus_L=yes
9689 allow_undefined_flag=unsupported
9690 shrext_cmds=.dll
9691 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9694 $ECHO EXPORTS >> $output_objdir/$libname.def~
9695 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9696 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9697 emximp -o $lib $output_objdir/$libname.def'
9698 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9699 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9700 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9701 $ECHO EXPORTS >> $output_objdir/$libname.def~
9702 prefix_cmds="$SED"~
9703 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9704 prefix_cmds="$prefix_cmds -e 1d";
9705 fi~
9706 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9707 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9708 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9709 emximp -o $lib $output_objdir/$libname.def'
9710 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9711 enable_shared_with_static_runtimes=yes
9712 ;;
9713
9714 interix[3-9]*)
9715 hardcode_direct=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9718 export_dynamic_flag_spec='$wl-E'
9719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9720 # Instead, shared libraries are loaded at an image base (0x10000000 by
9721 # default) and relocated if they conflict, which is a slow very memory
9722 # consuming and fragmenting process. To avoid this, we pick a random,
9723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9726 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'
9727 ;;
9728
9729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9730 tmp_diet=no
9731 if test linux-dietlibc = "$host_os"; then
9732 case $cc_basename in
9733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9734 esac
9735 fi
9736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9737 && test no = "$tmp_diet"
9738 then
9739 tmp_addflag=' $pic_flag'
9740 tmp_sharedflag='-shared'
9741 case $cc_basename,$host_cpu in
9742 pgcc*) # Portland Group C compiler
9743 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'
9744 tmp_addflag=' $pic_flag'
9745 ;;
9746 pgf77* | pgf90* | pgf95* | pgfortran*)
9747 # Portland Group f77 and f90 compilers
9748 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'
9749 tmp_addflag=' $pic_flag -Mnomain' ;;
9750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9751 tmp_addflag=' -i_dynamic' ;;
9752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9753 tmp_addflag=' -i_dynamic -nofor_main' ;;
9754 ifc* | ifort*) # Intel Fortran compiler
9755 tmp_addflag=' -nofor_main' ;;
9756 lf95*) # Lahey Fortran 8.1
9757 whole_archive_flag_spec=
9758 tmp_sharedflag='--shared' ;;
9759 nagfor*) # NAGFOR 5.3
9760 tmp_sharedflag='-Wl,-shared' ;;
9761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9762 tmp_sharedflag='-qmkshrobj'
9763 tmp_addflag= ;;
9764 nvcc*) # Cuda Compiler Driver 2.2
9765 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'
9766 compiler_needs_object=yes
9767 ;;
9768 esac
9769 case `$CC -V 2>&1 | sed 5q` in
9770 *Sun\ C*) # Sun C 5.9
9771 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'
9772 compiler_needs_object=yes
9773 tmp_sharedflag='-G' ;;
9774 *Sun\ F*) # Sun Fortran 8.3
9775 tmp_sharedflag='-G' ;;
9776 esac
9777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9778
9779 if test yes = "$supports_anon_versioning"; then
9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782 echo "local: *; };" >> $output_objdir/$libname.ver~
9783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9784 fi
9785
9786 case $cc_basename in
9787 tcc*)
9788 export_dynamic_flag_spec='-rdynamic'
9789 ;;
9790 xlf* | bgf* | bgxlf* | mpixlf*)
9791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9794 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9795 if test yes = "$supports_anon_versioning"; then
9796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9798 echo "local: *; };" >> $output_objdir/$libname.ver~
9799 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9800 fi
9801 ;;
9802 esac
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807
9808 netbsd* | netbsdelf*-gnu)
9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9811 wlarc=
9812 else
9813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9815 fi
9816 ;;
9817
9818 solaris*)
9819 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9820 ld_shlibs=no
9821 cat <<_LT_EOF 1>&2
9822
9823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9824 *** create shared libraries on Solaris systems. Therefore, libtool
9825 *** is disabling shared libraries support. We urge you to upgrade GNU
9826 *** binutils to release 2.9.1 or newer. Another option is to modify
9827 *** your PATH or compiler configuration so that the native linker is
9828 *** used, and then restart.
9829
9830 _LT_EOF
9831 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9834 else
9835 ld_shlibs=no
9836 fi
9837 ;;
9838
9839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9840 case `$LD -v 2>&1` in
9841 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9842 ld_shlibs=no
9843 cat <<_LT_EOF 1>&2
9844
9845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9846 *** reliably create shared libraries on SCO systems. Therefore, libtool
9847 *** is disabling shared libraries support. We urge you to upgrade GNU
9848 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9849 *** your PATH or compiler configuration so that the native linker is
9850 *** used, and then restart.
9851
9852 _LT_EOF
9853 ;;
9854 *)
9855 # For security reasons, it is highly recommended that you always
9856 # use absolute paths for naming shared libraries, and exclude the
9857 # DT_RUNPATH tag from executables and libraries. But doing so
9858 # requires that you compile everything twice, which is a pain.
9859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9867 esac
9868 ;;
9869
9870 sunos4*)
9871 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9872 wlarc=
9873 hardcode_direct=yes
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 *)
9878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9881 else
9882 ld_shlibs=no
9883 fi
9884 ;;
9885 esac
9886
9887 if test no = "$ld_shlibs"; then
9888 runpath_var=
9889 hardcode_libdir_flag_spec=
9890 export_dynamic_flag_spec=
9891 whole_archive_flag_spec=
9892 fi
9893 else
9894 # PORTME fill in a description of your system's linker (not GNU ld)
9895 case $host_os in
9896 aix3*)
9897 allow_undefined_flag=unsupported
9898 always_export_symbols=yes
9899 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'
9900 # Note: this linker hardcodes the directories in LIBPATH if there
9901 # are no directories specified by -L.
9902 hardcode_minus_L=yes
9903 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9904 # Neither direct hardcoding nor static linking is supported with a
9905 # broken collect2.
9906 hardcode_direct=unsupported
9907 fi
9908 ;;
9909
9910 aix[4-9]*)
9911 if test ia64 = "$host_cpu"; then
9912 # On IA64, the linker does run time linking by default, so we don't
9913 # have to do anything special.
9914 aix_use_runtimelinking=no
9915 exp_sym_flag='-Bexport'
9916 no_entry_flag=
9917 else
9918 # If we're using GNU nm, then we don't want the "-C" option.
9919 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9920 # Without the "-l" option, or with the "-B" option, AIX nm treats
9921 # weak defined symbols like other global defined symbols, whereas
9922 # GNU nm marks them as "W".
9923 # While the 'weak' keyword is ignored in the Export File, we need
9924 # it in the Import File for the 'aix-soname' feature, so we have
9925 # to replace the "-B" option with "-P" for AIX nm.
9926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9927 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'
9928 else
9929 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 == "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'
9930 fi
9931 aix_use_runtimelinking=no
9932
9933 # Test if we are trying to use run time linking or normal
9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935 # have runtime linking enabled, and use it for executables.
9936 # For shared libraries, we enable/disable runtime linking
9937 # depending on the kind of the shared library created -
9938 # when "with_aix_soname,aix_use_runtimelinking" is:
9939 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9940 # "aix,yes" lib.so shared, rtl:yes, for executables
9941 # lib.a static archive
9942 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9943 # lib.a(lib.so.V) shared, rtl:no, for executables
9944 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9945 # lib.a(lib.so.V) shared, rtl:no
9946 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9947 # lib.a static archive
9948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9949 for ld_flag in $LDFLAGS; do
9950 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9951 aix_use_runtimelinking=yes
9952 break
9953 fi
9954 done
9955 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9956 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9957 # so we don't have lib.a shared libs to link our executables.
9958 # We have to force runtime linking in this case.
9959 aix_use_runtimelinking=yes
9960 LDFLAGS="$LDFLAGS -Wl,-brtl"
9961 fi
9962 ;;
9963 esac
9964
9965 exp_sym_flag='-bexport'
9966 no_entry_flag='-bnoentry'
9967 fi
9968
9969 # When large executables or shared objects are built, AIX ld can
9970 # have problems creating the table of contents. If linking a library
9971 # or program results in "error TOC overflow" add -mminimal-toc to
9972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9974
9975 archive_cmds=''
9976 hardcode_direct=yes
9977 hardcode_direct_absolute=yes
9978 hardcode_libdir_separator=':'
9979 link_all_deplibs=yes
9980 file_list_spec='$wl-f,'
9981 case $with_aix_soname,$aix_use_runtimelinking in
9982 aix,*) ;; # traditional, no import file
9983 svr4,* | *,yes) # use import file
9984 # The Import File defines what to hardcode.
9985 hardcode_direct=no
9986 hardcode_direct_absolute=no
9987 ;;
9988 esac
9989
9990 if test yes = "$GCC"; then
9991 case $host_os in aix4.[012]|aix4.[012].*)
9992 # We only want to do this on AIX 4.2 and lower, the check
9993 # below for broken collect2 doesn't work under 4.3+
9994 collect2name=`$CC -print-prog-name=collect2`
9995 if test -f "$collect2name" &&
9996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9997 then
9998 # We have reworked collect2
9999 :
10000 else
10001 # We have old collect2
10002 hardcode_direct=unsupported
10003 # It fails to find uninstalled libraries when the uninstalled
10004 # path is not listed in the libpath. Setting hardcode_minus_L
10005 # to unsupported forces relinking
10006 hardcode_minus_L=yes
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_libdir_separator=
10009 fi
10010 ;;
10011 esac
10012 shared_flag='-shared'
10013 if test yes = "$aix_use_runtimelinking"; then
10014 shared_flag="$shared_flag "'$wl-G'
10015 fi
10016 # Need to ensure runtime linking is disabled for the traditional
10017 # shared library, or the linker may eventually find shared libraries
10018 # /with/ Import File - we do not want to mix them.
10019 shared_flag_aix='-shared'
10020 shared_flag_svr4='-shared $wl-G'
10021 else
10022 # not using gcc
10023 if test ia64 = "$host_cpu"; then
10024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10025 # chokes on -Wl,-G. The following line is correct:
10026 shared_flag='-G'
10027 else
10028 if test yes = "$aix_use_runtimelinking"; then
10029 shared_flag='$wl-G'
10030 else
10031 shared_flag='$wl-bM:SRE'
10032 fi
10033 shared_flag_aix='$wl-bM:SRE'
10034 shared_flag_svr4='$wl-G'
10035 fi
10036 fi
10037
10038 export_dynamic_flag_spec='$wl-bexpall'
10039 # It seems that -bexpall does not export symbols beginning with
10040 # underscore (_), so it is better to generate a list of symbols to export.
10041 always_export_symbols=yes
10042 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10043 # Warning - without using the other runtime loading flags (-brtl),
10044 # -berok will link without error, but may produce a broken library.
10045 allow_undefined_flag='-berok'
10046 # Determine the default libpath from the value encoded in an
10047 # empty executable.
10048 if test set = "${lt_cv_aix_libpath+set}"; then
10049 aix_libpath=$lt_cv_aix_libpath
10050 else
10051 if ${lt_cv_aix_libpath_+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056
10057 int
10058 main ()
10059 {
10060
10061 ;
10062 return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066
10067 lt_aix_libpath_sed='
10068 /Import File Strings/,/^$/ {
10069 /^0/ {
10070 s/^0 *\([^ ]*\) *$/\1/
10071 p
10072 }
10073 }'
10074 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10075 # Check for a 64-bit object if we didn't find anything.
10076 if test -z "$lt_cv_aix_libpath_"; then
10077 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078 fi
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 if test -z "$lt_cv_aix_libpath_"; then
10083 lt_cv_aix_libpath_=/usr/lib:/lib
10084 fi
10085
10086 fi
10087
10088 aix_libpath=$lt_cv_aix_libpath_
10089 fi
10090
10091 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10092 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
10093 else
10094 if test ia64 = "$host_cpu"; then
10095 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10096 allow_undefined_flag="-z nodefs"
10097 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"
10098 else
10099 # Determine the default libpath from the value encoded in an
10100 # empty executable.
10101 if test set = "${lt_cv_aix_libpath+set}"; then
10102 aix_libpath=$lt_cv_aix_libpath
10103 else
10104 if ${lt_cv_aix_libpath_+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109
10110 int
10111 main ()
10112 {
10113
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119
10120 lt_aix_libpath_sed='
10121 /Import File Strings/,/^$/ {
10122 /^0/ {
10123 s/^0 *\([^ ]*\) *$/\1/
10124 p
10125 }
10126 }'
10127 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10128 # Check for a 64-bit object if we didn't find anything.
10129 if test -z "$lt_cv_aix_libpath_"; then
10130 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131 fi
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 if test -z "$lt_cv_aix_libpath_"; then
10136 lt_cv_aix_libpath_=/usr/lib:/lib
10137 fi
10138
10139 fi
10140
10141 aix_libpath=$lt_cv_aix_libpath_
10142 fi
10143
10144 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10145 # Warning - without using the other run time loading flags,
10146 # -berok will link without error, but may produce a broken library.
10147 no_undefined_flag=' $wl-bernotok'
10148 allow_undefined_flag=' $wl-berok'
10149 if test yes = "$with_gnu_ld"; then
10150 # We only use this code for GNU lds that support --whole-archive.
10151 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10152 else
10153 # Exported symbols can be pulled into shared objects from archives
10154 whole_archive_flag_spec='$convenience'
10155 fi
10156 archive_cmds_need_lc=yes
10157 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10158 # -brtl affects multiple linker settings, -berok does not and is overridden later
10159 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10160 if test svr4 != "$with_aix_soname"; then
10161 # This is similar to how AIX traditionally builds its shared libraries.
10162 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'
10163 fi
10164 if test aix != "$with_aix_soname"; then
10165 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'
10166 else
10167 # used by -dlpreopen to get the symbols
10168 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10169 fi
10170 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10171 fi
10172 fi
10173 ;;
10174
10175 amigaos*)
10176 case $host_cpu in
10177 powerpc)
10178 # see comment about AmigaOS4 .so support
10179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10180 archive_expsym_cmds=''
10181 ;;
10182 m68k)
10183 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)'
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_minus_L=yes
10186 ;;
10187 esac
10188 ;;
10189
10190 bsdi[45]*)
10191 export_dynamic_flag_spec=-rdynamic
10192 ;;
10193
10194 cygwin* | mingw* | pw32* | cegcc*)
10195 # When not using gcc, we currently assume that we are using
10196 # Microsoft Visual C++.
10197 # hardcode_libdir_flag_spec is actually meaningless, as there is
10198 # no search path for DLLs.
10199 case $cc_basename in
10200 cl*)
10201 # Native MSVC
10202 hardcode_libdir_flag_spec=' '
10203 allow_undefined_flag=unsupported
10204 always_export_symbols=yes
10205 file_list_spec='@'
10206 # Tell ltmain to make .lib files, not .a files.
10207 libext=lib
10208 # Tell ltmain to make .dll files, not .so files.
10209 shrext_cmds=.dll
10210 # FIXME: Setting linknames here is a bad hack.
10211 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10212 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10213 cp "$export_symbols" "$output_objdir/$soname.def";
10214 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10215 else
10216 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10217 fi~
10218 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10219 linknames='
10220 # The linker will not automatically build a static lib if we build a DLL.
10221 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10222 enable_shared_with_static_runtimes=yes
10223 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10225 # Don't use ranlib
10226 old_postinstall_cmds='chmod 644 $oldlib'
10227 postlink_cmds='lt_outputfile="@OUTPUT@"~
10228 lt_tool_outputfile="@TOOL_OUTPUT@"~
10229 case $lt_outputfile in
10230 *.exe|*.EXE) ;;
10231 *)
10232 lt_outputfile=$lt_outputfile.exe
10233 lt_tool_outputfile=$lt_tool_outputfile.exe
10234 ;;
10235 esac~
10236 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10237 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10238 $RM "$lt_outputfile.manifest";
10239 fi'
10240 ;;
10241 *)
10242 # Assume MSVC wrapper
10243 hardcode_libdir_flag_spec=' '
10244 allow_undefined_flag=unsupported
10245 # Tell ltmain to make .lib files, not .a files.
10246 libext=lib
10247 # Tell ltmain to make .dll files, not .so files.
10248 shrext_cmds=.dll
10249 # FIXME: Setting linknames here is a bad hack.
10250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10251 # The linker will automatically build a .lib file if we build a DLL.
10252 old_archive_from_new_cmds='true'
10253 # FIXME: Should let the user specify the lib program.
10254 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10255 enable_shared_with_static_runtimes=yes
10256 ;;
10257 esac
10258 ;;
10259
10260 darwin* | rhapsody*)
10261
10262
10263 archive_cmds_need_lc=no
10264 hardcode_direct=no
10265 hardcode_automatic=yes
10266 hardcode_shlibpath_var=unsupported
10267 if test yes = "$lt_cv_ld_force_load"; then
10268 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\"`'
10269
10270 else
10271 whole_archive_flag_spec=''
10272 fi
10273 link_all_deplibs=yes
10274 allow_undefined_flag=$_lt_dar_allow_undefined
10275 case $cc_basename in
10276 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10277 *) _lt_dar_can_shared=$GCC ;;
10278 esac
10279 if test yes = "$_lt_dar_can_shared"; then
10280 output_verbose_link_cmd=func_echo_all
10281 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10282 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10283 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"
10284 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"
10285
10286 else
10287 ld_shlibs=no
10288 fi
10289
10290 ;;
10291
10292 dgux*)
10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_shlibpath_var=no
10296 ;;
10297
10298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10299 # support. Future versions do this automatically, but an explicit c++rt0.o
10300 # does not break anything, and helps significantly (at the cost of a little
10301 # extra space).
10302 freebsd2.2*)
10303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10304 hardcode_libdir_flag_spec='-R$libdir'
10305 hardcode_direct=yes
10306 hardcode_shlibpath_var=no
10307 ;;
10308
10309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10310 freebsd2.*)
10311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_direct=yes
10313 hardcode_minus_L=yes
10314 hardcode_shlibpath_var=no
10315 ;;
10316
10317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10318 freebsd* | dragonfly*)
10319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320 hardcode_libdir_flag_spec='-R$libdir'
10321 hardcode_direct=yes
10322 hardcode_shlibpath_var=no
10323 ;;
10324
10325 hpux9*)
10326 if test yes = "$GCC"; then
10327 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'
10328 else
10329 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'
10330 fi
10331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10332 hardcode_libdir_separator=:
10333 hardcode_direct=yes
10334
10335 # hardcode_minus_L: Not really in the search PATH,
10336 # but as the default location of the library.
10337 hardcode_minus_L=yes
10338 export_dynamic_flag_spec='$wl-E'
10339 ;;
10340
10341 hpux10*)
10342 if test yes,no = "$GCC,$with_gnu_ld"; then
10343 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10344 else
10345 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10346 fi
10347 if test no = "$with_gnu_ld"; then
10348 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10349 hardcode_libdir_separator=:
10350 hardcode_direct=yes
10351 hardcode_direct_absolute=yes
10352 export_dynamic_flag_spec='$wl-E'
10353 # hardcode_minus_L: Not really in the search PATH,
10354 # but as the default location of the library.
10355 hardcode_minus_L=yes
10356 fi
10357 ;;
10358
10359 hpux11*)
10360 if test yes,no = "$GCC,$with_gnu_ld"; then
10361 case $host_cpu in
10362 hppa*64*)
10363 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 ;;
10365 ia64*)
10366 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 *)
10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10370 ;;
10371 esac
10372 else
10373 case $host_cpu in
10374 hppa*64*)
10375 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 ;;
10377 ia64*)
10378 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 *)
10381
10382 # Older versions of the 11.00 compiler do not understand -b yet
10383 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10385 $as_echo_n "checking if $CC understands -b... " >&6; }
10386 if ${lt_cv_prog_compiler__b+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 lt_cv_prog_compiler__b=no
10390 save_LDFLAGS=$LDFLAGS
10391 LDFLAGS="$LDFLAGS -b"
10392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10394 # The linker can only warn and ignore the option if not recognized
10395 # So say no if there are warnings
10396 if test -s conftest.err; then
10397 # Append any errors to the config.log.
10398 cat conftest.err 1>&5
10399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10401 if diff conftest.exp conftest.er2 >/dev/null; then
10402 lt_cv_prog_compiler__b=yes
10403 fi
10404 else
10405 lt_cv_prog_compiler__b=yes
10406 fi
10407 fi
10408 $RM -r conftest*
10409 LDFLAGS=$save_LDFLAGS
10410
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10413 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10414
10415 if test yes = "$lt_cv_prog_compiler__b"; then
10416 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417 else
10418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10419 fi
10420
10421 ;;
10422 esac
10423 fi
10424 if test no = "$with_gnu_ld"; then
10425 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10426 hardcode_libdir_separator=:
10427
10428 case $host_cpu in
10429 hppa*64*|ia64*)
10430 hardcode_direct=no
10431 hardcode_shlibpath_var=no
10432 ;;
10433 *)
10434 hardcode_direct=yes
10435 hardcode_direct_absolute=yes
10436 export_dynamic_flag_spec='$wl-E'
10437
10438 # hardcode_minus_L: Not really in the search PATH,
10439 # but as the default location of the library.
10440 hardcode_minus_L=yes
10441 ;;
10442 esac
10443 fi
10444 ;;
10445
10446 irix5* | irix6* | nonstopux*)
10447 if test yes = "$GCC"; then
10448 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'
10449 # Try to use the -exported_symbol ld option, if it does not
10450 # work, assume that -exports_file does not work either and
10451 # implicitly export all symbols.
10452 # This should be the same for all languages, so no per-tag cache variable.
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10454 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10455 if ${lt_cv_irix_exported_symbol+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 save_LDFLAGS=$LDFLAGS
10459 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int foo (void) { return 0; }
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 lt_cv_irix_exported_symbol=yes
10466 else
10467 lt_cv_irix_exported_symbol=no
10468 fi
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LDFLAGS=$save_LDFLAGS
10472 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10474 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10475 if test yes = "$lt_cv_irix_exported_symbol"; then
10476 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'
10477 fi
10478 link_all_deplibs=no
10479 else
10480 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'
10481 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'
10482 fi
10483 archive_cmds_need_lc='no'
10484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10485 hardcode_libdir_separator=:
10486 inherit_rpath=yes
10487 link_all_deplibs=yes
10488 ;;
10489
10490 linux*)
10491 case $cc_basename in
10492 tcc*)
10493 # Fabrice Bellard et al's Tiny C Compiler
10494 ld_shlibs=yes
10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496 ;;
10497 esac
10498 ;;
10499
10500 netbsd* | netbsdelf*-gnu)
10501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10503 else
10504 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10505 fi
10506 hardcode_libdir_flag_spec='-R$libdir'
10507 hardcode_direct=yes
10508 hardcode_shlibpath_var=no
10509 ;;
10510
10511 newsos6)
10512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_direct=yes
10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10515 hardcode_libdir_separator=:
10516 hardcode_shlibpath_var=no
10517 ;;
10518
10519 *nto* | *qnx*)
10520 ;;
10521
10522 openbsd* | bitrig*)
10523 if test -f /usr/libexec/ld.so; then
10524 hardcode_direct=yes
10525 hardcode_shlibpath_var=no
10526 hardcode_direct_absolute=yes
10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10530 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10531 export_dynamic_flag_spec='$wl-E'
10532 else
10533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10535 fi
10536 else
10537 ld_shlibs=no
10538 fi
10539 ;;
10540
10541 os2*)
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 hardcode_minus_L=yes
10544 allow_undefined_flag=unsupported
10545 shrext_cmds=.dll
10546 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10547 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10548 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10549 $ECHO EXPORTS >> $output_objdir/$libname.def~
10550 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10551 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10552 emximp -o $lib $output_objdir/$libname.def'
10553 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10554 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10555 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10556 $ECHO EXPORTS >> $output_objdir/$libname.def~
10557 prefix_cmds="$SED"~
10558 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10559 prefix_cmds="$prefix_cmds -e 1d";
10560 fi~
10561 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10562 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10563 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10564 emximp -o $lib $output_objdir/$libname.def'
10565 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10566 enable_shared_with_static_runtimes=yes
10567 ;;
10568
10569 osf3*)
10570 if test yes = "$GCC"; then
10571 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10572 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'
10573 else
10574 allow_undefined_flag=' -expect_unresolved \*'
10575 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'
10576 fi
10577 archive_cmds_need_lc='no'
10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10579 hardcode_libdir_separator=:
10580 ;;
10581
10582 osf4* | osf5*) # as osf3* with the addition of -msym flag
10583 if test yes = "$GCC"; then
10584 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10585 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'
10586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10587 else
10588 allow_undefined_flag=' -expect_unresolved \*'
10589 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'
10590 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~
10591 $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'
10592
10593 # Both c and cxx compiler support -rpath directly
10594 hardcode_libdir_flag_spec='-rpath $libdir'
10595 fi
10596 archive_cmds_need_lc='no'
10597 hardcode_libdir_separator=:
10598 ;;
10599
10600 solaris*)
10601 no_undefined_flag=' -z defs'
10602 if test yes = "$GCC"; then
10603 wlarc='$wl'
10604 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10606 $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'
10607 else
10608 case `$CC -V 2>&1` in
10609 *"Compilers 5.0"*)
10610 wlarc=''
10611 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10613 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10614 ;;
10615 *)
10616 wlarc='$wl'
10617 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10620 ;;
10621 esac
10622 fi
10623 hardcode_libdir_flag_spec='-R$libdir'
10624 hardcode_shlibpath_var=no
10625 case $host_os in
10626 solaris2.[0-5] | solaris2.[0-5].*) ;;
10627 *)
10628 # The compiler driver will combine and reorder linker options,
10629 # but understands '-z linker_flag'. GCC discards it without '$wl',
10630 # but is careful enough not to reorder.
10631 # Supported since Solaris 2.6 (maybe 2.5.1?)
10632 if test yes = "$GCC"; then
10633 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10634 else
10635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10636 fi
10637 ;;
10638 esac
10639 link_all_deplibs=yes
10640 ;;
10641
10642 sunos4*)
10643 if test sequent = "$host_vendor"; then
10644 # Use $CC to link under sequent, because it throws in some extra .o
10645 # files that make .init and .fini sections work.
10646 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10647 else
10648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10649 fi
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_direct=yes
10652 hardcode_minus_L=yes
10653 hardcode_shlibpath_var=no
10654 ;;
10655
10656 sysv4)
10657 case $host_vendor in
10658 sni)
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=yes # is this really true???
10661 ;;
10662 siemens)
10663 ## LD is ld it makes a PLAMLIB
10664 ## CC just makes a GrossModule.
10665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10666 reload_cmds='$CC -r -o $output$reload_objs'
10667 hardcode_direct=no
10668 ;;
10669 motorola)
10670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10672 ;;
10673 esac
10674 runpath_var='LD_RUN_PATH'
10675 hardcode_shlibpath_var=no
10676 ;;
10677
10678 sysv4.3*)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_shlibpath_var=no
10681 export_dynamic_flag_spec='-Bexport'
10682 ;;
10683
10684 sysv4*MP*)
10685 if test -d /usr/nec; then
10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_shlibpath_var=no
10688 runpath_var=LD_RUN_PATH
10689 hardcode_runpath_var=yes
10690 ld_shlibs=yes
10691 fi
10692 ;;
10693
10694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10695 no_undefined_flag='$wl-z,text'
10696 archive_cmds_need_lc=no
10697 hardcode_shlibpath_var=no
10698 runpath_var='LD_RUN_PATH'
10699
10700 if test yes = "$GCC"; then
10701 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703 else
10704 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706 fi
10707 ;;
10708
10709 sysv5* | sco3.2v5* | sco5v6*)
10710 # Note: We CANNOT use -z defs as we might desire, because we do not
10711 # link with -lc, and that would cause any symbols used from libc to
10712 # always be unresolved, which means just about no library would
10713 # ever link correctly. If we're not using GNU ld we use -z text
10714 # though, which does catch some bad symbols but isn't as heavy-handed
10715 # as -z defs.
10716 no_undefined_flag='$wl-z,text'
10717 allow_undefined_flag='$wl-z,nodefs'
10718 archive_cmds_need_lc=no
10719 hardcode_shlibpath_var=no
10720 hardcode_libdir_flag_spec='$wl-R,$libdir'
10721 hardcode_libdir_separator=':'
10722 link_all_deplibs=yes
10723 export_dynamic_flag_spec='$wl-Bexport'
10724 runpath_var='LD_RUN_PATH'
10725
10726 if test yes = "$GCC"; then
10727 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 else
10730 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 fi
10733 ;;
10734
10735 uts4*)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_shlibpath_var=no
10739 ;;
10740
10741 *)
10742 ld_shlibs=no
10743 ;;
10744 esac
10745
10746 if test sni = "$host_vendor"; then
10747 case $host in
10748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10749 export_dynamic_flag_spec='$wl-Blargedynsym'
10750 ;;
10751 esac
10752 fi
10753 fi
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10756 $as_echo "$ld_shlibs" >&6; }
10757 test no = "$ld_shlibs" && can_build_shared=no
10758
10759 with_gnu_ld=$with_gnu_ld
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775 #
10776 # Do we need to explicitly link libc?
10777 #
10778 case "x$archive_cmds_need_lc" in
10779 x|xyes)
10780 # Assume -lc should be added
10781 archive_cmds_need_lc=yes
10782
10783 if test yes,yes = "$GCC,$enable_shared"; then
10784 case $archive_cmds in
10785 *'~'*)
10786 # FIXME: we may have to deal with multi-command sequences.
10787 ;;
10788 '$CC '*)
10789 # Test whether the compiler implicitly links with -lc since on some
10790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10791 # to ld, don't add -lc before -lgcc.
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10793 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10794 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 $RM conftest*
10798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10799
10800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10801 (eval $ac_compile) 2>&5
10802 ac_status=$?
10803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10804 test $ac_status = 0; } 2>conftest.err; then
10805 soname=conftest
10806 lib=conftest
10807 libobjs=conftest.$ac_objext
10808 deplibs=
10809 wl=$lt_prog_compiler_wl
10810 pic_flag=$lt_prog_compiler_pic
10811 compiler_flags=-v
10812 linker_flags=-v
10813 verstring=
10814 output_objdir=.
10815 libname=conftest
10816 lt_save_allow_undefined_flag=$allow_undefined_flag
10817 allow_undefined_flag=
10818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10819 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822 test $ac_status = 0; }
10823 then
10824 lt_cv_archive_cmds_need_lc=no
10825 else
10826 lt_cv_archive_cmds_need_lc=yes
10827 fi
10828 allow_undefined_flag=$lt_save_allow_undefined_flag
10829 else
10830 cat conftest.err 1>&5
10831 fi
10832 $RM conftest*
10833
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10836 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10837 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10838 ;;
10839 esac
10840 fi
10841 ;;
10842 esac
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10996 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10997
10998 if test yes = "$GCC"; then
10999 case $host_os in
11000 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11001 *) lt_awk_arg='/^libraries:/' ;;
11002 esac
11003 case $host_os in
11004 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11005 *) lt_sed_strip_eq='s|=/|/|g' ;;
11006 esac
11007 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11008 case $lt_search_path_spec in
11009 *\;*)
11010 # if the path contains ";" then we assume it to be the separator
11011 # otherwise default to the standard path separator (i.e. ":") - it is
11012 # assumed that no part of a normal pathname contains ";" but that should
11013 # okay in the real world where ";" in dirpaths is itself problematic.
11014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11015 ;;
11016 *)
11017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11018 ;;
11019 esac
11020 # Ok, now we have the path, separated by spaces, we can step through it
11021 # and add multilib dir if necessary...
11022 lt_tmp_lt_search_path_spec=
11023 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11024 # ...but if some path component already ends with the multilib dir we assume
11025 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11026 case "$lt_multi_os_dir; $lt_search_path_spec " in
11027 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11028 lt_multi_os_dir=
11029 ;;
11030 esac
11031 for lt_sys_path in $lt_search_path_spec; do
11032 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11034 elif test -n "$lt_multi_os_dir"; then
11035 test -d "$lt_sys_path" && \
11036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11037 fi
11038 done
11039 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11040 BEGIN {RS = " "; FS = "/|\n";} {
11041 lt_foo = "";
11042 lt_count = 0;
11043 for (lt_i = NF; lt_i > 0; lt_i--) {
11044 if ($lt_i != "" && $lt_i != ".") {
11045 if ($lt_i == "..") {
11046 lt_count++;
11047 } else {
11048 if (lt_count == 0) {
11049 lt_foo = "/" $lt_i lt_foo;
11050 } else {
11051 lt_count--;
11052 }
11053 }
11054 }
11055 }
11056 if (lt_foo != "") { lt_freq[lt_foo]++; }
11057 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11058 }'`
11059 # AWK program above erroneously prepends '/' to C:/dos/paths
11060 # for these hosts.
11061 case $host_os in
11062 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11063 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11064 esac
11065 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11066 else
11067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11068 fi
11069 library_names_spec=
11070 libname_spec='lib$name'
11071 soname_spec=
11072 shrext_cmds=.so
11073 postinstall_cmds=
11074 postuninstall_cmds=
11075 finish_cmds=
11076 finish_eval=
11077 shlibpath_var=
11078 shlibpath_overrides_runpath=unknown
11079 version_type=none
11080 dynamic_linker="$host_os ld.so"
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11082 need_lib_prefix=unknown
11083 hardcode_into_libs=no
11084
11085 # when you set need_version to no, make sure it does not cause -set_version
11086 # flags to be left without arguments
11087 need_version=unknown
11088
11089
11090
11091 case $host_os in
11092 aix3*)
11093 version_type=linux # correct to gnu/linux during the next big refactor
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11095 shlibpath_var=LIBPATH
11096
11097 # AIX 3 has no versioning support, so we append a major version to the name.
11098 soname_spec='$libname$release$shared_ext$major'
11099 ;;
11100
11101 aix[4-9]*)
11102 version_type=linux # correct to gnu/linux during the next big refactor
11103 need_lib_prefix=no
11104 need_version=no
11105 hardcode_into_libs=yes
11106 if test ia64 = "$host_cpu"; then
11107 # AIX 5 supports IA64
11108 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 else
11111 # With GCC up to 2.95.x, collect2 would create an import file
11112 # for dependence libraries. The import file would start with
11113 # the line '#! .'. This would cause the generated library to
11114 # depend on '.', always an invalid library. This was fixed in
11115 # development snapshots of GCC prior to 3.0.
11116 case $host_os in
11117 aix4 | aix4.[01] | aix4.[01].*)
11118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11119 echo ' yes '
11120 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11121 :
11122 else
11123 can_build_shared=no
11124 fi
11125 ;;
11126 esac
11127 # Using Import Files as archive members, it is possible to support
11128 # filename-based versioning of shared library archives on AIX. While
11129 # this would work for both with and without runtime linking, it will
11130 # prevent static linking of such archives. So we do filename-based
11131 # shared library versioning with .so extension only, which is used
11132 # when both runtime linking and shared linking is enabled.
11133 # Unfortunately, runtime linking may impact performance, so we do
11134 # not want this to be the default eventually. Also, we use the
11135 # versioned .so libs for executables only if there is the -brtl
11136 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11137 # To allow for filename-based versioning support, we need to create
11138 # libNAME.so.V as an archive file, containing:
11139 # *) an Import File, referring to the versioned filename of the
11140 # archive as well as the shared archive member, telling the
11141 # bitwidth (32 or 64) of that shared object, and providing the
11142 # list of exported symbols of that shared object, eventually
11143 # decorated with the 'weak' keyword
11144 # *) the shared object with the F_LOADONLY flag set, to really avoid
11145 # it being seen by the linker.
11146 # At run time we better use the real file rather than another symlink,
11147 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11148
11149 case $with_aix_soname,$aix_use_runtimelinking in
11150 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11151 # soname into executable. Probably we can add versioning support to
11152 # collect2, so additional links can be useful in future.
11153 aix,yes) # traditional libtool
11154 dynamic_linker='AIX unversionable lib.so'
11155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11156 # instead of lib<name>.a to let people know that these are not
11157 # typical AIX shared libraries.
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 ;;
11160 aix,no) # traditional AIX only
11161 dynamic_linker='AIX lib.a(lib.so.V)'
11162 # We preserve .a as extension for shared libraries through AIX4.2
11163 # and later when we are not doing run time linking.
11164 library_names_spec='$libname$release.a $libname.a'
11165 soname_spec='$libname$release$shared_ext$major'
11166 ;;
11167 svr4,*) # full svr4 only
11168 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11169 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11170 # We do not specify a path in Import Files, so LIBPATH fires.
11171 shlibpath_overrides_runpath=yes
11172 ;;
11173 *,yes) # both, prefer svr4
11174 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11175 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11176 # unpreferred sharedlib libNAME.a needs extra handling
11177 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"'
11178 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"'
11179 # We do not specify a path in Import Files, so LIBPATH fires.
11180 shlibpath_overrides_runpath=yes
11181 ;;
11182 *,no) # both, prefer aix
11183 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11184 library_names_spec='$libname$release.a $libname.a'
11185 soname_spec='$libname$release$shared_ext$major'
11186 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11187 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)'
11188 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"'
11189 ;;
11190 esac
11191 shlibpath_var=LIBPATH
11192 fi
11193 ;;
11194
11195 amigaos*)
11196 case $host_cpu in
11197 powerpc)
11198 # Since July 2007 AmigaOS4 officially supports .so libraries.
11199 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201 ;;
11202 m68k)
11203 library_names_spec='$libname.ixlibrary $libname.a'
11204 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11205 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'
11206 ;;
11207 esac
11208 ;;
11209
11210 beos*)
11211 library_names_spec='$libname$shared_ext'
11212 dynamic_linker="$host_os ld.so"
11213 shlibpath_var=LIBRARY_PATH
11214 ;;
11215
11216 bsdi[45]*)
11217 version_type=linux # correct to gnu/linux during the next big refactor
11218 need_version=no
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11225 # the default ld.so.conf also contains /usr/contrib/lib and
11226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11227 # libtool to hard-code these into programs
11228 ;;
11229
11230 cygwin* | mingw* | pw32* | cegcc*)
11231 version_type=windows
11232 shrext_cmds=.dll
11233 need_version=no
11234 need_lib_prefix=no
11235
11236 case $GCC,$cc_basename in
11237 yes,*)
11238 # gcc
11239 library_names_spec='$libname.dll.a'
11240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11241 postinstall_cmds='base_file=`basename \$file`~
11242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11243 dldir=$destdir/`dirname \$dlpath`~
11244 test -d \$dldir || mkdir -p \$dldir~
11245 $install_prog $dir/$dlname \$dldir/$dlname~
11246 chmod a+x \$dldir/$dlname~
11247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11249 fi'
11250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11251 dlpath=$dir/\$dldll~
11252 $RM \$dlpath'
11253 shlibpath_overrides_runpath=yes
11254
11255 case $host_os in
11256 cygwin*)
11257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11258 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11259
11260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11261 ;;
11262 mingw* | cegcc*)
11263 # MinGW DLLs use traditional 'lib' prefix
11264 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11265 ;;
11266 pw32*)
11267 # pw32 DLLs use 'pw' prefix rather than 'lib'
11268 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11269 ;;
11270 esac
11271 dynamic_linker='Win32 ld.exe'
11272 ;;
11273
11274 *,cl*)
11275 # Native MSVC
11276 libname_spec='$name'
11277 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11278 library_names_spec='$libname.dll.lib'
11279
11280 case $build_os in
11281 mingw*)
11282 sys_lib_search_path_spec=
11283 lt_save_ifs=$IFS
11284 IFS=';'
11285 for lt_path in $LIB
11286 do
11287 IFS=$lt_save_ifs
11288 # Let DOS variable expansion print the short 8.3 style file name.
11289 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11290 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11291 done
11292 IFS=$lt_save_ifs
11293 # Convert to MSYS style.
11294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11295 ;;
11296 cygwin*)
11297 # Convert to unix form, then to dos form, then back to unix form
11298 # but this time dos style (no spaces!) so that the unix form looks
11299 # like /cygdrive/c/PROGRA~1:/cygdr...
11300 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11301 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11302 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11303 ;;
11304 *)
11305 sys_lib_search_path_spec=$LIB
11306 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11307 # It is most probably a Windows format PATH.
11308 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11309 else
11310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11311 fi
11312 # FIXME: find the short name or the path components, as spaces are
11313 # common. (e.g. "Program Files" -> "PROGRA~1")
11314 ;;
11315 esac
11316
11317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11318 postinstall_cmds='base_file=`basename \$file`~
11319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11320 dldir=$destdir/`dirname \$dlpath`~
11321 test -d \$dldir || mkdir -p \$dldir~
11322 $install_prog $dir/$dlname \$dldir/$dlname'
11323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11324 dlpath=$dir/\$dldll~
11325 $RM \$dlpath'
11326 shlibpath_overrides_runpath=yes
11327 dynamic_linker='Win32 link.exe'
11328 ;;
11329
11330 *)
11331 # Assume MSVC wrapper
11332 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11333 dynamic_linker='Win32 ld.exe'
11334 ;;
11335 esac
11336 # FIXME: first we should search . and the directory the executable is in
11337 shlibpath_var=PATH
11338 ;;
11339
11340 darwin* | rhapsody*)
11341 dynamic_linker="$host_os dyld"
11342 version_type=darwin
11343 need_lib_prefix=no
11344 need_version=no
11345 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11346 soname_spec='$libname$release$major$shared_ext'
11347 shlibpath_overrides_runpath=yes
11348 shlibpath_var=DYLD_LIBRARY_PATH
11349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11350
11351 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11353 ;;
11354
11355 dgux*)
11356 version_type=linux # correct to gnu/linux during the next big refactor
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11360 soname_spec='$libname$release$shared_ext$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 ;;
11363
11364 freebsd* | dragonfly*)
11365 # DragonFly does not have aout. When/if they implement a new
11366 # versioning mechanism, adjust this.
11367 if test -x /usr/bin/objformat; then
11368 objformat=`/usr/bin/objformat`
11369 else
11370 case $host_os in
11371 freebsd[23].*) objformat=aout ;;
11372 *) objformat=elf ;;
11373 esac
11374 fi
11375 version_type=freebsd-$objformat
11376 case $version_type in
11377 freebsd-elf*)
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec='$libname$release$shared_ext$major'
11380 need_version=no
11381 need_lib_prefix=no
11382 ;;
11383 freebsd-*)
11384 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11385 need_version=yes
11386 ;;
11387 esac
11388 shlibpath_var=LD_LIBRARY_PATH
11389 case $host_os in
11390 freebsd2.*)
11391 shlibpath_overrides_runpath=yes
11392 ;;
11393 freebsd3.[01]* | freebsdelf3.[01]*)
11394 shlibpath_overrides_runpath=yes
11395 hardcode_into_libs=yes
11396 ;;
11397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11399 shlibpath_overrides_runpath=no
11400 hardcode_into_libs=yes
11401 ;;
11402 *) # from 4.6 on, and DragonFly
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11405 ;;
11406 esac
11407 ;;
11408
11409 haiku*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11411 need_lib_prefix=no
11412 need_version=no
11413 dynamic_linker="$host_os runtime_loader"
11414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11415 soname_spec='$libname$release$shared_ext$major'
11416 shlibpath_var=LIBRARY_PATH
11417 shlibpath_overrides_runpath=no
11418 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11419 hardcode_into_libs=yes
11420 ;;
11421
11422 hpux9* | hpux10* | hpux11*)
11423 # Give a soname corresponding to the major version so that dld.sl refuses to
11424 # link against other versions.
11425 version_type=sunos
11426 need_lib_prefix=no
11427 need_version=no
11428 case $host_cpu in
11429 ia64*)
11430 shrext_cmds='.so'
11431 hardcode_into_libs=yes
11432 dynamic_linker="$host_os dld.so"
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436 soname_spec='$libname$release$shared_ext$major'
11437 if test 32 = "$HPUX_IA64_MODE"; then
11438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11439 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11440 else
11441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11442 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11443 fi
11444 ;;
11445 hppa*64*)
11446 shrext_cmds='.sl'
11447 hardcode_into_libs=yes
11448 dynamic_linker="$host_os dld.sl"
11449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452 soname_spec='$libname$release$shared_ext$major'
11453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11455 ;;
11456 *)
11457 shrext_cmds='.sl'
11458 dynamic_linker="$host_os dld.sl"
11459 shlibpath_var=SHLIB_PATH
11460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11462 soname_spec='$libname$release$shared_ext$major'
11463 ;;
11464 esac
11465 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11466 postinstall_cmds='chmod 555 $lib'
11467 # or fails outright, so override atomically:
11468 install_override_mode=555
11469 ;;
11470
11471 interix[3-9]*)
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=no
11480 hardcode_into_libs=yes
11481 ;;
11482
11483 irix5* | irix6* | nonstopux*)
11484 case $host_os in
11485 nonstopux*) version_type=nonstopux ;;
11486 *)
11487 if test yes = "$lt_cv_prog_gnu_ld"; then
11488 version_type=linux # correct to gnu/linux during the next big refactor
11489 else
11490 version_type=irix
11491 fi ;;
11492 esac
11493 need_lib_prefix=no
11494 need_version=no
11495 soname_spec='$libname$release$shared_ext$major'
11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11497 case $host_os in
11498 irix5* | nonstopux*)
11499 libsuff= shlibsuff=
11500 ;;
11501 *)
11502 case $LD in # libtool.m4 will add one of these switches to LD
11503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11504 libsuff= shlibsuff= libmagic=32-bit;;
11505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11506 libsuff=32 shlibsuff=N32 libmagic=N32;;
11507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11509 *) libsuff= shlibsuff= libmagic=never-match;;
11510 esac
11511 ;;
11512 esac
11513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11514 shlibpath_overrides_runpath=no
11515 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11516 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11517 hardcode_into_libs=yes
11518 ;;
11519
11520 # No shared lib support for Linux oldld, aout, or coff.
11521 linux*oldld* | linux*aout* | linux*coff*)
11522 dynamic_linker=no
11523 ;;
11524
11525 linux*android*)
11526 version_type=none # Android doesn't support versioned libraries.
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='$libname$release$shared_ext'
11530 soname_spec='$libname$release$shared_ext'
11531 finish_cmds=
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=yes
11534
11535 # This implies no fast_install, which is unacceptable.
11536 # Some rework will be needed to allow for fast_install
11537 # before this can be enabled.
11538 hardcode_into_libs=yes
11539
11540 dynamic_linker='Android linker'
11541 # Don't embed -rpath directories since the linker doesn't support them.
11542 hardcode_libdir_flag_spec='-L$libdir'
11543 ;;
11544
11545 # This must be glibc/ELF.
11546 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11547 version_type=linux # correct to gnu/linux during the next big refactor
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551 soname_spec='$libname$release$shared_ext$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=no
11555
11556 # Some binutils ld are patched to set DT_RUNPATH
11557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 lt_cv_shlibpath_overrides_runpath=no
11561 save_LDFLAGS=$LDFLAGS
11562 save_libdir=$libdir
11563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567
11568 int
11569 main ()
11570 {
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11578 lt_cv_shlibpath_overrides_runpath=yes
11579 fi
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LDFLAGS=$save_LDFLAGS
11584 libdir=$save_libdir
11585
11586 fi
11587
11588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11589
11590 # This implies no fast_install, which is unacceptable.
11591 # Some rework will be needed to allow for fast_install
11592 # before this can be enabled.
11593 hardcode_into_libs=yes
11594
11595 # Ideally, we could use ldconfig to report *all* directores which are
11596 # searched for libraries, however this is still not possible. Aside from not
11597 # being certain /sbin/ldconfig is available, command
11598 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11599 # even though it is searched at run-time. Try to do the best guess by
11600 # appending ld.so.conf contents (and includes) to the search path.
11601 if test -f /etc/ld.so.conf; then
11602 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' ' '`
11603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11604 fi
11605
11606 # We used to test for /lib/ld.so.1 and disable shared libraries on
11607 # powerpc, because MkLinux only supported shared libraries with the
11608 # GNU dynamic linker. Since this was broken with cross compilers,
11609 # most powerpc-linux boxes support dynamic linking these days and
11610 # people can always --disable-shared, the test was removed, and we
11611 # assume the GNU/Linux dynamic linker is in use.
11612 dynamic_linker='GNU/Linux ld.so'
11613 ;;
11614
11615 netbsdelf*-gnu)
11616 version_type=linux
11617 need_lib_prefix=no
11618 need_version=no
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
11623 hardcode_into_libs=yes
11624 dynamic_linker='NetBSD ld.elf_so'
11625 ;;
11626
11627 netbsd*)
11628 version_type=sunos
11629 need_lib_prefix=no
11630 need_version=no
11631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11634 dynamic_linker='NetBSD (a.out) ld.so'
11635 else
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 soname_spec='$libname$release$shared_ext$major'
11638 dynamic_linker='NetBSD ld.elf_so'
11639 fi
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 ;;
11644
11645 newsos6)
11646 version_type=linux # correct to gnu/linux during the next big refactor
11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11650 ;;
11651
11652 *nto* | *qnx*)
11653 version_type=qnx
11654 need_lib_prefix=no
11655 need_version=no
11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657 soname_spec='$libname$release$shared_ext$major'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=no
11660 hardcode_into_libs=yes
11661 dynamic_linker='ldqnx.so'
11662 ;;
11663
11664 openbsd* | bitrig*)
11665 version_type=sunos
11666 sys_lib_dlsearch_path_spec=/usr/lib
11667 need_lib_prefix=no
11668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11669 need_version=no
11670 else
11671 need_version=yes
11672 fi
11673 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath=yes
11677 ;;
11678
11679 os2*)
11680 libname_spec='$name'
11681 version_type=windows
11682 shrext_cmds=.dll
11683 need_version=no
11684 need_lib_prefix=no
11685 # OS/2 can only load a DLL with a base name of 8 characters or less.
11686 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11687 v=$($ECHO $release$versuffix | tr -d .-);
11688 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11689 $ECHO $n$v`$shared_ext'
11690 library_names_spec='${libname}_dll.$libext'
11691 dynamic_linker='OS/2 ld.exe'
11692 shlibpath_var=BEGINLIBPATH
11693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11695 postinstall_cmds='base_file=`basename \$file`~
11696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11697 dldir=$destdir/`dirname \$dlpath`~
11698 test -d \$dldir || mkdir -p \$dldir~
11699 $install_prog $dir/$dlname \$dldir/$dlname~
11700 chmod a+x \$dldir/$dlname~
11701 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11702 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11703 fi'
11704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11705 dlpath=$dir/\$dldll~
11706 $RM \$dlpath'
11707 ;;
11708
11709 osf3* | osf4* | osf5*)
11710 version_type=osf
11711 need_lib_prefix=no
11712 need_version=no
11713 soname_spec='$libname$release$shared_ext$major'
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11718 ;;
11719
11720 rdos*)
11721 dynamic_linker=no
11722 ;;
11723
11724 solaris*)
11725 version_type=linux # correct to gnu/linux during the next big refactor
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 shlibpath_overrides_runpath=yes
11732 hardcode_into_libs=yes
11733 # ldd complains unless libraries are executable
11734 postinstall_cmds='chmod +x $lib'
11735 ;;
11736
11737 sunos4*)
11738 version_type=sunos
11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 if test yes = "$with_gnu_ld"; then
11744 need_lib_prefix=no
11745 fi
11746 need_version=yes
11747 ;;
11748
11749 sysv4 | sysv4.3*)
11750 version_type=linux # correct to gnu/linux during the next big refactor
11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11752 soname_spec='$libname$release$shared_ext$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 case $host_vendor in
11755 sni)
11756 shlibpath_overrides_runpath=no
11757 need_lib_prefix=no
11758 runpath_var=LD_RUN_PATH
11759 ;;
11760 siemens)
11761 need_lib_prefix=no
11762 ;;
11763 motorola)
11764 need_lib_prefix=no
11765 need_version=no
11766 shlibpath_overrides_runpath=no
11767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11768 ;;
11769 esac
11770 ;;
11771
11772 sysv4*MP*)
11773 if test -d /usr/nec; then
11774 version_type=linux # correct to gnu/linux during the next big refactor
11775 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11776 soname_spec='$libname$shared_ext.$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 fi
11779 ;;
11780
11781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11782 version_type=sco
11783 need_lib_prefix=no
11784 need_version=no
11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11786 soname_spec='$libname$release$shared_ext$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=yes
11789 hardcode_into_libs=yes
11790 if test yes = "$with_gnu_ld"; then
11791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11792 else
11793 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11794 case $host_os in
11795 sco3.2v5*)
11796 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11797 ;;
11798 esac
11799 fi
11800 sys_lib_dlsearch_path_spec='/usr/lib'
11801 ;;
11802
11803 tpf*)
11804 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11805 version_type=linux # correct to gnu/linux during the next big refactor
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=no
11811 hardcode_into_libs=yes
11812 ;;
11813
11814 uts4*)
11815 version_type=linux # correct to gnu/linux during the next big refactor
11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11817 soname_spec='$libname$release$shared_ext$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 ;;
11820
11821 *)
11822 dynamic_linker=no
11823 ;;
11824 esac
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11826 $as_echo "$dynamic_linker" >&6; }
11827 test no = "$dynamic_linker" && can_build_shared=no
11828
11829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11830 if test yes = "$GCC"; then
11831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11832 fi
11833
11834 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11835 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11836 fi
11837
11838 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11839 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11840 fi
11841
11842 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11843 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11844
11845 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11846 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11847
11848 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11849 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11949 hardcode_action=
11950 if test -n "$hardcode_libdir_flag_spec" ||
11951 test -n "$runpath_var" ||
11952 test yes = "$hardcode_automatic"; then
11953
11954 # We can hardcode non-existent directories.
11955 if test no != "$hardcode_direct" &&
11956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11957 # have to relink, otherwise we might link with an installed library
11958 # when we should be linking with a yet-to-be-installed one
11959 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11960 test no != "$hardcode_minus_L"; then
11961 # Linking always hardcodes the temporary library directory.
11962 hardcode_action=relink
11963 else
11964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11965 hardcode_action=immediate
11966 fi
11967 else
11968 # We cannot hardcode anything, or else we can only hardcode existing
11969 # directories.
11970 hardcode_action=unsupported
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11973 $as_echo "$hardcode_action" >&6; }
11974
11975 if test relink = "$hardcode_action" ||
11976 test yes = "$inherit_rpath"; then
11977 # Fast installation is not supported
11978 enable_fast_install=no
11979 elif test yes = "$shlibpath_overrides_runpath" ||
11980 test no = "$enable_shared"; then
11981 # Fast installation is not necessary
11982 enable_fast_install=needless
11983 fi
11984
11985
11986
11987
11988
11989
11990 if test yes != "$enable_dlopen"; then
11991 enable_dlopen=unknown
11992 enable_dlopen_self=unknown
11993 enable_dlopen_self_static=unknown
11994 else
11995 lt_cv_dlopen=no
11996 lt_cv_dlopen_libs=
11997
11998 case $host_os in
11999 beos*)
12000 lt_cv_dlopen=load_add_on
12001 lt_cv_dlopen_libs=
12002 lt_cv_dlopen_self=yes
12003 ;;
12004
12005 mingw* | pw32* | cegcc*)
12006 lt_cv_dlopen=LoadLibrary
12007 lt_cv_dlopen_libs=
12008 ;;
12009
12010 cygwin*)
12011 lt_cv_dlopen=dlopen
12012 lt_cv_dlopen_libs=
12013 ;;
12014
12015 darwin*)
12016 # if libdl is installed we need to link against it
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12019 if ${ac_cv_lib_dl_dlopen+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-ldl $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char dlopen ();
12034 int
12035 main ()
12036 {
12037 return dlopen ();
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043 ac_cv_lib_dl_dlopen=yes
12044 else
12045 ac_cv_lib_dl_dlopen=no
12046 fi
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12052 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12053 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12054 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12055 else
12056
12057 lt_cv_dlopen=dyld
12058 lt_cv_dlopen_libs=
12059 lt_cv_dlopen_self=yes
12060
12061 fi
12062
12063 ;;
12064
12065 tpf*)
12066 # Don't try to run any link tests for TPF. We know it's impossible
12067 # because TPF is a cross-compiler, and we know how we open DSOs.
12068 lt_cv_dlopen=dlopen
12069 lt_cv_dlopen_libs=
12070 lt_cv_dlopen_self=no
12071 ;;
12072
12073 *)
12074 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12075 if test "x$ac_cv_func_shl_load" = xyes; then :
12076 lt_cv_dlopen=shl_load
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12079 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12080 if ${ac_cv_lib_dld_shl_load+:} false; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-ldld $LIBS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087
12088 /* Override any GCC internal prototype to avoid an error.
12089 Use char because int might match the return type of a GCC
12090 builtin and then its argument prototype would still apply. */
12091 #ifdef __cplusplus
12092 extern "C"
12093 #endif
12094 char shl_load ();
12095 int
12096 main ()
12097 {
12098 return shl_load ();
12099 ;
12100 return 0;
12101 }
12102 _ACEOF
12103 if ac_fn_c_try_link "$LINENO"; then :
12104 ac_cv_lib_dld_shl_load=yes
12105 else
12106 ac_cv_lib_dld_shl_load=no
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12113 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12114 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12115 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12116 else
12117 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12118 if test "x$ac_cv_func_dlopen" = xyes; then :
12119 lt_cv_dlopen=dlopen
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12123 if ${ac_cv_lib_dl_dlopen+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-ldl $LIBS"
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char dlopen ();
12138 int
12139 main ()
12140 {
12141 return dlopen ();
12142 ;
12143 return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_lib_dl_dlopen=yes
12148 else
12149 ac_cv_lib_dl_dlopen=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12156 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12157 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12158 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12161 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12162 if ${ac_cv_lib_svld_dlopen+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 ac_check_lib_save_LIBS=$LIBS
12166 LIBS="-lsvld $LIBS"
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 /* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 char dlopen ();
12177 int
12178 main ()
12179 {
12180 return dlopen ();
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 ac_cv_lib_svld_dlopen=yes
12187 else
12188 ac_cv_lib_svld_dlopen=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12195 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12196 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12197 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12200 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12201 if ${ac_cv_lib_dld_dld_link+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-ldld $LIBS"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char dld_link ();
12216 int
12217 main ()
12218 {
12219 return dld_link ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_dld_dld_link=yes
12226 else
12227 ac_cv_lib_dld_dld_link=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12234 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12235 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12236 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12237 fi
12238
12239
12240 fi
12241
12242
12243 fi
12244
12245
12246 fi
12247
12248
12249 fi
12250
12251
12252 fi
12253
12254 ;;
12255 esac
12256
12257 if test no = "$lt_cv_dlopen"; then
12258 enable_dlopen=no
12259 else
12260 enable_dlopen=yes
12261 fi
12262
12263 case $lt_cv_dlopen in
12264 dlopen)
12265 save_CPPFLAGS=$CPPFLAGS
12266 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12267
12268 save_LDFLAGS=$LDFLAGS
12269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12270
12271 save_LIBS=$LIBS
12272 LIBS="$lt_cv_dlopen_libs $LIBS"
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12275 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12276 if ${lt_cv_dlopen_self+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if test yes = "$cross_compiling"; then :
12280 lt_cv_dlopen_self=cross
12281 else
12282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12283 lt_status=$lt_dlunknown
12284 cat > conftest.$ac_ext <<_LT_EOF
12285 #line $LINENO "configure"
12286 #include "confdefs.h"
12287
12288 #if HAVE_DLFCN_H
12289 #include <dlfcn.h>
12290 #endif
12291
12292 #include <stdio.h>
12293
12294 #ifdef RTLD_GLOBAL
12295 # define LT_DLGLOBAL RTLD_GLOBAL
12296 #else
12297 # ifdef DL_GLOBAL
12298 # define LT_DLGLOBAL DL_GLOBAL
12299 # else
12300 # define LT_DLGLOBAL 0
12301 # endif
12302 #endif
12303
12304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12305 find out it does not work in some platform. */
12306 #ifndef LT_DLLAZY_OR_NOW
12307 # ifdef RTLD_LAZY
12308 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12309 # else
12310 # ifdef DL_LAZY
12311 # define LT_DLLAZY_OR_NOW DL_LAZY
12312 # else
12313 # ifdef RTLD_NOW
12314 # define LT_DLLAZY_OR_NOW RTLD_NOW
12315 # else
12316 # ifdef DL_NOW
12317 # define LT_DLLAZY_OR_NOW DL_NOW
12318 # else
12319 # define LT_DLLAZY_OR_NOW 0
12320 # endif
12321 # endif
12322 # endif
12323 # endif
12324 #endif
12325
12326 /* When -fvisibility=hidden is used, assume the code has been annotated
12327 correspondingly for the symbols needed. */
12328 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12329 int fnord () __attribute__((visibility("default")));
12330 #endif
12331
12332 int fnord () { return 42; }
12333 int main ()
12334 {
12335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12336 int status = $lt_dlunknown;
12337
12338 if (self)
12339 {
12340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12341 else
12342 {
12343 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12344 else puts (dlerror ());
12345 }
12346 /* dlclose (self); */
12347 }
12348 else
12349 puts (dlerror ());
12350
12351 return status;
12352 }
12353 _LT_EOF
12354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12355 (eval $ac_link) 2>&5
12356 ac_status=$?
12357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12358 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12359 (./conftest; exit; ) >&5 2>/dev/null
12360 lt_status=$?
12361 case x$lt_status in
12362 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12363 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12364 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12365 esac
12366 else :
12367 # compilation failed
12368 lt_cv_dlopen_self=no
12369 fi
12370 fi
12371 rm -fr conftest*
12372
12373
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12376 $as_echo "$lt_cv_dlopen_self" >&6; }
12377
12378 if test yes = "$lt_cv_dlopen_self"; then
12379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12381 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12382 if ${lt_cv_dlopen_self_static+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 if test yes = "$cross_compiling"; then :
12386 lt_cv_dlopen_self_static=cross
12387 else
12388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12389 lt_status=$lt_dlunknown
12390 cat > conftest.$ac_ext <<_LT_EOF
12391 #line $LINENO "configure"
12392 #include "confdefs.h"
12393
12394 #if HAVE_DLFCN_H
12395 #include <dlfcn.h>
12396 #endif
12397
12398 #include <stdio.h>
12399
12400 #ifdef RTLD_GLOBAL
12401 # define LT_DLGLOBAL RTLD_GLOBAL
12402 #else
12403 # ifdef DL_GLOBAL
12404 # define LT_DLGLOBAL DL_GLOBAL
12405 # else
12406 # define LT_DLGLOBAL 0
12407 # endif
12408 #endif
12409
12410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12411 find out it does not work in some platform. */
12412 #ifndef LT_DLLAZY_OR_NOW
12413 # ifdef RTLD_LAZY
12414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12415 # else
12416 # ifdef DL_LAZY
12417 # define LT_DLLAZY_OR_NOW DL_LAZY
12418 # else
12419 # ifdef RTLD_NOW
12420 # define LT_DLLAZY_OR_NOW RTLD_NOW
12421 # else
12422 # ifdef DL_NOW
12423 # define LT_DLLAZY_OR_NOW DL_NOW
12424 # else
12425 # define LT_DLLAZY_OR_NOW 0
12426 # endif
12427 # endif
12428 # endif
12429 # endif
12430 #endif
12431
12432 /* When -fvisibility=hidden is used, assume the code has been annotated
12433 correspondingly for the symbols needed. */
12434 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12435 int fnord () __attribute__((visibility("default")));
12436 #endif
12437
12438 int fnord () { return 42; }
12439 int main ()
12440 {
12441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12442 int status = $lt_dlunknown;
12443
12444 if (self)
12445 {
12446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12447 else
12448 {
12449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12450 else puts (dlerror ());
12451 }
12452 /* dlclose (self); */
12453 }
12454 else
12455 puts (dlerror ());
12456
12457 return status;
12458 }
12459 _LT_EOF
12460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12461 (eval $ac_link) 2>&5
12462 ac_status=$?
12463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12464 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12465 (./conftest; exit; ) >&5 2>/dev/null
12466 lt_status=$?
12467 case x$lt_status in
12468 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12469 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12470 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12471 esac
12472 else :
12473 # compilation failed
12474 lt_cv_dlopen_self_static=no
12475 fi
12476 fi
12477 rm -fr conftest*
12478
12479
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12482 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12483 fi
12484
12485 CPPFLAGS=$save_CPPFLAGS
12486 LDFLAGS=$save_LDFLAGS
12487 LIBS=$save_LIBS
12488 ;;
12489 esac
12490
12491 case $lt_cv_dlopen_self in
12492 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12493 *) enable_dlopen_self=unknown ;;
12494 esac
12495
12496 case $lt_cv_dlopen_self_static in
12497 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12498 *) enable_dlopen_self_static=unknown ;;
12499 esac
12500 fi
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518 striplib=
12519 old_striplib=
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12521 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12522 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12523 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12524 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526 $as_echo "yes" >&6; }
12527 else
12528 # FIXME - insert some real tests, host_os isn't really good enough
12529 case $host_os in
12530 darwin*)
12531 if test -n "$STRIP"; then
12532 striplib="$STRIP -x"
12533 old_striplib="$STRIP -S"
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12535 $as_echo "yes" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540 ;;
12541 *)
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12544 ;;
12545 esac
12546 fi
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 # Report what library types will actually be built
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12561 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12563 $as_echo "$can_build_shared" >&6; }
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12566 $as_echo_n "checking whether to build shared libraries... " >&6; }
12567 test no = "$can_build_shared" && enable_shared=no
12568
12569 # On AIX, shared libraries and static libraries use the same namespace, and
12570 # are all built from PIC.
12571 case $host_os in
12572 aix3*)
12573 test yes = "$enable_shared" && enable_static=no
12574 if test -n "$RANLIB"; then
12575 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12576 postinstall_cmds='$RANLIB $lib'
12577 fi
12578 ;;
12579
12580 aix[4-9]*)
12581 if test ia64 != "$host_cpu"; then
12582 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12583 yes,aix,yes) ;; # shared object as lib.so file only
12584 yes,svr4,*) ;; # shared object as lib.so archive member only
12585 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12586 esac
12587 fi
12588 ;;
12589 esac
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12591 $as_echo "$enable_shared" >&6; }
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12594 $as_echo_n "checking whether to build static libraries... " >&6; }
12595 # Make sure either enable_shared or enable_static is yes.
12596 test yes = "$enable_shared" || enable_static=yes
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12598 $as_echo "$enable_static" >&6; }
12599
12600
12601
12602
12603 fi
12604 ac_ext=c
12605 ac_cpp='$CPP $CPPFLAGS'
12606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609
12610 CC=$lt_save_CC
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626 ac_config_commands="$ac_config_commands libtool"
12627
12628
12629
12630
12631 # Only expand once:
12632
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12635 $as_echo_n "checking whether ln -s works... " >&6; }
12636 LN_S=$as_ln_s
12637 if test "$LN_S" = "ln -s"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639 $as_echo "yes" >&6; }
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12642 $as_echo "no, using $LN_S" >&6; }
12643 fi
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12647 set x ${MAKE-make}
12648 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12649 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 cat >conftest.make <<\_ACEOF
12653 SHELL = /bin/sh
12654 all:
12655 @echo '@@@%%%=$(MAKE)=@@@%%%'
12656 _ACEOF
12657 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12659 *@@@%%%=?*=@@@%%%*)
12660 eval ac_cv_prog_make_${ac_make}_set=yes;;
12661 *)
12662 eval ac_cv_prog_make_${ac_make}_set=no;;
12663 esac
12664 rm -f conftest.make
12665 fi
12666 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668 $as_echo "yes" >&6; }
12669 SET_MAKE=
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12673 SET_MAKE="MAKE=${MAKE-make}"
12674 fi
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12685 if test -n "$ac_tool_prefix"; then
12686 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12687 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 case $PKG_CONFIG in
12694 [\\/]* | ?:[\\/]*)
12695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12696 ;;
12697 *)
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
12704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12708 fi
12709 done
12710 done
12711 IFS=$as_save_IFS
12712
12713 ;;
12714 esac
12715 fi
12716 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12717 if test -n "$PKG_CONFIG"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12719 $as_echo "$PKG_CONFIG" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724
12725
12726 fi
12727 if test -z "$ac_cv_path_PKG_CONFIG"; then
12728 ac_pt_PKG_CONFIG=$PKG_CONFIG
12729 # Extract the first word of "pkg-config", so it can be a program name with args.
12730 set dummy pkg-config; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 case $ac_pt_PKG_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12739 ;;
12740 *)
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752 done
12753 done
12754 IFS=$as_save_IFS
12755
12756 ;;
12757 esac
12758 fi
12759 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12760 if test -n "$ac_pt_PKG_CONFIG"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12762 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767
12768 if test "x$ac_pt_PKG_CONFIG" = x; then
12769 PKG_CONFIG=""
12770 else
12771 case $cross_compiling:$ac_tool_warned in
12772 yes:)
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12775 ac_tool_warned=yes ;;
12776 esac
12777 PKG_CONFIG=$ac_pt_PKG_CONFIG
12778 fi
12779 else
12780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12781 fi
12782
12783 fi
12784 if test -n "$PKG_CONFIG"; then
12785 _pkg_min_version=0.9.0
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12787 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 PKG_CONFIG=""
12795 fi
12796 fi
12797
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12799 $as_echo_n "checking for X... " >&6; }
12800
12801
12802 # Check whether --with-x was given.
12803 if test "${with_x+set}" = set; then :
12804 withval=$with_x;
12805 fi
12806
12807 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12808 if test "x$with_x" = xno; then
12809 # The user explicitly disabled X.
12810 have_x=disabled
12811 else
12812 case $x_includes,$x_libraries in #(
12813 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12814 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 # One or both of the vars are not set, and there is no cached value.
12818 ac_x_includes=no ac_x_libraries=no
12819 rm -f -r conftest.dir
12820 if mkdir conftest.dir; then
12821 cd conftest.dir
12822 cat >Imakefile <<'_ACEOF'
12823 incroot:
12824 @echo incroot='${INCROOT}'
12825 usrlibdir:
12826 @echo usrlibdir='${USRLIBDIR}'
12827 libdir:
12828 @echo libdir='${LIBDIR}'
12829 _ACEOF
12830 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12831 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12832 for ac_var in incroot usrlibdir libdir; do
12833 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12834 done
12835 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12836 for ac_extension in a so sl dylib la dll; do
12837 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12838 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12839 ac_im_usrlibdir=$ac_im_libdir; break
12840 fi
12841 done
12842 # Screen out bogus values from the imake configuration. They are
12843 # bogus both because they are the default anyway, and because
12844 # using them would break gcc on systems where it needs fixed includes.
12845 case $ac_im_incroot in
12846 /usr/include) ac_x_includes= ;;
12847 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12848 esac
12849 case $ac_im_usrlibdir in
12850 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12851 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12852 esac
12853 fi
12854 cd ..
12855 rm -f -r conftest.dir
12856 fi
12857
12858 # Standard set of common directories for X headers.
12859 # Check X11 before X11Rn because it is often a symlink to the current release.
12860 ac_x_header_dirs='
12861 /usr/X11/include
12862 /usr/X11R7/include
12863 /usr/X11R6/include
12864 /usr/X11R5/include
12865 /usr/X11R4/include
12866
12867 /usr/include/X11
12868 /usr/include/X11R7
12869 /usr/include/X11R6
12870 /usr/include/X11R5
12871 /usr/include/X11R4
12872
12873 /usr/local/X11/include
12874 /usr/local/X11R7/include
12875 /usr/local/X11R6/include
12876 /usr/local/X11R5/include
12877 /usr/local/X11R4/include
12878
12879 /usr/local/include/X11
12880 /usr/local/include/X11R7
12881 /usr/local/include/X11R6
12882 /usr/local/include/X11R5
12883 /usr/local/include/X11R4
12884
12885 /usr/X386/include
12886 /usr/x386/include
12887 /usr/XFree86/include/X11
12888
12889 /usr/include
12890 /usr/local/include
12891 /usr/unsupported/include
12892 /usr/athena/include
12893 /usr/local/x11r5/include
12894 /usr/lpp/Xamples/include
12895
12896 /usr/openwin/include
12897 /usr/openwin/share/include'
12898
12899 if test "$ac_x_includes" = no; then
12900 # Guess where to find include files, by looking for Xlib.h.
12901 # First, try using that file with no special directory specified.
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904 #include <X11/Xlib.h>
12905 _ACEOF
12906 if ac_fn_c_try_cpp "$LINENO"; then :
12907 # We can compile using X headers with no special include directory.
12908 ac_x_includes=
12909 else
12910 for ac_dir in $ac_x_header_dirs; do
12911 if test -r "$ac_dir/X11/Xlib.h"; then
12912 ac_x_includes=$ac_dir
12913 break
12914 fi
12915 done
12916 fi
12917 rm -f conftest.err conftest.i conftest.$ac_ext
12918 fi # $ac_x_includes = no
12919
12920 if test "$ac_x_libraries" = no; then
12921 # Check for the libraries.
12922 # See if we find them without any special options.
12923 # Don't add to $LIBS permanently.
12924 ac_save_LIBS=$LIBS
12925 LIBS="-lX11 $LIBS"
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928 #include <X11/Xlib.h>
12929 int
12930 main ()
12931 {
12932 XrmInitialize ()
12933 ;
12934 return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"; then :
12938 LIBS=$ac_save_LIBS
12939 # We can link X programs with no special library path.
12940 ac_x_libraries=
12941 else
12942 LIBS=$ac_save_LIBS
12943 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12944 do
12945 # Don't even attempt the hair of trying to link an X program!
12946 for ac_extension in a so sl dylib la dll; do
12947 if test -r "$ac_dir/libX11.$ac_extension"; then
12948 ac_x_libraries=$ac_dir
12949 break 2
12950 fi
12951 done
12952 done
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 fi # $ac_x_libraries = no
12957
12958 case $ac_x_includes,$ac_x_libraries in #(
12959 no,* | *,no | *\'*)
12960 # Didn't find X, or a directory has "'" in its name.
12961 ac_cv_have_x="have_x=no";; #(
12962 *)
12963 # Record where we found X for the cache.
12964 ac_cv_have_x="have_x=yes\
12965 ac_x_includes='$ac_x_includes'\
12966 ac_x_libraries='$ac_x_libraries'"
12967 esac
12968 fi
12969 ;; #(
12970 *) have_x=yes;;
12971 esac
12972 eval "$ac_cv_have_x"
12973 fi # $with_x != no
12974
12975 if test "$have_x" != yes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12977 $as_echo "$have_x" >&6; }
12978 no_x=yes
12979 else
12980 # If each of the values was on the command line, it overrides each guess.
12981 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12982 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12983 # Update the cache value to reflect the command line values.
12984 ac_cv_have_x="have_x=yes\
12985 ac_x_includes='$x_includes'\
12986 ac_x_libraries='$x_libraries'"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12988 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12989 fi
12990
12991
12992 if test -n "$x_includes" && test "x$x_includes" != xNONE ; then
12993 CFLAGS="$CFLAGS -I$x_includes"
12994 fi
12995 if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then
12996 LDFLAGS="$LDFLAGS -L$x_libraries"
12997 fi
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13000 $as_echo_n "checking for ANSI C header files... " >&6; }
13001 if ${ac_cv_header_stdc+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 #include <stdlib.h>
13007 #include <stdarg.h>
13008 #include <string.h>
13009 #include <float.h>
13010
13011 int
13012 main ()
13013 {
13014
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020 ac_cv_header_stdc=yes
13021 else
13022 ac_cv_header_stdc=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026 if test $ac_cv_header_stdc = yes; then
13027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 #include <string.h>
13031
13032 _ACEOF
13033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13034 $EGREP "memchr" >/dev/null 2>&1; then :
13035
13036 else
13037 ac_cv_header_stdc=no
13038 fi
13039 rm -f conftest*
13040
13041 fi
13042
13043 if test $ac_cv_header_stdc = yes; then
13044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <stdlib.h>
13048
13049 _ACEOF
13050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13051 $EGREP "free" >/dev/null 2>&1; then :
13052
13053 else
13054 ac_cv_header_stdc=no
13055 fi
13056 rm -f conftest*
13057
13058 fi
13059
13060 if test $ac_cv_header_stdc = yes; then
13061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13062 if test "$cross_compiling" = yes; then :
13063 :
13064 else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 #include <ctype.h>
13068 #include <stdlib.h>
13069 #if ((' ' & 0x0FF) == 0x020)
13070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13072 #else
13073 # define ISLOWER(c) \
13074 (('a' <= (c) && (c) <= 'i') \
13075 || ('j' <= (c) && (c) <= 'r') \
13076 || ('s' <= (c) && (c) <= 'z'))
13077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13078 #endif
13079
13080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13081 int
13082 main ()
13083 {
13084 int i;
13085 for (i = 0; i < 256; i++)
13086 if (XOR (islower (i), ISLOWER (i))
13087 || toupper (i) != TOUPPER (i))
13088 return 2;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_run "$LINENO"; then :
13093
13094 else
13095 ac_cv_header_stdc=no
13096 fi
13097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13098 conftest.$ac_objext conftest.beam conftest.$ac_ext
13099 fi
13100
13101 fi
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13104 $as_echo "$ac_cv_header_stdc" >&6; }
13105 if test $ac_cv_header_stdc = yes; then
13106
13107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13108
13109 fi
13110
13111
13112
13113
13114 for ac_header in $ac_header_list
13115 do :
13116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13117 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13118 "
13119 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13122 _ACEOF
13123
13124 fi
13125
13126 done
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146 if test "X$prefix" = "XNONE"; then
13147 acl_final_prefix="$ac_default_prefix"
13148 else
13149 acl_final_prefix="$prefix"
13150 fi
13151 if test "X$exec_prefix" = "XNONE"; then
13152 acl_final_exec_prefix='${prefix}'
13153 else
13154 acl_final_exec_prefix="$exec_prefix"
13155 fi
13156 acl_save_prefix="$prefix"
13157 prefix="$acl_final_prefix"
13158 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13159 prefix="$acl_save_prefix"
13160
13161
13162
13163 # Check whether --with-gnu-ld was given.
13164 if test "${with_gnu_ld+set}" = set; then :
13165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13166 else
13167 with_gnu_ld=no
13168 fi
13169
13170 # Prepare PATH_SEPARATOR.
13171 # The user is always right.
13172 if test "${PATH_SEPARATOR+set}" != set; then
13173 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13174 # contains only /bin. Note that ksh looks also at the FPATH variable,
13175 # so we have to set that as well for the test.
13176 PATH_SEPARATOR=:
13177 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13178 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13179 || PATH_SEPARATOR=';'
13180 }
13181 fi
13182
13183 ac_prog=ld
13184 if test "$GCC" = yes; then
13185 # Check if gcc -print-prog-name=ld gives a path.
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13187 $as_echo_n "checking for ld used by $CC... " >&6; }
13188 case $host in
13189 *-*-mingw*)
13190 # gcc leaves a trailing carriage return which upsets mingw
13191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13192 *)
13193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13194 esac
13195 case $ac_prog in
13196 # Accept absolute paths.
13197 [\\/]* | ?:[\\/]*)
13198 re_direlt='/[^/][^/]*/\.\./'
13199 # Canonicalize the pathname of ld
13200 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13201 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13202 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13203 done
13204 test -z "$LD" && LD="$ac_prog"
13205 ;;
13206 "")
13207 # If it fails, then pretend we aren't using GCC.
13208 ac_prog=ld
13209 ;;
13210 *)
13211 # If it is relative, then search for the first ld in PATH.
13212 with_gnu_ld=unknown
13213 ;;
13214 esac
13215 elif test "$with_gnu_ld" = yes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13217 $as_echo_n "checking for GNU ld... " >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13220 $as_echo_n "checking for non-GNU ld... " >&6; }
13221 fi
13222 if ${acl_cv_path_LD+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test -z "$LD"; then
13226 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13227 for ac_dir in $PATH; do
13228 IFS="$acl_save_ifs"
13229 test -z "$ac_dir" && ac_dir=.
13230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13231 acl_cv_path_LD="$ac_dir/$ac_prog"
13232 # Check to see if the program is GNU ld. I'd rather use --version,
13233 # but apparently some variants of GNU ld only accept -v.
13234 # Break only if it was the GNU/non-GNU ld that we prefer.
13235 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13236 *GNU* | *'with BFD'*)
13237 test "$with_gnu_ld" != no && break
13238 ;;
13239 *)
13240 test "$with_gnu_ld" != yes && break
13241 ;;
13242 esac
13243 fi
13244 done
13245 IFS="$acl_save_ifs"
13246 else
13247 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13248 fi
13249 fi
13250
13251 LD="$acl_cv_path_LD"
13252 if test -n "$LD"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13254 $as_echo "$LD" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13262 if ${acl_cv_prog_gnu_ld+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13266 case `$LD -v 2>&1 </dev/null` in
13267 *GNU* | *'with BFD'*)
13268 acl_cv_prog_gnu_ld=yes
13269 ;;
13270 *)
13271 acl_cv_prog_gnu_ld=no
13272 ;;
13273 esac
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13276 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13277 with_gnu_ld=$acl_cv_prog_gnu_ld
13278
13279
13280
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13283 $as_echo_n "checking for shared library run path origin... " >&6; }
13284 if ${acl_cv_rpath+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287
13288 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13290 . ./conftest.sh
13291 rm -f ./conftest.sh
13292 acl_cv_rpath=done
13293
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13296 $as_echo "$acl_cv_rpath" >&6; }
13297 wl="$acl_cv_wl"
13298 acl_libext="$acl_cv_libext"
13299 acl_shlibext="$acl_cv_shlibext"
13300 acl_libname_spec="$acl_cv_libname_spec"
13301 acl_library_names_spec="$acl_cv_library_names_spec"
13302 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13303 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13304 acl_hardcode_direct="$acl_cv_hardcode_direct"
13305 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13306 # Check whether --enable-rpath was given.
13307 if test "${enable_rpath+set}" = set; then :
13308 enableval=$enable_rpath; :
13309 else
13310 enable_rpath=yes
13311 fi
13312
13313
13314
13315
13316 acl_libdirstem=lib
13317 acl_libdirstem2=
13318 case "$host_os" in
13319 solaris*)
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13321 $as_echo_n "checking for 64-bit host... " >&6; }
13322 if ${gl_cv_solaris_64bit+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327
13328 #ifdef _LP64
13329 sixtyfour bits
13330 #endif
13331
13332 _ACEOF
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13335 gl_cv_solaris_64bit=yes
13336 else
13337 gl_cv_solaris_64bit=no
13338 fi
13339 rm -f conftest*
13340
13341
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13344 $as_echo "$gl_cv_solaris_64bit" >&6; }
13345 if test $gl_cv_solaris_64bit = yes; then
13346 acl_libdirstem=lib/64
13347 case "$host_cpu" in
13348 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13349 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13350 esac
13351 fi
13352 ;;
13353 *)
13354 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13355 if test -n "$searchpath"; then
13356 acl_save_IFS="${IFS= }"; IFS=":"
13357 for searchdir in $searchpath; do
13358 if test -d "$searchdir"; then
13359 case "$searchdir" in
13360 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13361 */../ | */.. )
13362 # Better ignore directories of this form. They are misleading.
13363 ;;
13364 *) searchdir=`cd "$searchdir" && pwd`
13365 case "$searchdir" in
13366 */lib64 ) acl_libdirstem=lib64 ;;
13367 esac ;;
13368 esac
13369 fi
13370 done
13371 IFS="$acl_save_IFS"
13372 fi
13373 ;;
13374 esac
13375 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388 use_additional=yes
13389
13390 acl_save_prefix="$prefix"
13391 prefix="$acl_final_prefix"
13392 acl_save_exec_prefix="$exec_prefix"
13393 exec_prefix="$acl_final_exec_prefix"
13394
13395 eval additional_includedir=\"$includedir\"
13396 eval additional_libdir=\"$libdir\"
13397
13398 exec_prefix="$acl_save_exec_prefix"
13399 prefix="$acl_save_prefix"
13400
13401
13402 # Check whether --with-libiconv-prefix was given.
13403 if test "${with_libiconv_prefix+set}" = set; then :
13404 withval=$with_libiconv_prefix;
13405 if test "X$withval" = "Xno"; then
13406 use_additional=no
13407 else
13408 if test "X$withval" = "X"; then
13409
13410 acl_save_prefix="$prefix"
13411 prefix="$acl_final_prefix"
13412 acl_save_exec_prefix="$exec_prefix"
13413 exec_prefix="$acl_final_exec_prefix"
13414
13415 eval additional_includedir=\"$includedir\"
13416 eval additional_libdir=\"$libdir\"
13417
13418 exec_prefix="$acl_save_exec_prefix"
13419 prefix="$acl_save_prefix"
13420
13421 else
13422 additional_includedir="$withval/include"
13423 additional_libdir="$withval/$acl_libdirstem"
13424 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13425 && ! test -d "$withval/$acl_libdirstem"; then
13426 additional_libdir="$withval/$acl_libdirstem2"
13427 fi
13428 fi
13429 fi
13430
13431 fi
13432
13433 LIBICONV=
13434 LTLIBICONV=
13435 INCICONV=
13436 LIBICONV_PREFIX=
13437 HAVE_LIBICONV=
13438 rpathdirs=
13439 ltrpathdirs=
13440 names_already_handled=
13441 names_next_round='iconv '
13442 while test -n "$names_next_round"; do
13443 names_this_round="$names_next_round"
13444 names_next_round=
13445 for name in $names_this_round; do
13446 already_handled=
13447 for n in $names_already_handled; do
13448 if test "$n" = "$name"; then
13449 already_handled=yes
13450 break
13451 fi
13452 done
13453 if test -z "$already_handled"; then
13454 names_already_handled="$names_already_handled $name"
13455 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13456 eval value=\"\$HAVE_LIB$uppername\"
13457 if test -n "$value"; then
13458 if test "$value" = yes; then
13459 eval value=\"\$LIB$uppername\"
13460 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13461 eval value=\"\$LTLIB$uppername\"
13462 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13463 else
13464 :
13465 fi
13466 else
13467 found_dir=
13468 found_la=
13469 found_so=
13470 found_a=
13471 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13472 if test -n "$acl_shlibext"; then
13473 shrext=".$acl_shlibext" # typically: shrext=.so
13474 else
13475 shrext=
13476 fi
13477 if test $use_additional = yes; then
13478 dir="$additional_libdir"
13479 if test -n "$acl_shlibext"; then
13480 if test -f "$dir/$libname$shrext"; then
13481 found_dir="$dir"
13482 found_so="$dir/$libname$shrext"
13483 else
13484 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13485 ver=`(cd "$dir" && \
13486 for f in "$libname$shrext".*; do echo "$f"; done \
13487 | sed -e "s,^$libname$shrext\\\\.,," \
13488 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13489 | sed 1q ) 2>/dev/null`
13490 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13491 found_dir="$dir"
13492 found_so="$dir/$libname$shrext.$ver"
13493 fi
13494 else
13495 eval library_names=\"$acl_library_names_spec\"
13496 for f in $library_names; do
13497 if test -f "$dir/$f"; then
13498 found_dir="$dir"
13499 found_so="$dir/$f"
13500 break
13501 fi
13502 done
13503 fi
13504 fi
13505 fi
13506 if test "X$found_dir" = "X"; then
13507 if test -f "$dir/$libname.$acl_libext"; then
13508 found_dir="$dir"
13509 found_a="$dir/$libname.$acl_libext"
13510 fi
13511 fi
13512 if test "X$found_dir" != "X"; then
13513 if test -f "$dir/$libname.la"; then
13514 found_la="$dir/$libname.la"
13515 fi
13516 fi
13517 fi
13518 if test "X$found_dir" = "X"; then
13519 for x in $LDFLAGS $LTLIBICONV; do
13520
13521 acl_save_prefix="$prefix"
13522 prefix="$acl_final_prefix"
13523 acl_save_exec_prefix="$exec_prefix"
13524 exec_prefix="$acl_final_exec_prefix"
13525 eval x=\"$x\"
13526 exec_prefix="$acl_save_exec_prefix"
13527 prefix="$acl_save_prefix"
13528
13529 case "$x" in
13530 -L*)
13531 dir=`echo "X$x" | sed -e 's/^X-L//'`
13532 if test -n "$acl_shlibext"; then
13533 if test -f "$dir/$libname$shrext"; then
13534 found_dir="$dir"
13535 found_so="$dir/$libname$shrext"
13536 else
13537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13538 ver=`(cd "$dir" && \
13539 for f in "$libname$shrext".*; do echo "$f"; done \
13540 | sed -e "s,^$libname$shrext\\\\.,," \
13541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13542 | sed 1q ) 2>/dev/null`
13543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13544 found_dir="$dir"
13545 found_so="$dir/$libname$shrext.$ver"
13546 fi
13547 else
13548 eval library_names=\"$acl_library_names_spec\"
13549 for f in $library_names; do
13550 if test -f "$dir/$f"; then
13551 found_dir="$dir"
13552 found_so="$dir/$f"
13553 break
13554 fi
13555 done
13556 fi
13557 fi
13558 fi
13559 if test "X$found_dir" = "X"; then
13560 if test -f "$dir/$libname.$acl_libext"; then
13561 found_dir="$dir"
13562 found_a="$dir/$libname.$acl_libext"
13563 fi
13564 fi
13565 if test "X$found_dir" != "X"; then
13566 if test -f "$dir/$libname.la"; then
13567 found_la="$dir/$libname.la"
13568 fi
13569 fi
13570 ;;
13571 esac
13572 if test "X$found_dir" != "X"; then
13573 break
13574 fi
13575 done
13576 fi
13577 if test "X$found_dir" != "X"; then
13578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13579 if test "X$found_so" != "X"; then
13580 if test "$enable_rpath" = no \
13581 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13582 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13584 else
13585 haveit=
13586 for x in $ltrpathdirs; do
13587 if test "X$x" = "X$found_dir"; then
13588 haveit=yes
13589 break
13590 fi
13591 done
13592 if test -z "$haveit"; then
13593 ltrpathdirs="$ltrpathdirs $found_dir"
13594 fi
13595 if test "$acl_hardcode_direct" = yes; then
13596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13597 else
13598 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13600 haveit=
13601 for x in $rpathdirs; do
13602 if test "X$x" = "X$found_dir"; then
13603 haveit=yes
13604 break
13605 fi
13606 done
13607 if test -z "$haveit"; then
13608 rpathdirs="$rpathdirs $found_dir"
13609 fi
13610 else
13611 haveit=
13612 for x in $LDFLAGS $LIBICONV; do
13613
13614 acl_save_prefix="$prefix"
13615 prefix="$acl_final_prefix"
13616 acl_save_exec_prefix="$exec_prefix"
13617 exec_prefix="$acl_final_exec_prefix"
13618 eval x=\"$x\"
13619 exec_prefix="$acl_save_exec_prefix"
13620 prefix="$acl_save_prefix"
13621
13622 if test "X$x" = "X-L$found_dir"; then
13623 haveit=yes
13624 break
13625 fi
13626 done
13627 if test -z "$haveit"; then
13628 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13629 fi
13630 if test "$acl_hardcode_minus_L" != no; then
13631 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13632 else
13633 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13634 fi
13635 fi
13636 fi
13637 fi
13638 else
13639 if test "X$found_a" != "X"; then
13640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13641 else
13642 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13643 fi
13644 fi
13645 additional_includedir=
13646 case "$found_dir" in
13647 */$acl_libdirstem | */$acl_libdirstem/)
13648 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13649 if test "$name" = 'iconv'; then
13650 LIBICONV_PREFIX="$basedir"
13651 fi
13652 additional_includedir="$basedir/include"
13653 ;;
13654 */$acl_libdirstem2 | */$acl_libdirstem2/)
13655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13656 if test "$name" = 'iconv'; then
13657 LIBICONV_PREFIX="$basedir"
13658 fi
13659 additional_includedir="$basedir/include"
13660 ;;
13661 esac
13662 if test "X$additional_includedir" != "X"; then
13663 if test "X$additional_includedir" != "X/usr/include"; then
13664 haveit=
13665 if test "X$additional_includedir" = "X/usr/local/include"; then
13666 if test -n "$GCC"; then
13667 case $host_os in
13668 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13669 esac
13670 fi
13671 fi
13672 if test -z "$haveit"; then
13673 for x in $CPPFLAGS $INCICONV; do
13674
13675 acl_save_prefix="$prefix"
13676 prefix="$acl_final_prefix"
13677 acl_save_exec_prefix="$exec_prefix"
13678 exec_prefix="$acl_final_exec_prefix"
13679 eval x=\"$x\"
13680 exec_prefix="$acl_save_exec_prefix"
13681 prefix="$acl_save_prefix"
13682
13683 if test "X$x" = "X-I$additional_includedir"; then
13684 haveit=yes
13685 break
13686 fi
13687 done
13688 if test -z "$haveit"; then
13689 if test -d "$additional_includedir"; then
13690 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13691 fi
13692 fi
13693 fi
13694 fi
13695 fi
13696 if test -n "$found_la"; then
13697 save_libdir="$libdir"
13698 case "$found_la" in
13699 */* | *\\*) . "$found_la" ;;
13700 *) . "./$found_la" ;;
13701 esac
13702 libdir="$save_libdir"
13703 for dep in $dependency_libs; do
13704 case "$dep" in
13705 -L*)
13706 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13707 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13708 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13709 haveit=
13710 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13711 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13712 if test -n "$GCC"; then
13713 case $host_os in
13714 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13715 esac
13716 fi
13717 fi
13718 if test -z "$haveit"; then
13719 haveit=
13720 for x in $LDFLAGS $LIBICONV; do
13721
13722 acl_save_prefix="$prefix"
13723 prefix="$acl_final_prefix"
13724 acl_save_exec_prefix="$exec_prefix"
13725 exec_prefix="$acl_final_exec_prefix"
13726 eval x=\"$x\"
13727 exec_prefix="$acl_save_exec_prefix"
13728 prefix="$acl_save_prefix"
13729
13730 if test "X$x" = "X-L$additional_libdir"; then
13731 haveit=yes
13732 break
13733 fi
13734 done
13735 if test -z "$haveit"; then
13736 if test -d "$additional_libdir"; then
13737 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13738 fi
13739 fi
13740 haveit=
13741 for x in $LDFLAGS $LTLIBICONV; do
13742
13743 acl_save_prefix="$prefix"
13744 prefix="$acl_final_prefix"
13745 acl_save_exec_prefix="$exec_prefix"
13746 exec_prefix="$acl_final_exec_prefix"
13747 eval x=\"$x\"
13748 exec_prefix="$acl_save_exec_prefix"
13749 prefix="$acl_save_prefix"
13750
13751 if test "X$x" = "X-L$additional_libdir"; then
13752 haveit=yes
13753 break
13754 fi
13755 done
13756 if test -z "$haveit"; then
13757 if test -d "$additional_libdir"; then
13758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13759 fi
13760 fi
13761 fi
13762 fi
13763 ;;
13764 -R*)
13765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13766 if test "$enable_rpath" != no; then
13767 haveit=
13768 for x in $rpathdirs; do
13769 if test "X$x" = "X$dir"; then
13770 haveit=yes
13771 break
13772 fi
13773 done
13774 if test -z "$haveit"; then
13775 rpathdirs="$rpathdirs $dir"
13776 fi
13777 haveit=
13778 for x in $ltrpathdirs; do
13779 if test "X$x" = "X$dir"; then
13780 haveit=yes
13781 break
13782 fi
13783 done
13784 if test -z "$haveit"; then
13785 ltrpathdirs="$ltrpathdirs $dir"
13786 fi
13787 fi
13788 ;;
13789 -l*)
13790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13791 ;;
13792 *.la)
13793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13794 ;;
13795 *)
13796 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13798 ;;
13799 esac
13800 done
13801 fi
13802 else
13803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13805 fi
13806 fi
13807 fi
13808 done
13809 done
13810 if test "X$rpathdirs" != "X"; then
13811 if test -n "$acl_hardcode_libdir_separator"; then
13812 alldirs=
13813 for found_dir in $rpathdirs; do
13814 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13815 done
13816 acl_save_libdir="$libdir"
13817 libdir="$alldirs"
13818 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13819 libdir="$acl_save_libdir"
13820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13821 else
13822 for found_dir in $rpathdirs; do
13823 acl_save_libdir="$libdir"
13824 libdir="$found_dir"
13825 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13826 libdir="$acl_save_libdir"
13827 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13828 done
13829 fi
13830 fi
13831 if test "X$ltrpathdirs" != "X"; then
13832 for found_dir in $ltrpathdirs; do
13833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13834 done
13835 fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848 am_save_CPPFLAGS="$CPPFLAGS"
13849
13850 for element in $INCICONV; do
13851 haveit=
13852 for x in $CPPFLAGS; do
13853
13854 acl_save_prefix="$prefix"
13855 prefix="$acl_final_prefix"
13856 acl_save_exec_prefix="$exec_prefix"
13857 exec_prefix="$acl_final_exec_prefix"
13858 eval x=\"$x\"
13859 exec_prefix="$acl_save_exec_prefix"
13860 prefix="$acl_save_prefix"
13861
13862 if test "X$x" = "X$element"; then
13863 haveit=yes
13864 break
13865 fi
13866 done
13867 if test -z "$haveit"; then
13868 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13869 fi
13870 done
13871
13872
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13874 $as_echo_n "checking for iconv... " >&6; }
13875 if ${am_cv_func_iconv+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878
13879 am_cv_func_iconv="no, consider installing GNU libiconv"
13880 am_cv_lib_iconv=no
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883
13884 #include <stdlib.h>
13885 #include <iconv.h>
13886
13887 int
13888 main ()
13889 {
13890 iconv_t cd = iconv_open("","");
13891 iconv(cd,NULL,NULL,NULL,NULL);
13892 iconv_close(cd);
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 am_cv_func_iconv=yes
13899 fi
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 if test "$am_cv_func_iconv" != yes; then
13903 am_save_LIBS="$LIBS"
13904 LIBS="$LIBS $LIBICONV"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907
13908 #include <stdlib.h>
13909 #include <iconv.h>
13910
13911 int
13912 main ()
13913 {
13914 iconv_t cd = iconv_open("","");
13915 iconv(cd,NULL,NULL,NULL,NULL);
13916 iconv_close(cd);
13917 ;
13918 return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_link "$LINENO"; then :
13922 am_cv_lib_iconv=yes
13923 am_cv_func_iconv=yes
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 LIBS="$am_save_LIBS"
13928 fi
13929
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13932 $as_echo "$am_cv_func_iconv" >&6; }
13933 if test "$am_cv_func_iconv" = yes; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13935 $as_echo_n "checking for working iconv... " >&6; }
13936 if ${am_cv_func_iconv_works+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939
13940 am_save_LIBS="$LIBS"
13941 if test $am_cv_lib_iconv = yes; then
13942 LIBS="$LIBS $LIBICONV"
13943 fi
13944 am_cv_func_iconv_works=no
13945 for ac_iconv_const in '' 'const'; do
13946 if test "$cross_compiling" = yes; then :
13947 case "$host_os" in
13948 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13949 *) am_cv_func_iconv_works="guessing yes" ;;
13950 esac
13951 else
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954
13955 #include <iconv.h>
13956 #include <string.h>
13957
13958 #ifndef ICONV_CONST
13959 # define ICONV_CONST $ac_iconv_const
13960 #endif
13961
13962 int
13963 main ()
13964 {
13965 int result = 0;
13966 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13967 returns. */
13968 {
13969 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13970 if (cd_utf8_to_88591 != (iconv_t)(-1))
13971 {
13972 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13973 char buf[10];
13974 ICONV_CONST char *inptr = input;
13975 size_t inbytesleft = strlen (input);
13976 char *outptr = buf;
13977 size_t outbytesleft = sizeof (buf);
13978 size_t res = iconv (cd_utf8_to_88591,
13979 &inptr, &inbytesleft,
13980 &outptr, &outbytesleft);
13981 if (res == 0)
13982 result |= 1;
13983 iconv_close (cd_utf8_to_88591);
13984 }
13985 }
13986 /* Test against Solaris 10 bug: Failures are not distinguishable from
13987 successful returns. */
13988 {
13989 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13990 if (cd_ascii_to_88591 != (iconv_t)(-1))
13991 {
13992 static ICONV_CONST char input[] = "\263";
13993 char buf[10];
13994 ICONV_CONST char *inptr = input;
13995 size_t inbytesleft = strlen (input);
13996 char *outptr = buf;
13997 size_t outbytesleft = sizeof (buf);
13998 size_t res = iconv (cd_ascii_to_88591,
13999 &inptr, &inbytesleft,
14000 &outptr, &outbytesleft);
14001 if (res == 0)
14002 result |= 2;
14003 iconv_close (cd_ascii_to_88591);
14004 }
14005 }
14006 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14007 {
14008 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14009 if (cd_88591_to_utf8 != (iconv_t)(-1))
14010 {
14011 static ICONV_CONST char input[] = "\304";
14012 static char buf[2] = { (char)0xDE, (char)0xAD };
14013 ICONV_CONST char *inptr = input;
14014 size_t inbytesleft = 1;
14015 char *outptr = buf;
14016 size_t outbytesleft = 1;
14017 size_t res = iconv (cd_88591_to_utf8,
14018 &inptr, &inbytesleft,
14019 &outptr, &outbytesleft);
14020 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14021 result |= 4;
14022 iconv_close (cd_88591_to_utf8);
14023 }
14024 }
14025 #if 0 /* This bug could be worked around by the caller. */
14026 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14027 {
14028 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14029 if (cd_88591_to_utf8 != (iconv_t)(-1))
14030 {
14031 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14032 char buf[50];
14033 ICONV_CONST char *inptr = input;
14034 size_t inbytesleft = strlen (input);
14035 char *outptr = buf;
14036 size_t outbytesleft = sizeof (buf);
14037 size_t res = iconv (cd_88591_to_utf8,
14038 &inptr, &inbytesleft,
14039 &outptr, &outbytesleft);
14040 if ((int)res > 0)
14041 result |= 8;
14042 iconv_close (cd_88591_to_utf8);
14043 }
14044 }
14045 #endif
14046 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14047 provided. */
14048 if (/* Try standardized names. */
14049 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14050 /* Try IRIX, OSF/1 names. */
14051 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14052 /* Try AIX names. */
14053 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14054 /* Try HP-UX names. */
14055 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14056 result |= 16;
14057 return result;
14058
14059 ;
14060 return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_run "$LINENO"; then :
14064 am_cv_func_iconv_works=yes
14065 fi
14066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14067 conftest.$ac_objext conftest.beam conftest.$ac_ext
14068 fi
14069
14070 test "$am_cv_func_iconv_works" = no || break
14071 done
14072 LIBS="$am_save_LIBS"
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14076 $as_echo "$am_cv_func_iconv_works" >&6; }
14077 case "$am_cv_func_iconv_works" in
14078 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14079 *) am_func_iconv=yes ;;
14080 esac
14081 else
14082 am_func_iconv=no am_cv_lib_iconv=no
14083 fi
14084 if test "$am_func_iconv" = yes; then
14085
14086 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14087
14088 fi
14089 if test "$am_cv_lib_iconv" = yes; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14091 $as_echo_n "checking how to link with libiconv... " >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14093 $as_echo "$LIBICONV" >&6; }
14094 else
14095 CPPFLAGS="$am_save_CPPFLAGS"
14096 LIBICONV=
14097 LTLIBICONV=
14098 fi
14099
14100
14101
14102 if test "$am_cv_func_iconv" = yes; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14104 $as_echo_n "checking for iconv declaration... " >&6; }
14105 if ${am_cv_proto_iconv+:} false; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111
14112 #include <stdlib.h>
14113 #include <iconv.h>
14114 extern
14115 #ifdef __cplusplus
14116 "C"
14117 #endif
14118 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
14119 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14120 #else
14121 size_t iconv();
14122 #endif
14123
14124 int
14125 main ()
14126 {
14127
14128 ;
14129 return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_compile "$LINENO"; then :
14133 am_cv_proto_iconv_arg1=""
14134 else
14135 am_cv_proto_iconv_arg1="const"
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14139 fi
14140
14141 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14143 $am_cv_proto_iconv" >&5
14144 $as_echo "
14145 $am_cv_proto_iconv" >&6; }
14146
14147 cat >>confdefs.h <<_ACEOF
14148 #define ICONV_CONST $am_cv_proto_iconv_arg1
14149 _ACEOF
14150
14151
14152 fi
14153
14154 # if test -n "$LIBICONV" ; then
14155 # LIBS="$LIBS $LIBICONV"
14156 # fi
14157
14158 for ac_header in iconv.h
14159 do :
14160 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14161 if test "x$ac_cv_header_iconv_h" = xyes; then :
14162 cat >>confdefs.h <<_ACEOF
14163 #define HAVE_ICONV_H 1
14164 _ACEOF
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv.h defines iconv_t" >&5
14166 $as_echo_n "checking whether iconv.h defines iconv_t... " >&6; }
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #include <iconv.h>
14170
14171 _ACEOF
14172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14173 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then :
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14175 $as_echo "yes" >&6; }
14176
14177 $as_echo "#define HAVE_ICONV_T_DEF 1" >>confdefs.h
14178
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 fi
14183 rm -f conftest*
14184
14185 fi
14186
14187 done
14188
14189
14190 # Checks for typedefs, structures, and compiler characteristics.
14191 #AC_TYPE_SIZE_T
14192
14193 # Checks for library functions.
14194 #AC_FUNC_ERROR_AT_LINE
14195 #AC_FUNC_MALLOC
14196 #AC_FUNC_REALLOC
14197 #AC_CHECK_FUNCS([floor memset sqrt strchr strdup strtol])
14198
14199 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
14200 if test "x$ac_cv_func_sin" = xyes; then :
14201
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
14204 $as_echo_n "checking for sin in -lm... " >&6; }
14205 if ${ac_cv_lib_m_sin+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 ac_check_lib_save_LIBS=$LIBS
14209 LIBS="-lm $LIBS"
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char sin ();
14220 int
14221 main ()
14222 {
14223 return sin ();
14224 ;
14225 return 0;
14226 }
14227 _ACEOF
14228 if ac_fn_c_try_link "$LINENO"; then :
14229 ac_cv_lib_m_sin=yes
14230 else
14231 ac_cv_lib_m_sin=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 LIBS=$ac_check_lib_save_LIBS
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
14238 $as_echo "$ac_cv_lib_m_sin" >&6; }
14239 if test "x$ac_cv_lib_m_sin" = xyes; then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_LIBM 1
14242 _ACEOF
14243
14244 LIBS="-lm $LIBS"
14245
14246 fi
14247
14248 fi
14249
14250
14251
14252
14253
14254
14255 ac_ext=c
14256 ac_cpp='$CPP $CPPFLAGS'
14257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14260
14261 ax_pthread_ok=no
14262
14263 # We used to check for pthread.h first, but this fails if pthread.h
14264 # requires special compiler flags (e.g. on Tru64 or Sequent).
14265 # It gets checked for in the link test anyway.
14266
14267 # First of all, check if the user has set any of the PTHREAD_LIBS,
14268 # etcetera environment variables, and if threads linking works using
14269 # them:
14270 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14271 ax_pthread_save_CC="$CC"
14272 ax_pthread_save_CFLAGS="$CFLAGS"
14273 ax_pthread_save_LIBS="$LIBS"
14274 if test "x$PTHREAD_CC" != "x"; then :
14275 CC="$PTHREAD_CC"
14276 fi
14277 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14278 LIBS="$PTHREAD_LIBS $LIBS"
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14280 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283
14284 /* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char pthread_join ();
14291 int
14292 main ()
14293 {
14294 return pthread_join ();
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 ax_pthread_ok=yes
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14305 $as_echo "$ax_pthread_ok" >&6; }
14306 if test "x$ax_pthread_ok" = "xno"; then
14307 PTHREAD_LIBS=""
14308 PTHREAD_CFLAGS=""
14309 fi
14310 CC="$ax_pthread_save_CC"
14311 CFLAGS="$ax_pthread_save_CFLAGS"
14312 LIBS="$ax_pthread_save_LIBS"
14313 fi
14314
14315 # We must check for the threads library under a number of different
14316 # names; the ordering is very important because some systems
14317 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14318 # libraries is broken (non-POSIX).
14319
14320 # Create a list of thread flags to try. Items starting with a "-" are
14321 # C compiler flags, and other items are library names, except for "none"
14322 # which indicates that we try without any flags at all, and "pthread-config"
14323 # which is a program returning the flags for the Pth emulation library.
14324
14325 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14326
14327 # The ordering *is* (sometimes) important. Some notes on the
14328 # individual items follow:
14329
14330 # pthreads: AIX (must check this before -lpthread)
14331 # none: in case threads are in libc; should be tried before -Kthread and
14332 # other compiler flags to prevent continual compiler warnings
14333 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14334 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14335 # (Note: HP C rejects this with "bad form for `-t' option")
14336 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14337 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14338 # doesn't hurt to check since this sometimes defines pthreads and
14339 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14340 # is present but should not be used directly; and before -mthreads,
14341 # because the compiler interprets this as "-mt" + "-hreads")
14342 # -mthreads: Mingw32/gcc, Lynx/gcc
14343 # pthread: Linux, etcetera
14344 # --thread-safe: KAI C++
14345 # pthread-config: use pthread-config program (for GNU Pth library)
14346
14347 case $host_os in
14348
14349 freebsd*)
14350
14351 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14352 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14353
14354 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14355 ;;
14356
14357 hpux*)
14358
14359 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14360 # multi-threading and also sets -lpthread."
14361
14362 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14363 ;;
14364
14365 openedition*)
14366
14367 # IBM z/OS requires a feature-test macro to be defined in order to
14368 # enable POSIX threads at all, so give the user a hint if this is
14369 # not set. (We don't define these ourselves, as they can affect
14370 # other portions of the system API in unpredictable ways.)
14371
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374
14375 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14376 AX_PTHREAD_ZOS_MISSING
14377 # endif
14378
14379 _ACEOF
14380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14381 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14383 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14384 fi
14385 rm -f conftest*
14386
14387 ;;
14388
14389 solaris*)
14390
14391 # On Solaris (at least, for some versions), libc contains stubbed
14392 # (non-functional) versions of the pthreads routines, so link-based
14393 # tests will erroneously succeed. (N.B.: The stubs are missing
14394 # pthread_cleanup_push, or rather a function called by this macro,
14395 # so we could check for that, but who knows whether they'll stub
14396 # that too in a future libc.) So we'll check first for the
14397 # standard Solaris way of linking pthreads (-mt -lpthread).
14398
14399 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
14400 ;;
14401 esac
14402
14403 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14404
14405 if test "x$GCC" = "xyes"; then :
14406 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
14407 fi
14408
14409 # The presence of a feature test macro requesting re-entrant function
14410 # definitions is, on some systems, a strong hint that pthreads support is
14411 # correctly enabled
14412
14413 case $host_os in
14414 darwin* | hpux* | linux* | osf* | solaris*)
14415 ax_pthread_check_macro="_REENTRANT"
14416 ;;
14417
14418 aix*)
14419 ax_pthread_check_macro="_THREAD_SAFE"
14420 ;;
14421
14422 *)
14423 ax_pthread_check_macro="--"
14424 ;;
14425 esac
14426 if test "x$ax_pthread_check_macro" = "x--"; then :
14427 ax_pthread_check_cond=0
14428 else
14429 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
14430 fi
14431
14432 # Are we compiling with Clang?
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14435 $as_echo_n "checking whether $CC is Clang... " >&6; }
14436 if ${ax_cv_PTHREAD_CLANG+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 ax_cv_PTHREAD_CLANG=no
14440 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14441 if test "x$GCC" = "xyes"; then
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14445 # if defined(__clang__) && defined(__llvm__)
14446 AX_PTHREAD_CC_IS_CLANG
14447 # endif
14448
14449 _ACEOF
14450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14451 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
14452 ax_cv_PTHREAD_CLANG=yes
14453 fi
14454 rm -f conftest*
14455
14456 fi
14457
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14460 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14461 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14462
14463 ax_pthread_clang_warning=no
14464
14465 # Clang needs special handling, because older versions handle the -pthread
14466 # option in a rather... idiosyncratic way
14467
14468 if test "x$ax_pthread_clang" = "xyes"; then
14469
14470 # Clang takes -pthread; it has never supported any other flag
14471
14472 # (Note 1: This will need to be revisited if a system that Clang
14473 # supports has POSIX threads in a separate library. This tends not
14474 # to be the way of modern systems, but it's conceivable.)
14475
14476 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14477 # to get POSIX threads support; the API is always present and
14478 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14479 # -pthread does define _REENTRANT, and while the Darwin headers
14480 # ignore this macro, third-party headers might not.)
14481
14482 PTHREAD_CFLAGS="-pthread"
14483 PTHREAD_LIBS=
14484
14485 ax_pthread_ok=yes
14486
14487 # However, older versions of Clang make a point of warning the user
14488 # that, in an invocation where only linking and no compilation is
14489 # taking place, the -pthread option has no effect ("argument unused
14490 # during compilation"). They expect -pthread to be passed in only
14491 # when source code is being compiled.
14492 #
14493 # Problem is, this is at odds with the way Automake and most other
14494 # C build frameworks function, which is that the same flags used in
14495 # compilation (CFLAGS) are also used in linking. Many systems
14496 # supported by AX_PTHREAD require exactly this for POSIX threads
14497 # support, and in fact it is often not straightforward to specify a
14498 # flag that is used only in the compilation phase and not in
14499 # linking. Such a scenario is extremely rare in practice.
14500 #
14501 # Even though use of the -pthread flag in linking would only print
14502 # a warning, this can be a nuisance for well-run software projects
14503 # that build with -Werror. So if the active version of Clang has
14504 # this misfeature, we search for an option to squash it.
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14507 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14508 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14512 # Create an alternate version of $ac_link that compiles and
14513 # links in two steps (.c -> .o, .o -> exe) instead of one
14514 # (.c -> exe), because the warning occurs only in the second
14515 # step
14516 ax_pthread_save_ac_link="$ac_link"
14517 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14518 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14519 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14520 ax_pthread_save_CFLAGS="$CFLAGS"
14521 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14522 if test "x$ax_pthread_try" = "xunknown"; then :
14523 break
14524 fi
14525 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14526 ac_link="$ax_pthread_save_ac_link"
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 int main(void){return 0;}
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 ac_link="$ax_pthread_2step_ac_link"
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 int main(void){return 0;}
14536 _ACEOF
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 break
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext conftest.$ac_ext
14542
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext \
14545 conftest$ac_exeext conftest.$ac_ext
14546 done
14547 ac_link="$ax_pthread_save_ac_link"
14548 CFLAGS="$ax_pthread_save_CFLAGS"
14549 if test "x$ax_pthread_try" = "x"; then :
14550 ax_pthread_try=no
14551 fi
14552 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14553
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14556 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14557
14558 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14559 no | unknown) ;;
14560 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14561 esac
14562
14563 fi # $ax_pthread_clang = yes
14564
14565 if test "x$ax_pthread_ok" = "xno"; then
14566 for ax_pthread_try_flag in $ax_pthread_flags; do
14567
14568 case $ax_pthread_try_flag in
14569 none)
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14571 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14572 ;;
14573
14574 -mt,pthread)
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14576 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14577 PTHREAD_CFLAGS="-mt"
14578 PTHREAD_LIBS="-lpthread"
14579 ;;
14580
14581 -*)
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14583 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14584 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14585 ;;
14586
14587 pthread-config)
14588 # Extract the first word of "pthread-config", so it can be a program name with args.
14589 set dummy pthread-config; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_prog_ax_pthread_config+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 if test -n "$ax_pthread_config"; then
14596 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14597 else
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14600 do
14601 IFS=$as_save_IFS
14602 test -z "$as_dir" && as_dir=.
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605 ac_cv_prog_ax_pthread_config="yes"
14606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14607 break 2
14608 fi
14609 done
14610 done
14611 IFS=$as_save_IFS
14612
14613 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14614 fi
14615 fi
14616 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14617 if test -n "$ax_pthread_config"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14619 $as_echo "$ax_pthread_config" >&6; }
14620 else
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14623 fi
14624
14625
14626 if test "x$ax_pthread_config" = "xno"; then :
14627 continue
14628 fi
14629 PTHREAD_CFLAGS="`pthread-config --cflags`"
14630 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14631 ;;
14632
14633 *)
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14635 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14636 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14637 ;;
14638 esac
14639
14640 ax_pthread_save_CFLAGS="$CFLAGS"
14641 ax_pthread_save_LIBS="$LIBS"
14642 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14643 LIBS="$PTHREAD_LIBS $LIBS"
14644
14645 # Check for various functions. We must include pthread.h,
14646 # since some functions may be macros. (On the Sequent, we
14647 # need a special flag -Kthread to make this header compile.)
14648 # We check for pthread_join because it is in -lpthread on IRIX
14649 # while pthread_create is in libc. We check for pthread_attr_init
14650 # due to DEC craziness with -lpthreads. We check for
14651 # pthread_cleanup_push because it is one of the few pthread
14652 # functions on Solaris that doesn't have a non-functional libc stub.
14653 # We try pthread_create on general principles.
14654
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 #include <pthread.h>
14658 # if $ax_pthread_check_cond
14659 # error "$ax_pthread_check_macro must be defined"
14660 # endif
14661 static void routine(void *a) { a = 0; }
14662 static void *start_routine(void *a) { return a; }
14663 int
14664 main ()
14665 {
14666 pthread_t th; pthread_attr_t attr;
14667 pthread_create(&th, 0, start_routine, 0);
14668 pthread_join(th, 0);
14669 pthread_attr_init(&attr);
14670 pthread_cleanup_push(routine, 0);
14671 pthread_cleanup_pop(0) /* ; */
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 ax_pthread_ok=yes
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681
14682 CFLAGS="$ax_pthread_save_CFLAGS"
14683 LIBS="$ax_pthread_save_LIBS"
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14686 $as_echo "$ax_pthread_ok" >&6; }
14687 if test "x$ax_pthread_ok" = "xyes"; then :
14688 break
14689 fi
14690
14691 PTHREAD_LIBS=""
14692 PTHREAD_CFLAGS=""
14693 done
14694 fi
14695
14696 # Various other checks:
14697 if test "x$ax_pthread_ok" = "xyes"; then
14698 ax_pthread_save_CFLAGS="$CFLAGS"
14699 ax_pthread_save_LIBS="$LIBS"
14700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14701 LIBS="$PTHREAD_LIBS $LIBS"
14702
14703 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14705 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14706 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14709 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14710 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <pthread.h>
14714 int
14715 main ()
14716 {
14717 int attr = $ax_pthread_attr; return attr /* ; */
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 done
14728
14729 fi
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14731 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14732 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14733 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14734 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14735
14736 cat >>confdefs.h <<_ACEOF
14737 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14738 _ACEOF
14739
14740 ax_pthread_joinable_attr_defined=yes
14741
14742 fi
14743
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14745 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14746 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 ax_cv_PTHREAD_SPECIAL_FLAGS=no
14750 case $host_os in
14751 solaris*)
14752 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14753 ;;
14754 esac
14755
14756 fi
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14758 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14759 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14760 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14761 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14762 ax_pthread_special_flags_added=yes
14763 fi
14764
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14766 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14767 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 #include <pthread.h>
14773 int
14774 main ()
14775 {
14776 int i = PTHREAD_PRIO_INHERIT;
14777 ;
14778 return 0;
14779 }
14780 _ACEOF
14781 if ac_fn_c_try_link "$LINENO"; then :
14782 ax_cv_PTHREAD_PRIO_INHERIT=yes
14783 else
14784 ax_cv_PTHREAD_PRIO_INHERIT=no
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14791 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14792 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14793 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14794
14795 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14796
14797 ax_pthread_prio_inherit_defined=yes
14798
14799 fi
14800
14801 CFLAGS="$ax_pthread_save_CFLAGS"
14802 LIBS="$ax_pthread_save_LIBS"
14803
14804 # More AIX lossage: compile with *_r variant
14805 if test "x$GCC" != "xyes"; then
14806 case $host_os in
14807 aix*)
14808 case "x/$CC" in #(
14809 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14810 #handle absolute path differently from PATH based program lookup
14811 case "x$CC" in #(
14812 x/*) :
14813 if as_fn_executable_p ${CC}_r; then :
14814 PTHREAD_CC="${CC}_r"
14815 fi ;; #(
14816 *) :
14817 for ac_prog in ${CC}_r
14818 do
14819 # Extract the first word of "$ac_prog", so it can be a program name with args.
14820 set dummy $ac_prog; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14822 $as_echo_n "checking for $ac_word... " >&6; }
14823 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 if test -n "$PTHREAD_CC"; then
14827 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14828 else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832 IFS=$as_save_IFS
14833 test -z "$as_dir" && as_dir=.
14834 for ac_exec_ext in '' $ac_executable_extensions; do
14835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14836 ac_cv_prog_PTHREAD_CC="$ac_prog"
14837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838 break 2
14839 fi
14840 done
14841 done
14842 IFS=$as_save_IFS
14843
14844 fi
14845 fi
14846 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14847 if test -n "$PTHREAD_CC"; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14849 $as_echo "$PTHREAD_CC" >&6; }
14850 else
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14853 fi
14854
14855
14856 test -n "$PTHREAD_CC" && break
14857 done
14858 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14859 ;;
14860 esac ;; #(
14861 *) :
14862 ;;
14863 esac
14864 ;;
14865 esac
14866 fi
14867 fi
14868
14869 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14870
14871
14872
14873
14874
14875 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14876 if test "x$ax_pthread_ok" = "xyes"; then
14877
14878 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14879
14880 :
14881 else
14882 ax_pthread_ok=no
14883
14884 fi
14885 ac_ext=c
14886 ac_cpp='$CPP $CPPFLAGS'
14887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
14891
14892
14893
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
14895 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
14896 if ${ax_cv_c_openmp+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 saveCFLAGS=$CFLAGS
14900 ax_cv_c_openmp=unknown
14901 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
14902 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
14903 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
14904 if test "x$OPENMP_CFLAGS" != x; then
14905 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
14906 fi
14907 for ax_openmp_flag in $ax_openmp_flags; do
14908 case $ax_openmp_flag in
14909 none) CFLAGS=$saveC ;;
14910 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
14911 esac
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 #ifdef __cplusplus
14915 extern "C"
14916 #endif
14917 void omp_set_num_threads(int);
14918 int
14919 main ()
14920 {
14921 const int N = 100000;
14922 int i, arr[N];
14923
14924 omp_set_num_threads(2);
14925
14926 #pragma omp parallel for
14927 for (i = 0; i < N; i++) {
14928 arr[i] = i;
14929 }
14930 ;
14931 return 0;
14932 }
14933 _ACEOF
14934 if ac_fn_c_try_link "$LINENO"; then :
14935 ax_cv_c_openmp=$ax_openmp_flag; break
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 done
14940 CFLAGS=$saveCFLAGS
14941
14942 fi
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
14944 $as_echo "$ax_cv_c_openmp" >&6; }
14945 if test "x$ax_cv_c_openmp" = "xunknown"; then
14946 :
14947 else
14948 if test "x$ax_cv_c_openmp" != "xnone"; then
14949 OPENMP_CFLAGS=$ax_cv_c_openmp
14950 fi
14951
14952 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
14953
14954 fi
14955
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gd image formats" >&5
14958 $as_echo_n "checking whether to support gd image formats... " >&6; }
14959 # Check whether --enable-gd-formats was given.
14960 if test "${enable_gd_formats+set}" = set; then :
14961 enableval=$enable_gd_formats; gd_enable_gd_formats=$enableval
14962 else
14963 gd_enable_gd_formats=no
14964 fi
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_enable_gd_formats" >&5
14967 $as_echo "$gd_enable_gd_formats" >&6; }
14968 if test "$gd_enable_gd_formats" = yes; then
14969 gd_ac_value=1
14970 else
14971 gd_ac_value=0
14972 fi
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define ENABLE_GD_FORMATS $gd_ac_value
14976 _ACEOF
14977
14978 if test "$gd_enable_gd_formats" = yes; then
14979 ENABLE_GD_FORMATS_TRUE=
14980 ENABLE_GD_FORMATS_FALSE='#'
14981 else
14982 ENABLE_GD_FORMATS_TRUE='#'
14983 ENABLE_GD_FORMATS_FALSE=
14984 fi
14985
14986
14987
14988
14989
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support zlib" >&5
14992 $as_echo_n "checking whether to support zlib... " >&6; }
14993
14994 # Check whether --with-zlib was given.
14995 if test "${with_zlib+set}" = set; then :
14996 withval=$with_zlib; gd_with_lib=$withval
14997 else
14998 gd_with_lib=auto
14999 fi
15000
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15002 $as_echo "$gd_with_lib" >&6; }
15003
15004 gd_found_lib=no
15005 gd_require_pkg_name=""
15006 if test "$gd_with_lib" != "no"; then
15007 save_CPPFLAGS=$CPPFLAGS
15008 save_LDFLAGS=$LDFLAGS
15009 gd_lib_ldflags=
15010 gd_lib_cflags=
15011 case $gd_with_lib in
15012 yes|no|auto|"") ;;
15013 *)
15014 if test -d "$gd_with_lib/lib"; then
15015 gd_lib_ldflags="-L$gd_with_lib/lib"
15016 as_fn_append LDFLAGS " $gd_lib_ldflags"
15017 fi
15018 if test -d "$gd_with_lib/include"; then
15019 gd_lib_cflags="-I$gd_with_lib/include"
15020 as_fn_append CPPFLAGS " $gd_lib_cflags"
15021 fi
15022 ;;
15023 esac
15024
15025 pkg_failed=no
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBZ" >&5
15027 $as_echo_n "checking for LIBZ... " >&6; }
15028
15029 if test -n "$LIBZ_CFLAGS"; then
15030 pkg_cv_LIBZ_CFLAGS="$LIBZ_CFLAGS"
15031 elif test -n "$PKG_CONFIG"; then
15032 if test -n "$PKG_CONFIG" && \
15033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
15034 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
15035 ac_status=$?
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; then
15038 pkg_cv_LIBZ_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
15039 test "x$?" != "x0" && pkg_failed=yes
15040 else
15041 pkg_failed=yes
15042 fi
15043 else
15044 pkg_failed=untried
15045 fi
15046 if test -n "$LIBZ_LIBS"; then
15047 pkg_cv_LIBZ_LIBS="$LIBZ_LIBS"
15048 elif test -n "$PKG_CONFIG"; then
15049 if test -n "$PKG_CONFIG" && \
15050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
15051 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
15052 ac_status=$?
15053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054 test $ac_status = 0; }; then
15055 pkg_cv_LIBZ_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
15056 test "x$?" != "x0" && pkg_failed=yes
15057 else
15058 pkg_failed=yes
15059 fi
15060 else
15061 pkg_failed=untried
15062 fi
15063
15064
15065
15066 if test $pkg_failed = yes; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068 $as_echo "no" >&6; }
15069
15070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15071 _pkg_short_errors_supported=yes
15072 else
15073 _pkg_short_errors_supported=no
15074 fi
15075 if test $_pkg_short_errors_supported = yes; then
15076 LIBZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
15077 else
15078 LIBZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
15079 fi
15080 # Put the nasty error message in config.log where it belongs
15081 echo "$LIBZ_PKG_ERRORS" >&5
15082
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
15084 $as_echo_n "checking for deflate in -lz... " >&6; }
15085 if ${ac_cv_lib_z_deflate+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-lz $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 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 char deflate ();
15100 int
15101 main ()
15102 {
15103 return deflate ();
15104 ;
15105 return 0;
15106 }
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"; then :
15109 ac_cv_lib_z_deflate=yes
15110 else
15111 ac_cv_lib_z_deflate=no
15112 fi
15113 rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
15118 $as_echo "$ac_cv_lib_z_deflate" >&6; }
15119 if test "x$ac_cv_lib_z_deflate" = xyes; then :
15120 as_fn_append LIBZ_LIBS " -lz"
15121 gd_found_lib=yes
15122
15123 fi
15124
15125
15126 elif test $pkg_failed = untried; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
15130 $as_echo_n "checking for deflate in -lz... " >&6; }
15131 if ${ac_cv_lib_z_deflate+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134 ac_check_lib_save_LIBS=$LIBS
15135 LIBS="-lz $LIBS"
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char deflate ();
15146 int
15147 main ()
15148 {
15149 return deflate ();
15150 ;
15151 return 0;
15152 }
15153 _ACEOF
15154 if ac_fn_c_try_link "$LINENO"; then :
15155 ac_cv_lib_z_deflate=yes
15156 else
15157 ac_cv_lib_z_deflate=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
15164 $as_echo "$ac_cv_lib_z_deflate" >&6; }
15165 if test "x$ac_cv_lib_z_deflate" = xyes; then :
15166 as_fn_append LIBZ_LIBS " -lz"
15167 gd_found_lib=yes
15168
15169 fi
15170
15171
15172 else
15173 LIBZ_CFLAGS=$pkg_cv_LIBZ_CFLAGS
15174 LIBZ_LIBS=$pkg_cv_LIBZ_LIBS
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176 $as_echo "yes" >&6; }
15177 gd_found_lib=yes gd_require_pkg_name="zlib"
15178 fi
15179
15180 CPPFLAGS=$save_CPPFLAGS
15181 LDFLAGS=$save_LDFLAGS
15182
15183 if test "$gd_found_lib" = "yes"; then
15184
15185 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
15186
15187 LIBZ_LIBS="$gd_lib_ldflags $LIBZ_LIBS"
15188 LIBZ_CFLAGS="$gd_lib_cflags $LIBZ_CFLAGS"
15189 as_fn_append LIBS " $LIBZ_LIBS"
15190 as_fn_append CPPFLAGS " $LIBZ_CFLAGS"
15191 if test -z "$gd_require_pkg_name"; then
15192 as_fn_append LIBS_PRIVATES " $LIBZ_LIBS"
15193 else
15194 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
15195 fi
15196 elif test "$gd_with_lib" = "yes"; then
15197 as_fn_error $? "zlib requested but not found" "$LINENO" 5
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for zlib" >&5
15200 $as_echo "$as_me: Disabling support for zlib" >&6;}
15201 fi
15202 fi
15203 if test "$gd_found_lib" = yes; then
15204 HAVE_LIBZ_TRUE=
15205 HAVE_LIBZ_FALSE='#'
15206 else
15207 HAVE_LIBZ_TRUE='#'
15208 HAVE_LIBZ_FALSE=
15209 fi
15210
15211 gd_with_LIBZ=$gd_found_lib
15212
15213
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support png" >&5
15216 $as_echo_n "checking whether to support png... " >&6; }
15217
15218 # Check whether --with-png was given.
15219 if test "${with_png+set}" = set; then :
15220 withval=$with_png; gd_with_lib=$withval
15221 else
15222 gd_with_lib=auto
15223 fi
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15226 $as_echo "$gd_with_lib" >&6; }
15227
15228 gd_found_lib=no
15229 gd_require_pkg_name=""
15230 if test "$gd_with_lib" != "no"; then
15231 save_CPPFLAGS=$CPPFLAGS
15232 save_LDFLAGS=$LDFLAGS
15233 gd_lib_ldflags=
15234 gd_lib_cflags=
15235 case $gd_with_lib in
15236 yes|no|auto|"") ;;
15237 *)
15238 if test -d "$gd_with_lib/lib"; then
15239 gd_lib_ldflags="-L$gd_with_lib/lib"
15240 as_fn_append LDFLAGS " $gd_lib_ldflags"
15241 fi
15242 if test -d "$gd_with_lib/include"; then
15243 gd_lib_cflags="-I$gd_with_lib/include"
15244 as_fn_append CPPFLAGS " $gd_lib_cflags"
15245 fi
15246 ;;
15247 esac
15248
15249 pkg_failed=no
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
15251 $as_echo_n "checking for LIBPNG... " >&6; }
15252
15253 if test -n "$LIBPNG_CFLAGS"; then
15254 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
15255 elif test -n "$PKG_CONFIG"; then
15256 if test -n "$PKG_CONFIG" && \
15257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15258 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; }; then
15262 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
15263 test "x$?" != "x0" && pkg_failed=yes
15264 else
15265 pkg_failed=yes
15266 fi
15267 else
15268 pkg_failed=untried
15269 fi
15270 if test -n "$LIBPNG_LIBS"; then
15271 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
15272 elif test -n "$PKG_CONFIG"; then
15273 if test -n "$PKG_CONFIG" && \
15274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15275 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15276 ac_status=$?
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; }; then
15279 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
15280 test "x$?" != "x0" && pkg_failed=yes
15281 else
15282 pkg_failed=yes
15283 fi
15284 else
15285 pkg_failed=untried
15286 fi
15287
15288
15289
15290 if test $pkg_failed = yes; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293
15294 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15295 _pkg_short_errors_supported=yes
15296 else
15297 _pkg_short_errors_supported=no
15298 fi
15299 if test $_pkg_short_errors_supported = yes; then
15300 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
15301 else
15302 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
15303 fi
15304 # Put the nasty error message in config.log where it belongs
15305 echo "$LIBPNG_PKG_ERRORS" >&5
15306
15307
15308 LIBPNG_CONFIG=$gd_with_lib/bin/libpng-config
15309 if test -e "$LIBPNG_CONFIG"; then
15310 LIBPNG_CFLAGS=`$LIBPNG_CONFIG --cflags`
15311 LIBPNG_LIBS=`$LIBPNG_CONFIG --ldflags`
15312 gd_found_lib=yes
15313 fi
15314
15315 elif test $pkg_failed = untried; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317 $as_echo "no" >&6; }
15318
15319 LIBPNG_CONFIG=$gd_with_lib/bin/libpng-config
15320 if test -e "$LIBPNG_CONFIG"; then
15321 LIBPNG_CFLAGS=`$LIBPNG_CONFIG --cflags`
15322 LIBPNG_LIBS=`$LIBPNG_CONFIG --ldflags`
15323 gd_found_lib=yes
15324 fi
15325
15326 else
15327 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
15328 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15330 $as_echo "yes" >&6; }
15331 gd_found_lib=yes gd_require_pkg_name="libpng"
15332 fi
15333
15334 CPPFLAGS=$save_CPPFLAGS
15335 LDFLAGS=$save_LDFLAGS
15336
15337 if test "$gd_found_lib" = "yes"; then
15338
15339 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15340
15341 LIBPNG_LIBS="$gd_lib_ldflags $LIBPNG_LIBS"
15342 LIBPNG_CFLAGS="$gd_lib_cflags $LIBPNG_CFLAGS"
15343 as_fn_append LIBS " $LIBPNG_LIBS"
15344 as_fn_append CPPFLAGS " $LIBPNG_CFLAGS"
15345 if test -z "$gd_require_pkg_name"; then
15346 as_fn_append LIBS_PRIVATES " $LIBPNG_LIBS"
15347 else
15348 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
15349 fi
15350 elif test "$gd_with_lib" = "yes"; then
15351 as_fn_error $? "png requested but not found" "$LINENO" 5
15352 else
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for png" >&5
15354 $as_echo "$as_me: Disabling support for png" >&6;}
15355 fi
15356 fi
15357 if test "$gd_found_lib" = yes; then
15358 HAVE_LIBPNG_TRUE=
15359 HAVE_LIBPNG_FALSE='#'
15360 else
15361 HAVE_LIBPNG_TRUE='#'
15362 HAVE_LIBPNG_FALSE=
15363 fi
15364
15365 gd_with_LIBPNG=$gd_found_lib
15366
15367
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support freetype" >&5
15370 $as_echo_n "checking whether to support freetype... " >&6; }
15371
15372 # Check whether --with-freetype was given.
15373 if test "${with_freetype+set}" = set; then :
15374 withval=$with_freetype; gd_with_lib=$withval
15375 else
15376 gd_with_lib=auto
15377 fi
15378
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15380 $as_echo "$gd_with_lib" >&6; }
15381
15382 gd_found_lib=no
15383 gd_require_pkg_name=""
15384 if test "$gd_with_lib" != "no"; then
15385 save_CPPFLAGS=$CPPFLAGS
15386 save_LDFLAGS=$LDFLAGS
15387 gd_lib_ldflags=
15388 gd_lib_cflags=
15389 case $gd_with_lib in
15390 yes|no|auto|"") ;;
15391 *)
15392 if test -d "$gd_with_lib/lib"; then
15393 gd_lib_ldflags="-L$gd_with_lib/lib"
15394 as_fn_append LDFLAGS " $gd_lib_ldflags"
15395 fi
15396 if test -d "$gd_with_lib/include"; then
15397 gd_lib_cflags="-I$gd_with_lib/include"
15398 as_fn_append CPPFLAGS " $gd_lib_cflags"
15399 fi
15400 ;;
15401 esac
15402
15403 pkg_failed=no
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFREETYPE" >&5
15405 $as_echo_n "checking for LIBFREETYPE... " >&6; }
15406
15407 if test -n "$LIBFREETYPE_CFLAGS"; then
15408 pkg_cv_LIBFREETYPE_CFLAGS="$LIBFREETYPE_CFLAGS"
15409 elif test -n "$PKG_CONFIG"; then
15410 if test -n "$PKG_CONFIG" && \
15411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8.3\""; } >&5
15412 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8.3") 2>&5
15413 ac_status=$?
15414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15415 test $ac_status = 0; }; then
15416 pkg_cv_LIBFREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.8.3" 2>/dev/null`
15417 test "x$?" != "x0" && pkg_failed=yes
15418 else
15419 pkg_failed=yes
15420 fi
15421 else
15422 pkg_failed=untried
15423 fi
15424 if test -n "$LIBFREETYPE_LIBS"; then
15425 pkg_cv_LIBFREETYPE_LIBS="$LIBFREETYPE_LIBS"
15426 elif test -n "$PKG_CONFIG"; then
15427 if test -n "$PKG_CONFIG" && \
15428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8.3\""; } >&5
15429 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8.3") 2>&5
15430 ac_status=$?
15431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15432 test $ac_status = 0; }; then
15433 pkg_cv_LIBFREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.8.3" 2>/dev/null`
15434 test "x$?" != "x0" && pkg_failed=yes
15435 else
15436 pkg_failed=yes
15437 fi
15438 else
15439 pkg_failed=untried
15440 fi
15441
15442
15443
15444 if test $pkg_failed = yes; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15446 $as_echo "no" >&6; }
15447
15448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15449 _pkg_short_errors_supported=yes
15450 else
15451 _pkg_short_errors_supported=no
15452 fi
15453 if test $_pkg_short_errors_supported = yes; then
15454 LIBFREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 9.8.3" 2>&1`
15455 else
15456 LIBFREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 9.8.3" 2>&1`
15457 fi
15458 # Put the nasty error message in config.log where it belongs
15459 echo "$LIBFREETYPE_PKG_ERRORS" >&5
15460
15461
15462 FREETYPE_CONFIG=$gd_with_lib/bin/freetype-config
15463 if test -e "$FREETYPE_CONFIG"; then
15464 LIBFREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
15465 LIBFREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
15466 gd_found_lib=yes
15467 fi
15468
15469 elif test $pkg_failed = untried; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15472
15473 FREETYPE_CONFIG=$gd_with_lib/bin/freetype-config
15474 if test -e "$FREETYPE_CONFIG"; then
15475 LIBFREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
15476 LIBFREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
15477 gd_found_lib=yes
15478 fi
15479
15480 else
15481 LIBFREETYPE_CFLAGS=$pkg_cv_LIBFREETYPE_CFLAGS
15482 LIBFREETYPE_LIBS=$pkg_cv_LIBFREETYPE_LIBS
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15484 $as_echo "yes" >&6; }
15485 gd_found_lib=yes gd_require_pkg_name="freetype2 >= 9.8.3"
15486 fi
15487
15488 CPPFLAGS=$save_CPPFLAGS
15489 LDFLAGS=$save_LDFLAGS
15490
15491 if test "$gd_found_lib" = "yes"; then
15492
15493 $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
15494
15495 LIBFREETYPE_LIBS="$gd_lib_ldflags $LIBFREETYPE_LIBS"
15496 LIBFREETYPE_CFLAGS="$gd_lib_cflags $LIBFREETYPE_CFLAGS"
15497 as_fn_append LIBS " $LIBFREETYPE_LIBS"
15498 as_fn_append CPPFLAGS " $LIBFREETYPE_CFLAGS"
15499 if test -z "$gd_require_pkg_name"; then
15500 as_fn_append LIBS_PRIVATES " $LIBFREETYPE_LIBS"
15501 else
15502 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
15503 fi
15504 elif test "$gd_with_lib" = "yes"; then
15505 as_fn_error $? "freetype requested but not found" "$LINENO" 5
15506 else
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for freetype" >&5
15508 $as_echo "$as_me: Disabling support for freetype" >&6;}
15509 fi
15510 fi
15511 if test "$gd_found_lib" = yes; then
15512 HAVE_LIBFREETYPE_TRUE=
15513 HAVE_LIBFREETYPE_FALSE='#'
15514 else
15515 HAVE_LIBFREETYPE_TRUE='#'
15516 HAVE_LIBFREETYPE_FALSE=
15517 fi
15518
15519 gd_with_LIBFREETYPE=$gd_found_lib
15520
15521
15522 if test "$gd_with_LIBFREETYPE" = "yes"; then
15523
15524 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
15525
15526 fi
15527
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support raqm" >&5
15529 $as_echo_n "checking whether to support raqm... " >&6; }
15530
15531 # Check whether --with-raqm was given.
15532 if test "${with_raqm+set}" = set; then :
15533 withval=$with_raqm; gd_with_lib=$withval
15534 else
15535 gd_with_lib=auto
15536 fi
15537
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15539 $as_echo "$gd_with_lib" >&6; }
15540
15541 gd_found_lib=no
15542 gd_require_pkg_name=""
15543 if test "$gd_with_lib" != "no"; then
15544 save_CPPFLAGS=$CPPFLAGS
15545 save_LDFLAGS=$LDFLAGS
15546 gd_lib_ldflags=
15547 gd_lib_cflags=
15548 case $gd_with_lib in
15549 yes|no|auto|"") ;;
15550 *)
15551 if test -d "$gd_with_lib/lib"; then
15552 gd_lib_ldflags="-L$gd_with_lib/lib"
15553 as_fn_append LDFLAGS " $gd_lib_ldflags"
15554 fi
15555 if test -d "$gd_with_lib/include"; then
15556 gd_lib_cflags="-I$gd_with_lib/include"
15557 as_fn_append CPPFLAGS " $gd_lib_cflags"
15558 fi
15559 ;;
15560 esac
15561
15562 pkg_failed=no
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRAQM" >&5
15564 $as_echo_n "checking for LIBRAQM... " >&6; }
15565
15566 if test -n "$LIBRAQM_CFLAGS"; then
15567 pkg_cv_LIBRAQM_CFLAGS="$LIBRAQM_CFLAGS"
15568 elif test -n "$PKG_CONFIG"; then
15569 if test -n "$PKG_CONFIG" && \
15570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
15571 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
15572 ac_status=$?
15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574 test $ac_status = 0; }; then
15575 pkg_cv_LIBRAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
15576 test "x$?" != "x0" && pkg_failed=yes
15577 else
15578 pkg_failed=yes
15579 fi
15580 else
15581 pkg_failed=untried
15582 fi
15583 if test -n "$LIBRAQM_LIBS"; then
15584 pkg_cv_LIBRAQM_LIBS="$LIBRAQM_LIBS"
15585 elif test -n "$PKG_CONFIG"; then
15586 if test -n "$PKG_CONFIG" && \
15587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
15588 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
15589 ac_status=$?
15590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15591 test $ac_status = 0; }; then
15592 pkg_cv_LIBRAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
15593 test "x$?" != "x0" && pkg_failed=yes
15594 else
15595 pkg_failed=yes
15596 fi
15597 else
15598 pkg_failed=untried
15599 fi
15600
15601
15602
15603 if test $pkg_failed = yes; then
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605 $as_echo "no" >&6; }
15606
15607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15608 _pkg_short_errors_supported=yes
15609 else
15610 _pkg_short_errors_supported=no
15611 fi
15612 if test $_pkg_short_errors_supported = yes; then
15613 LIBRAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
15614 else
15615 LIBRAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
15616 fi
15617 # Put the nasty error message in config.log where it belongs
15618 echo "$LIBRAQM_PKG_ERRORS" >&5
15619
15620
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm_create in -lraqm" >&5
15622 $as_echo_n "checking for raqm_create in -lraqm... " >&6; }
15623 if ${ac_cv_lib_raqm_raqm_create+:} false; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 ac_check_lib_save_LIBS=$LIBS
15627 LIBS="-lraqm $LIBS"
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15630
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char raqm_create ();
15638 int
15639 main ()
15640 {
15641 return raqm_create ();
15642 ;
15643 return 0;
15644 }
15645 _ACEOF
15646 if ac_fn_c_try_link "$LINENO"; then :
15647 ac_cv_lib_raqm_raqm_create=yes
15648 else
15649 ac_cv_lib_raqm_raqm_create=no
15650 fi
15651 rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15654 fi
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raqm_raqm_create" >&5
15656 $as_echo "$ac_cv_lib_raqm_raqm_create" >&6; }
15657 if test "x$ac_cv_lib_raqm_raqm_create" = xyes; then :
15658 as_fn_append LIBRAQM_LIBS " -lraqm -lfreetype"
15659 gd_found_lib=yes
15660
15661 fi
15662
15663
15664 elif test $pkg_failed = untried; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666 $as_echo "no" >&6; }
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm_create in -lraqm" >&5
15669 $as_echo_n "checking for raqm_create in -lraqm... " >&6; }
15670 if ${ac_cv_lib_raqm_raqm_create+:} false; then :
15671 $as_echo_n "(cached) " >&6
15672 else
15673 ac_check_lib_save_LIBS=$LIBS
15674 LIBS="-lraqm $LIBS"
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677
15678 /* Override any GCC internal prototype to avoid an error.
15679 Use char because int might match the return type of a GCC
15680 builtin and then its argument prototype would still apply. */
15681 #ifdef __cplusplus
15682 extern "C"
15683 #endif
15684 char raqm_create ();
15685 int
15686 main ()
15687 {
15688 return raqm_create ();
15689 ;
15690 return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694 ac_cv_lib_raqm_raqm_create=yes
15695 else
15696 ac_cv_lib_raqm_raqm_create=no
15697 fi
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15701 fi
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raqm_raqm_create" >&5
15703 $as_echo "$ac_cv_lib_raqm_raqm_create" >&6; }
15704 if test "x$ac_cv_lib_raqm_raqm_create" = xyes; then :
15705 as_fn_append LIBRAQM_LIBS " -lraqm -lfreetype"
15706 gd_found_lib=yes
15707
15708 fi
15709
15710
15711 else
15712 LIBRAQM_CFLAGS=$pkg_cv_LIBRAQM_CFLAGS
15713 LIBRAQM_LIBS=$pkg_cv_LIBRAQM_LIBS
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715 $as_echo "yes" >&6; }
15716 gd_found_lib=yes gd_require_pkg_name="raqm"
15717 fi
15718
15719 CPPFLAGS=$save_CPPFLAGS
15720 LDFLAGS=$save_LDFLAGS
15721
15722 if test "$gd_found_lib" = "yes"; then
15723
15724 $as_echo "#define HAVE_LIBRAQM 1" >>confdefs.h
15725
15726 LIBRAQM_LIBS="$gd_lib_ldflags $LIBRAQM_LIBS"
15727 LIBRAQM_CFLAGS="$gd_lib_cflags $LIBRAQM_CFLAGS"
15728 as_fn_append LIBS " $LIBRAQM_LIBS"
15729 as_fn_append CPPFLAGS " $LIBRAQM_CFLAGS"
15730 if test -z "$gd_require_pkg_name"; then
15731 as_fn_append LIBS_PRIVATES " $LIBRAQM_LIBS"
15732 else
15733 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
15734 fi
15735 elif test "$gd_with_lib" = "yes"; then
15736 as_fn_error $? "raqm requested but not found" "$LINENO" 5
15737 else
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for raqm" >&5
15739 $as_echo "$as_me: Disabling support for raqm" >&6;}
15740 fi
15741 fi
15742 if test "$gd_found_lib" = yes; then
15743 HAVE_LIBRAQM_TRUE=
15744 HAVE_LIBRAQM_FALSE='#'
15745 else
15746 HAVE_LIBRAQM_TRUE='#'
15747 HAVE_LIBRAQM_FALSE=
15748 fi
15749
15750 gd_with_LIBRAQM=$gd_found_lib
15751
15752
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support fontconfig" >&5
15755 $as_echo_n "checking whether to support fontconfig... " >&6; }
15756
15757 # Check whether --with-fontconfig was given.
15758 if test "${with_fontconfig+set}" = set; then :
15759 withval=$with_fontconfig; gd_with_lib=$withval
15760 else
15761 gd_with_lib=auto
15762 fi
15763
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15765 $as_echo "$gd_with_lib" >&6; }
15766
15767 gd_found_lib=no
15768 gd_require_pkg_name=""
15769 if test "$gd_with_lib" != "no"; then
15770 save_CPPFLAGS=$CPPFLAGS
15771 save_LDFLAGS=$LDFLAGS
15772 gd_lib_ldflags=
15773 gd_lib_cflags=
15774 case $gd_with_lib in
15775 yes|no|auto|"") ;;
15776 *)
15777 if test -d "$gd_with_lib/lib"; then
15778 gd_lib_ldflags="-L$gd_with_lib/lib"
15779 as_fn_append LDFLAGS " $gd_lib_ldflags"
15780 fi
15781 if test -d "$gd_with_lib/include"; then
15782 gd_lib_cflags="-I$gd_with_lib/include"
15783 as_fn_append CPPFLAGS " $gd_lib_cflags"
15784 fi
15785 ;;
15786 esac
15787
15788 pkg_failed=no
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFONTCONFIG" >&5
15790 $as_echo_n "checking for LIBFONTCONFIG... " >&6; }
15791
15792 if test -n "$LIBFONTCONFIG_CFLAGS"; then
15793 pkg_cv_LIBFONTCONFIG_CFLAGS="$LIBFONTCONFIG_CFLAGS"
15794 elif test -n "$PKG_CONFIG"; then
15795 if test -n "$PKG_CONFIG" && \
15796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
15797 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; }; then
15801 pkg_cv_LIBFONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
15802 test "x$?" != "x0" && pkg_failed=yes
15803 else
15804 pkg_failed=yes
15805 fi
15806 else
15807 pkg_failed=untried
15808 fi
15809 if test -n "$LIBFONTCONFIG_LIBS"; then
15810 pkg_cv_LIBFONTCONFIG_LIBS="$LIBFONTCONFIG_LIBS"
15811 elif test -n "$PKG_CONFIG"; then
15812 if test -n "$PKG_CONFIG" && \
15813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
15814 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
15815 ac_status=$?
15816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15817 test $ac_status = 0; }; then
15818 pkg_cv_LIBFONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
15819 test "x$?" != "x0" && pkg_failed=yes
15820 else
15821 pkg_failed=yes
15822 fi
15823 else
15824 pkg_failed=untried
15825 fi
15826
15827
15828
15829 if test $pkg_failed = yes; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15832
15833 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15834 _pkg_short_errors_supported=yes
15835 else
15836 _pkg_short_errors_supported=no
15837 fi
15838 if test $_pkg_short_errors_supported = yes; then
15839 LIBFONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
15840 else
15841 LIBFONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
15842 fi
15843 # Put the nasty error message in config.log where it belongs
15844 echo "$LIBFONTCONFIG_PKG_ERRORS" >&5
15845
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
15848 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
15849 if ${ac_cv_lib_fontconfig_FcInit+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 ac_check_lib_save_LIBS=$LIBS
15853 LIBS="-lfontconfig $LIBS"
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856
15857 /* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15860 #ifdef __cplusplus
15861 extern "C"
15862 #endif
15863 char FcInit ();
15864 int
15865 main ()
15866 {
15867 return FcInit ();
15868 ;
15869 return 0;
15870 }
15871 _ACEOF
15872 if ac_fn_c_try_link "$LINENO"; then :
15873 ac_cv_lib_fontconfig_FcInit=yes
15874 else
15875 ac_cv_lib_fontconfig_FcInit=no
15876 fi
15877 rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15879 LIBS=$ac_check_lib_save_LIBS
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
15882 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
15883 if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then :
15884 as_fn_append LIBFONTCONFIG_LIBS " -lfontconfig"
15885 gd_found_lib=yes
15886
15887 fi
15888
15889
15890 elif test $pkg_failed = untried; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892 $as_echo "no" >&6; }
15893
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
15895 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
15896 if ${ac_cv_lib_fontconfig_FcInit+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899 ac_check_lib_save_LIBS=$LIBS
15900 LIBS="-lfontconfig $LIBS"
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char FcInit ();
15911 int
15912 main ()
15913 {
15914 return FcInit ();
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 ac_cv_lib_fontconfig_FcInit=yes
15921 else
15922 ac_cv_lib_fontconfig_FcInit=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15927 fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
15929 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
15930 if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then :
15931 as_fn_append LIBFONTCONFIG_LIBS " -lfontconfig"
15932 gd_found_lib=yes
15933
15934 fi
15935
15936
15937 else
15938 LIBFONTCONFIG_CFLAGS=$pkg_cv_LIBFONTCONFIG_CFLAGS
15939 LIBFONTCONFIG_LIBS=$pkg_cv_LIBFONTCONFIG_LIBS
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15941 $as_echo "yes" >&6; }
15942 gd_found_lib=yes gd_require_pkg_name="fontconfig"
15943 fi
15944
15945 CPPFLAGS=$save_CPPFLAGS
15946 LDFLAGS=$save_LDFLAGS
15947
15948 if test "$gd_found_lib" = "yes"; then
15949
15950 $as_echo "#define HAVE_LIBFONTCONFIG 1" >>confdefs.h
15951
15952 LIBFONTCONFIG_LIBS="$gd_lib_ldflags $LIBFONTCONFIG_LIBS"
15953 LIBFONTCONFIG_CFLAGS="$gd_lib_cflags $LIBFONTCONFIG_CFLAGS"
15954 as_fn_append LIBS " $LIBFONTCONFIG_LIBS"
15955 as_fn_append CPPFLAGS " $LIBFONTCONFIG_CFLAGS"
15956 if test -z "$gd_require_pkg_name"; then
15957 as_fn_append LIBS_PRIVATES " $LIBFONTCONFIG_LIBS"
15958 else
15959 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
15960 fi
15961 elif test "$gd_with_lib" = "yes"; then
15962 as_fn_error $? "fontconfig requested but not found" "$LINENO" 5
15963 else
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for fontconfig" >&5
15965 $as_echo "$as_me: Disabling support for fontconfig" >&6;}
15966 fi
15967 fi
15968 if test "$gd_found_lib" = yes; then
15969 HAVE_LIBFONTCONFIG_TRUE=
15970 HAVE_LIBFONTCONFIG_FALSE='#'
15971 else
15972 HAVE_LIBFONTCONFIG_TRUE='#'
15973 HAVE_LIBFONTCONFIG_FALSE=
15974 fi
15975
15976 gd_with_LIBFONTCONFIG=$gd_found_lib
15977
15978
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support jpeg" >&5
15981 $as_echo_n "checking whether to support jpeg... " >&6; }
15982
15983 # Check whether --with-jpeg was given.
15984 if test "${with_jpeg+set}" = set; then :
15985 withval=$with_jpeg; gd_with_lib=$withval
15986 else
15987 gd_with_lib=auto
15988 fi
15989
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
15991 $as_echo "$gd_with_lib" >&6; }
15992
15993 gd_found_lib=no
15994 gd_require_pkg_name=""
15995 if test "$gd_with_lib" != "no"; then
15996 save_CPPFLAGS=$CPPFLAGS
15997 save_LDFLAGS=$LDFLAGS
15998 gd_lib_ldflags=
15999 gd_lib_cflags=
16000 case $gd_with_lib in
16001 yes|no|auto|"") ;;
16002 *)
16003 if test -d "$gd_with_lib/lib"; then
16004 gd_lib_ldflags="-L$gd_with_lib/lib"
16005 as_fn_append LDFLAGS " $gd_lib_ldflags"
16006 fi
16007 if test -d "$gd_with_lib/include"; then
16008 gd_lib_cflags="-I$gd_with_lib/include"
16009 as_fn_append CPPFLAGS " $gd_lib_cflags"
16010 fi
16011 ;;
16012 esac
16013
16014 pkg_failed=no
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJPEG" >&5
16016 $as_echo_n "checking for LIBJPEG... " >&6; }
16017
16018 if test -n "$LIBJPEG_CFLAGS"; then
16019 pkg_cv_LIBJPEG_CFLAGS="$LIBJPEG_CFLAGS"
16020 elif test -n "$PKG_CONFIG"; then
16021 if test -n "$PKG_CONFIG" && \
16022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5
16023 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5
16024 ac_status=$?
16025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; }; then
16027 pkg_cv_LIBJPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null`
16028 test "x$?" != "x0" && pkg_failed=yes
16029 else
16030 pkg_failed=yes
16031 fi
16032 else
16033 pkg_failed=untried
16034 fi
16035 if test -n "$LIBJPEG_LIBS"; then
16036 pkg_cv_LIBJPEG_LIBS="$LIBJPEG_LIBS"
16037 elif test -n "$PKG_CONFIG"; then
16038 if test -n "$PKG_CONFIG" && \
16039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5
16040 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5
16041 ac_status=$?
16042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16043 test $ac_status = 0; }; then
16044 pkg_cv_LIBJPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null`
16045 test "x$?" != "x0" && pkg_failed=yes
16046 else
16047 pkg_failed=yes
16048 fi
16049 else
16050 pkg_failed=untried
16051 fi
16052
16053
16054
16055 if test $pkg_failed = yes; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 $as_echo "no" >&6; }
16058
16059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16060 _pkg_short_errors_supported=yes
16061 else
16062 _pkg_short_errors_supported=no
16063 fi
16064 if test $_pkg_short_errors_supported = yes; then
16065 LIBJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg" 2>&1`
16066 else
16067 LIBJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg" 2>&1`
16068 fi
16069 # Put the nasty error message in config.log where it belongs
16070 echo "$LIBJPEG_PKG_ERRORS" >&5
16071
16072
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
16074 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
16075 if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
16076 $as_echo_n "(cached) " >&6
16077 else
16078 ac_check_lib_save_LIBS=$LIBS
16079 LIBS="-ljpeg $LIBS"
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082
16083 /* Override any GCC internal prototype to avoid an error.
16084 Use char because int might match the return type of a GCC
16085 builtin and then its argument prototype would still apply. */
16086 #ifdef __cplusplus
16087 extern "C"
16088 #endif
16089 char jpeg_set_defaults ();
16090 int
16091 main ()
16092 {
16093 return jpeg_set_defaults ();
16094 ;
16095 return 0;
16096 }
16097 _ACEOF
16098 if ac_fn_c_try_link "$LINENO"; then :
16099 ac_cv_lib_jpeg_jpeg_set_defaults=yes
16100 else
16101 ac_cv_lib_jpeg_jpeg_set_defaults=no
16102 fi
16103 rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16106 fi
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
16108 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
16109 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
16110 as_fn_append LIBJPEG_LIBS " -ljpeg"
16111 gd_found_lib=yes
16112
16113 fi
16114
16115
16116 elif test $pkg_failed = untried; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16119
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
16121 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
16122 if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 ac_check_lib_save_LIBS=$LIBS
16126 LIBS="-ljpeg $LIBS"
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129
16130 /* Override any GCC internal prototype to avoid an error.
16131 Use char because int might match the return type of a GCC
16132 builtin and then its argument prototype would still apply. */
16133 #ifdef __cplusplus
16134 extern "C"
16135 #endif
16136 char jpeg_set_defaults ();
16137 int
16138 main ()
16139 {
16140 return jpeg_set_defaults ();
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 ac_cv_lib_jpeg_jpeg_set_defaults=yes
16147 else
16148 ac_cv_lib_jpeg_jpeg_set_defaults=no
16149 fi
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 LIBS=$ac_check_lib_save_LIBS
16153 fi
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
16155 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
16156 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
16157 as_fn_append LIBJPEG_LIBS " -ljpeg"
16158 gd_found_lib=yes
16159
16160 fi
16161
16162
16163 else
16164 LIBJPEG_CFLAGS=$pkg_cv_LIBJPEG_CFLAGS
16165 LIBJPEG_LIBS=$pkg_cv_LIBJPEG_LIBS
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16167 $as_echo "yes" >&6; }
16168 gd_found_lib=yes gd_require_pkg_name="libjpeg"
16169 fi
16170
16171 CPPFLAGS=$save_CPPFLAGS
16172 LDFLAGS=$save_LDFLAGS
16173
16174 if test "$gd_found_lib" = "yes"; then
16175
16176 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
16177
16178 LIBJPEG_LIBS="$gd_lib_ldflags $LIBJPEG_LIBS"
16179 LIBJPEG_CFLAGS="$gd_lib_cflags $LIBJPEG_CFLAGS"
16180 as_fn_append LIBS " $LIBJPEG_LIBS"
16181 as_fn_append CPPFLAGS " $LIBJPEG_CFLAGS"
16182 if test -z "$gd_require_pkg_name"; then
16183 as_fn_append LIBS_PRIVATES " $LIBJPEG_LIBS"
16184 else
16185 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
16186 fi
16187 elif test "$gd_with_lib" = "yes"; then
16188 as_fn_error $? "jpeg requested but not found" "$LINENO" 5
16189 else
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for jpeg" >&5
16191 $as_echo "$as_me: Disabling support for jpeg" >&6;}
16192 fi
16193 fi
16194 if test "$gd_found_lib" = yes; then
16195 HAVE_LIBJPEG_TRUE=
16196 HAVE_LIBJPEG_FALSE='#'
16197 else
16198 HAVE_LIBJPEG_TRUE='#'
16199 HAVE_LIBJPEG_FALSE=
16200 fi
16201
16202 gd_with_LIBJPEG=$gd_found_lib
16203
16204
16205
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support liq" >&5
16207 $as_echo_n "checking whether to support liq... " >&6; }
16208
16209 # Check whether --with-liq was given.
16210 if test "${with_liq+set}" = set; then :
16211 withval=$with_liq; gd_with_lib=$withval
16212 else
16213 gd_with_lib=auto
16214 fi
16215
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
16217 $as_echo "$gd_with_lib" >&6; }
16218
16219 gd_found_lib=no
16220 gd_require_pkg_name=""
16221 if test "$gd_with_lib" != "no"; then
16222 save_CPPFLAGS=$CPPFLAGS
16223 save_LDFLAGS=$LDFLAGS
16224 gd_lib_ldflags=
16225 gd_lib_cflags=
16226 case $gd_with_lib in
16227 yes|no|auto|"") ;;
16228 *)
16229 if test -d "$gd_with_lib/lib"; then
16230 gd_lib_ldflags="-L$gd_with_lib/lib"
16231 as_fn_append LDFLAGS " $gd_lib_ldflags"
16232 fi
16233 if test -d "$gd_with_lib/include"; then
16234 gd_lib_cflags="-I$gd_with_lib/include"
16235 as_fn_append CPPFLAGS " $gd_lib_cflags"
16236 fi
16237 ;;
16238 esac
16239
16240 ac_fn_c_check_header_mongrel "$LINENO" "libimagequant.h" "ac_cv_header_libimagequant_h" "$ac_includes_default"
16241 if test "x$ac_cv_header_libimagequant_h" = xyes; then :
16242
16243 save_CFLAGS=$CFLAGS
16244 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liq_attr_create_with_allocator in -limagequant" >&5
16246 $as_echo_n "checking for liq_attr_create_with_allocator in -limagequant... " >&6; }
16247 if ${ac_cv_lib_imagequant_liq_attr_create_with_allocator+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 ac_check_lib_save_LIBS=$LIBS
16251 LIBS="-limagequant $LIBS"
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253 /* end confdefs.h. */
16254
16255 /* Override any GCC internal prototype to avoid an error.
16256 Use char because int might match the return type of a GCC
16257 builtin and then its argument prototype would still apply. */
16258 #ifdef __cplusplus
16259 extern "C"
16260 #endif
16261 char liq_attr_create_with_allocator ();
16262 int
16263 main ()
16264 {
16265 return liq_attr_create_with_allocator ();
16266 ;
16267 return 0;
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_link "$LINENO"; then :
16271 ac_cv_lib_imagequant_liq_attr_create_with_allocator=yes
16272 else
16273 ac_cv_lib_imagequant_liq_attr_create_with_allocator=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 LIBS=$ac_check_lib_save_LIBS
16278 fi
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagequant_liq_attr_create_with_allocator" >&5
16280 $as_echo "$ac_cv_lib_imagequant_liq_attr_create_with_allocator" >&6; }
16281 if test "x$ac_cv_lib_imagequant_liq_attr_create_with_allocator" = xyes; then :
16282 as_fn_append LIBIMAGEQUANT_LIBS " -limagequant $OPENMP_CFLAGS"
16283 gd_found_lib=yes
16284
16285 fi
16286
16287 CFLAGS=$save_CFLAGS
16288
16289 fi
16290
16291
16292
16293 CPPFLAGS=$save_CPPFLAGS
16294 LDFLAGS=$save_LDFLAGS
16295
16296 if test "$gd_found_lib" = "yes"; then
16297
16298 $as_echo "#define HAVE_LIBIMAGEQUANT 1" >>confdefs.h
16299
16300 LIBIMAGEQUANT_LIBS="$gd_lib_ldflags $LIBIMAGEQUANT_LIBS"
16301 LIBIMAGEQUANT_CFLAGS="$gd_lib_cflags $LIBIMAGEQUANT_CFLAGS"
16302 as_fn_append LIBS " $LIBIMAGEQUANT_LIBS"
16303 as_fn_append CPPFLAGS " $LIBIMAGEQUANT_CFLAGS"
16304 if test -z "$gd_require_pkg_name"; then
16305 as_fn_append LIBS_PRIVATES " $LIBIMAGEQUANT_LIBS"
16306 else
16307 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
16308 fi
16309 elif test "$gd_with_lib" = "yes"; then
16310 as_fn_error $? "liq requested but not found" "$LINENO" 5
16311 else
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for liq" >&5
16313 $as_echo "$as_me: Disabling support for liq" >&6;}
16314 fi
16315 fi
16316 if test "$gd_found_lib" = yes; then
16317 HAVE_LIBIMAGEQUANT_TRUE=
16318 HAVE_LIBIMAGEQUANT_FALSE='#'
16319 else
16320 HAVE_LIBIMAGEQUANT_TRUE='#'
16321 HAVE_LIBIMAGEQUANT_FALSE=
16322 fi
16323
16324 gd_with_LIBIMAGEQUANT=$gd_found_lib
16325
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support xpm" >&5
16328 $as_echo_n "checking whether to support xpm... " >&6; }
16329
16330 # Check whether --with-xpm was given.
16331 if test "${with_xpm+set}" = set; then :
16332 withval=$with_xpm; gd_with_lib=$withval
16333 else
16334 gd_with_lib=auto
16335 fi
16336
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
16338 $as_echo "$gd_with_lib" >&6; }
16339
16340 gd_found_lib=no
16341 gd_require_pkg_name=""
16342 if test "$gd_with_lib" != "no"; then
16343 save_CPPFLAGS=$CPPFLAGS
16344 save_LDFLAGS=$LDFLAGS
16345 gd_lib_ldflags=
16346 gd_lib_cflags=
16347 case $gd_with_lib in
16348 yes|no|auto|"") ;;
16349 *)
16350 if test -d "$gd_with_lib/lib"; then
16351 gd_lib_ldflags="-L$gd_with_lib/lib"
16352 as_fn_append LDFLAGS " $gd_lib_ldflags"
16353 fi
16354 if test -d "$gd_with_lib/include"; then
16355 gd_lib_cflags="-I$gd_with_lib/include"
16356 as_fn_append CPPFLAGS " $gd_lib_cflags"
16357 fi
16358 ;;
16359 esac
16360
16361 pkg_failed=no
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXPM" >&5
16363 $as_echo_n "checking for LIBXPM... " >&6; }
16364
16365 if test -n "$LIBXPM_CFLAGS"; then
16366 pkg_cv_LIBXPM_CFLAGS="$LIBXPM_CFLAGS"
16367 elif test -n "$PKG_CONFIG"; then
16368 if test -n "$PKG_CONFIG" && \
16369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
16370 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
16371 ac_status=$?
16372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16373 test $ac_status = 0; }; then
16374 pkg_cv_LIBXPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
16375 test "x$?" != "x0" && pkg_failed=yes
16376 else
16377 pkg_failed=yes
16378 fi
16379 else
16380 pkg_failed=untried
16381 fi
16382 if test -n "$LIBXPM_LIBS"; then
16383 pkg_cv_LIBXPM_LIBS="$LIBXPM_LIBS"
16384 elif test -n "$PKG_CONFIG"; then
16385 if test -n "$PKG_CONFIG" && \
16386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
16387 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
16388 ac_status=$?
16389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16390 test $ac_status = 0; }; then
16391 pkg_cv_LIBXPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
16392 test "x$?" != "x0" && pkg_failed=yes
16393 else
16394 pkg_failed=yes
16395 fi
16396 else
16397 pkg_failed=untried
16398 fi
16399
16400
16401
16402 if test $pkg_failed = yes; then
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404 $as_echo "no" >&6; }
16405
16406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16407 _pkg_short_errors_supported=yes
16408 else
16409 _pkg_short_errors_supported=no
16410 fi
16411 if test $_pkg_short_errors_supported = yes; then
16412 LIBXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
16413 else
16414 LIBXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
16415 fi
16416 # Put the nasty error message in config.log where it belongs
16417 echo "$LIBXPM_PKG_ERRORS" >&5
16418
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5
16421 $as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; }
16422 if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then :
16423 $as_echo_n "(cached) " >&6
16424 else
16425 ac_check_lib_save_LIBS=$LIBS
16426 LIBS="-lXpm $LIBS"
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16433 #ifdef __cplusplus
16434 extern "C"
16435 #endif
16436 char XpmReadFileToXpmImage ();
16437 int
16438 main ()
16439 {
16440 return XpmReadFileToXpmImage ();
16441 ;
16442 return 0;
16443 }
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446 ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes
16447 else
16448 ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452 LIBS=$ac_check_lib_save_LIBS
16453 fi
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5
16455 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; }
16456 if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then :
16457 as_fn_append LIBXPM_LIBS " -lXpm"
16458 gd_found_lib=yes
16459
16460 fi
16461
16462
16463 elif test $pkg_failed = untried; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5
16468 $as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; }
16469 if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lXpm $LIBS"
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16480 #ifdef __cplusplus
16481 extern "C"
16482 #endif
16483 char XpmReadFileToXpmImage ();
16484 int
16485 main ()
16486 {
16487 return XpmReadFileToXpmImage ();
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_link "$LINENO"; then :
16493 ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes
16494 else
16495 ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext \
16498 conftest$ac_exeext conftest.$ac_ext
16499 LIBS=$ac_check_lib_save_LIBS
16500 fi
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5
16502 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; }
16503 if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then :
16504 as_fn_append LIBXPM_LIBS " -lXpm"
16505 gd_found_lib=yes
16506
16507 fi
16508
16509
16510 else
16511 LIBXPM_CFLAGS=$pkg_cv_LIBXPM_CFLAGS
16512 LIBXPM_LIBS=$pkg_cv_LIBXPM_LIBS
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16514 $as_echo "yes" >&6; }
16515 gd_found_lib=yes gd_require_pkg_name="xpm"
16516 fi
16517
16518 CPPFLAGS=$save_CPPFLAGS
16519 LDFLAGS=$save_LDFLAGS
16520
16521 if test "$gd_found_lib" = "yes"; then
16522
16523 $as_echo "#define HAVE_LIBXPM 1" >>confdefs.h
16524
16525 LIBXPM_LIBS="$gd_lib_ldflags $LIBXPM_LIBS"
16526 LIBXPM_CFLAGS="$gd_lib_cflags $LIBXPM_CFLAGS"
16527 as_fn_append LIBS " $LIBXPM_LIBS"
16528 as_fn_append CPPFLAGS " $LIBXPM_CFLAGS"
16529 if test -z "$gd_require_pkg_name"; then
16530 as_fn_append LIBS_PRIVATES " $LIBXPM_LIBS"
16531 else
16532 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
16533 fi
16534 elif test "$gd_with_lib" = "yes"; then
16535 as_fn_error $? "xpm requested but not found" "$LINENO" 5
16536 else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for xpm" >&5
16538 $as_echo "$as_me: Disabling support for xpm" >&6;}
16539 fi
16540 fi
16541 if test "$gd_found_lib" = yes; then
16542 HAVE_LIBXPM_TRUE=
16543 HAVE_LIBXPM_FALSE='#'
16544 else
16545 HAVE_LIBXPM_TRUE='#'
16546 HAVE_LIBXPM_FALSE=
16547 fi
16548
16549 gd_with_LIBXPM=$gd_found_lib
16550
16551
16552
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tiff" >&5
16554 $as_echo_n "checking whether to support tiff... " >&6; }
16555
16556 # Check whether --with-tiff was given.
16557 if test "${with_tiff+set}" = set; then :
16558 withval=$with_tiff; gd_with_lib=$withval
16559 else
16560 gd_with_lib=auto
16561 fi
16562
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
16564 $as_echo "$gd_with_lib" >&6; }
16565
16566 gd_found_lib=no
16567 gd_require_pkg_name=""
16568 if test "$gd_with_lib" != "no"; then
16569 save_CPPFLAGS=$CPPFLAGS
16570 save_LDFLAGS=$LDFLAGS
16571 gd_lib_ldflags=
16572 gd_lib_cflags=
16573 case $gd_with_lib in
16574 yes|no|auto|"") ;;
16575 *)
16576 if test -d "$gd_with_lib/lib"; then
16577 gd_lib_ldflags="-L$gd_with_lib/lib"
16578 as_fn_append LDFLAGS " $gd_lib_ldflags"
16579 fi
16580 if test -d "$gd_with_lib/include"; then
16581 gd_lib_cflags="-I$gd_with_lib/include"
16582 as_fn_append CPPFLAGS " $gd_lib_cflags"
16583 fi
16584 ;;
16585 esac
16586
16587 pkg_failed=no
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTIFF" >&5
16589 $as_echo_n "checking for LIBTIFF... " >&6; }
16590
16591 if test -n "$LIBTIFF_CFLAGS"; then
16592 pkg_cv_LIBTIFF_CFLAGS="$LIBTIFF_CFLAGS"
16593 elif test -n "$PKG_CONFIG"; then
16594 if test -n "$PKG_CONFIG" && \
16595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
16596 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; then
16600 pkg_cv_LIBTIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4" 2>/dev/null`
16601 test "x$?" != "x0" && pkg_failed=yes
16602 else
16603 pkg_failed=yes
16604 fi
16605 else
16606 pkg_failed=untried
16607 fi
16608 if test -n "$LIBTIFF_LIBS"; then
16609 pkg_cv_LIBTIFF_LIBS="$LIBTIFF_LIBS"
16610 elif test -n "$PKG_CONFIG"; then
16611 if test -n "$PKG_CONFIG" && \
16612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5
16613 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5
16614 ac_status=$?
16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16616 test $ac_status = 0; }; then
16617 pkg_cv_LIBTIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4" 2>/dev/null`
16618 test "x$?" != "x0" && pkg_failed=yes
16619 else
16620 pkg_failed=yes
16621 fi
16622 else
16623 pkg_failed=untried
16624 fi
16625
16626
16627
16628 if test $pkg_failed = yes; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16631
16632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16633 _pkg_short_errors_supported=yes
16634 else
16635 _pkg_short_errors_supported=no
16636 fi
16637 if test $_pkg_short_errors_supported = yes; then
16638 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4" 2>&1`
16639 else
16640 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4" 2>&1`
16641 fi
16642 # Put the nasty error message in config.log where it belongs
16643 echo "$LIBTIFF_PKG_ERRORS" >&5
16644
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16647 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16648 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-ltiff $LIBS"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char TIFFClientOpen ();
16663 int
16664 main ()
16665 {
16666 return TIFFClientOpen ();
16667 ;
16668 return 0;
16669 }
16670 _ACEOF
16671 if ac_fn_c_try_link "$LINENO"; then :
16672 ac_cv_lib_tiff_TIFFClientOpen=yes
16673 else
16674 ac_cv_lib_tiff_TIFFClientOpen=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext \
16677 conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16681 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16682 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16683 as_fn_append LIBTIFF_LIBS " -ltiff"
16684 gd_found_lib=yes
16685
16686 fi
16687
16688
16689 elif test $pkg_failed = untried; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16694 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16695 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-ltiff $LIBS"
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702
16703 /* Override any GCC internal prototype to avoid an error.
16704 Use char because int might match the return type of a GCC
16705 builtin and then its argument prototype would still apply. */
16706 #ifdef __cplusplus
16707 extern "C"
16708 #endif
16709 char TIFFClientOpen ();
16710 int
16711 main ()
16712 {
16713 return TIFFClientOpen ();
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_link "$LINENO"; then :
16719 ac_cv_lib_tiff_TIFFClientOpen=yes
16720 else
16721 ac_cv_lib_tiff_TIFFClientOpen=no
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
16725 LIBS=$ac_check_lib_save_LIBS
16726 fi
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16728 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16729 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16730 as_fn_append LIBTIFF_LIBS " -ltiff"
16731 gd_found_lib=yes
16732
16733 fi
16734
16735
16736 else
16737 LIBTIFF_CFLAGS=$pkg_cv_LIBTIFF_CFLAGS
16738 LIBTIFF_LIBS=$pkg_cv_LIBTIFF_LIBS
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16740 $as_echo "yes" >&6; }
16741 gd_found_lib=yes gd_require_pkg_name="libtiff-4"
16742 fi
16743
16744 CPPFLAGS=$save_CPPFLAGS
16745 LDFLAGS=$save_LDFLAGS
16746
16747 if test "$gd_found_lib" = "yes"; then
16748
16749 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
16750
16751 LIBTIFF_LIBS="$gd_lib_ldflags $LIBTIFF_LIBS"
16752 LIBTIFF_CFLAGS="$gd_lib_cflags $LIBTIFF_CFLAGS"
16753 as_fn_append LIBS " $LIBTIFF_LIBS"
16754 as_fn_append CPPFLAGS " $LIBTIFF_CFLAGS"
16755 if test -z "$gd_require_pkg_name"; then
16756 as_fn_append LIBS_PRIVATES " $LIBTIFF_LIBS"
16757 else
16758 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
16759 fi
16760 elif test "$gd_with_lib" = "yes"; then
16761 as_fn_error $? "tiff requested but not found" "$LINENO" 5
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for tiff" >&5
16764 $as_echo "$as_me: Disabling support for tiff" >&6;}
16765 fi
16766 fi
16767 if test "$gd_found_lib" = yes; then
16768 HAVE_LIBTIFF_TRUE=
16769 HAVE_LIBTIFF_FALSE='#'
16770 else
16771 HAVE_LIBTIFF_TRUE='#'
16772 HAVE_LIBTIFF_FALSE=
16773 fi
16774
16775 gd_with_LIBTIFF=$gd_found_lib
16776
16777
16778
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support webp" >&5
16780 $as_echo_n "checking whether to support webp... " >&6; }
16781
16782 # Check whether --with-webp was given.
16783 if test "${with_webp+set}" = set; then :
16784 withval=$with_webp; gd_with_lib=$withval
16785 else
16786 gd_with_lib=auto
16787 fi
16788
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
16790 $as_echo "$gd_with_lib" >&6; }
16791
16792 gd_found_lib=no
16793 gd_require_pkg_name=""
16794 if test "$gd_with_lib" != "no"; then
16795 save_CPPFLAGS=$CPPFLAGS
16796 save_LDFLAGS=$LDFLAGS
16797 gd_lib_ldflags=
16798 gd_lib_cflags=
16799 case $gd_with_lib in
16800 yes|no|auto|"") ;;
16801 *)
16802 if test -d "$gd_with_lib/lib"; then
16803 gd_lib_ldflags="-L$gd_with_lib/lib"
16804 as_fn_append LDFLAGS " $gd_lib_ldflags"
16805 fi
16806 if test -d "$gd_with_lib/include"; then
16807 gd_lib_cflags="-I$gd_with_lib/include"
16808 as_fn_append CPPFLAGS " $gd_lib_cflags"
16809 fi
16810 ;;
16811 esac
16812
16813 pkg_failed=no
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWEBP" >&5
16815 $as_echo_n "checking for LIBWEBP... " >&6; }
16816
16817 if test -n "$LIBWEBP_CFLAGS"; then
16818 pkg_cv_LIBWEBP_CFLAGS="$LIBWEBP_CFLAGS"
16819 elif test -n "$PKG_CONFIG"; then
16820 if test -n "$PKG_CONFIG" && \
16821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5
16822 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.0") 2>&5
16823 ac_status=$?
16824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16825 test $ac_status = 0; }; then
16826 pkg_cv_LIBWEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp >= 0.2.0" 2>/dev/null`
16827 test "x$?" != "x0" && pkg_failed=yes
16828 else
16829 pkg_failed=yes
16830 fi
16831 else
16832 pkg_failed=untried
16833 fi
16834 if test -n "$LIBWEBP_LIBS"; then
16835 pkg_cv_LIBWEBP_LIBS="$LIBWEBP_LIBS"
16836 elif test -n "$PKG_CONFIG"; then
16837 if test -n "$PKG_CONFIG" && \
16838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5
16839 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.0") 2>&5
16840 ac_status=$?
16841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16842 test $ac_status = 0; }; then
16843 pkg_cv_LIBWEBP_LIBS=`$PKG_CONFIG --libs "libwebp >= 0.2.0" 2>/dev/null`
16844 test "x$?" != "x0" && pkg_failed=yes
16845 else
16846 pkg_failed=yes
16847 fi
16848 else
16849 pkg_failed=untried
16850 fi
16851
16852
16853
16854 if test $pkg_failed = yes; then
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856 $as_echo "no" >&6; }
16857
16858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16859 _pkg_short_errors_supported=yes
16860 else
16861 _pkg_short_errors_supported=no
16862 fi
16863 if test $_pkg_short_errors_supported = yes; then
16864 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp >= 0.2.0" 2>&1`
16865 else
16866 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp >= 0.2.0" 2>&1`
16867 fi
16868 # Put the nasty error message in config.log where it belongs
16869 echo "$LIBWEBP_PKG_ERRORS" >&5
16870
16871
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5
16873 $as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; }
16874 if ${ac_cv_lib_webp_WebPGetInfo+:} false; then :
16875 $as_echo_n "(cached) " >&6
16876 else
16877 ac_check_lib_save_LIBS=$LIBS
16878 LIBS="-lwebp $LIBS"
16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16881
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16885 #ifdef __cplusplus
16886 extern "C"
16887 #endif
16888 char WebPGetInfo ();
16889 int
16890 main ()
16891 {
16892 return WebPGetInfo ();
16893 ;
16894 return 0;
16895 }
16896 _ACEOF
16897 if ac_fn_c_try_link "$LINENO"; then :
16898 ac_cv_lib_webp_WebPGetInfo=yes
16899 else
16900 ac_cv_lib_webp_WebPGetInfo=no
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16904 LIBS=$ac_check_lib_save_LIBS
16905 fi
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5
16907 $as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; }
16908 if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then :
16909 as_fn_append LIBWEBP_LIBS " -lwebp"
16910 gd_found_lib=yes
16911
16912 fi
16913
16914
16915 elif test $pkg_failed = untried; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917 $as_echo "no" >&6; }
16918
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5
16920 $as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; }
16921 if ${ac_cv_lib_webp_WebPGetInfo+:} false; then :
16922 $as_echo_n "(cached) " >&6
16923 else
16924 ac_check_lib_save_LIBS=$LIBS
16925 LIBS="-lwebp $LIBS"
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16928
16929 /* Override any GCC internal prototype to avoid an error.
16930 Use char because int might match the return type of a GCC
16931 builtin and then its argument prototype would still apply. */
16932 #ifdef __cplusplus
16933 extern "C"
16934 #endif
16935 char WebPGetInfo ();
16936 int
16937 main ()
16938 {
16939 return WebPGetInfo ();
16940 ;
16941 return 0;
16942 }
16943 _ACEOF
16944 if ac_fn_c_try_link "$LINENO"; then :
16945 ac_cv_lib_webp_WebPGetInfo=yes
16946 else
16947 ac_cv_lib_webp_WebPGetInfo=no
16948 fi
16949 rm -f core conftest.err conftest.$ac_objext \
16950 conftest$ac_exeext conftest.$ac_ext
16951 LIBS=$ac_check_lib_save_LIBS
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5
16954 $as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; }
16955 if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then :
16956 as_fn_append LIBWEBP_LIBS " -lwebp"
16957 gd_found_lib=yes
16958
16959 fi
16960
16961
16962 else
16963 LIBWEBP_CFLAGS=$pkg_cv_LIBWEBP_CFLAGS
16964 LIBWEBP_LIBS=$pkg_cv_LIBWEBP_LIBS
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16966 $as_echo "yes" >&6; }
16967 gd_found_lib=yes gd_require_pkg_name="libwebp >= 0.2.0"
16968 fi
16969
16970 CPPFLAGS=$save_CPPFLAGS
16971 LDFLAGS=$save_LDFLAGS
16972
16973 if test "$gd_found_lib" = "yes"; then
16974
16975 $as_echo "#define HAVE_LIBWEBP 1" >>confdefs.h
16976
16977 LIBWEBP_LIBS="$gd_lib_ldflags $LIBWEBP_LIBS"
16978 LIBWEBP_CFLAGS="$gd_lib_cflags $LIBWEBP_CFLAGS"
16979 as_fn_append LIBS " $LIBWEBP_LIBS"
16980 as_fn_append CPPFLAGS " $LIBWEBP_CFLAGS"
16981 if test -z "$gd_require_pkg_name"; then
16982 as_fn_append LIBS_PRIVATES " $LIBWEBP_LIBS"
16983 else
16984 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
16985 fi
16986 elif test "$gd_with_lib" = "yes"; then
16987 as_fn_error $? "webp requested but not found" "$LINENO" 5
16988 else
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for webp" >&5
16990 $as_echo "$as_me: Disabling support for webp" >&6;}
16991 fi
16992 fi
16993 if test "$gd_found_lib" = yes; then
16994 HAVE_LIBWEBP_TRUE=
16995 HAVE_LIBWEBP_FALSE='#'
16996 else
16997 HAVE_LIBWEBP_TRUE='#'
16998 HAVE_LIBWEBP_FALSE=
16999 fi
17000
17001 gd_with_LIBWEBP=$gd_found_lib
17002
17003
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support heif" >&5
17006 $as_echo_n "checking whether to support heif... " >&6; }
17007
17008 # Check whether --with-heif was given.
17009 if test "${with_heif+set}" = set; then :
17010 withval=$with_heif; gd_with_lib=$withval
17011 else
17012 gd_with_lib=auto
17013 fi
17014
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
17016 $as_echo "$gd_with_lib" >&6; }
17017
17018 gd_found_lib=no
17019 gd_require_pkg_name=""
17020 if test "$gd_with_lib" != "no"; then
17021 save_CPPFLAGS=$CPPFLAGS
17022 save_LDFLAGS=$LDFLAGS
17023 gd_lib_ldflags=
17024 gd_lib_cflags=
17025 case $gd_with_lib in
17026 yes|no|auto|"") ;;
17027 *)
17028 if test -d "$gd_with_lib/lib"; then
17029 gd_lib_ldflags="-L$gd_with_lib/lib"
17030 as_fn_append LDFLAGS " $gd_lib_ldflags"
17031 fi
17032 if test -d "$gd_with_lib/include"; then
17033 gd_lib_cflags="-I$gd_with_lib/include"
17034 as_fn_append CPPFLAGS " $gd_lib_cflags"
17035 fi
17036 ;;
17037 esac
17038
17039 pkg_failed=no
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBHEIF" >&5
17041 $as_echo_n "checking for LIBHEIF... " >&6; }
17042
17043 if test -n "$LIBHEIF_CFLAGS"; then
17044 pkg_cv_LIBHEIF_CFLAGS="$LIBHEIF_CFLAGS"
17045 elif test -n "$PKG_CONFIG"; then
17046 if test -n "$PKG_CONFIG" && \
17047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.7.0\""; } >&5
17048 ($PKG_CONFIG --exists --print-errors "libheif >= 1.7.0") 2>&5
17049 ac_status=$?
17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17051 test $ac_status = 0; }; then
17052 pkg_cv_LIBHEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif >= 1.7.0" 2>/dev/null`
17053 test "x$?" != "x0" && pkg_failed=yes
17054 else
17055 pkg_failed=yes
17056 fi
17057 else
17058 pkg_failed=untried
17059 fi
17060 if test -n "$LIBHEIF_LIBS"; then
17061 pkg_cv_LIBHEIF_LIBS="$LIBHEIF_LIBS"
17062 elif test -n "$PKG_CONFIG"; then
17063 if test -n "$PKG_CONFIG" && \
17064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.7.0\""; } >&5
17065 ($PKG_CONFIG --exists --print-errors "libheif >= 1.7.0") 2>&5
17066 ac_status=$?
17067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068 test $ac_status = 0; }; then
17069 pkg_cv_LIBHEIF_LIBS=`$PKG_CONFIG --libs "libheif >= 1.7.0" 2>/dev/null`
17070 test "x$?" != "x0" && pkg_failed=yes
17071 else
17072 pkg_failed=yes
17073 fi
17074 else
17075 pkg_failed=untried
17076 fi
17077
17078
17079
17080 if test $pkg_failed = yes; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17082 $as_echo "no" >&6; }
17083
17084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17085 _pkg_short_errors_supported=yes
17086 else
17087 _pkg_short_errors_supported=no
17088 fi
17089 if test $_pkg_short_errors_supported = yes; then
17090 LIBHEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif >= 1.7.0" 2>&1`
17091 else
17092 LIBHEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif >= 1.7.0" 2>&1`
17093 fi
17094 # Put the nasty error message in config.log where it belongs
17095 echo "$LIBHEIF_PKG_ERRORS" >&5
17096
17097
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heif_get_version in -lheif" >&5
17099 $as_echo_n "checking for heif_get_version in -lheif... " >&6; }
17100 if ${ac_cv_lib_heif_heif_get_version+:} false; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lheif $LIBS"
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107
17108 /* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17111 #ifdef __cplusplus
17112 extern "C"
17113 #endif
17114 char heif_get_version ();
17115 int
17116 main ()
17117 {
17118 return heif_get_version ();
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_link "$LINENO"; then :
17124 ac_cv_lib_heif_heif_get_version=yes
17125 else
17126 ac_cv_lib_heif_heif_get_version=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17131 fi
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_heif_heif_get_version" >&5
17133 $as_echo "$ac_cv_lib_heif_heif_get_version" >&6; }
17134 if test "x$ac_cv_lib_heif_heif_get_version" = xyes; then :
17135 as_fn_append LIBHEIF_LIBS " -lheif"
17136
17137 fi
17138
17139
17140 elif test $pkg_failed = untried; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17143
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heif_get_version in -lheif" >&5
17145 $as_echo_n "checking for heif_get_version in -lheif... " >&6; }
17146 if ${ac_cv_lib_heif_heif_get_version+:} false; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 ac_check_lib_save_LIBS=$LIBS
17150 LIBS="-lheif $LIBS"
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17153
17154 /* Override any GCC internal prototype to avoid an error.
17155 Use char because int might match the return type of a GCC
17156 builtin and then its argument prototype would still apply. */
17157 #ifdef __cplusplus
17158 extern "C"
17159 #endif
17160 char heif_get_version ();
17161 int
17162 main ()
17163 {
17164 return heif_get_version ();
17165 ;
17166 return 0;
17167 }
17168 _ACEOF
17169 if ac_fn_c_try_link "$LINENO"; then :
17170 ac_cv_lib_heif_heif_get_version=yes
17171 else
17172 ac_cv_lib_heif_heif_get_version=no
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17176 LIBS=$ac_check_lib_save_LIBS
17177 fi
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_heif_heif_get_version" >&5
17179 $as_echo "$ac_cv_lib_heif_heif_get_version" >&6; }
17180 if test "x$ac_cv_lib_heif_heif_get_version" = xyes; then :
17181 as_fn_append LIBHEIF_LIBS " -lheif"
17182
17183 fi
17184
17185
17186 else
17187 LIBHEIF_CFLAGS=$pkg_cv_LIBHEIF_CFLAGS
17188 LIBHEIF_LIBS=$pkg_cv_LIBHEIF_LIBS
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190 $as_echo "yes" >&6; }
17191 gd_found_lib=yes gd_require_pkg_name="libheif >= 1.7.0"
17192 fi
17193
17194 CPPFLAGS=$save_CPPFLAGS
17195 LDFLAGS=$save_LDFLAGS
17196
17197 if test "$gd_found_lib" = "yes"; then
17198
17199 $as_echo "#define HAVE_LIBHEIF 1" >>confdefs.h
17200
17201 LIBHEIF_LIBS="$gd_lib_ldflags $LIBHEIF_LIBS"
17202 LIBHEIF_CFLAGS="$gd_lib_cflags $LIBHEIF_CFLAGS"
17203 as_fn_append LIBS " $LIBHEIF_LIBS"
17204 as_fn_append CPPFLAGS " $LIBHEIF_CFLAGS"
17205 if test -z "$gd_require_pkg_name"; then
17206 as_fn_append LIBS_PRIVATES " $LIBHEIF_LIBS"
17207 else
17208 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
17209 fi
17210 elif test "$gd_with_lib" = "yes"; then
17211 as_fn_error $? "heif requested but not found" "$LINENO" 5
17212 else
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for heif" >&5
17214 $as_echo "$as_me: Disabling support for heif" >&6;}
17215 fi
17216 fi
17217 if test "$gd_found_lib" = yes; then
17218 HAVE_LIBHEIF_TRUE=
17219 HAVE_LIBHEIF_FALSE='#'
17220 else
17221 HAVE_LIBHEIF_TRUE='#'
17222 HAVE_LIBHEIF_FALSE=
17223 fi
17224
17225 gd_with_LIBHEIF=$gd_found_lib
17226
17227
17228
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support avif" >&5
17230 $as_echo_n "checking whether to support avif... " >&6; }
17231
17232 # Check whether --with-avif was given.
17233 if test "${with_avif+set}" = set; then :
17234 withval=$with_avif; gd_with_lib=$withval
17235 else
17236 gd_with_lib=auto
17237 fi
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5
17240 $as_echo "$gd_with_lib" >&6; }
17241
17242 gd_found_lib=no
17243 gd_require_pkg_name=""
17244 if test "$gd_with_lib" != "no"; then
17245 save_CPPFLAGS=$CPPFLAGS
17246 save_LDFLAGS=$LDFLAGS
17247 gd_lib_ldflags=
17248 gd_lib_cflags=
17249 case $gd_with_lib in
17250 yes|no|auto|"") ;;
17251 *)
17252 if test -d "$gd_with_lib/lib"; then
17253 gd_lib_ldflags="-L$gd_with_lib/lib"
17254 as_fn_append LDFLAGS " $gd_lib_ldflags"
17255 fi
17256 if test -d "$gd_with_lib/include"; then
17257 gd_lib_cflags="-I$gd_with_lib/include"
17258 as_fn_append CPPFLAGS " $gd_lib_cflags"
17259 fi
17260 ;;
17261 esac
17262
17263 pkg_failed=no
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAVIF" >&5
17265 $as_echo_n "checking for LIBAVIF... " >&6; }
17266
17267 if test -n "$LIBAVIF_CFLAGS"; then
17268 pkg_cv_LIBAVIF_CFLAGS="$LIBAVIF_CFLAGS"
17269 elif test -n "$PKG_CONFIG"; then
17270 if test -n "$PKG_CONFIG" && \
17271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5
17272 ($PKG_CONFIG --exists --print-errors "libavif >= 0.8.2") 2>&5
17273 ac_status=$?
17274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17275 test $ac_status = 0; }; then
17276 pkg_cv_LIBAVIF_CFLAGS=`$PKG_CONFIG --cflags "libavif >= 0.8.2" 2>/dev/null`
17277 test "x$?" != "x0" && pkg_failed=yes
17278 else
17279 pkg_failed=yes
17280 fi
17281 else
17282 pkg_failed=untried
17283 fi
17284 if test -n "$LIBAVIF_LIBS"; then
17285 pkg_cv_LIBAVIF_LIBS="$LIBAVIF_LIBS"
17286 elif test -n "$PKG_CONFIG"; then
17287 if test -n "$PKG_CONFIG" && \
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5
17289 ($PKG_CONFIG --exists --print-errors "libavif >= 0.8.2") 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }; then
17293 pkg_cv_LIBAVIF_LIBS=`$PKG_CONFIG --libs "libavif >= 0.8.2" 2>/dev/null`
17294 test "x$?" != "x0" && pkg_failed=yes
17295 else
17296 pkg_failed=yes
17297 fi
17298 else
17299 pkg_failed=untried
17300 fi
17301
17302
17303
17304 if test $pkg_failed = yes; then
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17306 $as_echo "no" >&6; }
17307
17308 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17309 _pkg_short_errors_supported=yes
17310 else
17311 _pkg_short_errors_supported=no
17312 fi
17313 if test $_pkg_short_errors_supported = yes; then
17314 LIBAVIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavif >= 0.8.2" 2>&1`
17315 else
17316 LIBAVIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavif >= 0.8.2" 2>&1`
17317 fi
17318 # Put the nasty error message in config.log where it belongs
17319 echo "$LIBAVIF_PKG_ERRORS" >&5
17320
17321
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifVersion in -lavif" >&5
17323 $as_echo_n "checking for avifVersion in -lavif... " >&6; }
17324 if ${ac_cv_lib_avif_avifVersion+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 ac_check_lib_save_LIBS=$LIBS
17328 LIBS="-lavif $LIBS"
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331
17332 /* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17335 #ifdef __cplusplus
17336 extern "C"
17337 #endif
17338 char avifVersion ();
17339 int
17340 main ()
17341 {
17342 return avifVersion ();
17343 ;
17344 return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348 ac_cv_lib_avif_avifVersion=yes
17349 else
17350 ac_cv_lib_avif_avifVersion=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354 LIBS=$ac_check_lib_save_LIBS
17355 fi
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avif_avifVersion" >&5
17357 $as_echo "$ac_cv_lib_avif_avifVersion" >&6; }
17358 if test "x$ac_cv_lib_avif_avifVersion" = xyes; then :
17359 as_fn_append LIBAVIF_LIBS " -lavif"
17360 gd_found_lib=yes
17361
17362 fi
17363
17364
17365 elif test $pkg_failed = untried; then
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avifVersion in -lavif" >&5
17370 $as_echo_n "checking for avifVersion in -lavif... " >&6; }
17371 if ${ac_cv_lib_avif_avifVersion+:} false; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lavif $LIBS"
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378
17379 /* Override any GCC internal prototype to avoid an error.
17380 Use char because int might match the return type of a GCC
17381 builtin and then its argument prototype would still apply. */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 char avifVersion ();
17386 int
17387 main ()
17388 {
17389 return avifVersion ();
17390 ;
17391 return 0;
17392 }
17393 _ACEOF
17394 if ac_fn_c_try_link "$LINENO"; then :
17395 ac_cv_lib_avif_avifVersion=yes
17396 else
17397 ac_cv_lib_avif_avifVersion=no
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avif_avifVersion" >&5
17404 $as_echo "$ac_cv_lib_avif_avifVersion" >&6; }
17405 if test "x$ac_cv_lib_avif_avifVersion" = xyes; then :
17406 as_fn_append LIBAVIF_LIBS " -lavif"
17407 gd_found_lib=yes
17408
17409 fi
17410
17411
17412 else
17413 LIBAVIF_CFLAGS=$pkg_cv_LIBAVIF_CFLAGS
17414 LIBAVIF_LIBS=$pkg_cv_LIBAVIF_LIBS
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17416 $as_echo "yes" >&6; }
17417 gd_found_lib=yes gd_require_pkg_name="libavif >= 0.8.2"
17418 fi
17419
17420 CPPFLAGS=$save_CPPFLAGS
17421 LDFLAGS=$save_LDFLAGS
17422
17423 if test "$gd_found_lib" = "yes"; then
17424
17425 $as_echo "#define HAVE_LIBAVIF 1" >>confdefs.h
17426
17427 LIBAVIF_LIBS="$gd_lib_ldflags $LIBAVIF_LIBS"
17428 LIBAVIF_CFLAGS="$gd_lib_cflags $LIBAVIF_CFLAGS"
17429 as_fn_append LIBS " $LIBAVIF_LIBS"
17430 as_fn_append CPPFLAGS " $LIBAVIF_CFLAGS"
17431 if test -z "$gd_require_pkg_name"; then
17432 as_fn_append LIBS_PRIVATES " $LIBAVIF_LIBS"
17433 else
17434 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name"
17435 fi
17436 elif test "$gd_with_lib" = "yes"; then
17437 as_fn_error $? "avif requested but not found" "$LINENO" 5
17438 else
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for avif" >&5
17440 $as_echo "$as_me: Disabling support for avif" >&6;}
17441 fi
17442 fi
17443 if test "$gd_found_lib" = yes; then
17444 HAVE_LIBAVIF_TRUE=
17445 HAVE_LIBAVIF_FALSE='#'
17446 else
17447 HAVE_LIBAVIF_TRUE='#'
17448 HAVE_LIBAVIF_FALSE=
17449 fi
17450
17451 gd_with_LIBAVIF=$gd_found_lib
17452
17453
17454
17455
17456
17457 CFLAG_VISIBILITY=
17458 HAVE_VISIBILITY=0
17459 if test -n "$GCC"; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
17461 $as_echo_n "checking for simple visibility declarations... " >&6; }
17462 if ${gl_cv_cc_visibility+:} false; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465
17466 gl_save_CFLAGS="$CFLAGS"
17467 CFLAGS="$CFLAGS -fvisibility=hidden"
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17470 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17471 extern __attribute__((__visibility__("default"))) int exportedvar;
17472 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17473 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17474 int
17475 main ()
17476 {
17477
17478 ;
17479 return 0;
17480 }
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"; then :
17483 gl_cv_cc_visibility=yes
17484 else
17485 gl_cv_cc_visibility=no
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 CFLAGS="$gl_save_CFLAGS"
17489 fi
17490
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
17492 $as_echo "$gl_cv_cc_visibility" >&6; }
17493 if test $gl_cv_cc_visibility = yes; then
17494 CFLAG_VISIBILITY="-fvisibility=hidden"
17495 HAVE_VISIBILITY=1
17496 fi
17497 fi
17498
17499
17500
17501 cat >>confdefs.h <<_ACEOF
17502 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17503 _ACEOF
17504
17505
17506 CFLAGS="$CFLAGS $CFLAG_VISIBILITY"
17507
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5
17509 $as_echo_n "checking whether we are building for a Win32 host... " >&6; }
17510 if ${mingw_cv_win32_host+:} false; then :
17511 $as_echo_n "(cached) " >&6
17512 else
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515
17516 #ifdef _WIN32
17517 choke me
17518 #endif
17519 _ACEOF
17520 if ac_fn_c_try_compile "$LINENO"; then :
17521 mingw_cv_win32_host=no
17522 else
17523 mingw_cv_win32_host=yes
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 fi
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mingw_cv_win32_host" >&5
17528 $as_echo "$mingw_cv_win32_host" >&6; }
17529
17530 if test "$mingw_cv_win32_host" = yes; then
17531
17532 $as_echo "#define BGDWIN32 /**/" >>confdefs.h
17533
17534 fi
17535
17536 ac_ext=c
17537 ac_cpp='$CPP $CPPFLAGS'
17538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17541
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17543 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17544 if ${ac_cv_cflags_warn_all+:} false; then :
17545 $as_echo_n "(cached) " >&6
17546 else
17547 ac_cv_cflags_warn_all="no, unknown"
17548 ac_save_CFLAGS="$CFLAGS"
17549 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
17550 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17553
17554 int
17555 main ()
17556 {
17557
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_compile "$LINENO"; then :
17563 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566 done
17567 CFLAGS="$ac_save_CFLAGS"
17568
17569 fi
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17571 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17572
17573
17574 case ".$ac_cv_cflags_warn_all" in
17575 .ok|.ok,*) ;;
17576 .|.no|.no,*) ;;
17577 *)
17578 if ${CFLAGS+:} false; then :
17579
17580 case " $CFLAGS " in #(
17581 *" $ac_cv_cflags_warn_all "*) :
17582 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17583 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17584 ac_status=$?
17585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17586 test $ac_status = 0; } ;; #(
17587 *) :
17588
17589 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
17590 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17591 (: CFLAGS="$CFLAGS") 2>&5
17592 ac_status=$?
17593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17594 test $ac_status = 0; }
17595 ;;
17596 esac
17597
17598 else
17599
17600 CFLAGS=$ac_cv_cflags_warn_all
17601 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17602 (: CFLAGS="$CFLAGS") 2>&5
17603 ac_status=$?
17604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17605 test $ac_status = 0; }
17606
17607 fi
17608 ;;
17609 esac
17610
17611 ac_ext=c
17612 ac_cpp='$CPP $CPPFLAGS'
17613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17616
17617
17618
17619 # Check whether --enable-werror was given.
17620 if test "${enable_werror+set}" = set; then :
17621 enableval=$enable_werror;
17622 fi
17623
17624 if test "$enable_werror" = "yes" || \
17625 test "$GCC" = "yes" -a "$enable_werror" != "no" -a -d "$srcdir/.git"; then
17626 CFLAGS="-Werror $CFLAGS"
17627 CXXFLAGS="-Werror $CXXFLAGS"
17628 fi
17629
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17631 ** Configuration summary for $PACKAGE $VERSION:
17632
17633 Support for gd/gd2 images: $gd_enable_gd_formats
17634 Support for Zlib: $gd_with_LIBZ
17635 Support for PNG library: $gd_with_LIBPNG
17636 Support for JPEG library: $gd_with_LIBJPEG
17637 Support for WebP library: $gd_with_LIBWEBP
17638 Support for HEIF library: $gd_with_LIBHEIF
17639 Support for AVIF library: $gd_with_LIBAVIF
17640 Support for TIFF library: $gd_with_LIBTIFF
17641 Support for Freetype 2.x library: $gd_with_LIBFREETYPE
17642 Support for Fontconfig library: $gd_with_LIBFONTCONFIG
17643 Support for Xpm library: $gd_with_LIBXPM
17644 Support for liq library: $gd_with_LIBIMAGEQUANT
17645 Support for complex text: $gd_with_LIBRAQM
17646 Support for pthreads: $ax_pthread_ok
17647 " >&5
17648 $as_echo "
17649 ** Configuration summary for $PACKAGE $VERSION:
17650
17651 Support for gd/gd2 images: $gd_enable_gd_formats
17652 Support for Zlib: $gd_with_LIBZ
17653 Support for PNG library: $gd_with_LIBPNG
17654 Support for JPEG library: $gd_with_LIBJPEG
17655 Support for WebP library: $gd_with_LIBWEBP
17656 Support for HEIF library: $gd_with_LIBHEIF
17657 Support for AVIF library: $gd_with_LIBAVIF
17658 Support for TIFF library: $gd_with_LIBTIFF
17659 Support for Freetype 2.x library: $gd_with_LIBFREETYPE
17660 Support for Fontconfig library: $gd_with_LIBFONTCONFIG
17661 Support for Xpm library: $gd_with_LIBXPM
17662 Support for liq library: $gd_with_LIBIMAGEQUANT
17663 Support for complex text: $gd_with_LIBRAQM
17664 Support for pthreads: $ax_pthread_ok
17665 " >&6; }
17666
17667 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile config/Makefile config/gdlib.pc"
17668
17669
17670 cat >confcache <<\_ACEOF
17671 # This file is a shell script that caches the results of configure
17672 # tests run on this system so they can be shared between configure
17673 # scripts and configure runs, see configure's option --config-cache.
17674 # It is not useful on other systems. If it contains results you don't
17675 # want to keep, you may remove or edit it.
17676 #
17677 # config.status only pays attention to the cache file if you give it
17678 # the --recheck option to rerun configure.
17679 #
17680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17682 # following values.
17683
17684 _ACEOF
17685
17686 # The following way of writing the cache mishandles newlines in values,
17687 # but we know of no workaround that is simple, portable, and efficient.
17688 # So, we kill variables containing newlines.
17689 # Ultrix sh set writes to stderr and can't be redirected directly,
17690 # and sets the high bit in the cache file unless we assign to the vars.
17691 (
17692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17693 eval ac_val=\$$ac_var
17694 case $ac_val in #(
17695 *${as_nl}*)
17696 case $ac_var in #(
17697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17699 esac
17700 case $ac_var in #(
17701 _ | IFS | as_nl) ;; #(
17702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17703 *) { eval $ac_var=; unset $ac_var;} ;;
17704 esac ;;
17705 esac
17706 done
17707
17708 (set) 2>&1 |
17709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17710 *${as_nl}ac_space=\ *)
17711 # `set' does not quote correctly, so add quotes: double-quote
17712 # substitution turns \\\\ into \\, and sed turns \\ into \.
17713 sed -n \
17714 "s/'/'\\\\''/g;
17715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17716 ;; #(
17717 *)
17718 # `set' quotes correctly as required by POSIX, so do not add quotes.
17719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17720 ;;
17721 esac |
17722 sort
17723 ) |
17724 sed '
17725 /^ac_cv_env_/b end
17726 t clear
17727 :clear
17728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17729 t end
17730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17731 :end' >>confcache
17732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17733 if test -w "$cache_file"; then
17734 if test "x$cache_file" != "x/dev/null"; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17736 $as_echo "$as_me: updating cache $cache_file" >&6;}
17737 if test ! -f "$cache_file" || test -h "$cache_file"; then
17738 cat confcache >"$cache_file"
17739 else
17740 case $cache_file in #(
17741 */* | ?:*)
17742 mv -f confcache "$cache_file"$$ &&
17743 mv -f "$cache_file"$$ "$cache_file" ;; #(
17744 *)
17745 mv -f confcache "$cache_file" ;;
17746 esac
17747 fi
17748 fi
17749 else
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17751 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17752 fi
17753 fi
17754 rm -f confcache
17755
17756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17757 # Let make expand exec_prefix.
17758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17759
17760 DEFS=-DHAVE_CONFIG_H
17761
17762 ac_libobjs=
17763 ac_ltlibobjs=
17764 U=
17765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17766 # 1. Remove the extension, and $U if already installed.
17767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17768 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17770 # will be set to the directory where LIBOBJS objects are built.
17771 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17772 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17773 done
17774 LIBOBJS=$ac_libobjs
17775
17776 LTLIBOBJS=$ac_ltlibobjs
17777
17778
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17780 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17781 if test -n "$am_sleep_pid"; then
17782 # Hide warnings about reused PIDs.
17783 wait $am_sleep_pid 2>/dev/null
17784 fi
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17786 $as_echo "done" >&6; }
17787 if test -n "$EXEEXT"; then
17788 am__EXEEXT_TRUE=
17789 am__EXEEXT_FALSE='#'
17790 else
17791 am__EXEEXT_TRUE='#'
17792 am__EXEEXT_FALSE=
17793 fi
17794
17795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17796 as_fn_error $? "conditional \"AMDEP\" was never defined.
17797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17798 fi
17799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17802 fi
17803 if test -z "${ENABLE_GD_FORMATS_TRUE}" && test -z "${ENABLE_GD_FORMATS_FALSE}"; then
17804 as_fn_error $? "conditional \"ENABLE_GD_FORMATS\" was never defined.
17805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17806 fi
17807 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
17808 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
17809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17810 fi
17811 if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
17812 as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined.
17813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17814 fi
17815 if test -z "${HAVE_LIBFREETYPE_TRUE}" && test -z "${HAVE_LIBFREETYPE_FALSE}"; then
17816 as_fn_error $? "conditional \"HAVE_LIBFREETYPE\" was never defined.
17817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17818 fi
17819 if test -z "${HAVE_LIBRAQM_TRUE}" && test -z "${HAVE_LIBRAQM_FALSE}"; then
17820 as_fn_error $? "conditional \"HAVE_LIBRAQM\" was never defined.
17821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17822 fi
17823 if test -z "${HAVE_LIBFONTCONFIG_TRUE}" && test -z "${HAVE_LIBFONTCONFIG_FALSE}"; then
17824 as_fn_error $? "conditional \"HAVE_LIBFONTCONFIG\" was never defined.
17825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17826 fi
17827 if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
17828 as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined.
17829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17830 fi
17831 if test -z "${HAVE_LIBIMAGEQUANT_TRUE}" && test -z "${HAVE_LIBIMAGEQUANT_FALSE}"; then
17832 as_fn_error $? "conditional \"HAVE_LIBIMAGEQUANT\" was never defined.
17833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17834 fi
17835 if test -z "${HAVE_LIBXPM_TRUE}" && test -z "${HAVE_LIBXPM_FALSE}"; then
17836 as_fn_error $? "conditional \"HAVE_LIBXPM\" was never defined.
17837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17838 fi
17839 if test -z "${HAVE_LIBTIFF_TRUE}" && test -z "${HAVE_LIBTIFF_FALSE}"; then
17840 as_fn_error $? "conditional \"HAVE_LIBTIFF\" was never defined.
17841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17842 fi
17843 if test -z "${HAVE_LIBWEBP_TRUE}" && test -z "${HAVE_LIBWEBP_FALSE}"; then
17844 as_fn_error $? "conditional \"HAVE_LIBWEBP\" was never defined.
17845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17846 fi
17847 if test -z "${HAVE_LIBHEIF_TRUE}" && test -z "${HAVE_LIBHEIF_FALSE}"; then
17848 as_fn_error $? "conditional \"HAVE_LIBHEIF\" was never defined.
17849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17850 fi
17851 if test -z "${HAVE_LIBAVIF_TRUE}" && test -z "${HAVE_LIBAVIF_FALSE}"; then
17852 as_fn_error $? "conditional \"HAVE_LIBAVIF\" was never defined.
17853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17854 fi
17855
17856 : "${CONFIG_STATUS=./config.status}"
17857 ac_write_fail=0
17858 ac_clean_files_save=$ac_clean_files
17859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17862 as_write_fail=0
17863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17864 #! $SHELL
17865 # Generated by $as_me.
17866 # Run this file to recreate the current configuration.
17867 # Compiler output produced by configure, useful for debugging
17868 # configure, is in config.log if it exists.
17869
17870 debug=false
17871 ac_cs_recheck=false
17872 ac_cs_silent=false
17873
17874 SHELL=\${CONFIG_SHELL-$SHELL}
17875 export SHELL
17876 _ASEOF
17877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17878 ## -------------------- ##
17879 ## M4sh Initialization. ##
17880 ## -------------------- ##
17881
17882 # Be more Bourne compatible
17883 DUALCASE=1; export DUALCASE # for MKS sh
17884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17885 emulate sh
17886 NULLCMD=:
17887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17888 # is contrary to our usage. Disable this feature.
17889 alias -g '${1+"$@"}'='"$@"'
17890 setopt NO_GLOB_SUBST
17891 else
17892 case `(set -o) 2>/dev/null` in #(
17893 *posix*) :
17894 set -o posix ;; #(
17895 *) :
17896 ;;
17897 esac
17898 fi
17899
17900
17901 as_nl='
17902 '
17903 export as_nl
17904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17905 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17908 # Prefer a ksh shell builtin over an external printf program on Solaris,
17909 # but without wasting forks for bash or zsh.
17910 if test -z "$BASH_VERSION$ZSH_VERSION" \
17911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17912 as_echo='print -r --'
17913 as_echo_n='print -rn --'
17914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17915 as_echo='printf %s\n'
17916 as_echo_n='printf %s'
17917 else
17918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17920 as_echo_n='/usr/ucb/echo -n'
17921 else
17922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17923 as_echo_n_body='eval
17924 arg=$1;
17925 case $arg in #(
17926 *"$as_nl"*)
17927 expr "X$arg" : "X\\(.*\\)$as_nl";
17928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17929 esac;
17930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17931 '
17932 export as_echo_n_body
17933 as_echo_n='sh -c $as_echo_n_body as_echo'
17934 fi
17935 export as_echo_body
17936 as_echo='sh -c $as_echo_body as_echo'
17937 fi
17938
17939 # The user is always right.
17940 if test "${PATH_SEPARATOR+set}" != set; then
17941 PATH_SEPARATOR=:
17942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17944 PATH_SEPARATOR=';'
17945 }
17946 fi
17947
17948
17949 # IFS
17950 # We need space, tab and new line, in precisely that order. Quoting is
17951 # there to prevent editors from complaining about space-tab.
17952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17953 # splitting by setting IFS to empty value.)
17954 IFS=" "" $as_nl"
17955
17956 # Find who we are. Look in the path if we contain no directory separator.
17957 as_myself=
17958 case $0 in #((
17959 *[\\/]* ) as_myself=$0 ;;
17960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17961 for as_dir in $PATH
17962 do
17963 IFS=$as_save_IFS
17964 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17978 exit 1
17979 fi
17980
17981 # Unset variables that we do not need and which cause bugs (e.g. in
17982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17983 # suppresses any "Segmentation fault" message there. '((' could
17984 # trigger a bug in pdksh 5.2.14.
17985 for as_var in BASH_ENV ENV MAIL MAILPATH
17986 do eval test x\${$as_var+set} = xset \
17987 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17988 done
17989 PS1='$ '
17990 PS2='> '
17991 PS4='+ '
17992
17993 # NLS nuisances.
17994 LC_ALL=C
17995 export LC_ALL
17996 LANGUAGE=C
17997 export LANGUAGE
17998
17999 # CDPATH.
18000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18001
18002
18003 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18004 # ----------------------------------------
18005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18007 # script with STATUS, using 1 if that was 0.
18008 as_fn_error ()
18009 {
18010 as_status=$1; test $as_status -eq 0 && as_status=1
18011 if test "$4"; then
18012 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18014 fi
18015 $as_echo "$as_me: error: $2" >&2
18016 as_fn_exit $as_status
18017 } # as_fn_error
18018
18019
18020 # as_fn_set_status STATUS
18021 # -----------------------
18022 # Set $? to STATUS, without forking.
18023 as_fn_set_status ()
18024 {
18025 return $1
18026 } # as_fn_set_status
18027
18028 # as_fn_exit STATUS
18029 # -----------------
18030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18031 as_fn_exit ()
18032 {
18033 set +e
18034 as_fn_set_status $1
18035 exit $1
18036 } # as_fn_exit
18037
18038 # as_fn_unset VAR
18039 # ---------------
18040 # Portably unset VAR.
18041 as_fn_unset ()
18042 {
18043 { eval $1=; unset $1;}
18044 }
18045 as_unset=as_fn_unset
18046 # as_fn_append VAR VALUE
18047 # ----------------------
18048 # Append the text in VALUE to the end of the definition contained in VAR. Take
18049 # advantage of any shell optimizations that allow amortized linear growth over
18050 # repeated appends, instead of the typical quadratic growth present in naive
18051 # implementations.
18052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18053 eval 'as_fn_append ()
18054 {
18055 eval $1+=\$2
18056 }'
18057 else
18058 as_fn_append ()
18059 {
18060 eval $1=\$$1\$2
18061 }
18062 fi # as_fn_append
18063
18064 # as_fn_arith ARG...
18065 # ------------------
18066 # Perform arithmetic evaluation on the ARGs, and store the result in the
18067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18068 # must be portable across $(()) and expr.
18069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18070 eval 'as_fn_arith ()
18071 {
18072 as_val=$(( $* ))
18073 }'
18074 else
18075 as_fn_arith ()
18076 {
18077 as_val=`expr "$@" || test $? -eq 1`
18078 }
18079 fi # as_fn_arith
18080
18081
18082 if expr a : '\(a\)' >/dev/null 2>&1 &&
18083 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18084 as_expr=expr
18085 else
18086 as_expr=false
18087 fi
18088
18089 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18090 as_basename=basename
18091 else
18092 as_basename=false
18093 fi
18094
18095 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18096 as_dirname=dirname
18097 else
18098 as_dirname=false
18099 fi
18100
18101 as_me=`$as_basename -- "$0" ||
18102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18103 X"$0" : 'X\(//\)$' \| \
18104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18105 $as_echo X/"$0" |
18106 sed '/^.*\/\([^/][^/]*\)\/*$/{
18107 s//\1/
18108 q
18109 }
18110 /^X\/\(\/\/\)$/{
18111 s//\1/
18112 q
18113 }
18114 /^X\/\(\/\).*/{
18115 s//\1/
18116 q
18117 }
18118 s/.*/./; q'`
18119
18120 # Avoid depending upon Character Ranges.
18121 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18122 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18123 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18124 as_cr_digits='0123456789'
18125 as_cr_alnum=$as_cr_Letters$as_cr_digits
18126
18127 ECHO_C= ECHO_N= ECHO_T=
18128 case `echo -n x` in #(((((
18129 -n*)
18130 case `echo 'xy\c'` in
18131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18132 xy) ECHO_C='\c';;
18133 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18134 ECHO_T=' ';;
18135 esac;;
18136 *)
18137 ECHO_N='-n';;
18138 esac
18139
18140 rm -f conf$$ conf$$.exe conf$$.file
18141 if test -d conf$$.dir; then
18142 rm -f conf$$.dir/conf$$.file
18143 else
18144 rm -f conf$$.dir
18145 mkdir conf$$.dir 2>/dev/null
18146 fi
18147 if (echo >conf$$.file) 2>/dev/null; then
18148 if ln -s conf$$.file conf$$ 2>/dev/null; then
18149 as_ln_s='ln -s'
18150 # ... but there are two gotchas:
18151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18153 # In both cases, we have to default to `cp -pR'.
18154 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18155 as_ln_s='cp -pR'
18156 elif ln conf$$.file conf$$ 2>/dev/null; then
18157 as_ln_s=ln
18158 else
18159 as_ln_s='cp -pR'
18160 fi
18161 else
18162 as_ln_s='cp -pR'
18163 fi
18164 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18165 rmdir conf$$.dir 2>/dev/null
18166
18167
18168 # as_fn_mkdir_p
18169 # -------------
18170 # Create "$as_dir" as a directory, including parents if necessary.
18171 as_fn_mkdir_p ()
18172 {
18173
18174 case $as_dir in #(
18175 -*) as_dir=./$as_dir;;
18176 esac
18177 test -d "$as_dir" || eval $as_mkdir_p || {
18178 as_dirs=
18179 while :; do
18180 case $as_dir in #(
18181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18182 *) as_qdir=$as_dir;;
18183 esac
18184 as_dirs="'$as_qdir' $as_dirs"
18185 as_dir=`$as_dirname -- "$as_dir" ||
18186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18187 X"$as_dir" : 'X\(//\)[^/]' \| \
18188 X"$as_dir" : 'X\(//\)$' \| \
18189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18190 $as_echo X"$as_dir" |
18191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18192 s//\1/
18193 q
18194 }
18195 /^X\(\/\/\)[^/].*/{
18196 s//\1/
18197 q
18198 }
18199 /^X\(\/\/\)$/{
18200 s//\1/
18201 q
18202 }
18203 /^X\(\/\).*/{
18204 s//\1/
18205 q
18206 }
18207 s/.*/./; q'`
18208 test -d "$as_dir" && break
18209 done
18210 test -z "$as_dirs" || eval "mkdir $as_dirs"
18211 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18212
18213
18214 } # as_fn_mkdir_p
18215 if mkdir -p . 2>/dev/null; then
18216 as_mkdir_p='mkdir -p "$as_dir"'
18217 else
18218 test -d ./-p && rmdir ./-p
18219 as_mkdir_p=false
18220 fi
18221
18222
18223 # as_fn_executable_p FILE
18224 # -----------------------
18225 # Test if FILE is an executable regular file.
18226 as_fn_executable_p ()
18227 {
18228 test -f "$1" && test -x "$1"
18229 } # as_fn_executable_p
18230 as_test_x='test -x'
18231 as_executable_p=as_fn_executable_p
18232
18233 # Sed expression to map a string onto a valid CPP name.
18234 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18235
18236 # Sed expression to map a string onto a valid variable name.
18237 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18238
18239
18240 exec 6>&1
18241 ## ----------------------------------- ##
18242 ## Main body of $CONFIG_STATUS script. ##
18243 ## ----------------------------------- ##
18244 _ASEOF
18245 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18246
18247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18248 # Save the log message, to keep $0 and so on meaningful, and to
18249 # report actual input values of CONFIG_FILES etc. instead of their
18250 # values after options handling.
18251 ac_log="
18252 This file was extended by GD $as_me 2.3.3, which was
18253 generated by GNU Autoconf 2.69. Invocation command line was
18254
18255 CONFIG_FILES = $CONFIG_FILES
18256 CONFIG_HEADERS = $CONFIG_HEADERS
18257 CONFIG_LINKS = $CONFIG_LINKS
18258 CONFIG_COMMANDS = $CONFIG_COMMANDS
18259 $ $0 $@
18260
18261 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18262 "
18263
18264 _ACEOF
18265
18266 case $ac_config_files in *"
18267 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18268 esac
18269
18270 case $ac_config_headers in *"
18271 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18272 esac
18273
18274
18275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18276 # Files that config.status was made for.
18277 config_files="$ac_config_files"
18278 config_headers="$ac_config_headers"
18279 config_commands="$ac_config_commands"
18280
18281 _ACEOF
18282
18283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18284 ac_cs_usage="\
18285 \`$as_me' instantiates files and other configuration actions
18286 from templates according to the current configuration. Unless the files
18287 and actions are specified as TAGs, all are instantiated by default.
18288
18289 Usage: $0 [OPTION]... [TAG]...
18290
18291 -h, --help print this help, then exit
18292 -V, --version print version number and configuration settings, then exit
18293 --config print configuration, then exit
18294 -q, --quiet, --silent
18295 do not print progress messages
18296 -d, --debug don't remove temporary files
18297 --recheck update $as_me by reconfiguring in the same conditions
18298 --file=FILE[:TEMPLATE]
18299 instantiate the configuration file FILE
18300 --header=FILE[:TEMPLATE]
18301 instantiate the configuration header FILE
18302
18303 Configuration files:
18304 $config_files
18305
18306 Configuration headers:
18307 $config_headers
18308
18309 Configuration commands:
18310 $config_commands
18311
18312 Report bugs to <https://github.com/libgd/libgd/issues>.
18313 GD home page: <https://lib.gd>."
18314
18315 _ACEOF
18316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18317 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18318 ac_cs_version="\\
18319 GD config.status 2.3.3
18320 configured by $0, generated by GNU Autoconf 2.69,
18321 with options \\"\$ac_cs_config\\"
18322
18323 Copyright (C) 2012 Free Software Foundation, Inc.
18324 This config.status script is free software; the Free Software Foundation
18325 gives unlimited permission to copy, distribute and modify it."
18326
18327 ac_pwd='$ac_pwd'
18328 srcdir='$srcdir'
18329 INSTALL='$INSTALL'
18330 MKDIR_P='$MKDIR_P'
18331 AWK='$AWK'
18332 test -n "\$AWK" || AWK=awk
18333 _ACEOF
18334
18335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18336 # The default lists apply if the user does not specify any file.
18337 ac_need_defaults=:
18338 while test $# != 0
18339 do
18340 case $1 in
18341 --*=?*)
18342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18344 ac_shift=:
18345 ;;
18346 --*=)
18347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18348 ac_optarg=
18349 ac_shift=:
18350 ;;
18351 *)
18352 ac_option=$1
18353 ac_optarg=$2
18354 ac_shift=shift
18355 ;;
18356 esac
18357
18358 case $ac_option in
18359 # Handling of the options.
18360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18361 ac_cs_recheck=: ;;
18362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18363 $as_echo "$ac_cs_version"; exit ;;
18364 --config | --confi | --conf | --con | --co | --c )
18365 $as_echo "$ac_cs_config"; exit ;;
18366 --debug | --debu | --deb | --de | --d | -d )
18367 debug=: ;;
18368 --file | --fil | --fi | --f )
18369 $ac_shift
18370 case $ac_optarg in
18371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18372 '') as_fn_error $? "missing file argument" ;;
18373 esac
18374 as_fn_append CONFIG_FILES " '$ac_optarg'"
18375 ac_need_defaults=false;;
18376 --header | --heade | --head | --hea )
18377 $ac_shift
18378 case $ac_optarg in
18379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18380 esac
18381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18382 ac_need_defaults=false;;
18383 --he | --h)
18384 # Conflict between --help and --header
18385 as_fn_error $? "ambiguous option: \`$1'
18386 Try \`$0 --help' for more information.";;
18387 --help | --hel | -h )
18388 $as_echo "$ac_cs_usage"; exit ;;
18389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18391 ac_cs_silent=: ;;
18392
18393 # This is an error.
18394 -*) as_fn_error $? "unrecognized option: \`$1'
18395 Try \`$0 --help' for more information." ;;
18396
18397 *) as_fn_append ac_config_targets " $1"
18398 ac_need_defaults=false ;;
18399
18400 esac
18401 shift
18402 done
18403
18404 ac_configure_extra_args=
18405
18406 if $ac_cs_silent; then
18407 exec 6>/dev/null
18408 ac_configure_extra_args="$ac_configure_extra_args --silent"
18409 fi
18410
18411 _ACEOF
18412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18413 if \$ac_cs_recheck; then
18414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18415 shift
18416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18417 CONFIG_SHELL='$SHELL'
18418 export CONFIG_SHELL
18419 exec "\$@"
18420 fi
18421
18422 _ACEOF
18423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18424 exec 5>>config.log
18425 {
18426 echo
18427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18428 ## Running $as_me. ##
18429 _ASBOX
18430 $as_echo "$ac_log"
18431 } >&5
18432
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 #
18436 # INIT-COMMANDS
18437 #
18438 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18439
18440
18441 # The HP-UX ksh and POSIX shell print the target directory to stdout
18442 # if CDPATH is set.
18443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18444
18445 sed_quote_subst='$sed_quote_subst'
18446 double_quote_subst='$double_quote_subst'
18447 delay_variable_subst='$delay_variable_subst'
18448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18449 macro_revision='`$ECHO "$macro_revision" | $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 OBJDUMP='`$ECHO "$OBJDUMP" | $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 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18488 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18489 AR='`$ECHO "$AR" | $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
18584 LTCC='$LTCC'
18585 LTCFLAGS='$LTCFLAGS'
18586 compiler='$compiler_DEFAULT'
18587
18588 # A function that is used when there is no print builtin or printf.
18589 func_fallback_echo ()
18590 {
18591 eval 'cat <<_LTECHO_EOF
18592 \$1
18593 _LTECHO_EOF'
18594 }
18595
18596 # Quote evaled strings.
18597 for var in SHELL \
18598 ECHO \
18599 PATH_SEPARATOR \
18600 SED \
18601 GREP \
18602 EGREP \
18603 FGREP \
18604 LD \
18605 NM \
18606 LN_S \
18607 lt_SP2NL \
18608 lt_NL2SP \
18609 reload_flag \
18610 OBJDUMP \
18611 deplibs_check_method \
18612 file_magic_cmd \
18613 file_magic_glob \
18614 want_nocaseglob \
18615 DLLTOOL \
18616 sharedlib_from_linklib_cmd \
18617 AR \
18618 AR_FLAGS \
18619 archiver_list_spec \
18620 STRIP \
18621 RANLIB \
18622 CC \
18623 CFLAGS \
18624 compiler \
18625 lt_cv_sys_global_symbol_pipe \
18626 lt_cv_sys_global_symbol_to_cdecl \
18627 lt_cv_sys_global_symbol_to_import \
18628 lt_cv_sys_global_symbol_to_c_name_address \
18629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18630 lt_cv_nm_interface \
18631 nm_file_list_spec \
18632 lt_cv_truncate_bin \
18633 lt_prog_compiler_no_builtin_flag \
18634 lt_prog_compiler_pic \
18635 lt_prog_compiler_wl \
18636 lt_prog_compiler_static \
18637 lt_cv_prog_compiler_c_o \
18638 need_locks \
18639 MANIFEST_TOOL \
18640 DSYMUTIL \
18641 NMEDIT \
18642 LIPO \
18643 OTOOL \
18644 OTOOL64 \
18645 shrext_cmds \
18646 export_dynamic_flag_spec \
18647 whole_archive_flag_spec \
18648 compiler_needs_object \
18649 with_gnu_ld \
18650 allow_undefined_flag \
18651 no_undefined_flag \
18652 hardcode_libdir_flag_spec \
18653 hardcode_libdir_separator \
18654 exclude_expsyms \
18655 include_expsyms \
18656 file_list_spec \
18657 variables_saved_for_relink \
18658 libname_spec \
18659 library_names_spec \
18660 soname_spec \
18661 install_override_mode \
18662 finish_eval \
18663 old_striplib \
18664 striplib; do
18665 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18666 *[\\\\\\\`\\"\\\$]*)
18667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18668 ;;
18669 *)
18670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18671 ;;
18672 esac
18673 done
18674
18675 # Double-quote double-evaled strings.
18676 for var in reload_cmds \
18677 old_postinstall_cmds \
18678 old_postuninstall_cmds \
18679 old_archive_cmds \
18680 extract_expsyms_cmds \
18681 old_archive_from_new_cmds \
18682 old_archive_from_expsyms_cmds \
18683 archive_cmds \
18684 archive_expsym_cmds \
18685 module_cmds \
18686 module_expsym_cmds \
18687 export_symbols_cmds \
18688 prelink_cmds \
18689 postlink_cmds \
18690 postinstall_cmds \
18691 postuninstall_cmds \
18692 finish_cmds \
18693 sys_lib_search_path_spec \
18694 configure_time_dlsearch_path \
18695 configure_time_lt_sys_library_path; do
18696 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18697 *[\\\\\\\`\\"\\\$]*)
18698 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18699 ;;
18700 *)
18701 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18702 ;;
18703 esac
18704 done
18705
18706 ac_aux_dir='$ac_aux_dir'
18707
18708 # See if we are running on zsh, and set the options that allow our
18709 # commands through without removal of \ escapes INIT.
18710 if test -n "\${ZSH_VERSION+set}"; then
18711 setopt NO_GLOB_SUBST
18712 fi
18713
18714
18715 PACKAGE='$PACKAGE'
18716 VERSION='$VERSION'
18717 RM='$RM'
18718 ofile='$ofile'
18719
18720
18721
18722
18723 _ACEOF
18724
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726
18727 # Handling of arguments.
18728 for ac_config_target in $ac_config_targets
18729 do
18730 case $ac_config_target in
18731 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.hin" ;;
18732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18733 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18735 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18736 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18737 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
18738 "config/gdlib.pc") CONFIG_FILES="$CONFIG_FILES config/gdlib.pc" ;;
18739
18740 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18741 esac
18742 done
18743
18744
18745 # If the user did not use the arguments to specify the items to instantiate,
18746 # then the envvar interface is used. Set only those that are not.
18747 # We use the long form for the default assignment because of an extremely
18748 # bizarre bug on SunOS 4.1.3.
18749 if $ac_need_defaults; then
18750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18753 fi
18754
18755 # Have a temporary directory for convenience. Make it in the build tree
18756 # simply because there is no reason against having it here, and in addition,
18757 # creating and moving files from /tmp can sometimes cause problems.
18758 # Hook for its removal unless debugging.
18759 # Note that there is a small window in which the directory will not be cleaned:
18760 # after its creation but before its name has been assigned to `$tmp'.
18761 $debug ||
18762 {
18763 tmp= ac_tmp=
18764 trap 'exit_status=$?
18765 : "${ac_tmp:=$tmp}"
18766 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18767 ' 0
18768 trap 'as_fn_exit 1' 1 2 13 15
18769 }
18770 # Create a (secure) tmp directory for tmp files.
18771
18772 {
18773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18774 test -d "$tmp"
18775 } ||
18776 {
18777 tmp=./conf$$-$RANDOM
18778 (umask 077 && mkdir "$tmp")
18779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18780 ac_tmp=$tmp
18781
18782 # Set up the scripts for CONFIG_FILES section.
18783 # No need to generate them if there are no CONFIG_FILES.
18784 # This happens for instance with `./config.status config.h'.
18785 if test -n "$CONFIG_FILES"; then
18786
18787
18788 ac_cr=`echo X | tr X '\015'`
18789 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18790 # But we know of no other shell where ac_cr would be empty at this
18791 # point, so we can use a bashism as a fallback.
18792 if test "x$ac_cr" = x; then
18793 eval ac_cr=\$\'\\r\'
18794 fi
18795 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18796 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18797 ac_cs_awk_cr='\\r'
18798 else
18799 ac_cs_awk_cr=$ac_cr
18800 fi
18801
18802 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18803 _ACEOF
18804
18805
18806 {
18807 echo "cat >conf$$subs.awk <<_ACEOF" &&
18808 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18809 echo "_ACEOF"
18810 } >conf$$subs.sh ||
18811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18812 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18813 ac_delim='%!_!# '
18814 for ac_last_try in false false false false false :; do
18815 . ./conf$$subs.sh ||
18816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18817
18818 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18819 if test $ac_delim_n = $ac_delim_num; then
18820 break
18821 elif $ac_last_try; then
18822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18823 else
18824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18825 fi
18826 done
18827 rm -f conf$$subs.sh
18828
18829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18831 _ACEOF
18832 sed -n '
18833 h
18834 s/^/S["/; s/!.*/"]=/
18835 p
18836 g
18837 s/^[^!]*!//
18838 :repl
18839 t repl
18840 s/'"$ac_delim"'$//
18841 t delim
18842 :nl
18843 h
18844 s/\(.\{148\}\)..*/\1/
18845 t more1
18846 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18847 p
18848 n
18849 b repl
18850 :more1
18851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18852 p
18853 g
18854 s/.\{148\}//
18855 t nl
18856 :delim
18857 h
18858 s/\(.\{148\}\)..*/\1/
18859 t more2
18860 s/["\\]/\\&/g; s/^/"/; s/$/"/
18861 p
18862 b
18863 :more2
18864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18865 p
18866 g
18867 s/.\{148\}//
18868 t delim
18869 ' <conf$$subs.awk | sed '
18870 /^[^""]/{
18871 N
18872 s/\n//
18873 }
18874 ' >>$CONFIG_STATUS || ac_write_fail=1
18875 rm -f conf$$subs.awk
18876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18877 _ACAWK
18878 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18879 for (key in S) S_is_set[key] = 1
18880 FS = ""
18881
18882 }
18883 {
18884 line = $ 0
18885 nfields = split(line, field, "@")
18886 substed = 0
18887 len = length(field[1])
18888 for (i = 2; i < nfields; i++) {
18889 key = field[i]
18890 keylen = length(key)
18891 if (S_is_set[key]) {
18892 value = S[key]
18893 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18894 len += length(value) + length(field[++i])
18895 substed = 1
18896 } else
18897 len += 1 + keylen
18898 }
18899
18900 print line
18901 }
18902
18903 _ACAWK
18904 _ACEOF
18905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18906 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18907 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18908 else
18909 cat
18910 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18911 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18912 _ACEOF
18913
18914 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18915 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18916 # trailing colons and then remove the whole line if VPATH becomes empty
18917 # (actually we leave an empty line to preserve line numbers).
18918 if test "x$srcdir" = x.; then
18919 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18920 h
18921 s///
18922 s/^/:/
18923 s/[ ]*$/:/
18924 s/:\$(srcdir):/:/g
18925 s/:\${srcdir}:/:/g
18926 s/:@srcdir@:/:/g
18927 s/^:*//
18928 s/:*$//
18929 x
18930 s/\(=[ ]*\).*/\1/
18931 G
18932 s/\n//
18933 s/^[^=]*=[ ]*$//
18934 }'
18935 fi
18936
18937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938 fi # test -n "$CONFIG_FILES"
18939
18940 # Set up the scripts for CONFIG_HEADERS section.
18941 # No need to generate them if there are no CONFIG_HEADERS.
18942 # This happens for instance with `./config.status Makefile'.
18943 if test -n "$CONFIG_HEADERS"; then
18944 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18945 BEGIN {
18946 _ACEOF
18947
18948 # Transform confdefs.h into an awk script `defines.awk', embedded as
18949 # here-document in config.status, that substitutes the proper values into
18950 # config.h.in to produce config.h.
18951
18952 # Create a delimiter string that does not exist in confdefs.h, to ease
18953 # handling of long lines.
18954 ac_delim='%!_!# '
18955 for ac_last_try in false false :; do
18956 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18957 if test -z "$ac_tt"; then
18958 break
18959 elif $ac_last_try; then
18960 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18961 else
18962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18963 fi
18964 done
18965
18966 # For the awk script, D is an array of macro values keyed by name,
18967 # likewise P contains macro parameters if any. Preserve backslash
18968 # newline sequences.
18969
18970 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18971 sed -n '
18972 s/.\{148\}/&'"$ac_delim"'/g
18973 t rset
18974 :rset
18975 s/^[ ]*#[ ]*define[ ][ ]*/ /
18976 t def
18977 d
18978 :def
18979 s/\\$//
18980 t bsnl
18981 s/["\\]/\\&/g
18982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18983 D["\1"]=" \3"/p
18984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18985 d
18986 :bsnl
18987 s/["\\]/\\&/g
18988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18989 D["\1"]=" \3\\\\\\n"\\/p
18990 t cont
18991 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18992 t cont
18993 d
18994 :cont
18995 n
18996 s/.\{148\}/&'"$ac_delim"'/g
18997 t clear
18998 :clear
18999 s/\\$//
19000 t bsnlc
19001 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19002 d
19003 :bsnlc
19004 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19005 b cont
19006 ' <confdefs.h | sed '
19007 s/'"$ac_delim"'/"\\\
19008 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19009
19010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19011 for (key in D) D_is_set[key] = 1
19012 FS = ""
19013 }
19014 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19015 line = \$ 0
19016 split(line, arg, " ")
19017 if (arg[1] == "#") {
19018 defundef = arg[2]
19019 mac1 = arg[3]
19020 } else {
19021 defundef = substr(arg[1], 2)
19022 mac1 = arg[2]
19023 }
19024 split(mac1, mac2, "(") #)
19025 macro = mac2[1]
19026 prefix = substr(line, 1, index(line, defundef) - 1)
19027 if (D_is_set[macro]) {
19028 # Preserve the white space surrounding the "#".
19029 print prefix "define", macro P[macro] D[macro]
19030 next
19031 } else {
19032 # Replace #undef with comments. This is necessary, for example,
19033 # in the case of _POSIX_SOURCE, which is predefined and required
19034 # on some systems where configure will not decide to define it.
19035 if (defundef == "undef") {
19036 print "/*", prefix defundef, macro, "*/"
19037 next
19038 }
19039 }
19040 }
19041 { print }
19042 _ACAWK
19043 _ACEOF
19044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19045 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19046 fi # test -n "$CONFIG_HEADERS"
19047
19048
19049 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19050 shift
19051 for ac_tag
19052 do
19053 case $ac_tag in
19054 :[FHLC]) ac_mode=$ac_tag; continue;;
19055 esac
19056 case $ac_mode$ac_tag in
19057 :[FHL]*:*);;
19058 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19059 :[FH]-) ac_tag=-:-;;
19060 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19061 esac
19062 ac_save_IFS=$IFS
19063 IFS=:
19064 set x $ac_tag
19065 IFS=$ac_save_IFS
19066 shift
19067 ac_file=$1
19068 shift
19069
19070 case $ac_mode in
19071 :L) ac_source=$1;;
19072 :[FH])
19073 ac_file_inputs=
19074 for ac_f
19075 do
19076 case $ac_f in
19077 -) ac_f="$ac_tmp/stdin";;
19078 *) # Look for the file first in the build tree, then in the source tree
19079 # (if the path is not absolute). The absolute path cannot be DOS-style,
19080 # because $ac_f cannot contain `:'.
19081 test -f "$ac_f" ||
19082 case $ac_f in
19083 [\\/$]*) false;;
19084 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19085 esac ||
19086 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19087 esac
19088 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19089 as_fn_append ac_file_inputs " '$ac_f'"
19090 done
19091
19092 # Let's still pretend it is `configure' which instantiates (i.e., don't
19093 # use $as_me), people would be surprised to read:
19094 # /* config.h. Generated by config.status. */
19095 configure_input='Generated from '`
19096 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19097 `' by configure.'
19098 if test x"$ac_file" != x-; then
19099 configure_input="$ac_file. $configure_input"
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19101 $as_echo "$as_me: creating $ac_file" >&6;}
19102 fi
19103 # Neutralize special characters interpreted by sed in replacement strings.
19104 case $configure_input in #(
19105 *\&* | *\|* | *\\* )
19106 ac_sed_conf_input=`$as_echo "$configure_input" |
19107 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19108 *) ac_sed_conf_input=$configure_input;;
19109 esac
19110
19111 case $ac_tag in
19112 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19114 esac
19115 ;;
19116 esac
19117
19118 ac_dir=`$as_dirname -- "$ac_file" ||
19119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19120 X"$ac_file" : 'X\(//\)[^/]' \| \
19121 X"$ac_file" : 'X\(//\)$' \| \
19122 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19123 $as_echo X"$ac_file" |
19124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19125 s//\1/
19126 q
19127 }
19128 /^X\(\/\/\)[^/].*/{
19129 s//\1/
19130 q
19131 }
19132 /^X\(\/\/\)$/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\).*/{
19137 s//\1/
19138 q
19139 }
19140 s/.*/./; q'`
19141 as_dir="$ac_dir"; as_fn_mkdir_p
19142 ac_builddir=.
19143
19144 case "$ac_dir" in
19145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19146 *)
19147 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19148 # A ".." for each directory in $ac_dir_suffix.
19149 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19150 case $ac_top_builddir_sub in
19151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19153 esac ;;
19154 esac
19155 ac_abs_top_builddir=$ac_pwd
19156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19157 # for backward compatibility:
19158 ac_top_builddir=$ac_top_build_prefix
19159
19160 case $srcdir in
19161 .) # We are building in place.
19162 ac_srcdir=.
19163 ac_top_srcdir=$ac_top_builddir_sub
19164 ac_abs_top_srcdir=$ac_pwd ;;
19165 [\\/]* | ?:[\\/]* ) # Absolute name.
19166 ac_srcdir=$srcdir$ac_dir_suffix;
19167 ac_top_srcdir=$srcdir
19168 ac_abs_top_srcdir=$srcdir ;;
19169 *) # Relative name.
19170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19171 ac_top_srcdir=$ac_top_build_prefix$srcdir
19172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19173 esac
19174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19175
19176
19177 case $ac_mode in
19178 :F)
19179 #
19180 # CONFIG_FILE
19181 #
19182
19183 case $INSTALL in
19184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19186 esac
19187 ac_MKDIR_P=$MKDIR_P
19188 case $MKDIR_P in
19189 [\\/$]* | ?:[\\/]* ) ;;
19190 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19191 esac
19192 _ACEOF
19193
19194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19195 # If the template does not know about datarootdir, expand it.
19196 # FIXME: This hack should be removed a few years after 2.60.
19197 ac_datarootdir_hack=; ac_datarootdir_seen=
19198 ac_sed_dataroot='
19199 /datarootdir/ {
19200 p
19201 q
19202 }
19203 /@datadir@/p
19204 /@docdir@/p
19205 /@infodir@/p
19206 /@localedir@/p
19207 /@mandir@/p'
19208 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19209 *datarootdir*) ac_datarootdir_seen=yes;;
19210 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19212 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19213 _ACEOF
19214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19215 ac_datarootdir_hack='
19216 s&@datadir@&$datadir&g
19217 s&@docdir@&$docdir&g
19218 s&@infodir@&$infodir&g
19219 s&@localedir@&$localedir&g
19220 s&@mandir@&$mandir&g
19221 s&\\\${datarootdir}&$datarootdir&g' ;;
19222 esac
19223 _ACEOF
19224
19225 # Neutralize VPATH when `$srcdir' = `.'.
19226 # Shell code in configure.ac might set extrasub.
19227 # FIXME: do we really want to maintain this feature?
19228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19229 ac_sed_extra="$ac_vpsub
19230 $extrasub
19231 _ACEOF
19232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19233 :t
19234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19235 s|@configure_input@|$ac_sed_conf_input|;t t
19236 s&@top_builddir@&$ac_top_builddir_sub&;t t
19237 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19238 s&@srcdir@&$ac_srcdir&;t t
19239 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19240 s&@top_srcdir@&$ac_top_srcdir&;t t
19241 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19242 s&@builddir@&$ac_builddir&;t t
19243 s&@abs_builddir@&$ac_abs_builddir&;t t
19244 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19245 s&@INSTALL@&$ac_INSTALL&;t t
19246 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19247 $ac_datarootdir_hack
19248 "
19249 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19250 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19251
19252 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19253 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19255 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19257 which seems to be undefined. Please make sure it is defined" >&5
19258 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19259 which seems to be undefined. Please make sure it is defined" >&2;}
19260
19261 rm -f "$ac_tmp/stdin"
19262 case $ac_file in
19263 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19264 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19265 esac \
19266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19267 ;;
19268 :H)
19269 #
19270 # CONFIG_HEADER
19271 #
19272 if test x"$ac_file" != x-; then
19273 {
19274 $as_echo "/* $configure_input */" \
19275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19276 } >"$ac_tmp/config.h" \
19277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19278 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19280 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19281 else
19282 rm -f "$ac_file"
19283 mv "$ac_tmp/config.h" "$ac_file" \
19284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19285 fi
19286 else
19287 $as_echo "/* $configure_input */" \
19288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19289 || as_fn_error $? "could not create -" "$LINENO" 5
19290 fi
19291 # Compute "$ac_file"'s index in $config_headers.
19292 _am_arg="$ac_file"
19293 _am_stamp_count=1
19294 for _am_header in $config_headers :; do
19295 case $_am_header in
19296 $_am_arg | $_am_arg:* )
19297 break ;;
19298 * )
19299 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19300 esac
19301 done
19302 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19303 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19304 X"$_am_arg" : 'X\(//\)[^/]' \| \
19305 X"$_am_arg" : 'X\(//\)$' \| \
19306 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19307 $as_echo X"$_am_arg" |
19308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19309 s//\1/
19310 q
19311 }
19312 /^X\(\/\/\)[^/].*/{
19313 s//\1/
19314 q
19315 }
19316 /^X\(\/\/\)$/{
19317 s//\1/
19318 q
19319 }
19320 /^X\(\/\).*/{
19321 s//\1/
19322 q
19323 }
19324 s/.*/./; q'`/stamp-h$_am_stamp_count
19325 ;;
19326
19327 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19328 $as_echo "$as_me: executing $ac_file commands" >&6;}
19329 ;;
19330 esac
19331
19332
19333 case $ac_file$ac_mode in
19334 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19335 # Older Autoconf quotes --file arguments for eval, but not when files
19336 # are listed without --file. Let's play safe and only enable the eval
19337 # if we detect the quoting.
19338 # TODO: see whether this extra hack can be removed once we start
19339 # requiring Autoconf 2.70 or later.
19340 case $CONFIG_FILES in #(
19341 *\'*) :
19342 eval set x "$CONFIG_FILES" ;; #(
19343 *) :
19344 set x $CONFIG_FILES ;; #(
19345 *) :
19346 ;;
19347 esac
19348 shift
19349 # Used to flag and report bootstrapping failures.
19350 am_rc=0
19351 for am_mf
19352 do
19353 # Strip MF so we end up with the name of the file.
19354 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19355 # Check whether this is an Automake generated Makefile which includes
19356 # dependency-tracking related rules and includes.
19357 # Grep'ing the whole file directly is not great: AIX grep has a line
19358 # limit of 2048, but all sed's we know have understand at least 4000.
19359 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19360 || continue
19361 am_dirpart=`$as_dirname -- "$am_mf" ||
19362 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19363 X"$am_mf" : 'X\(//\)[^/]' \| \
19364 X"$am_mf" : 'X\(//\)$' \| \
19365 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19366 $as_echo X"$am_mf" |
19367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19368 s//\1/
19369 q
19370 }
19371 /^X\(\/\/\)[^/].*/{
19372 s//\1/
19373 q
19374 }
19375 /^X\(\/\/\)$/{
19376 s//\1/
19377 q
19378 }
19379 /^X\(\/\).*/{
19380 s//\1/
19381 q
19382 }
19383 s/.*/./; q'`
19384 am_filepart=`$as_basename -- "$am_mf" ||
19385 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19386 X"$am_mf" : 'X\(//\)$' \| \
19387 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19388 $as_echo X/"$am_mf" |
19389 sed '/^.*\/\([^/][^/]*\)\/*$/{
19390 s//\1/
19391 q
19392 }
19393 /^X\/\(\/\/\)$/{
19394 s//\1/
19395 q
19396 }
19397 /^X\/\(\/\).*/{
19398 s//\1/
19399 q
19400 }
19401 s/.*/./; q'`
19402 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19403 && sed -e '/# am--include-marker/d' "$am_filepart" \
19404 | $MAKE -f - am--depfiles" >&5
19405 (cd "$am_dirpart" \
19406 && sed -e '/# am--include-marker/d' "$am_filepart" \
19407 | $MAKE -f - am--depfiles) >&5 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } || am_rc=$?
19411 done
19412 if test $am_rc -ne 0; then
19413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19415 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19416 for automatic dependency tracking. Try re-running configure with the
19417 '--disable-dependency-tracking' option to at least be able to build
19418 the package (albeit without support for automatic dependency tracking).
19419 See \`config.log' for more details" "$LINENO" 5; }
19420 fi
19421 { am_dirpart=; unset am_dirpart;}
19422 { am_filepart=; unset am_filepart;}
19423 { am_mf=; unset am_mf;}
19424 { am_rc=; unset am_rc;}
19425 rm -f conftest-deps.mk
19426 }
19427 ;;
19428 "libtool":C)
19429
19430 # See if we are running on zsh, and set the options that allow our
19431 # commands through without removal of \ escapes.
19432 if test -n "${ZSH_VERSION+set}"; then
19433 setopt NO_GLOB_SUBST
19434 fi
19435
19436 cfgfile=${ofile}T
19437 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19438 $RM "$cfgfile"
19439
19440 cat <<_LT_EOF >> "$cfgfile"
19441 #! $SHELL
19442 # Generated automatically by $as_me ($PACKAGE) $VERSION
19443 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19444
19445 # Provide generalized library-building support services.
19446 # Written by Gordon Matzigkeit, 1996
19447
19448 # Copyright (C) 2014 Free Software Foundation, Inc.
19449 # This is free software; see the source for copying conditions. There is NO
19450 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19451
19452 # GNU Libtool is free software; you can redistribute it and/or modify
19453 # it under the terms of the GNU General Public License as published by
19454 # the Free Software Foundation; either version 2 of of the License, or
19455 # (at your option) any later version.
19456 #
19457 # As a special exception to the GNU General Public License, if you
19458 # distribute this file as part of a program or library that is built
19459 # using GNU Libtool, you may include this file under the same
19460 # distribution terms that you use for the rest of that program.
19461 #
19462 # GNU Libtool is distributed in the hope that it will be useful, but
19463 # WITHOUT ANY WARRANTY; without even the implied warranty of
19464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19465 # GNU General Public License for more details.
19466 #
19467 # You should have received a copy of the GNU General Public License
19468 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19469
19470
19471 # The names of the tagged configurations supported by this script.
19472 available_tags=''
19473
19474 # Configured defaults for sys_lib_dlsearch_path munging.
19475 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19476
19477 # ### BEGIN LIBTOOL CONFIG
19478
19479 # Which release of libtool.m4 was used?
19480 macro_version=$macro_version
19481 macro_revision=$macro_revision
19482
19483 # Whether or not to build shared libraries.
19484 build_libtool_libs=$enable_shared
19485
19486 # Whether or not to build static libraries.
19487 build_old_libs=$enable_static
19488
19489 # What type of objects to build.
19490 pic_mode=$pic_mode
19491
19492 # Whether or not to optimize for fast installation.
19493 fast_install=$enable_fast_install
19494
19495 # Shared archive member basename,for filename based shared library versioning on AIX.
19496 shared_archive_member_spec=$shared_archive_member_spec
19497
19498 # Shell to use when invoking shell scripts.
19499 SHELL=$lt_SHELL
19500
19501 # An echo program that protects backslashes.
19502 ECHO=$lt_ECHO
19503
19504 # The PATH separator for the build system.
19505 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19506
19507 # The host system.
19508 host_alias=$host_alias
19509 host=$host
19510 host_os=$host_os
19511
19512 # The build system.
19513 build_alias=$build_alias
19514 build=$build
19515 build_os=$build_os
19516
19517 # A sed program that does not truncate output.
19518 SED=$lt_SED
19519
19520 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19521 Xsed="\$SED -e 1s/^X//"
19522
19523 # A grep program that handles long lines.
19524 GREP=$lt_GREP
19525
19526 # An ERE matcher.
19527 EGREP=$lt_EGREP
19528
19529 # A literal string matcher.
19530 FGREP=$lt_FGREP
19531
19532 # A BSD- or MS-compatible name lister.
19533 NM=$lt_NM
19534
19535 # Whether we need soft or hard links.
19536 LN_S=$lt_LN_S
19537
19538 # What is the maximum length of a command?
19539 max_cmd_len=$max_cmd_len
19540
19541 # Object file suffix (normally "o").
19542 objext=$ac_objext
19543
19544 # Executable file suffix (normally "").
19545 exeext=$exeext
19546
19547 # whether the shell understands "unset".
19548 lt_unset=$lt_unset
19549
19550 # turn spaces into newlines.
19551 SP2NL=$lt_lt_SP2NL
19552
19553 # turn newlines into spaces.
19554 NL2SP=$lt_lt_NL2SP
19555
19556 # convert \$build file names to \$host format.
19557 to_host_file_cmd=$lt_cv_to_host_file_cmd
19558
19559 # convert \$build files to toolchain format.
19560 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19561
19562 # An object symbol dumper.
19563 OBJDUMP=$lt_OBJDUMP
19564
19565 # Method to check whether dependent libraries are shared objects.
19566 deplibs_check_method=$lt_deplibs_check_method
19567
19568 # Command to use when deplibs_check_method = "file_magic".
19569 file_magic_cmd=$lt_file_magic_cmd
19570
19571 # How to find potential files when deplibs_check_method = "file_magic".
19572 file_magic_glob=$lt_file_magic_glob
19573
19574 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19575 want_nocaseglob=$lt_want_nocaseglob
19576
19577 # DLL creation program.
19578 DLLTOOL=$lt_DLLTOOL
19579
19580 # Command to associate shared and link libraries.
19581 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19582
19583 # The archiver.
19584 AR=$lt_AR
19585
19586 # Flags to create an archive.
19587 AR_FLAGS=$lt_AR_FLAGS
19588
19589 # How to feed a file listing to the archiver.
19590 archiver_list_spec=$lt_archiver_list_spec
19591
19592 # A symbol stripping program.
19593 STRIP=$lt_STRIP
19594
19595 # Commands used to install an old-style archive.
19596 RANLIB=$lt_RANLIB
19597 old_postinstall_cmds=$lt_old_postinstall_cmds
19598 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19599
19600 # Whether to use a lock for old archive extraction.
19601 lock_old_archive_extraction=$lock_old_archive_extraction
19602
19603 # A C compiler.
19604 LTCC=$lt_CC
19605
19606 # LTCC compiler flags.
19607 LTCFLAGS=$lt_CFLAGS
19608
19609 # Take the output of nm and produce a listing of raw symbols and C names.
19610 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19611
19612 # Transform the output of nm in a proper C declaration.
19613 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19614
19615 # Transform the output of nm into a list of symbols to manually relocate.
19616 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19617
19618 # Transform the output of nm in a C name address pair.
19619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19620
19621 # Transform the output of nm in a C name address pair when lib prefix is needed.
19622 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19623
19624 # The name lister interface.
19625 nm_interface=$lt_lt_cv_nm_interface
19626
19627 # Specify filename containing input files for \$NM.
19628 nm_file_list_spec=$lt_nm_file_list_spec
19629
19630 # The root where to search for dependent libraries,and where our libraries should be installed.
19631 lt_sysroot=$lt_sysroot
19632
19633 # Command to truncate a binary pipe.
19634 lt_truncate_bin=$lt_lt_cv_truncate_bin
19635
19636 # The name of the directory that contains temporary libtool files.
19637 objdir=$objdir
19638
19639 # Used to examine libraries when file_magic_cmd begins with "file".
19640 MAGIC_CMD=$MAGIC_CMD
19641
19642 # Must we lock files when doing compilation?
19643 need_locks=$lt_need_locks
19644
19645 # Manifest tool.
19646 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19647
19648 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19649 DSYMUTIL=$lt_DSYMUTIL
19650
19651 # Tool to change global to local symbols on Mac OS X.
19652 NMEDIT=$lt_NMEDIT
19653
19654 # Tool to manipulate fat objects and archives on Mac OS X.
19655 LIPO=$lt_LIPO
19656
19657 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19658 OTOOL=$lt_OTOOL
19659
19660 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19661 OTOOL64=$lt_OTOOL64
19662
19663 # Old archive suffix (normally "a").
19664 libext=$libext
19665
19666 # Shared library suffix (normally ".so").
19667 shrext_cmds=$lt_shrext_cmds
19668
19669 # The commands to extract the exported symbol list from a shared archive.
19670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19671
19672 # Variables whose values should be saved in libtool wrapper scripts and
19673 # restored at link time.
19674 variables_saved_for_relink=$lt_variables_saved_for_relink
19675
19676 # Do we need the "lib" prefix for modules?
19677 need_lib_prefix=$need_lib_prefix
19678
19679 # Do we need a version for libraries?
19680 need_version=$need_version
19681
19682 # Library versioning type.
19683 version_type=$version_type
19684
19685 # Shared library runtime path variable.
19686 runpath_var=$runpath_var
19687
19688 # Shared library path variable.
19689 shlibpath_var=$shlibpath_var
19690
19691 # Is shlibpath searched before the hard-coded library search path?
19692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19693
19694 # Format of library name prefix.
19695 libname_spec=$lt_libname_spec
19696
19697 # List of archive names. First name is the real one, the rest are links.
19698 # The last name is the one that the linker finds with -lNAME
19699 library_names_spec=$lt_library_names_spec
19700
19701 # The coded name of the library, if different from the real name.
19702 soname_spec=$lt_soname_spec
19703
19704 # Permission mode override for installation of shared libraries.
19705 install_override_mode=$lt_install_override_mode
19706
19707 # Command to use after installation of a shared archive.
19708 postinstall_cmds=$lt_postinstall_cmds
19709
19710 # Command to use after uninstallation of a shared archive.
19711 postuninstall_cmds=$lt_postuninstall_cmds
19712
19713 # Commands used to finish a libtool library installation in a directory.
19714 finish_cmds=$lt_finish_cmds
19715
19716 # As "finish_cmds", except a single script fragment to be evaled but
19717 # not shown.
19718 finish_eval=$lt_finish_eval
19719
19720 # Whether we should hardcode library paths into libraries.
19721 hardcode_into_libs=$hardcode_into_libs
19722
19723 # Compile-time system search path for libraries.
19724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19725
19726 # Detected run-time system search path for libraries.
19727 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19728
19729 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19730 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19731
19732 # Whether dlopen is supported.
19733 dlopen_support=$enable_dlopen
19734
19735 # Whether dlopen of programs is supported.
19736 dlopen_self=$enable_dlopen_self
19737
19738 # Whether dlopen of statically linked programs is supported.
19739 dlopen_self_static=$enable_dlopen_self_static
19740
19741 # Commands to strip libraries.
19742 old_striplib=$lt_old_striplib
19743 striplib=$lt_striplib
19744
19745
19746 # The linker used to build libraries.
19747 LD=$lt_LD
19748
19749 # How to create reloadable object files.
19750 reload_flag=$lt_reload_flag
19751 reload_cmds=$lt_reload_cmds
19752
19753 # Commands used to build an old-style archive.
19754 old_archive_cmds=$lt_old_archive_cmds
19755
19756 # A language specific compiler.
19757 CC=$lt_compiler
19758
19759 # Is the compiler the GNU compiler?
19760 with_gcc=$GCC
19761
19762 # Compiler flag to turn off builtin functions.
19763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19764
19765 # Additional compiler flags for building library objects.
19766 pic_flag=$lt_lt_prog_compiler_pic
19767
19768 # How to pass a linker flag through the compiler.
19769 wl=$lt_lt_prog_compiler_wl
19770
19771 # Compiler flag to prevent dynamic linking.
19772 link_static_flag=$lt_lt_prog_compiler_static
19773
19774 # Does compiler simultaneously support -c and -o options?
19775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19776
19777 # Whether or not to add -lc for building shared libraries.
19778 build_libtool_need_lc=$archive_cmds_need_lc
19779
19780 # Whether or not to disallow shared libs when runtime libs are static.
19781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19782
19783 # Compiler flag to allow reflexive dlopens.
19784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19785
19786 # Compiler flag to generate shared objects directly from archives.
19787 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19788
19789 # Whether the compiler copes with passing no objects directly.
19790 compiler_needs_object=$lt_compiler_needs_object
19791
19792 # Create an old-style archive from a shared archive.
19793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19794
19795 # Create a temporary old-style archive to link instead of a shared archive.
19796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19797
19798 # Commands used to build a shared archive.
19799 archive_cmds=$lt_archive_cmds
19800 archive_expsym_cmds=$lt_archive_expsym_cmds
19801
19802 # Commands used to build a loadable module if different from building
19803 # a shared archive.
19804 module_cmds=$lt_module_cmds
19805 module_expsym_cmds=$lt_module_expsym_cmds
19806
19807 # Whether we are building with GNU ld or not.
19808 with_gnu_ld=$lt_with_gnu_ld
19809
19810 # Flag that allows shared libraries with undefined symbols to be built.
19811 allow_undefined_flag=$lt_allow_undefined_flag
19812
19813 # Flag that enforces no undefined symbols.
19814 no_undefined_flag=$lt_no_undefined_flag
19815
19816 # Flag to hardcode \$libdir into a binary during linking.
19817 # This must work even if \$libdir does not exist
19818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19819
19820 # Whether we need a single "-rpath" flag with a separated argument.
19821 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19822
19823 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19824 # DIR into the resulting binary.
19825 hardcode_direct=$hardcode_direct
19826
19827 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19828 # DIR into the resulting binary and the resulting library dependency is
19829 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19830 # library is relocated.
19831 hardcode_direct_absolute=$hardcode_direct_absolute
19832
19833 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19834 # into the resulting binary.
19835 hardcode_minus_L=$hardcode_minus_L
19836
19837 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19838 # into the resulting binary.
19839 hardcode_shlibpath_var=$hardcode_shlibpath_var
19840
19841 # Set to "yes" if building a shared library automatically hardcodes DIR
19842 # into the library and all subsequent libraries and executables linked
19843 # against it.
19844 hardcode_automatic=$hardcode_automatic
19845
19846 # Set to yes if linker adds runtime paths of dependent libraries
19847 # to runtime path list.
19848 inherit_rpath=$inherit_rpath
19849
19850 # Whether libtool must link a program against all its dependency libraries.
19851 link_all_deplibs=$link_all_deplibs
19852
19853 # Set to "yes" if exported symbols are required.
19854 always_export_symbols=$always_export_symbols
19855
19856 # The commands to list exported symbols.
19857 export_symbols_cmds=$lt_export_symbols_cmds
19858
19859 # Symbols that should not be listed in the preloaded symbols.
19860 exclude_expsyms=$lt_exclude_expsyms
19861
19862 # Symbols that must always be exported.
19863 include_expsyms=$lt_include_expsyms
19864
19865 # Commands necessary for linking programs (against libraries) with templates.
19866 prelink_cmds=$lt_prelink_cmds
19867
19868 # Commands necessary for finishing linking programs.
19869 postlink_cmds=$lt_postlink_cmds
19870
19871 # Specify filename containing input files.
19872 file_list_spec=$lt_file_list_spec
19873
19874 # How to hardcode a shared library path into an executable.
19875 hardcode_action=$hardcode_action
19876
19877 # ### END LIBTOOL CONFIG
19878
19879 _LT_EOF
19880
19881 cat <<'_LT_EOF' >> "$cfgfile"
19882
19883 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19884
19885 # func_munge_path_list VARIABLE PATH
19886 # -----------------------------------
19887 # VARIABLE is name of variable containing _space_ separated list of
19888 # directories to be munged by the contents of PATH, which is string
19889 # having a format:
19890 # "DIR[:DIR]:"
19891 # string "DIR[ DIR]" will be prepended to VARIABLE
19892 # ":DIR[:DIR]"
19893 # string "DIR[ DIR]" will be appended to VARIABLE
19894 # "DIRP[:DIRP]::[DIRA:]DIRA"
19895 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19896 # "DIRA[ DIRA]" will be appended to VARIABLE
19897 # "DIR[:DIR]"
19898 # VARIABLE will be replaced by "DIR[ DIR]"
19899 func_munge_path_list ()
19900 {
19901 case x$2 in
19902 x)
19903 ;;
19904 *:)
19905 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19906 ;;
19907 x:*)
19908 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19909 ;;
19910 *::*)
19911 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19912 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19913 ;;
19914 *)
19915 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19916 ;;
19917 esac
19918 }
19919
19920
19921 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19922 func_cc_basename ()
19923 {
19924 for cc_temp in $*""; do
19925 case $cc_temp in
19926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19928 \-*) ;;
19929 *) break;;
19930 esac
19931 done
19932 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19933 }
19934
19935
19936 # ### END FUNCTIONS SHARED WITH CONFIGURE
19937
19938 _LT_EOF
19939
19940 case $host_os in
19941 aix3*)
19942 cat <<\_LT_EOF >> "$cfgfile"
19943 # AIX sometimes has problems with the GCC collect2 program. For some
19944 # reason, if we set the COLLECT_NAMES environment variable, the problems
19945 # vanish in a puff of smoke.
19946 if test set != "${COLLECT_NAMES+set}"; then
19947 COLLECT_NAMES=
19948 export COLLECT_NAMES
19949 fi
19950 _LT_EOF
19951 ;;
19952 esac
19953
19954
19955 ltmain=$ac_aux_dir/ltmain.sh
19956
19957
19958 # We use sed instead of cat because bash on DJGPP gets confused if
19959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19960 # text mode, it properly converts lines to CR/LF. This bash problem
19961 # is reportedly fixed, but why not run on old versions too?
19962 sed '$q' "$ltmain" >> "$cfgfile" \
19963 || (rm -f "$cfgfile"; exit 1)
19964
19965 mv -f "$cfgfile" "$ofile" ||
19966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19967 chmod +x "$ofile"
19968
19969 ;;
19970
19971 esac
19972 done # for ac_tag
19973
19974
19975 as_fn_exit 0
19976 _ACEOF
19977 ac_clean_files=$ac_clean_files_save
19978
19979 test $ac_write_fail = 0 ||
19980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19981
19982
19983 # configure is writing to config.log, and then calls config.status.
19984 # config.status does its own redirection, appending to config.log.
19985 # Unfortunately, on DOS this fails, as config.log is still kept open
19986 # by configure, so config.status won't be able to write to it; its
19987 # output is simply discarded. So we exec the FD to /dev/null,
19988 # effectively closing config.log, so it can be properly (re)opened and
19989 # appended to by config.status. When coming back to configure, we
19990 # need to make the FD available again.
19991 if test "$no_create" != yes; then
19992 ac_cs_success=:
19993 ac_config_status_args=
19994 test "$silent" = yes &&
19995 ac_config_status_args="$ac_config_status_args --quiet"
19996 exec 5>/dev/null
19997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19998 exec 5>>config.log
19999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20000 # would make configure fail if this is the last instruction.
20001 $ac_cs_success || as_fn_exit 1
20002 fi
20003 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20005 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20006 fi
20007